/* ========================================================================
   CATTLEYAS · Tema oscuro botánico
   Estilo C Galería Oscura adaptado a web
   ======================================================================== */

:root {
  /* === SUPERFICIES === (60% de la pantalla) */
  --bg-base:       #0F0F12;      /* fondo principal — casi negro, ligeramente warm */
  --bg-surface:    #18181C;      /* tarjetas, modales */
  --bg-elevated:   #22222A;      /* elementos elevados (hover, dropdown) */
  --bg-overlay:    rgba(15,15,18,0.92);

  /* === TEXTO === (30%) */
  --ink-primary:   #F5F2ED;      /* títulos, foco — warm white */
  --ink-secondary: #D4D0C7;      /* texto cuerpo principal */
  --ink-tertiary:  #A0A0A8;      /* meta, captions */
  --ink-muted:     #707078;      /* deshabilitado, footer */

  /* === ACCENTS === (10%) */
  --gold:          #C9A04E;      /* dorado · primary accent */
  --gold-bright:   #E0B968;
  --gold-soft:     rgba(201,160,78,0.15);
  --neon:          #C46EE0;      /* violeta neón · secondary accent */
  --neon-bright:   #D88EF0;
  --neon-soft:     rgba(196,110,224,0.18);

  /* === SECCIÓN COLORS (por subgénero/sección, consistencia con .pptx C) === */
  --sect-cattleya:     #C46EE0;  /* Sección Cattleya */
  --sect-cattleyodes:  #E09F4E;
  --sect-hadrolaelia:  #4EC08E;
  --sect-microlaelia:  #E04EA8;
  --sect-parviflorae:  #4EC0C0;
  --sect-sophronitis:  #4E8EE0;
  --sect-lawrenceanae: #A04EE0;
  --sect-cattleyella:  #C0E04E;
  --sect-maximae:      #E04E6E;
  --sect-intermediae:  #E0A04E;

  /* === BORDES Y RULES === */
  --border-subtle: rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
  --border-accent: rgba(201,160,78,0.40);

  /* === SOMBRAS (subtle, dark theme) === */
  --shadow-sm:     0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:     0 4px 12px rgba(0,0,0,0.45);
  --shadow-lg:     0 12px 32px rgba(0,0,0,0.55);
  --shadow-glow:   0 0 24px rgba(201,160,78,0.20);
  --shadow-neon:   0 0 32px rgba(196,110,224,0.25);

  /* === SPACING SCALE (rem-based) === */
  --space-3xs: 0.125rem;   /* 2px  */
  --space-2xs: 0.25rem;    /* 4px  */
  --space-xs:  0.5rem;     /* 8px  */
  --space-sm:  0.75rem;    /* 12px */
  --space-md:  1rem;       /* 16px */
  --space-lg:  1.5rem;     /* 24px */
  --space-xl:  2rem;       /* 32px */
  --space-2xl: 3rem;       /* 48px */
  --space-3xl: 4.5rem;     /* 72px */
  --space-4xl: 6rem;       /* 96px */
  --space-5xl: 9rem;       /* 144px */

  /* fluid spacing */
  --pad-section: clamp(2rem, 6vw, 5rem);
  --pad-page:    clamp(1rem, 4vw, 3rem);

  /* === RADIUS === */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* === Z-INDEX SEMÁNTICO === */
  --z-base:     1;
  --z-elevated: 10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  500;
  --z-modal:    1000;
  --z-toast:    1500;
  --z-tooltip:  2000;

  /* === TIPOGRAFÍAS === */
  --font-display: "Outfit", system-ui, -apple-system, sans-serif;
  --font-serif:   "Cormorant Garamond", "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", "Consolas", monospace;

  /* === ESCALA TIPOGRÁFICA (fluid clamp) === */
  --fs-3xs: 0.6875rem;   /* 11px - micro */
  --fs-2xs: 0.75rem;     /* 12px - meta */
  --fs-xs:  0.8125rem;   /* 13px - caption */
  --fs-sm:  0.875rem;    /* 14px - secondary */
  --fs-base: 1rem;       /* 16px - body */
  --fs-md:  1.125rem;    /* 18px - lead */
  --fs-lg:  clamp(1.25rem, 1vw + 1rem, 1.5rem);   /* 20-24 */
  --fs-xl:  clamp(1.5rem, 1.5vw + 1rem, 2rem);    /* 24-32 */
  --fs-2xl: clamp(2rem, 2.5vw + 1rem, 3rem);      /* 32-48 */
  --fs-3xl: clamp(2.75rem, 4vw + 1rem, 4.5rem);   /* 44-72 */
  --fs-display: clamp(3rem, 6vw + 1rem, 6rem);    /* 48-96 */

  --lh-tight:   1.1;
  --lh-snug:    1.25;
  --lh-normal:  1.5;
  --lh-relaxed: 1.7;

  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.05em;
  --tracking-widest: 0.15em;

  /* === TRANSICIONES === */
  --t-fast:   120ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-normal: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:   480ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================================================
   RESET MODERNO
   ======================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--ink-secondary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }

ul, ol { padding: 0; margin: 0; list-style: none; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--gold-bright); }

/* === UTILIDADES TIPOGRÁFICAS === */

.t-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink-primary);
}

.t-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink-primary);
}

.t-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  color: var(--ink-primary);
}

.t-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  color: var(--ink-primary);
}

.t-scientific {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.t-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--gold);
}

.t-caption {
  font-size: var(--fs-xs);
  color: var(--ink-tertiary);
  letter-spacing: var(--tracking-wide);
}

.t-soft  { color: var(--ink-tertiary); }
.t-muted { color: var(--ink-muted); }

/* === FOCUS RING === */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* === SELECCIÓN === */
::selection {
  background-color: var(--gold);
  color: var(--bg-base);
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-muted); }

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