/* Variables de Color Hiperrealistas y de Naturaleza */
:root {
    --color-bg: #F8F9F5;
    /* Tono lino natural aún más suave */
    --color-leaf-dark: #435E4E;
    /* Verde salvia oscuro, menos intenso que el bosque profundo */
    --color-leaf-light: #7E9E8B;
    /* Verde pastel salvia suave */
    --color-earth: #8C6A50;
    /* Marrón tierra arcilla */
    --color-earth-dark: #2A1F18;
    /* Marrón muy oscuro para footer clásico (aunque usamos gradiente ahora) */
    --color-sand: #E6DCCD;
    /* Arena clara pastel */
    --color-water: #96BFC0;
    /* Azul agua pastel */
    --color-text-main: #333333;
    --color-text-light: #666666;
    --color-gold: #D4AF37;
    /* Tono Dorado Elegante */
    --color-gold-light: #F3E5AB;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(217, 203, 184, 0.45);
    --glass-shadow: rgba(43, 78, 56, 0.12);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* SUBLIME EFFECTS */
.gold-text {
    background: linear-gradient(135deg, #c59f4e 0%, #fef9db 30%, #b98b32 50%, #fef9db 70%, #9a6b1f 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.1), 0px 4px 12px rgba(0, 0, 0, 0.3);
    animation: shine 6s linear infinite;
}

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

.shimmer-effect {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.shimmer-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-25deg);
    transition: 0.8s ease;
}

.shimmer-effect:hover::after {
    left: 150%;
}

.sunlight-flare {
    position: absolute;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 235, 180, 0.45) 0%, rgba(212, 175, 55, 0.1) 35%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 2;
    transition: transform 0.1s ease-out;
}

.hero-card-wrapper {
    width: 100%;
    max-width: 900px;
    transition: transform 0.3s ease-out;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* HERO SECTION (Realismo y Calma) */
.hero {
    height: 85vh;
    background-image: url('../img/aloe_hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax suave */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Oscurecido para asegurar que el texto blanco sea super legible */
    background: radial-gradient(circle at 50% 50%, rgba(20, 40, 30, 0.6) 0%, rgba(20, 40, 30, 0.9) 100%);
    z-index: 0;
}

/* EFECTO DE HACES DE LUZ SOLAR (AMANECER BOTÁNICO) */
.hero::before {
    content: "";
    position: absolute;
    top: -18%;
    left: -15%;
    width: 140%;
    height: 75%;
    z-index: 1;
    /* Por encima del fondo, debajo del cristal */
    pointer-events: none;
    background:
        linear-gradient(105deg,
            transparent 0%,
            rgba(255, 248, 210, 0.00) 20%,
            rgba(255, 248, 210, 0.28) 34%,
            rgba(212, 175, 55, 0.16) 41%,
            transparent 56%),
        linear-gradient(78deg,
            transparent 8%,
            rgba(244, 247, 242, 0.24) 30%,
            transparent 50%),
        linear-gradient(120deg,
            transparent 35%,
            rgba(255, 236, 170, 0.16) 52%,
            transparent 68%);
    filter: blur(20px);
    opacity: 0.72;
    transform: rotate(-3deg);
    animation: cultivateSolarBreath 14s ease-in-out infinite alternate;
}

/* LUZ AMBIENTAL DORADA SUPERIOR */
.hero::after {
    content: "";
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 420px;
    background: radial-gradient(circle,
            rgba(212, 175, 55, 0.28) 0%,
            rgba(244, 247, 242, 0.12) 35%,
            transparent 70%);
    filter: blur(35px);
    pointer-events: none;
    z-index: 0;
}

@keyframes cultivateSolarBreath {
    from {
        transform: translateY(-10px) rotate(-4deg);
        opacity: 0.52;
    }

    to {
        transform: translateY(10px) rotate(-2deg);
        opacity: 0.82;
    }
}

/* AURA BOTÁNICA */
.hero-aura {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(142, 183, 184, 0.20), transparent 34%),
        radial-gradient(circle at 78% 18%, rgba(212, 175, 55, 0.18), transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(90, 127, 97, 0.20), transparent 42%);
    filter: blur(8px);
}

/* NÚCLEO SOLAR BOTÁNICO (LOGO) */
.hero-logo-wrap {
    position: relative;
    display: inline-flex;
    margin-bottom: 20px;
}

.hero-logo-wrap::before {
    content: "";
    position: absolute;
    inset: -34px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(212, 175, 55, 0.26),
            rgba(142, 183, 184, 0.12) 42%,
            transparent 70%);
    filter: blur(22px);
    z-index: -1;
}

.hero-logo {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    padding: 18px;
    background: rgba(244, 247, 242, 0.72);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(212, 175, 55, 0.42);
    box-shadow:
        0 24px 70px rgba(43, 78, 56, 0.22),
        0 0 55px rgba(212, 175, 55, 0.34),
        inset 0 0 28px rgba(255, 255, 255, 0.35);
    object-fit: cover;
}

/* AIRE VISUAL EN EL HERO */
.glass-panel {
    background: rgba(8, 28, 15, 0.35);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 20px rgba(212, 175, 55, 0.05);
    padding: clamp(3rem, 7vw, 6rem) clamp(1.4rem, 4vw, 4rem);
    border-radius: 2.5rem;
    max-width: 920px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeIn 2s ease-in-out;
}

/* KICKER Y LÍNEA DORADA */
.hero-kicker {
    display: inline-flex;
    padding: .55rem 1rem;
    border-radius: 999px;
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--color-earth);
    background: rgba(217, 203, 184, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.28);
    margin-bottom: 1.4rem;
}

.hero-title-line {
    width: 120px;
    height: 1px;
    margin: 1.4rem auto 1.6rem;
    background: linear-gradient(90deg,
            transparent,
            rgba(212, 175, 55, 0.9),
            transparent);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.42);
}

/* TIPOGRAFÍA EDITORIAL HERO */
.glass-panel h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 10vw, 8.8rem);
    line-height: 0.92;
    letter-spacing: -0.065em;
    color: var(--color-leaf-dark);
    text-shadow:
        0 10px 35px rgba(43, 78, 56, 0.18),
        0 0 28px rgba(212, 175, 55, 0.12);
    margin-top: 1.4rem;
    margin-bottom: 1rem;
}

.glass-panel .subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.75;
    color: rgba(245, 242, 235, 0.9);
    max-width: 720px;
    margin-inline: auto;
    margin-bottom: 2.2rem;
}

.btn-primary,
.btn-secondary,
.btn-luxury,
.hero-cta {
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* BOTON HERO CTA (BRILLO ESPIRITUAL) */
.hero-cta {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 999px;
    padding: 1rem 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #F4F7F2;
    background: linear-gradient(135deg, var(--color-leaf-dark), var(--color-leaf-light));
    box-shadow:
        0 16px 38px rgba(43, 78, 56, 0.28),
        0 0 26px rgba(212, 175, 55, 0.24);
    transition: transform .35s ease, box-shadow .35s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow:
        0 22px 52px rgba(43, 78, 56, 0.34),
        0 0 42px rgba(212, 175, 55, 0.34);
}

.hero-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.34),
            transparent);
    transform: skewX(-18deg);
    transition: left .7s ease;
}

.hero-cta:hover::before {
    left: 125%;
}

.btn-luxury {
    background: linear-gradient(135deg, rgba(12, 38, 20, 0.8) 0%, rgba(4, 18, 10, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #f6e5af;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.btn-luxury:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 235, 180, 0.9);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.2), 0 0 20px rgba(212, 175, 55, 0.25);
    background: linear-gradient(135deg, rgba(20, 58, 32, 0.9) 0%, rgba(12, 38, 20, 0.95) 100%);
    letter-spacing: 2px;
}

.btn-primary {
    background-color: var(--color-leaf-dark);
    color: white;
    border: 1px solid transparent;
    box-shadow: 0 10px 20px rgba(43, 78, 56, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-leaf-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(43, 78, 56, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-leaf-dark);
    border: 2px solid var(--color-leaf-dark);
}

.btn-secondary:hover {
    background-color: rgba(43, 78, 56, 0.05);
    transform: translateY(-3px);
}

/* NAVEGACIÓN FLOTANTE GLASS */
.main-nav {
    position: sticky;
    top: 14px;
    z-index: 50;
    width: min(1120px, calc(100% - 2rem));
    margin: -38px auto 40px;
    border-radius: 999px;
    background: rgba(244, 247, 242, 0.76);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(217, 203, 184, 0.58);
    box-shadow:
        0 18px 48px rgba(43, 78, 56, 0.12),
        0 0 24px rgba(212, 175, 55, 0.10);
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 30px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-leaf-dark);
    cursor: pointer;
    padding: 5px;
    align-items: center;
    justify-content: center;
}

/* FLOATING AUDIO BUTTON */
.floating-audio-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 5px 20px rgba(43, 78, 56, 0.2);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-leaf-dark);
}

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

.floating-audio-btn.muted {
    opacity: 0.6;
    filter: grayscale(100%);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.main-nav li {
    margin: 0 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 1.1rem;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-leaf-dark);
    border-bottom: 2px solid var(--color-leaf-light);
}

/* CONTAINER & SECTIONS */
.container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 30px;
    min-height: 50vh;
}

.content-section {
    display: none;
    animation: fadeIn 0.8s ease;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    font-family: var(--font-heading);
    color: white;
    /* o #ffffff */
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;

}

/* JERARQUIA VISUAL Y TIPOGRAFIA */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    color: var(--color-leaf-dark);
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 15px;
}

.section-lead {
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--color-text-light);
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: center;
}

.section-desc {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* TEMPLO DEL AUTOCUIDADO EDITORIAL */
.editorial-block {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
    padding: 3rem 0;
}

.editorial-quote {
    font-family: var(--font-heading);
    color: var(--color-leaf-dark);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--color-gold);
    padding-left: 20px;
}

@media (max-width: 768px) {
    .editorial-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* GRID & CARDS */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 40px;
}

@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    border-top: 4px solid var(--color-gold);
    position: relative;
    transform-style: preserve-3d;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 60px rgba(43, 78, 56, 0.14),
        0 0 45px rgba(212, 175, 55, 0.18);
}

/* Cursor Glow Tracker */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(212, 175, 55, 0.08),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.card:hover::before {
    opacity: 1;
}

.card-img {
    height: 250px;
    background-color: var(--color-sand);
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 35px;
    position: relative;
    z-index: 2;
    transform: translateZ(20px);
    /* For VanillaTilt depth */
}

.card h3 {
    font-family: var(--font-heading);
    color: var(--color-earth);
    font-size: 1.7rem;
    margin-bottom: 18px;
}

.card p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(19, 35, 26, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(244, 247, 242, 0.96);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 50px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35), 0 0 60px rgba(212, 175, 55, 0.15);
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--color-text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--color-leaf-dark);
}

.modal-body h2 {
    font-family: var(--font-heading);
    color: var(--color-leaf-dark);
    font-size: 2.8rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(217, 203, 184, 0.5);
    padding-bottom: 15px;
}

.pedagogic-note {
    background-color: rgba(142, 183, 184, 0.15);
    border-left: 4px solid var(--color-water);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    font-style: italic;
    color: var(--color-leaf-dark);
}

/* FOOTER */
footer {
    background-color: var(--color-leaf-dark);
    color: var(--color-sand);
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    /* Responsive Floating Menu */
    .main-nav {
        width: 55px;
        height: 55px;
        padding: 0;
        margin: -27px 20px 40px auto;
        /* Flotando a la derecha */
        border-radius: 50%;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .mobile-menu-toggle {
        display: flex;
        width: 55px;
        height: 55px;
        min-height: 55px;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 10px;
    }

    .main-nav li {
        margin: 12px 0;
    }

    /* Menu Expanded State */
    .main-nav.expanded {
        width: calc(100% - 40px);
        height: auto;
        border-radius: 20px;
        margin: -30px auto 40px;
        padding: 10px 10px 20px 10px;
    }

    .main-nav.expanded ul {
        display: flex;
        animation: fadeIn 0.4s ease forwards;
    }

    .main-nav.expanded .mobile-menu-toggle {
        border-bottom: 1px solid rgba(217, 203, 184, 0.4);
        width: 90%;
        margin-bottom: 5px;
    }

    .content-section h2 {
        font-size: 2rem;
    }
}

/* ANIMACIONES */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* FLIP CARDS (Módulo Interactivo) */
.flip-card {
    background-color: transparent;
    height: 280px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.flip-card-front {
    background-color: var(--color-bg);
    color: var(--color-leaf-dark);
    border: 2px solid var(--color-sand);
}

.flip-card-front h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-top: 15px;
}

.flip-card-back {
    background-color: var(--color-leaf-dark);
    color: var(--color-sand);
    transform: rotateY(180deg);
}

.flip-card-back h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.module-header {
    text-align: center;
    margin: 60px 0 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(43, 78, 56, 0.05), rgba(142, 183, 184, 0.1));
    border-radius: 20px;
}

.module-header h2 {
    font-family: var(--font-heading);
    color: var(--color-leaf-dark);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.module-header p {
    color: var(--color-text-light);
    font-size: 1.2rem;
}

/* CARRUSEL ORÁCULO ANCESTRAL */
.carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0 40px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Ocultar barra en Firefox */
}

.carousel-container::-webkit-scrollbar {
    display: none;
    /* Ocultar barra en Chrome/Safari */
}

.history-card {
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(244, 247, 242, 0.95), rgba(217, 203, 184, 0.45));
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.history-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(43, 78, 56, 0.15);
}

.history-card h4 {
    color: var(--color-leaf-dark);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.history-card .cultura {
    font-size: 0.85rem;
    color: var(--color-earth);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

/* BOTONES SELECTORES DE ALQUIMIA */
.filter-btn {
    background-color: white;
    border: 2px solid var(--color-sand);
    color: var(--color-text);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--color-leaf);
    background-color: rgba(142, 183, 184, 0.1);
}

.filter-btn.active {
    background-color: var(--color-leaf-dark);
    color: white;
    border-color: var(--color-leaf-dark);
    box-shadow: 0 4px 10px rgba(43, 78, 56, 0.3);
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================
   REDISENO CULTIVATE - ESTILOS ADICIONALES
   ========================================== */

/* Variables de Color Premium */
:root {
    --color-bone: #faf8f5;
    --color-emerald-dark: #1b3022;
    --color-gold: #d4af37;
    --color-gold-hover: #b38728;
}

body {
    background-color: var(--color-bone) !important;
}

/* Header & Nav */
.nav-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--color-emerald-dark) !important;
}

.nav-link.active {
    color: var(--color-emerald-dark) !important;
    border-color: #d4af37 !important;
    /* var(--color-gold) */
}

/* Category Cards */
.category-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(27, 48, 34, 0.08) !important;
}

.category-explore-btn {
    transition: color 0.3s ease, gap 0.3s ease;
}

.category-explore-btn:hover {
    color: var(--color-gold-hover) !important;
}

/* Condition Cards */
.condition-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.condition-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(27, 48, 34, 0.06) !important;
}

.condition-card i {
    transition: transform 0.3s ease;
}

.condition-card:hover i {
    transform: scale(1.15);
}

/* Article Cards */
.article-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(27, 48, 34, 0.06) !important;
}

.article-card .bg-cover {
    transition: transform 0.5s ease;
}

.article-card:hover .bg-cover {
    transform: scale(1.05);
}

/* Search bar & Tag Buttons */
#search-input {
    transition: all 0.3s ease;
    border: 1px solid rgba(27, 48, 34, 0.1);
}

#search-input:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
    border-color: var(--color-gold);
}

.popular-tag {
    transition: all 0.3s ease;
}

.popular-tag:hover {
    background-color: var(--color-emerald-dark) !important;
    border-color: var(--color-gold) !important;
}

/* SPA Sections visibility */
.content-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Music Floating Button */
.floating-audio-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1b3022;
    border: none;
    box-shadow: 0 4px 15px rgba(27, 48, 34, 0.25);
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    transition: all 0.3s ease;
}

.floating-audio-btn:hover {
    transform: scale(1.1);
    color: var(--color-gold) !important;
}

.floating-audio-btn.muted {
    opacity: 0.6;
}

/* Loading animations */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--color-text-light);
    font-style: italic;
}

/* ==========================================
   MÓDULO 1: LA MAGIA DEL ALOE VERA CARDS
   ========================================== */
.module-header {
    text-align: center !important;
    margin: 40px 0 40px 0 !important;
    padding: 40px 30px !important;
    background: rgba(43, 78, 56, 0.04) !important;
    border: 1px solid #e2dfd5 !important;
    border-radius: 24px !important;
    box-shadow: none !important;
}

.module-header h2 {
    font-family: 'Playfair Display', serif !important;
    color: #2b4c37 !important;
    font-size: 2.2rem !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
}

.module-header p,
.module-header .section-desc {
    color: #666666 !important;
    font-size: 1.05rem !important;
    margin-bottom: 0 !important;
}

.flip-card {
    background-color: transparent !important;
    height: 280px !important;
    perspective: 1000px !important;
    cursor: pointer !important;
}

.flip-card-inner {
    border-radius: 16px !important;
}

.flip-card-front {
    background-color: #faf8f5 !important;
    color: #2b4c37 !important;
    border: 1px solid #e2dfd5 !important;
    padding: 16px !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    box-shadow: 0 4px 15px rgba(27, 48, 34, 0.03) !important;
}

.flip-card-front img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    margin-bottom: 0 !important;
}

.flip-card-front h3 {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    color: #35533c !important;
    margin-top: 18px !important;
    margin-bottom: 0 !important;
    text-align: center !important;
}

.flip-card-back {
    background-color: #2b4c37 !important;
    color: #faf8f5 !important;
    border: 1px solid #2b4c37 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.flip-card-back h4 {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.35rem !important;
    color: #d4af37 !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
}

.flip-card-back p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

/* ==========================================
   SISTEMAS CORPORALES CARDS
   ========================================== */
.card {
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(27, 48, 34, 0.04), 0 0 1px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease !important;
    cursor: pointer !important;
    border: 1px solid #e2dfd5 !important;
    border-top: 4px solid #b38728 !important;
    /* Golden/brown top border */
    position: relative !important;
}

.card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 30px rgba(27, 48, 34, 0.08) !important;
}

.card-img {
    height: 190px !important;
    background-color: var(--color-sand) !important;
    background-size: cover !important;
    background-position: center !important;
    border-bottom: 1px solid #edf2ea !important;
}

.card-content {
    padding: 24px 20px !important;
    text-align: left !important;
}

.card-content h3 {
    font-family: 'Playfair Display', serif !important;
    color: #8c6a50 !important;
    /* Warm brown/gold */
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    text-align: left !important;
}

.card-content p {
    color: #666666 !important;
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

/* ==========================================
   FULL-SCREEN ARTICLE OVERLAY
   ========================================== */
#article-overlay {
    animation: fadeIn 0.35s ease;
}

.article-nav-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2dfd5;
}

.article-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1b3022;
    color: white;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: background 0.2s ease;
}

.article-back-btn:hover {
    background: #2b4c37;
}

.article-hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    display: block;
}

.article-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

.article-system-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #1b3022;
    margin-bottom: 8px;
    line-height: 1.2;
}

.article-system-intro {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
    padding: 20px 24px;
    background: rgba(43, 78, 56, 0.05);
    border-left: 4px solid #b38728;
    border-radius: 0 12px 12px 0;
}

.article-afeccion-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2dfd5;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(27, 48, 34, 0.04);
    transition: box-shadow 0.3s ease;
}

.article-afeccion-card:hover {
    box-shadow: 0 8px 30px rgba(27, 48, 34, 0.08);
}

.article-afeccion-header {
    padding: 24px 28px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    background: #faf8f5;
    border-bottom: 1px solid #f0ece5;
}

.afeccion-severity-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.severity-benigna {
    background: #e8f5e9;
    color: #2e7d32;
}

.severity-aguda {
    background: #fff8e1;
    color: #f57f17;
}

.severity-cronica {
    background: #fce4ec;
    color: #c62828;
}

.severity-grave {
    background: #fde8e8;
    color: #b71c1c;
}

.severity-variable {
    background: #ede7f6;
    color: #4527a0;
}

.article-afeccion-body {
    padding: 28px;
    display: none;
}

.article-afeccion-body.open {
    display: block;
}

.article-treatment-block {
    background: linear-gradient(135deg, rgba(43, 78, 56, 0.04), rgba(43, 78, 56, 0.02));
    border: 1px solid rgba(43, 78, 56, 0.12);
    border-radius: 14px;
    padding: 20px 24px;
    margin-top: 16px;
}

.article-lifestyle-block {
    background: linear-gradient(135deg, rgba(179, 135, 40, 0.06), rgba(179, 135, 40, 0.02));
    border: 1px solid rgba(179, 135, 40, 0.2);
    border-radius: 14px;
    padding: 20px 24px;
    margin-top: 12px;
}

.article-warning {
    background: rgba(217, 83, 79, 0.07);
    border-left: 4px solid #d9534f;
    border-radius: 0 10px 10px 0;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #c0392b;
}

/* ==========================================
   AUTH TAB ACTIVE STATE
   ========================================== */
.auth-tab.active {
    color: #2b4c37 !important;
    border-bottom-color: #2b4c37 !important;
    font-weight: 700 !important;
}

/* ==========================================
   FAQ ACCORDION
   ========================================== */
.faq-btn {
    transition: background 0.2s ease;
}

.faq-btn:hover {
    background: #f0ece5 !important;
}

.faq-icon.open {
    transform: rotate(180deg);
}

/* ==========================================
   MÁS SECTION AESTHETIC
   ========================================== */
#mas .content-section {
    display: block;
}