:root {
    --noche: #2f3e44;
    --noche-suave: #568281;
    --dorado: #91b8c1;
    --dorado-claro: #c7dbd9;
    --dorado-oscuro: #45605f;
    --texto-muted-claro: #666666;
    --crema: #ded7c9;
    --marfil: #fbf9f6;
    --texto: #2f3e44;
    --texto-claro: #f4f4f4;
    --texto-suave: #7c9092;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    font-weight: 300;
    color: var(--texto);
    line-height: 1.7;
    background: var(--marfil);
}

header {
    background: var(--noche);
    padding: 0.9rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 38px;
    width: auto;
    display: block;
}

@media (min-width: 821px) {
    .logo img {
        height: 52px;
    }
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-btn span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--dorado);
    margin: 6px 0;
    transition: transform 0.3s, opacity 0.3s;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
    align-items: center;
}

nav a {
    color: var(--texto-claro);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--dorado);
}

.nav-cta {
    border: 1px solid var(--dorado);
    color: var(--dorado);
    padding: 6px 16px;
    border-radius: 3px;
}

.nav-cta:hover {
    background: var(--dorado);
    color: var(--noche);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        url('../assets/hero.jpg') center/cover,
        var(--noche-suave);
    min-height: 88vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--texto-claro);
    padding: 4rem 20px;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(24, 49, 73, 0.78), rgba(24, 49, 73, 0.85));
    z-index: 1;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
}

.hero-contenido {
    position: relative;
    z-index: 2;
}

.hero-sobre {
    color: var(--dorado);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(1.65rem, 7vw, 4.2rem);
    font-weight: 600;
    color: var(--texto-claro);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-frase {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--dorado-claro);
    max-width: 700px;
    margin: 0 auto 2.2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 4px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.15s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-dorado {
    background: var(--dorado);
    color: var(--noche);
}

.btn-dorado:hover {
    background: var(--dorado-claro);
}

.btn-noche {
    background: var(--noche);
    color: var(--texto-claro);
}

.btn-noche:hover {
    background: var(--noche-suave);
}

.icono {
    width: 22px;
    height: 22px;
}

section {
    padding: 4.5rem 5%;
}

.titulo-seccion {
    font-family: var(--serif);
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 600;
    color: var(--noche);
    margin-bottom: 2.5rem;
}

.titulo-seccion.dorado {
    color: var(--dorado);
}

.titulo-seccion::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--dorado-oscuro);
    margin: 14px auto 0;
}

.titulo-seccion.dorado::after {
    background: var(--dorado);
}

.fondo-crema {
    background: var(--crema);
}

.fondo-noche {
    background: var(--noche);
    color: var(--texto-claro);
}

.nota-centrada {
    text-align: center;
    max-width: 640px;
    margin: -1.2rem auto 2.5rem;
    color: inherit;
    opacity: 0.85;
}

.nosotros-contenido {
    max-width: 760px;
    margin: 0 auto;
    text-align: justify;
    hyphens: auto;
    font-size: 1.15rem;
}

.nosotros-contenido p + p {
    margin-top: 1.2rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.servicio-card {
    background: #fff;
    padding: 2.2rem 1.8rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    text-align: center;
    border-bottom: 3px solid var(--dorado-oscuro);
    transition: transform 0.25s;
}

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

.icono-servicio {
    width: 42px;
    height: 42px;
    color: var(--dorado-oscuro);
    margin-bottom: 0.8rem;
}

.servicio-card h3 {
    font-family: var(--serif);
    color: var(--noche);
    font-size: 1.25rem;
    line-height: 1.25;
    min-height: 3.75em;
    margin-bottom: 1.1rem;
}

.servicio-card p {
    font-size: 0.98rem;
    text-align: justify;
    hyphens: auto;
}

.galeria-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto;
}

.foto-galeria {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    flex: 0 1 240px;
}

.foto-galeria img,
.foto-galeria video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.foto-abrir {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.foto-abrir::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(24, 49, 73, 0);
    transition: background 0.25s;
}

.foto-abrir:hover::after,
.foto-abrir:focus-visible::after {
    background: rgba(24, 49, 73, 0.25);
}

.foto-abrir:focus-visible {
    outline: 2px solid var(--dorado);
    outline-offset: 2px;
}

.insignia-instagram {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(24, 49, 73, 0.75);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.25s;
}

.insignia-instagram svg {
    width: 17px;
    height: 17px;
}

.foto-galeria:hover .insignia-instagram,
.insignia-instagram:focus-visible {
    background: var(--dorado);
    color: var(--noche);
    transform: scale(1.08);
}

/* ---------- Lightbox de la galería ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

.lightbox[open] {
    display: flex;
    opacity: 1;
}

.lightbox::backdrop {
    background: rgba(24, 49, 73, 0.92);
    backdrop-filter: blur(6px);
}

.lightbox-figura {
    position: relative;
    width: min(90vw, 1100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.lightbox-figura img {
    width: 100%;
    height: min(78vh, 720px);
    border-radius: 4px;
    object-fit: contain;
    display: block;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}

.lightbox-figura img.cambiando {
    opacity: 0;
    transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
    .lightbox-figura img {
        transition: none;
    }
}

#lightbox-contador {
    color: var(--texto-claro);
    font-family: var(--sans);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.lightbox-cerrar,
.lightbox-nav {
    position: absolute;
    z-index: 1;
    background: rgba(24, 49, 73, 0.6);
    color: var(--texto-claro);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}

.lightbox-cerrar svg,
.lightbox-nav svg {
    width: 20px;
    height: 20px;
}

.lightbox-cerrar:hover,
.lightbox-nav:hover,
.lightbox-cerrar:focus-visible,
.lightbox-nav:focus-visible {
    background: var(--dorado);
    color: var(--noche);
}

.lightbox-cerrar:focus-visible,
.lightbox-nav:focus-visible {
    outline: 2px solid var(--dorado);
    outline-offset: 2px;
}

.lightbox-cerrar {
    top: 20px;
    right: 20px;
}

.lightbox-anterior {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-siguiente {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 640px) {
    .lightbox-cerrar {
        top: 12px;
        right: 12px;
    }
    .lightbox-anterior {
        left: 8px;
    }
    .lightbox-siguiente {
        right: 8px;
    }
    .lightbox-figura {
        max-width: 96vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lightbox {
        transition: none;
    }
}

.paquetes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    max-width: 1050px;
    margin: 0 auto;
}

.paquete-card {
    background: var(--noche-suave);
    border-radius: 8px;
    padding: 2rem 1.6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.paquete-card.destacado {
    border: 1.5px solid var(--dorado);
}

.paquete-badge {
    color: var(--dorado);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.paquete-card h3 {
    font-family: var(--serif);
    color: var(--texto-claro);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.paquete-card ul {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 1.2rem;
    text-align: left;
}

.paquete-card li {
    padding: 0.35rem 0;
    font-size: 0.95rem;
    color: var(--texto-sobre-noche);
    border-bottom: 1px solid rgba(255, 187, 35, 0.15);
}

.paquete-card li:last-child {
    border-bottom: none;
}

.paquete-precio {
    color: var(--dorado);
    font-weight: 500;
}

.paquete-precio.precio-accion {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.paquete-precio.precio-accion:hover {
    color: var(--dorado-claro);
}

.paquete-precio.precio-accion:focus-visible {
    outline: 2px solid var(--dorado);
    outline-offset: 3px;
    border-radius: 4px;
}

.btn-cotizar-pack {
    margin-top: 1.2rem;
    background: transparent;
    border: 1.5px solid var(--dorado);
    color: var(--dorado);
    border-radius: 4px;
    padding: 10px 18px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}

.btn-cotizar-pack:hover {
    background: var(--dorado);
    color: var(--noche);
}

.paquete-card.seleccionado {
    box-shadow: 0 0 0 2px var(--dorado), 0 14px 34px rgba(0, 0, 0, 0.3);
}

.extras-nota {
    max-width: 800px;
    margin: 2.5rem auto 0;
    text-align: left;
    font-size: 0.95rem;
    color: #c9cdd6;
}

.extras-nota p + p {
    margin-top: 0.6rem;
}

.extras-nota strong {
    color: var(--dorado);
    font-weight: 500;
}

.testimonios-carrusel {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    max-width: 1100px;
    margin: 0 auto 2rem;
}

.testimonios-viewport {
    overflow: hidden;
    flex: 1;
    min-width: 0;
    padding: 0.2rem 0.1rem 0.6rem;
}

.testimonios-pista {
    display: flex;
    gap: 1.4rem;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .testimonios-pista {
        transition: none;
    }
}

.testimonios-flecha {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--dorado-oscuro);
    background: #fff;
    color: var(--noche);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.testimonios-flecha[hidden] {
    display: none;
}

.testimonios-flecha svg {
    width: 20px;
    height: 20px;
}

.testimonios-flecha:hover {
    background: var(--dorado-oscuro);
    color: #fff;
}

.testimonios-flecha:active {
    transform: scale(0.94);
}

.testimonios-flecha:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #fff;
    color: var(--noche);
    transform: none;
}

.testimonio-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.6rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex: 0 0 calc((100% - 2 * 1.4rem) / 3);
}

@media (max-width: 900px) {
    .testimonio-card {
        flex-basis: calc((100% - 1.4rem) / 2);
    }
}

@media (max-width: 620px) {
    .testimonios-carrusel {
        gap: 0.4rem;
    }
    .testimonio-card {
        flex-basis: 100%;
    }
}

.testimonio-estrellas {
    color: var(--dorado-oscuro);
    letter-spacing: 3px;
    margin-bottom: 0.6rem;
}

.testimonio-card blockquote {
    font-family: var(--sans);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.testimonio-card cite {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--texto-muted-claro);
}

.testimonio-form-caja {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    padding: 1.2rem 1.6rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.testimonio-form-caja summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--noche);
}

.testimonio-form-caja form {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input, select, textarea {
    font-family: var(--sans);
    font-size: 1rem;
    padding: 12px 14px;
    border: 1px solid #d9d4c5;
    border-radius: 4px;
    background: #fff;
    color: var(--texto);
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--dorado-oscuro);
    border-color: var(--dorado-oscuro);
}

#c-servicios.campo-resaltado {
    border-color: var(--dorado-oscuro);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dorado) 30%, transparent);
    animation: pulso-resaltado 1.4s ease-out 1;
}

@keyframes pulso-resaltado {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dorado) 55%, transparent); }
    100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--dorado) 30%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
    #c-servicios.campo-resaltado {
        animation: none;
    }
}

#c-servicios.campo-bloqueado {
    opacity: 0.65;
    background: #ececec;
    color: var(--texto-suave);
    cursor: not-allowed;
    padding-right: 44px;
}

.campo-con-boton {
    position: relative;
}

.btn-quitar-paquete {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--texto-suave);
    cursor: pointer;
    padding: 0;
}

.btn-quitar-paquete[hidden] {
    display: none;
}

.btn-quitar-paquete svg {
    width: 18px;
    height: 18px;
}

.btn-quitar-paquete:hover {
    color: var(--noche);
}

.form-aviso {
    font-size: 0.85rem;
    color: var(--texto-muted-claro);
}

#form-cotizar {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#form-cotizar .btn {
    align-self: center;
    margin-top: 0.5rem;
}

.form-fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contacto-directo {
    text-align: center;
    margin-top: 2.5rem;
    color: #c9cdd6;
}

.contacto-directo a {
    color: var(--dorado);
    text-decoration: none;
}

.contacto-directo a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 1.6rem 5%;
    background: #111822;
    color: var(--texto-suave);
    font-size: 0.9rem;
}

.footer-credito {
    margin-top: 0.4rem;
    font-size: 0.8rem;
}

.footer-credito a {
    color: #999;
    text-decoration: none;
}

.footer-credito a:hover {
    color: var(--dorado);
    text-decoration: underline;
}

.whatsapp-flotante {
    display: none;
}

@media (max-width: 820px) {
    .whatsapp-flotante {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        right: max(18px, env(safe-area-inset-right));
        bottom: max(18px, env(safe-area-inset-bottom));
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--dorado);
        color: var(--noche);
        box-shadow: 0 8px 20px rgba(24, 49, 73, 0.35);
        z-index: 500;
        opacity: 0;
        transform: translateY(12px) scale(0.9);
        pointer-events: none;
        transition: opacity 0.25s ease-out, transform 0.25s ease-out;
    }

    .whatsapp-flotante svg {
        width: 26px;
        height: 26px;
    }

    .whatsapp-flotante.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .menu-btn {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--noche);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    nav.abierto {
        max-height: 420px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0 1rem;
    }

    nav li {
        width: 100%;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 12px 0;
    }

    .nav-cta {
        display: inline-block;
        margin-top: 8px;
        border-radius: 3px;
    }

    .menu-btn[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-btn[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .form-fila {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
    .whatsapp-flotante {
        transform: none;
        transition: opacity 0.15s ease;
    }

    .whatsapp-flotante.visible {
        transform: none;
    }
}
