/* =========================================================
   NELLZ — ESTILOS
   ========================================================= */



:root {
    --font-garamond: "EB Garamond", serif;
    --font-satoshi: "Satoshi", sans-serif;
    --color-primary: #0000ff;
    --color-secondary: #D4AF37;
    --color-background: #F8F7F3;
    --color-text-dark: #333333;
    --color-text-light: #FFFFFF;
    --color-gray: #7A7A7A;
    --color-light-gray: #E8E6E1;
    --font-main: "Helvetica Neue", Arial, sans-serif;
    --transition-speed: 0.3s;
}

h1, h2, h3, .section-title, .service-card h4 {
    font-family: var(--font-satoshi);
    font-weight: 750;
}

body, p, a, button, .service-card p {
    font-family: var(--font-garamond);
    font-weight: 600;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-background);
    color: var(--color-text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    color: #0000ff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-block;
    transition: all var(--transition-speed) ease;
    background: transparent;
}

/* ESTILOS DEL BOTÓN CONTACTAR Y DESPLEGABLE EN ESCRITORIO Y MÓVIL (BLANCO CON TEXTO NEGRO) */
.btn-contact-gold {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border: 1px solid #ffffff !important;
}

.btn-contact {
    background-color: #ffffff !important;
    color: #0000ff !important;
    border: 1px solid var(--color-secondary) !important;
}

.btn-contact-gold:hover {
    background-color: #f0f0f0 !important;
    border-color: #f0f0f0 !important;
    color: #1a1a1a !important;
}

.btn-outline-gold {
    border: 1px solid var(--color-secondary);
    color: var(--color-text-light);
}

.btn-outline-gold:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.btn-outline-dark {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-dark:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.section-title {
    color: var(--color-primary);
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* =========================================================
   HEADER / NAVEGACIÓN
   ========================================================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar nav ul {
    display: flex;
    gap: 30px;
}

.navbar nav a {
    color: var(--color-text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    opacity: 0.8;
}

.navbar nav a:hover {
    color: var(--color-secondary);
}

.menu-desktop {
    display: flex;
    gap: 20px;
}

.menu-desktop a {
    font-family: var(--font-satoshi);
}

.contact-dropdown-container {
    position: relative;
}

.contact-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background-color: #ffffff;
    color: #1a1a1a;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed) ease;
    z-index: 1000;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.contact-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s;
    text-transform: none;
}

.contact-menu a:last-child {
    border-bottom: none;
}

.contact-menu a:hover {
    background-color: #f5f5f5 !important;
}

.contact-menu span {
    font-size: 1.2rem;
}

/* MENÚ HAMBURGUESA Y MÓVIL */
/* --- BOTÓN HAMBURGUESA Y MENÚ MÓVIL --- */

.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    padding: 0;
    z-index: 101;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animación de la cruz cuando se activa */
.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

/* Menú desplegable móvil */
.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    flex-direction: column;
    padding: 20px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.mobile-dropdown.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-dropdown ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
}

.mobile-dropdown a {
    font-family: var(--font-satoshi);
    font-size: 1.1rem;
    color: var(--color-text-light);
    display: block;
    text-decoration: none;
}

.mobile-dropdown .contact-dropdown-container {
    width: 100%;
}

.mobile-dropdown .contact-dropdown-container .btn {
    width: 100%;
    text-align: center;
}

/* --- REGLA RESPONSIVE PARA MOSTRAR LA HAMBURGUESA EN MÓVIL --- */
@media (max-width: 768px) {
    .menu-desktop,
    .desktop-contact {
        display: none !important;
    }

    .hamburger-btn {
        display: flex;
    }
}
/* =========================================================
   HERO
   ========================================================= */

.hero {
    background-color: var(--color-primary);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 115px 5% 0;
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
    z-index: 6;
    background: transparent !important;
}

.hero-content.hide-on-scroll {
    opacity: 0;
    transform: translateY(-40px);
    pointer-events: none;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--color-text-light);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeReverse 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

@keyframes fadeReverse {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 span {
    color: var(--color-secondary);
    display: block;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 400px;
}

.hero-skyline {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    height: 75px;
    object-fit: fill;
    z-index: 1;
    pointer-events: none;
}

.door-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.door-card {
    width: 340px;
    height: 720px;
    position: relative;
    perspective: 2000px;
    border-radius: 8px;
    overflow: hidden;
    cursor: default;
    background: transparent !important;
    touch-action: none;
    transform-style: preserve-3d;
    flex-shrink: 0;
}

.door-interior {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top-left-radius: 190px;
    border-top-right-radius: 190px;
    overflow: hidden;
    background: transparent;
}

.door-interior img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.door-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: left;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.door-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.door-front,
.door-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 750px;
    border-top-left-radius: 190px;
    border-top-right-radius: 190px;
    backface-visibility: hidden;
    overflow: hidden;
}

.door-front img,
.door-back img {
    width: 100%;
    height: 750px;
    object-fit: cover;
    display: block;
}

.door-back {
    transform: rotateY(180deg);
}

/* =========================================================
   SERVICIOS
   ========================================================= */

.services {
    padding: 120px 5%;
    display: flex;
    align-items: center;
    gap: 60px;
    border-bottom: 1px solid var(--color-light-gray);
}

.services .section-intro {
    flex: 1;
    min-width: 300px;
}

.services-grid {
    flex: 2.5;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
    overflow: hidden;
    align-items: stretch;
}

.service-card {
    flex: 1;
    height: 420px;
    border-radius: 140px 140px 0 0;
    border: 1px solid #D4AF37;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--color-gray);
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.desktop-gold-divider {
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background-color: #D4AF37;
    margin: auto;
    display: block;
}

/* =========================================================
   SOMOS NELLZ / ABOUT
   ========================================================= */

.about {
    display: flex;
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.about-content {
    flex: 1;
    padding: 100px 5% 100px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content .section-title {
    color: var(--color-text-light);
}

.about-content > p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.value-item .icon {
    font-size: 2rem;
    color: var(--color-secondary);
}

.value-item h4 {
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.value-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.about-image {
    flex: 1.5;
    position: relative;
    min-height: 600px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   PROPIEDADES
   ========================================================= */

.properties {
    padding: 100px 5%;
}

.properties-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.properties-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    scrollbar-width: none;
}

.properties-grid::-webkit-scrollbar {
    display: none;
}

.property-card {
    background: #fff;
    position: relative;
    transition: transform var(--transition-speed);
}

.property-card.carousel-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-img {
    position: relative;
    width: 100%;
    height: 240px; /* Altura fija estable para evitar recálculos en móvil */
    overflow: hidden;
    background-color: #f0f0f0; /* Fondo gris suave mientras carga la imagen */
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-primary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
}

.property-info {
    padding: 20px 0;
}

.property-title-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-light-gray);
    padding-bottom: 15px;
}

.property-title-price h4 {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.property-title-price .price {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.property-features {
    display: flex;
    gap: 15px;
    color: var(--color-gray);
    font-size: 0.85rem;
    align-items: center;
}

/* =========================================================
   TESTIMONIOS
   ========================================================= */

.testimonials {
    padding: 100px 5%;
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
}

.testimonial-card {
    background-color: transparent;
    flex: 0 0 320px;
}

.quote-icon {
    font-size: 4rem;
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: -10px;
    font-family: serif;
}

.testimonial-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.testimonial-author h5 {
    color: var(--color-primary);
    font-size: 1rem;
}

.testimonial-author p {
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* =========================================================
   COMPONENTES / CARRUSELES
   ========================================================= */

.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.carousel-wrapper {
    position: relative;
    padding: 0 50px;
    width: 100%;
    box-sizing: border-box;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: white;
    color: #D4AF37;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background-color: #D4AF37;
    color: #1a1a1a;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.testimonials.carousel-container .carousel-btn {
    top: 60%;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    width: 35px;
    height: 35px;
    border: 1px solid var(--color-secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-secondary);
    background: transparent;
    transition: all var(--transition-speed) ease;
}

.social-icon:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.social-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 80px 5% 30px 5%;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col .logo {
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 20px;
    max-width: 250px;
}

.footer-col h5 {
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a,
.footer-col li {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-col ul a:hover {
    opacity: 1;
}

.contact-description {
    margin-bottom: 20px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media screen and (max-width: 768px) 



@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* SERVICIOS — CARRUSEL MÓVIL */
@media screen and (max-width: 768px) {

    .services {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 18px !important;
        padding: 10px 6% 25px !important;
        scrollbar-width: none;
    }

    .services::-webkit-scrollbar {
        display: none;
    }

    .services .service-card {
        flex: 0 0 78vw !important;
        max-width: 340px;
        scroll-snap-align: center;
    }

    .testimonials {
        display: block !important;
    }

    .testimonials-header {
        width: 100% !important;
        margin-bottom: 28px !important;
        text-align: center;
    }

    .testimonials-header .section-title {
        margin-bottom: 0;
    }

    .testimonials .carousel-wrapper {
        width: 100% !important;
        position: relative;
    }

    .testimonials-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 18px !important;
        padding: 5px 6% 25px !important;
        scrollbar-width: none;
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .testimonials-grid .testimonial-card {
        flex: 0 0 84vw !important;
        max-width: 250px;
        scroll-snap-align: center;
    }

    .testimonials .carousel-btn {
        display: none !important;
    }
}

/* SERVICIOS COMO PUERTAS */
.services-grid {
    align-items: stretch;
}

.service-card {
    width: 260px;
    min-width: 260px;
    height: 420px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    perspective: 1600px;
    cursor: pointer;
}

.service-door {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1600px;
    border: 1px solid #D4AF37;
    border-radius: 140px 140px 0 0;
    overflow: hidden;
    background: #fff;
}

.service-door-back,
.service-door-panel {
    position: absolute;
    inset: 0;
    border-radius: 140px 140px 0 0;
}

.service-door-back {
    z-index: 1;
    padding: 80px 28px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #fff;
    box-sizing: border-box;
}

.service-door-back h3 {
    margin: 0 0 18px;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 1rem;
}

.service-door-back p {
    margin: 0;
    color: var(--color-gray);
    font-size: .95rem;
    line-height: 1.55;
}

.service-door-panel {
    z-index: 2;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform .7s cubic-bezier(.4,0,.2,1);
    background: #fff;
}

.service-door-front {
    width: 100%;
    height: 100%;
    border-radius: 140px 140px 0 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 40px 20px;
    box-sizing: border-box;
    backface-visibility: hidden;
}

.service-door-front img {
    width: 115px;
    height: 115px;
    object-fit: contain;
}

.service-door-front h3 {
    margin: 0;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 1rem;
}

@media (hover: hover) and (pointer: fine) {
    .service-card:hover .service-door-panel {
        transform: rotateY(-110deg);
    }
}

.service-card.open-mobile .service-door-panel {
    transform: rotateY(-110deg);
}

@media screen and (max-width: 768px) {
    .services {
        display: block !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .services .section-intro {
        padding-left: 6%;
        padding-right: 6%;
        min-width: 0 !important;
    }

    .services-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 18px !important;
        padding: 10px 6% 30px !important;
        box-sizing: border-box !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .services-grid .service-card {
        flex: 0 0 260px !important;
        width: 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
        height: 390px !important;
        scroll-snap-align: center;
    }

    .services-grid .desktop-gold-divider {
        display: none !important;
    }

    .service-door-front img {
        width: 105px;
        height: 105px;
    }

    .service-door-back {
        padding: 65px 25px 25px;
    }

    .service-door-back p {
        font-size: 1rem;
    }
}

/* =========================================================
   HERO / PUERTA — ANIMACIÓN DE APERTURA AL HACER SCROLL
   ========================================================= */

.navbar {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.hero {
    min-height: 100vh !important;
    height: 100vh !important;
    width: 100%;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.door-wrapper {
    position: absolute !important;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    height: calc(150vh - 120px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 5;
    pointer-events: none;
}

.door-card {
    width: 340px;
    height: min(720px, calc(100vh - 120px));
    transition: none !important;
}

.door-card.is-expanded {
    overflow: hidden;
}

.door-panel {
    transition: none !important;
}
.google-reviews-section {
    padding: 100px 5%;
    background-color: var(--color-background);
    border-top: 1px solid var(--color-light-gray);
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-header {
    text-align: center;
    margin-bottom: 50px;
}

.reviews-header h2 {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-family: var(--font-satoshi);
}

.global-rating-badge {
    font-size: 1rem;
    color: var(--color-gray);
    font-family: var(--font-garamond);
}

.stars-gold {
    color: var(--color-secondary);
    letter-spacing: 2px;
    margin-right: 6px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.review-card {
    background: #ffffff;
    border: 1px solid var(--color-light-gray);
    padding: 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.2s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.review-author-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-author-row img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-light-gray);
}

.review-author-row h4 {
    font-size: 1.05rem;
    color: var(--color-text-dark);
    font-family: var(--font-satoshi);
    margin-bottom: 2px;
}

.review-time {
    font-size: 0.8rem;
    color: var(--color-gray);
}

.review-stars {
    color: var(--color-secondary);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.review-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-dark);
    margin: 0;
    font-style: italic;
}
/* --- ESTILOS DE LAS VENTANAS EMERGENTES (MODALES) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--color-background, #F8F7F3);
    color: var(--color-text-dark, #333333);
    padding: 40px 30px 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.modal-content h2 {
    color: var(--color-primary, #0000ff);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-dark, #333333);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-dark, #333333);
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-primary, #0000ff);
}

@media screen and (max-width: 768px) {
    .hero {
        padding-top: 90px !important;
    }

    .door-wrapper {
        height: calc(100vh - 90px);
    }

    .door-card {
        width: min(300px, 78vw);
        height: min(620px, calc(100vh - 90px));
    }
}