/* ════════════════════════════════════════════════════════════════
   AURA EXPERIENCE — BASE
   Variables, reset, tipografía, utilidades globales
   ════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
    /* Paleta — Aurora Holistic Dark Premium (basada en el logo) */

    /* Fondos oscuros principales */
    --color-bg: #0B0709;             /* fondo principal, negro cálido del logo */
    --color-bg-alt: #15101A;         /* sección alterna, distinguible del bg */
    --color-bg-card: #1F1827;        /* cards / contenedores elevados */
    --color-bg-elevated: #2A2235;    /* hover / elevación adicional */

    /* Fondos claros (para secciones que requieran luz) */
    --color-light: #F5EFE6;          /* crema cálida — como acento, no base */
    --color-light-soft: #EDE3D2;
    --color-cream: #DBCBA8;
    --color-sand: #C2A87A;

    /* Negros cálidos profundos (cuando se necesita aún más oscuro) */
    --color-dark: #050304;
    --color-dark-2: #0B0709;
    --color-dark-3: #14101A;

    /* Acentos del aura del logo */
    --color-aura-green: #5BD9A0;
    --color-aura-magenta: #E5447D;
    --color-aura-blue: #4F8FE8;
    --color-aura-purple: #9B6BD9;

    /* Dorado / champagne — acento metálico premium */
    --color-terracotta: #D9A964;          /* mantengo nombre por compatibilidad — ahora dorado */
    --color-terracotta-dark: #B8893F;
    --color-gold: #E0BD7A;
    --color-gold-soft: #EBD09A;
    --color-champagne: #D9BC7E;

    /* Sage / verde tierra suave (acento secundario) */
    --color-sage: #8FA68A;
    --color-sage-dark: #6F8870;

    /* Texto sobre fondo oscuro */
    --color-text: #F5EFE6;            /* texto principal (crema clara) */
    --color-text-soft: #D4CABA;       /* texto secundario */
    --color-text-muted: #A39888;      /* texto muted / labels */
    --color-text-dim: #6E655E;        /* casi invisible */

    /* Cuando sí necesitamos texto oscuro sobre fondo claro */
    --color-text-on-light: #14101A;
    --color-text-on-light-soft: #3D3540;

    /* Líneas y bordes */
    --color-line: rgba(245, 239, 230, 0.10);
    --color-line-strong: rgba(245, 239, 230, 0.18);
    --color-line-light: rgba(20, 16, 26, 0.10);

    --color-white: #FFFFFF;
    --color-overlay: rgba(5, 3, 4, 0.7);
    --color-overlay-light: rgba(5, 3, 4, 0.35);

    /* Gradiente firma (aura del logo) */
    --gradient-aura: linear-gradient(135deg, #5BD9A0 0%, #4F8FE8 35%, #9B6BD9 65%, #E5447D 100%);
    --gradient-aura-soft: linear-gradient(135deg, rgba(91, 217, 160, 0.15) 0%, rgba(79, 143, 232, 0.15) 35%, rgba(155, 107, 217, 0.15) 65%, rgba(229, 68, 125, 0.15) 100%);
    --gradient-dark-to-bg: linear-gradient(180deg, var(--color-dark) 0%, var(--color-bg) 100%);

    /* Tipografía */
    --font-display: 'Playfair Display', 'Times New Roman', serif;
    --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
    --font-script: 'Playfair Display', serif;

    /* Tamaños — escala modular */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.375rem;
    --fs-xl: 1.75rem;
    --fs-2xl: 2.25rem;
    --fs-3xl: 3rem;
    --fs-4xl: 4rem;
    --fs-5xl: 5.5rem;

    /* Espaciado — escala 8pt */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 3rem;
    --sp-8: 4rem;
    --sp-9: 6rem;
    --sp-10: 8rem;

    /* Layout */
    --container-max: 1280px;
    --container-narrow: 960px;
    --container-text: 720px;

    /* Bordes y radios */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Sombras (fondos oscuros: glow sutil + halo) */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 32px rgba(224, 189, 122, 0.25);
    --shadow-aura: 0 0 60px rgba(91, 217, 160, 0.15), 0 0 60px rgba(229, 68, 125, 0.1);

    /* Transiciones */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --tr-fast: 200ms var(--ease);
    --tr-base: 400ms var(--ease);
    --tr-slow: 700ms var(--ease-soft);

    /* Header */
    --header-h: 88px;
    --header-h-mobile: 72px;
    --z-header: 100;
    --z-modal: 200;
    --z-overlay: 150;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--tr-fast);
}

ul,
ol {
    list-style: none;
}

input,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* ── Tipografía ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.display {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--color-text);
}

.display-xl {
    font-size: clamp(3rem, 7vw, var(--fs-5xl));
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.display-lg {
    font-size: clamp(2.5rem, 5vw, var(--fs-4xl));
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.display-md {
    font-size: clamp(2rem, 4vw, var(--fs-3xl));
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.display-sm {
    font-size: clamp(1.5rem, 3vw, var(--fs-2xl));
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-gold);
    display: inline-block;
}

.italic-accent {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--color-text);
}

.lead {
    font-size: var(--fs-md);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text-soft);
    max-width: 60ch;
}

p {
    font-weight: 400;
    line-height: 1.75;
    color: var(--color-text-soft);
}

p + p {
    margin-top: var(--sp-4);
}

strong {
    color: var(--color-text);
    font-weight: 600;
}

em {
    font-style: italic;
}

blockquote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--fs-lg);
    line-height: 1.5;
    color: var(--color-text);
    padding: var(--sp-5) var(--sp-6);
    border-left: 2px solid var(--color-gold);
}

/* Modificadores de sección con fondo claro (cuando se necesita variación) */
.section-light {
    background: var(--color-light);
    color: var(--color-text-on-light);
}
.section-light p,
.section-light .lead {
    color: var(--color-text-on-light-soft);
}
.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light h5,
.section-light h6 {
    color: var(--color-text-on-light);
}
.section-light .eyebrow {
    color: var(--color-terracotta-dark);
}

/* ── Contenedores ──────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container-narrow {
    max-width: var(--container-narrow);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container-text {
    max-width: var(--container-text);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ── Secciones ─────────────────────────────────────────────────── */
section {
    padding-block: clamp(4rem, 9vw, var(--sp-10));
}

.section-header {
    text-align: center;
    margin-bottom: var(--sp-8);
    max-width: 720px;
    margin-inline: auto;
}

.section-header .eyebrow {
    margin-bottom: var(--sp-3);
}

.section-header h2 {
    margin-bottom: var(--sp-4);
}

.section-header p {
    color: var(--color-text-soft);
    font-size: var(--fs-md);
}

/* ── Utilidades ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }

.bg-alt { background-color: var(--color-bg-alt); }
.bg-card { background-color: var(--color-bg-card); }
.bg-cream { background-color: var(--color-cream); color: var(--color-text-on-light); }
.bg-dark { background-color: var(--color-dark); color: var(--color-text); }
.bg-light { background-color: var(--color-light); color: var(--color-text-on-light); }

/* Texto con color sólido (antes gradiente aurora) */
.text-aura {
    color: var(--color-text);
}

/* Línea decorativa con gradiente aurora */
.aura-line {
    height: 1px;
    background: var(--gradient-aura);
    border: none;
    margin: var(--sp-5) 0;
    opacity: 0.7;
}

.aura-line-center {
    width: 80px;
    margin: var(--sp-5) auto;
}

.divider {
    width: 60px;
    height: 1px;
    background-color: var(--color-terracotta);
    margin: var(--sp-5) auto;
}

.divider.left { margin-inline: 0; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ── Animaciones de entrada ───────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 800ms var(--ease-soft), transform 800ms var(--ease-soft);
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── Selección ────────────────────────────────────────────────── */
::selection {
    background-color: var(--color-gold);
    color: var(--color-dark);
}

/* ── Scrollbar (webkit) ────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-bg-elevated);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}
