/* --- VARIABLES & RESET --- */
:root {
    --gold: #D4AF37;
    --dark: #0a0a0a;
    --font-script: 'Great Vibes', cursive;
    --font-btn: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--dark);
    color: #f4f4f4;
    overflow-x: hidden;
}

/* --- SCROLLBAR PERSONALIZADA --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 5px;
    border: 2px solid #0a0a0a;
    /* Espacio alrededor */
}

::-webkit-scrollbar-thumb:hover {
    background: #b5952f;
}

/* CLASE MAESTRA: MANUSCRITA + BRILLO DORADO */
.gold-text {
    font-family: var(--font-script);
    color: var(--gold);
    background: linear-gradient(to right, var(--gold) 20%, #fff 50%, var(--gold) 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-effect 4s linear infinite;
    filter: drop_shadow(0px 0px 1px rgba(0, 0, 0, 0.5));
    /* Sombra reducida */
    padding-right: 0.1em;
    font-weight: 300;
    /* Letra más fina */
}

@keyframes shine-effect {
    to {
        background-position: 200% center;
    }
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Transparencia */
    backdrop-filter: blur(10px);
    /* Efecto vidrio */
    -webkit-backdrop-filter: blur(10px);
    /* Soporte Safari */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.5);
    /* Borde dorado más sutil */
    height: 70px;
}

.logo-nav {
    font-size: 2.5rem;
    cursor: pointer;
    padding-bottom: 5px;
    line-height: 1.5;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-family: var(--font-btn);
    font-weight: 400;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--gold);
}

.hamburger {
    display: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('Imagenes/fondo1.jpeg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.map-frame {
    border: 0;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.hero-title {
    font-size: 8rem;
    line-height: 1.4;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    margin-bottom: 0rem;
    font-weight: 300;
    /* Asegurar delgadez */
}

.subtitle {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 1rem;
    /* Changed from 3rem */
    letter-spacing: 5px;
    /* Changed from 4px */
    text-transform: uppercase;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    animation: fadeInUp 1.5s ease-out 0.5s backwards;
    /* Added */
}

.dynamic-phrase {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-family: var(--font-body);
    font-weight: 300;
    animation: fadeInUp 1.5s ease-out 0.8s backwards;
}

#dynamic-word {
    font-family: var(--font-script);
    color: var(--gold);
    font-size: 2.5rem;
    display: inline-block;
    min-width: 150px;
    /* Evitar saltos de layout */
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.word-hidden {
    opacity: 0;
    transform: translateY(20px);
}

.word-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- TÍTULOS DE SECCIONES --- */
.section-title {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    /* Asegurar delgadez */
    line-height: 1.4;
    padding: 0.2em 0;
}

/* --- NOSOTROS (MISIÓN Y VISIÓN) --- */
.about-section {
    padding: 5rem 5%;
    background-color: #0f0f0f;
}

.about-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    /* Apilar track y controles */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Importante para el slide */
}

.about-grid {
    position: relative;
    width: 100%;
    /* La altura se ajustará con JS */
}

.about-card {
    background: #151515;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid #333;
    border-radius: 5px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: none;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-card.active-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: absolute;
    z-index: 2;
    /* Mayor que las inactivas */
}

/* ANIMACIONES SLIDE */
.slide-in-right {
    animation: slideInRight 0.5s forwards;
}

.slide-out-left {
    animation: slideOutLeft 0.5s forwards;
}

.slide-in-left {
    animation: slideInLeft 0.5s forwards;
}

.slide-out-right {
    animation: slideOutRight 0.5s forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
        visibility: visible;
    }

    to {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
        visibility: visible;
    }

    to {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
    }
}

.slider-controls {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    z-index: 10;
}

.slider-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: var(--gold);
    color: #000;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .slider-btn {
        width: 45px;
        height: 45px;
    }

    /* Ajustes Galería Móvil (Layout Estricto) */
    .lightbox {
        justify-content: flex-start;
        /* Alinear arriba */
    }

    .lightbox-content-wrapper {
        flex: 1;
        max-height: 80vh;
        /* Limitar altura de imagen */
        padding-top: 60px;
        /* Espacio para botón cerrar */
    }

    .lightbox img {
        max-height: 100%;
        max-width: 95%;
    }

    .lightbox-controls {
        position: relative;
        /* Ya no absoluto */
        top: auto;
        transform: none;
        width: 100%;
        height: 100px;
        /* Altura fija para controles */
        display: flex;
        justify-content: center;
        /* Centrar botones */
        gap: 50px;
        align-items: center;
        background: rgba(0, 0, 0, 0.8);
        /* Fondo oscuro para controles */
        pointer-events: auto;
        flex-shrink: 0;
        /* No encoger */
    }

    .nav-btn {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(212, 175, 55, 0.3);
        border-radius: 50%;
        width: 60px;
        height: 60px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }
}

.icon-gold {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    background: linear-gradient(to right, var(--gold) 20%, #fff 50%, var(--gold) 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-effect 3s linear infinite;
    transform: scale(0.9);
}



@keyframes pulseGold {
    0% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(212, 175, 55, 0);
    }

    50% {
        transform: scale(1.1);
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(212, 175, 55, 0);
    }
}

.about-card h3 {
    font-family: var(--font-script);
    font-size: 2.5rem;
    font-weight: 100;
    /* Más delgado */
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--gold) 20%, #fff 50%, var(--gold) 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-effect 4s linear infinite;
}

/* === AQUÍ ESTÁ EL TEXTO JUSTIFICADO === */
.about-card p {
    color: #ccc;
    line-height: 1.6;
    text-align: justify;
    /* Justificado */
}

.values-list span {
    display: block;
    text-align: justify;
    /* Justificado */
    font-size: 0.9rem;
    color: #ccc;
}

/* --- PAQUETES --- */
.packages-section {
    padding: 5rem 5%;
    background-color: var(--dark);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.package-card {
    background: transparent;
    /* El fondo lo da el ::after */
    padding: 2.5rem;
    border: none;
    /* El borde lo da el ::before */
    border-radius: 5px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
    /* Contexto de apilamiento */
}

/* Estela de luz giratoria */
.package-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    /* Grande para cubrir rotación */
    height: 250%;
    background: conic-gradient(transparent 80%, var(--gold));
    animation: rotate-border 10s linear infinite;
    transform: translate(-50%, -50%);
    z-index: -2;
    opacity: 0.7;
}

/* Fondo interior (tapa) */
.package-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    /* Grosor del borde */
    background: #151515;
    border-radius: 5px;
    z-index: -1;
}

@keyframes rotate-border {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.featured-pkg {
    transform: scale(1.05);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    z-index: 1;
}

.featured-pkg:hover {
    transform: scale(1.08);
}

.pkg-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.package-card h3 {
    font-family: var(--font-script);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--gold) 20%, #fff 50%, var(--gold) 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-effect 4s linear infinite;
    font-weight: 300;
    /* Letra más fina */
}

.price {
    font-family: var(--font-script);
    font-size: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--gold) 20%, #fff 50%, var(--gold) 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-effect 4s linear infinite;
}

.pkg-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pkg-list li {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.95rem;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

.pkg-list i {
    margin-right: 10px;
    color: var(--gold);
}

/* --- GALERÍA --- */
.gallery-section {
    padding: 5rem 5%;
    background-color: #111;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    height: 250px;
    border: 1px solid #333;
    overflow: hidden;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

/* Ocultar elementos a partir del 13 si no está expandido */
.gallery-grid:not(.expanded) .gallery-item:nth-child(n+13) {
    display: none;
}

.overlay-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.overlay-icon i {
    color: var(--gold);
    font-size: 2rem;
}

.gallery-item:hover .overlay-icon {
    opacity: 1;
}

/* DIVISOR DORADO */
.separator-gold {
    height: 2px;
    width: 80%;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
    position: relative;
    margin-bottom: 2rem;
    /* Espacio antes de la siguiente sección */
}

.separator-gold::after {
    content: '♦';
    /* Pequeño rombo decorativo */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0f0f0f;
    /* Mismo color que el fondo general */
    padding: 0 10px;
    color: var(--gold);
    font-size: 1.2rem;
}

/* ANIMACIÓN SCROLL MEJORADA */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.25, 0.1, 0.25, 1);
    /* Movimiento más natural */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- OTROS --- */
.feedback-section {
    padding: 4rem 5%;
    background-color: #0f0f0f;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.rating-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.stars-container {
    display: flex;
    gap: 10px;
    font-size: 2.5rem;
    cursor: pointer;
}

.star {
    color: #444;
    transition: 0.2s;
}

.star:hover,
.star.active {
    color: var(--gold);
    transform: scale(1.2);
}

.rating-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--gold);
    background: #222;
    color: white;
    resize: none;
    height: 100px;
    font-family: var(--font-body);
}

.contact-section {
    padding: 5rem 5%;
    background-color: var(--dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.social-buttons-container {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
}

/* Botones */
/* Botones Mágicos (Paquetes) */
.btn-12 {
    position: relative;
    display: inline-block;
    padding: 0.8rem 2.5rem;
    /* Un poco más pequeños */
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    /* Texto más fino */
    font-weight: 500;
    /* Menos negrita */
    letter-spacing: 2px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.5);
    /* Borde semitransparente */
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    /* Sin sombra inicial */
}

/* Fondo de estrellas oculto */
.btn-12::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Fondo menos intenso */
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        radial-gradient(rgba(212, 175, 55, 0.5) 1px, transparent 1px);
    background-size: 10px 10px, 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

/* Brillo al hover */
.btn-12:hover {
    color: #fff;
    border-color: var(--gold);
    /* Mantiene color dorado */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    /* Sombra suave */
    transform: translateY(-2px);
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.btn-12 span {
    background: linear-gradient(to right, var(--gold) 20%, #fff 50%, var(--gold) 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-effect 6s linear infinite;
}

.btn-12:hover span {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
}

.btn-12:hover::before {
    opacity: 0.8;
    /* No totalmente opaco */
    animation: star-move 20s linear infinite;
}

@keyframes star-move {
    from {
        background-position: 0 0, 10px 10px;
    }

    to {
        background-position: 100px 100px, 110px 110px;
    }
}

.btn-12 span {
    position: relative;
    z-index: 2;
}

.Btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: transparent;
    position: relative;
    border-radius: 7px;
    cursor: pointer;
    transition: all .3s;
    text-decoration: none;
}

.svgContainer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    backdrop-filter: blur(4px);
    letter-spacing: 0.8px;
    border-radius: 10px;
    transition: all .3s;
    border: 1px solid rgba(156, 156, 156, 0.466);
    z-index: 2;
}

.BG {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 9px;
    pointer-events: none;
    transition: all .3s;
}

.Btn:hover .BG {
    transform: rotate(35deg);
    transform-origin: bottom;
}

.Btn:hover .svgContainer {
    background-color: rgba(156, 156, 156, 0.466);
}

.bg-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.bg-fb {
    background: linear-gradient(45deg, #18ACFE 0%, #0163E0 100%);
}

.bg-wa {
    background: linear-gradient(45deg, #25D366 0%, #128C7E 100%);
}

.map-container iframe {
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* --- FOOTER PREMIUM --- */
.premium-footer {
    background-color: #050505;
    border-top: 1px solid var(--gold);
    padding: 4rem 2rem 1rem;
    color: #ccc;
    position: relative;
    box-shadow: 0 -10px 30px rgba(212, 175, 55, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.footer-brand h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-style: italic;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--gold);
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact p {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

@media (min-width: 768px) {
    .footer-content {
        text-align: left;
    }
}

/* --- LIGHTBOX (GALERÍA) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    border-radius: 5px;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1003;
}

.close-lightbox:hover {
    color: var(--gold);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    transition: 0.3s;
    z-index: 1001;
}

.nav-btn:hover {
    color: var(--gold);
    transform: translateY(-50%) scale(1.2);
}

#prev-btn {
    left: 20px;
}

#next-btn {
    right: 20px;
}

/* --- PARTÍCULAS DE FONDO --- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    /* Detrás de todo */
    pointer-events: none;
    /* No interfiere con clics */
}

/* BOTÓN WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(37, 211, 102, 0.8);
    /* Semitransparente */
    backdrop-filter: blur(1px);
    /* Efecto cristal */
    -webkit-backdrop-filter: blur(5px);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: floatIn 1s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Borde sutil */
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5);
    background: rgba(37, 211, 102, 0.95);
    /* Más sólido al hover */
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- BOTÓN GALAXY ELEGANTE (GOLD DUST) --- */
.btn-galaxy {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 13rem;
    overflow: hidden;
    height: 3rem;
    background-size: 300% 300%;
    backdrop-filter: blur(1rem);
    border-radius: 5rem;
    transition: 0.5s;
    /* Fondo negro profundo con degradado sutil */
    background-image: linear-gradient(145deg, #000000, #1a1a1a);
    border: 1px solid rgba(212, 175, 55, 0.3);
    /* Borde dorado sutil */
    text-decoration: none;
    position: relative;
    cursor: pointer;
    margin-top: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#container-stars {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: 0.5s;
    backdrop-filter: blur(0px);
    /* Sin blur para nitidez */
    border-radius: 5rem;
}

.btn-galaxy strong {
    z-index: 2;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    /* Un poco más pequeño y fino */
    letter-spacing: 4px;
    color: var(--gold);
    /* Texto dorado */
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    font-weight: 400;
}

#glow {
    position: absolute;
    display: flex;
    width: 12rem;
}

.circle {
    width: 100%;
    height: 30px;
    filter: blur(2rem);
    animation: pulse_3011 4s infinite;
    z-index: -1;
}

.circle:nth-of-type(1) {
    background: rgba(212, 175, 55, 0.2);
    /* Dorado muy sutil */
}

.circle:nth-of-type(2) {
    background: rgba(212, 175, 55, 0.2);
}

.btn-galaxy:hover #container-stars {
    z-index: 1;
    background-color: #050505;
}

.btn-galaxy:hover {
    transform: scale(1.05);
    /* Escala más sutil */
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    /* Resplandor dorado */
}

.btn-galaxy:active {
    border: 1px solid var(--gold);
    transform: scale(0.98);
}

#stars {
    position: relative;
    background: transparent;
    width: 200rem;
    height: 200rem;
}

#stars::after {
    content: "";
    position: absolute;
    top: -10rem;
    left: -100rem;
    width: 100%;
    height: 100%;
    animation: animStarRotate 120s linear infinite;
    /* Más lento */
}

#stars::after {
    /* Partículas doradas */
    background-image: radial-gradient(#D4AF37 1px, transparent 1%);
    background-size: 50px 50px;
}

#stars::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 170%;
    height: 500%;
    animation: animStar 90s linear infinite;
    /* Más lento */
}

#stars::before {
    background-image: radial-gradient(#D4AF37 1px, transparent 1%);
    background-size: 50px 50px;
    opacity: 0.5;
}

@keyframes animStar {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-135rem);
    }
}

@keyframes animStarRotate {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0);
    }
}

@keyframes gradient_301 {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse_3011 {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}


.gold-text {
    /* Restauramos el brillo blanco como en Nuestra Esencia */
    background: linear-gradient(to right, var(--gold) 20%, #fff 50%, var(--gold) 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Brillo lento */
    animation: shine-effect 6s linear infinite;
    position: relative;
    z-index: 1;
}

/* Texto dorado SIN cambiar la fuente (para listas y párrafos) */
.gold-text-simple {
    background: linear-gradient(to right, var(--gold) 20%, #fff 50%, var(--gold) 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-effect 6s linear infinite;
    position: relative;
    z-index: 1;
    font-weight: bold;
    /* Opcional, para que destaque */
}

@keyframes shine-effect {
    to {
        background-position: 200% center;
    }
}

/* --- PARTÍCULAS GLOBALES --- */
#gold-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp linear infinite;
    box-shadow: 0 0 5px var(--gold);
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.2;
        /* Casi invisible (antes 0.3) */
    }

    90% {
        opacity: 0.1;
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* Efecto de "Brasas" (Resplandor cálido que sube y baja) */
@keyframes ember-glow {
    0% {
        text-shadow:
            0 0 4px rgba(255, 215, 0, 0.3),
            0 -2px 8px rgba(255, 69, 0, 0.1);
        /* Naranja sutil */
    }

    100% {
        text-shadow:
            0 0 8px rgba(255, 215, 0, 0.6),
            0 -5px 15px rgba(255, 69, 0, 0.3);
        /* Sube como fuego */
    }
}

@keyframes golden-aura {
    0% {
        text-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
    }

    100% {
        /* Capas de sombra para simular partículas/resplandor */
        text-shadow:
            0 0 5px rgba(212, 175, 55, 0.5),
            0 0 10px rgba(212, 175, 55, 0.3),
            0 0 20px rgba(212, 175, 55, 0.1);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 998;
    }

    /* Ajustes Galería Móvil */
    .lightbox img {
        max-height: 60vh;
        /* Espacio para botones abajo */
        margin-bottom: 80px;
    }

    .nav-btn {
        top: auto;
        bottom: 30px;
        transform: none;
        background: rgba(0, 0, 0, 0.5);
        /* Fondo semitransparente */
        border-radius: 50%;
        width: 50px;
        height: 50px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }

    .nav-btn:hover {
        transform: scale(1.1);
    }

    #prev-btn {
        left: 20%;
    }

    #next-btn {
        right: 20%;
    }

    .nav-active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 2rem 0;
        opacity: 0;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        display: block;
        padding: 10px 20px;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 18vw;
    }

    .section-title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .featured-pkg {
        transform: scale(1);
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

/* Animación de Latido para WhatsApp */
@keyframes pulseBtn {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: floatIn 1s ease-out, pulseBtn 2s infinite;
}

/* --- CLASES DE REFACTORIZACIÓN (REEMPLAZO DE ESTILOS EN LÍNEA) --- */
.values-list {
    text-align: left;
    list-style: none;
    padding: 0;
}

.values-list li {
    margin-bottom: 15px;
}

.values-list strong {
    color: var(--gold);
    display: block;
    margin-bottom: 5px;
}

.section-subtitle {
    text-align: center;
    color: #ccc;
    margin-bottom: 40px;
}

.package-card .btn-12 {
    margin-top: auto;
}

.feedback-btn {
    border: 1px solid white !important;
    /* !important para asegurar que sobrescriba si hay conflictos, aunque no debería ser necesario si la especificidad es correcta */
}

.social-icon {
    color: white;
    font-size: 1.5rem;
}



/* --- LOADER --- */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spin 1s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-hidden {
    opacity: 0;

    visibility: hidden;
}



/* --- TESTIMONIOS (HISTORIAS MÁGICAS) --- */
.testimonials-section {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonials-section .section-title {
    margin-bottom: 4rem;
}

.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 300px;
    /* Altura fija para evitar saltos */
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
    z-index: 2;
}

.testimonial-text {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-style: italic;
    color: #eee;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial-stars {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* --- PARTÍCULAS GLOBALES --- */
#gold-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp linear infinite;
    box-shadow: 0 0 5px var(--gold);
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* --- ANIMACIONES AL SCROLL (REVEAL) --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    /* Empieza 50px más abajo */
    transition: all 0.8s ease-out;
    /* Transición suave */
    will-change: opacity, transform;
    /* Optimización */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    /* Vuelve a su posición original */
}