/* ================================================================
   style.css — Sistema de Diseño Global
   ONG "Raíces Vivas" | Arquitectura Jamstack | Cloudflare Pages
   ================================================================

   ÍNDICE:
   1. Variables CSS (Design Tokens)
   2. Google Fonts + Font-Face
   3. Reset & Base
   4. Tipografía editorial
   5. Componentes compartidos (Nav, Botones, Cards)
   6. Animaciones y Keyframes
   7. Utilidades
   8. Print styles

   ──────────────────────────────────────────────────────────────
   NOTA DEVOPS/ASIR — ¿Por qué un archivo CSS propio junto a Tailwind?
   ──────────────────────────────────────────────────────────────
   Tailwind (CDN) gestiona el layout y las utilidades de spacing/color.
   Este archivo cubre exactamente lo que Tailwind NO puede:
     · Variables CSS globales (design tokens reutilizables)
     · @keyframes para animaciones personalizadas
     · Fuentes y escalas tipográficas editoriales
     · Pseudo-elementos decorativos complejos (::before / ::after)
     · Transiciones de acordeón (height: auto no es animable en CSS puro)
     · Estilos de scroll (scrollbar personalizado, scroll-snap)
   ================================================================ */


/* ────────────────────────────────────────────────────────────────
   1. VARIABLES CSS — Design Tokens
   Centralizar todos los valores de diseño aquí permite cambiar
   la identidad visual completa cambiando solo este bloque.
   Consejo ASIR: úsalas en lugar de colores hardcodeados en HTML.
   ──────────────────────────────────────────────────────────────── */
:root {
  /* Paleta principal */
  --color-cream:        #F5F0E8;   /* Fondo principal cálido */
  --color-cream-dark:   #EDE5D4;   /* Fondo de secciones alternas */
  --color-forest:       #2D5016;   /* Verde musgo principal */
  --color-forest-mid:   #3D6B20;   /* Verde musgo medio */
  --color-forest-light: #C8DDA0;   /* Verde claro para acentos suaves */
  --color-earth:        #7A3B10;   /* Tierra / acento cálido */
  --color-earth-light:  #C4622D;   /* Naranja tierra más vivo */
  --color-ink:          #1A1209;   /* Negro cálido para texto */
  --color-ink-muted:    #5C4A32;   /* Texto secundario cálido */
  --color-ink-faint:    #9E8A6E;   /* Texto terciario */
  --color-white:        #FDFAF5;   /* Blanco cálido (no frío) */
  --color-border:       #D4C9B0;   /* Bordes sutiles */
  --color-border-dark:  #A8956E;   /* Bordes más definidos */

  /* Semánticos */
  --color-success:  #2A6B1A;
  --color-error:    #8B1A1A;
  --color-warning:  #7A5A10;

  /* Tipografía */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', 'Consolas', monospace;

  /* Escala tipográfica (Major Third — ratio 1.25) */
  --text-xs:   0.64rem;
  --text-sm:   0.8rem;
  --text-base: 1rem;
  --text-md:   1.25rem;
  --text-lg:   1.563rem;
  --text-xl:   1.953rem;
  --text-2xl:  2.441rem;
  --text-3xl:  3.052rem;
  --text-4xl:  3.815rem;
  --text-hero: clamp(3.5rem, 8vw, 7rem);  /* Fluido para el hero */

  /* Espaciado */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Bordes redondeados */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 9999px;

  /* Sombras (cálidas, no frías) */
  --shadow-sm:  0 1px 3px rgba(26, 18, 9, 0.08);
  --shadow-md:  0 4px 16px rgba(26, 18, 9, 0.10);
  --shadow-lg:  0 8px 32px rgba(26, 18, 9, 0.12);
  --shadow-xl:  0 20px 60px rgba(26, 18, 9, 0.15);
  --shadow-forest: 0 8px 32px rgba(45, 80, 22, 0.20);

  /* Transiciones */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast:   150ms;
  --duration-normal: 300ms;
  --duration-slow:   600ms;

  /* Z-index layers */
  --z-below:   -1;
  --z-base:     0;
  --z-float:   10;
  --z-nav:     50;
  --z-modal:  100;
}


/* ────────────────────────────────────────────────────────────────
   2. FUENTES — Google Fonts import
   Cormorant Garamond: serif clásico con personalidad editorial
   DM Sans: sans-serif moderno y muy legible en pantalla
   ──────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');


/* ────────────────────────────────────────────────────────────────
   3. RESET & BASE
   ──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Mejora rendering de texto en macOS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-ink);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Scroll suave y offset para la navbar sticky */
/* Cuando un enlace de ancla (#quienes-somos) es clickeado,
   el scroll se detiene 80px antes del elemento para que
   la barra de navegación sticky no lo tape. */
[id] {
  scroll-margin-top: 80px;
}

/* Foco visible accesible — No eliminar nunca el outline,
   solo personalizarlo para que sea bello y útil (WCAG 2.1) */
:focus-visible {
  outline: 2.5px solid var(--color-forest);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) {
  outline: none;
}

/* Selección de texto con colores de marca */
::selection {
  background-color: var(--color-forest-light);
  color: var(--color-forest);
}

/* Scrollbar personalizada (Chrome/Edge/Safari) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-cream-dark); }
::-webkit-scrollbar-thumb {
  background: var(--color-border-dark);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-forest-mid); }

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}


/* ────────────────────────────────────────────────────────────────
   4. TIPOGRAFÍA EDITORIAL
   ──────────────────────────────────────────────────────────────── */

/* Clase base para todos los títulos con Cormorant */
.font-display {
  font-family: var(--font-display);
}

/* Título hero — tamaño fluido que escala con el viewport */
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

/* Subtítulo editorial con cursiva */
.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  color: var(--color-forest-light);
  line-height: 1.4;
}

/* Títulos de sección */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

/* Etiqueta de sección — texto pequeño en mayúsculas */
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-earth);
}

/* Cuerpo de texto grande para párrafos de intro */
.text-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.75;
  color: var(--color-ink-muted);
  font-weight: 300;
}

/* Cita / pull quote */
.blockquote-editorial {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.35;
  color: var(--color-forest);
  border-left: 3px solid var(--color-earth);
  padding-left: var(--space-8);
  margin: var(--space-8) 0;
}


/* ────────────────────────────────────────────────────────────────
   5. COMPONENTES COMPARTIDOS
   ──────────────────────────────────────────────────────────────── */

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background-color: rgba(245, 240, 232, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--duration-normal) var(--ease-in-out),
              box-shadow var(--duration-normal) var(--ease-in-out);
}

.navbar.scrolled {
  background-color: rgba(245, 240, 232, 0.97);
  box-shadow: var(--shadow-md);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-muted);
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--duration-fast) var(--ease-in-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-forest);
  transition: width var(--duration-normal) var(--ease-out-expo);
  border-radius: 1px;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--color-forest);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

/* ── BOTONES ── */
/* Botón primario — verde musgo sólido */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.85rem 2rem;
  background-color: var(--color-forest);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-pill);
  transition: all var(--duration-normal) var(--ease-out-expo);
  box-shadow: 0 2px 8px rgba(45, 80, 22, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-forest-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-forest);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Botón secundario — outline */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.82rem 1.9rem;
  background-color: transparent;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1.5px solid rgba(253, 250, 245, 0.45);
  border-radius: var(--radius-pill);
  transition: all var(--duration-normal) var(--ease-out-expo);
  letter-spacing: 0.02em;
}

.btn-secondary:hover {
  background-color: rgba(253, 250, 245, 0.12);
  border-color: rgba(253, 250, 245, 0.75);
  transform: translateY(-2px);
}

/* Botón ghost sobre fondo claro */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.82rem 1.9rem;
  background-color: transparent;
  color: var(--color-forest);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1.5px solid var(--color-forest);
  border-radius: var(--radius-pill);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.btn-ghost:hover {
  background-color: var(--color-forest);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-forest);
}

/* ── CARDS ── */
.card-base {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) var(--ease-in-out);
}

.card-base:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-dark);
}

/* ── LÍNEA DECORATIVA ── */
/* Separador con texto centrado, estilo editorial */
.divider-label {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.divider-label::before,
.divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-dark), transparent);
}


/* ────────────────────────────────────────────────────────────────
   6. ANIMACIONES Y KEYFRAMES
   ──────────────────────────────────────────────────────────────── */

/* Animación de entrada fadeUp — para elementos al cargar la página */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación fadeIn simple */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Animación de la línea decorativa del hero */
@keyframes lineGrow {
  from { width: 0; opacity: 0; }
  to   { width: 60px; opacity: 1; }
}

/* Gradiente animado del fondo hero */
@keyframes gradientDrift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Pulso suave para el dot de "activo" en la navbar */
@keyframes gentlePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

/* Flotación suave para elementos decorativos */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* Clases de animación con delays para stagger effect */
.animate-fade-up {
  animation: fadeUp 0.75s var(--ease-out-expo) both;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.35s; }
.animate-delay-4 { animation-delay: 0.5s; }
.animate-delay-5 { animation-delay: 0.65s; }

/* Respetar prefers-reduced-motion (accesibilidad WCAG 2.1 §2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ────────────────────────────────────────────────────────────────
   7. SECCIONES ESPECÍFICAS DE INDEX.HTML
   ──────────────────────────────────────────────────────────────── */

/* ── HERO ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    #1A2E0A 0%,
    #2D5016 30%,
    #1E3810 55%,
    #3D2810 80%,
    #2A1A08 100%
  );
  background-size: 300% 300%;
  animation: gradientDrift 20s ease infinite;
}

/* Textura de grano sobre el hero (ruido visual) */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Patrón SVG de ruido inline — sin request externo */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* Orbe decorativo (círculo difuminado) */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Tag / badge de credibilidad sobre el hero */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(200, 221, 160, 0.12);
  border: 1px solid rgba(200, 221, 160, 0.30);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-forest-light);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-forest-light);
  animation: gentlePulse 2.5s ease-in-out infinite;
}

/* Línea decorativa bajo el título hero */
.hero-title-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-earth-light), transparent);
  margin: var(--space-6) 0;
  animation: lineGrow 1s var(--ease-out-expo) 0.8s both;
}

/* Scroll indicator en el hero */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(200, 221, 160, 0.6);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  animation: fadeIn 1s var(--ease-out-expo) 1.5s both;
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(200, 221, 160, 0.6), transparent);
  animation: float 2.5s ease-in-out infinite;
}

/* Estadística en el hero */
.hero-stat {
  border-top: 1px solid rgba(200, 221, 160, 0.2);
  padding-top: var(--space-4);
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(200, 221, 160, 0.75);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-top: 4px;
}


/* ── SECCIÓN "QUIÉNES SOMOS" ── */
.section-who {
  background-color: var(--color-cream);
  position: relative;
}

/* Línea vertical decorativa a la izquierda de la historia */
.timeline-line {
  position: relative;
  padding-left: var(--space-8);
}

.timeline-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--color-earth), transparent);
}

/* Punto del timeline */
.timeline-dot {
  position: absolute;
  left: -5px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-earth);
  box-shadow: 0 0 0 3px var(--color-cream);
}

/* Card de miembro del equipo */
.team-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-forest), var(--color-earth));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-border-dark);
}

.team-card:hover::before {
  transform: scaleX(1);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 3px solid var(--color-cream-dark);
  transition: border-color var(--duration-normal) var(--ease-in-out);
}

.team-card:hover .team-avatar {
  border-color: var(--color-forest-light);
}


/* ── CARD DE VALOR / PILAR ── */
.value-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: all var(--duration-normal) var(--ease-out-expo);
  overflow: hidden;
}

.value-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-8);
  right: var(--space-8);
  height: 2px;
  background: linear-gradient(90deg, var(--color-forest), var(--color-earth-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.value-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-forest-light);
}

.value-card:hover::after {
  transform: scaleX(1);
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--color-forest-light), rgba(200, 221, 160, 0.3));
}


/* ── FRANJA DE IMPACTO (banda oscura) ── */
.impact-strip {
  background: linear-gradient(135deg, #1A2E0A 0%, #2D5016 50%, #1E3810 100%);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.impact-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.3;
}

.impact-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}


/* ── FOOTER ── */
.footer {
  background-color: #110D05;
  color: rgba(245, 240, 232, 0.65);
  border-top: 1px solid rgba(200, 221, 160, 0.1);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(245, 240, 232, 0.55);
  transition: color var(--duration-fast);
  letter-spacing: 0.01em;
}

.footer-link:hover {
  color: var(--color-forest-light);
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(200, 221, 160, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 240, 232, 0.55);
  transition: all var(--duration-fast) var(--ease-in-out);
}

.footer-social-btn:hover {
  background-color: rgba(200, 221, 160, 0.1);
  border-color: rgba(200, 221, 160, 0.35);
  color: var(--color-forest-light);
  transform: translateY(-2px);
}

/* Certificado de transparencia en footer */
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 10px;
  border: 1px solid rgba(200, 221, 160, 0.2);
  border-radius: var(--radius-pill);
  font-size: 11px;
  color: rgba(200, 221, 160, 0.6);
  letter-spacing: 0.08em;
}


/* ────────────────────────────────────────────────────────────────
   8. UTILIDADES
   ──────────────────────────────────────────────────────────────── */

/* Visualmente oculto pero accesible para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Gradiente de texto */
.text-gradient-forest {
  background: linear-gradient(135deg, var(--color-forest-light) 0%, #E8D5B0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--color-forest-light); /* Fallback */
}

/* Contenedor máximo */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-8); }
}


/* ────────────────────────────────────────────────────────────────
   9. PRINT STYLES
   Al imprimir, eliminar elementos de UI innecesarios
   ──────────────────────────────────────────────────────────────── */
@media print {
  .navbar, .scroll-indicator, footer { display: none !important; }
  body { background: white; color: black; }
  .hero-section { min-height: auto; padding: 2rem 0; }
  .hero-title { font-size: 2rem; color: black; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; color: gray; }
}