/* ==================================================
   THE REMEMBERING — CARNAC
   Animations Stylesheet
   ================================================== */

/* =========================
   FADE IN ANIMATIONS
   ========================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================
   HERO ANIMATIONS
   ========================= */

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    animation: fadeIn 1s ease-out 0.2s both;
}

.hero-content h1 {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-content h2 {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-availability {
    animation: fadeIn 1s ease-out 0.7s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

/* =========================
   SECTION ENTRY (scroll reveal)
   Las clases .fade-in / .active las gestiona js/animations.js
   ========================= */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    transition-delay: var(--stagger, 0s);
    will-change: opacity, transform;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   CARD HOVER ANIMATIONS
   ========================= */

.team-card,
.experience-card,
.travel-card,
.included-column,
.for-you,
.not-for-you {
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1),
                box-shadow 0.3s ease;
}

/* =========================
   GALLERY ZOOM
   ========================= */

@keyframes imageZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

.gallery-item:hover img {
    animation: imageZoom 0.3s ease forwards;
}

/* =========================
   BUTTON PULSE
   ========================= */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 166, 107, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(201, 166, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(201, 166, 107, 0);
    }
}

.btn-primary:focus,
.btn-secondary:focus {
    animation: pulse 0.6s ease-out;
}

/* =========================
   NAV LINK UNDERLINE
   ========================= */

nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
}

/* =========================
   ACCORDION CONTENT FADE
   ========================= */

.accordion-content > * {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.accordion-content.active > * {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   PLACES NOTE SHIMMER (suave)
   ========================= */

@keyframes gentleGlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.65;
    }
}

.places-note,
.hero-availability {
    animation: gentleGlow 3.5s ease-in-out infinite;
}

/* =========================
   LOADER (si se necesita)
   ========================= */

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

/* =========================
   ACCESIBILIDAD — REDUCED MOTION
   ========================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}