/* ==========================================================================
   MODO OSCURO (Variables Sobreescritas)
   ========================================================================== */
[data-theme="dark"] {
  /* Fondos generales oscuros pero con tono selva (verde muy profundo) */
  --sand-50: #0a0f09; 
  --sand-100: #121a11; 
  
  /* Las tarjetas blancas ahora serán de un verde muy oscuro */
  --white: #162013; 
  
  /* Textos invertidos para que se lean bien */
  --text-dark: #f9faf7; 
  --text-body: #a5c382; 
  --text-muted: #5c7e3d;
  
  /* Fondos de etiquetas y detalles sutiles */
  --leaf-100: #1f2e1b; 
  --gold-100: #2a2005; 
  
  /* Sombras más intensas para modo oscuro */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.8);
}

/* Transición suave al cambiar de tema en todo el sitio */
body, .mision-glass-card, .bento-impact-card, .contacto-split-card {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* Actualizamos el botón para hacerle espacio a la línea */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  
  /* NUEVO: Posición relativa y un margen mayor para la línea */
  position: relative;
  margin-left: 22px; 
}

/* NUEVO: Dibujamos la línea divisora a la izquierda del botón */
.theme-toggle-btn::before {
  content: '';
  position: absolute;
  left: -14px; /* Ubica la línea justo en medio del espacio */
  top: 50%;
  transform: translateY(-50%); /* Lo centra verticalmente */
  width: 1px;
  height: 34px; /* Misma altura que tus botones redondos */
  background-color: rgba(255, 255, 255, 0.2); /* Mismo color sutil que la primera divisora */
}

/* Efecto hover (se mantiene igual) */
.theme-toggle-btn:hover {
  background: var(--gold-500);
  color: var(--forest-900);
  transform: translateY(-2px);
}


/* ==========================================================================
   9. PRELOADER (PANTALLA DE CARGA CINEMATOGRÁFICA)
   ========================================================================== */
.preloader-wrapper {
  position: fixed;
  inset: 0;
  background: var(--forest-900); 
  z-index: 999999 !important; /* Valor máximo para cubrir el menú flotante */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.8, 0, 0.2, 1), visibility 0.8s, transform 0.8s;
}

/* Efecto de desvanecimiento con un ligero zoom hacia atrás */
.preloader-wrapper.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05); 
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.preloader-gif {
  width: 120px; /* Tamaño más refinado */
  margin-bottom: 35px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

/* Línea de carga ultra delgada */
.loading-bar-container {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--gold-500);
  border-radius: 2px;
  animation: loadSleek 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes loadSleek {
  0% { width: 0%; left: 0; }
  50% { width: 100%; left: 0; }
  100% { width: 100%; left: 100%; }
}

/* Texto sofisticado y espaciado */
.loading-text {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  animation: pulseText 1.5s infinite alternate;
}

@keyframes pulseText {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}
/* ==========================================================================
   10. MODAL DE COOKIES (DISEÑO SELVA & MASCOTA)
   ========================================================================== */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 9, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1999;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cookie-toast-centered {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 50px); /* Empieza un poco abajo */
  width: 90%;
  max-width: 420px;
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote suave */
}

/* Clases para mostrar el modal */
.cookie-overlay.active {
  display: block;
  opacity: 1;
}

.cookie-toast-centered.active {
  display: block;
  opacity: 1;
  transform: translate(-50%, 0); /* Sube a su posición original */
}

/* El tapir asomándose por arriba */
.cookie-mascot-top {
  position: absolute;
  top: -85px; /* Lo subimos para que quede sentado sobre el borde */
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  z-index: 2;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

/* Tarjeta principal con fondo de bosque */
.cookie-card-content {
  position: relative;
  background: linear-gradient(rgba(22, 32, 19, 0.88), rgba(15, 23, 13, 0.95)), 
              url('../img/fondo2.png') center/cover; /* Usamos una textura de bosque tuya */
  padding: 45px 35px 35px;
  border-radius: 20px;
  border: 1px solid rgba(140, 171, 103, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
  z-index: 1;
}

.cookie-logo {
  max-width: 180px;
  margin: 0 auto 20px;
  opacity: 0.9;
}

.cookie-message {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.cookie-message strong {
  color: var(--white);
  font-weight: 700;
}

.cookie-actions-vertical {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-cookie-accept {
  background: #5b6255; /* Gris oscuro neutro */
  color: var(--white);
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-cookie-accept:hover {
  background: #6e7568;
  transform: translateY(-2px);
}

.cookie-link-subtle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.3s ease;
}

.cookie-link-subtle:hover {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* Modificamos los números de las secciones de abajo para mantener orden */
/* 11. ANIMACIONES AL HACER SCROLL... */

/* ==========================================================================
   VARIABLES DE DISEÑO (ECO-LUXURY THEME)
   ========================================================================== */
:root {
  --forest-900: #162013;
  --forest-800: #1f2e1b;
  --forest-700: #2b3f25;
  --leaf-600: #5c7e3d;
  --leaf-500: #8cab67;
  --leaf-400: #a5c382;
  --leaf-100: #eef4e8;
  --gold-500: #f7bd2e;
  --gold-600: #e0a314;
  --gold-100: #fef6df;
  --sand-50: #f9faf7;
  --sand-100: #f1f4ed;
  --text-dark: #1e261b;
  --text-body: #4a5546;
  --text-muted: #768272;
  --white: #ffffff;

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --shadow-sm: 0 4px 12px rgba(22, 32, 19, 0.05);
  --shadow-md: 0 14px 34px rgba(22, 32, 19, 0.08);
  --shadow-lg: 0 24px 60px rgba(22, 32, 19, 0.14);
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 36px;
}

/* ==========================================================================
   RESET Y BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--sand-50);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.15;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Etiquetas y Utilidades */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--leaf-100);
  color: var(--leaf-600);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.highlight-gold {
  color: var(--gold-500);
}

.accent-bar {
  width: 72px;
  height: 6px;
  background: var(--gold-500);
  border-radius: 10px;
  margin: 20px 0 28px;
}

/* Botones */
.btn-primary-gold {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold-500);
  color: var(--forest-900);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 18px 34px;
  border-radius: 100px;
  box-shadow: 0 10px 25px rgba(247, 189, 46, 0.35);
  border: none;
  cursor: pointer;
}

.btn-primary-gold:hover {
  background: var(--gold-600);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(247, 189, 46, 0.5);
}

.btn-primary-gold.btn-sm {
  padding: 14px 26px;
  font-size: 12px;
}

/* ==========================================================================
   1. NAVBAR FLOTANTE (GLASSMORPHISM)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 22px 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  border-radius: 100px;
  transition: all 0.4s ease;
}

.site-header.scrolled {
  padding: 12px 24px;
}

.site-header.scrolled .nav-wrapper {
  background: rgba(22, 32, 19, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-logo img {
  height: 38px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-500);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-socials {
  display: flex;
  gap: 10px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.nav-socials a:hover {
  background: var(--leaf-500);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 4px;
  transition: 0.3s;
}

/* ==========================================================================
   2. HERO CINEMATOGRÁFICO
   ========================================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--forest-900);
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  overflow: hidden;
}

.hero-video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.65;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;

  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero-center-box {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-pill i {
  color: var(--leaf-400);
}

.hero-watermark-logo {
  width: 100%;
  max-width: 440px;
  margin-bottom: 40px;
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.45));
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-play-pulse {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--forest-900);
  border: none;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(247, 189, 46, 0.45);
  transition: transform 0.3s ease;
}

.btn-play-pulse i {
  margin-left: 4px;
}

.btn-play-pulse:hover {
  transform: scale(1.08);
}

.pulse-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  animation: pulseRing 2.2s infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

.play-label {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Indicador Mouse Scroll */
.hero-scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.mouse-icon {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  position: relative;
}

.mouse-icon .wheel {
  width: 4px;
  height: 8px;
  background: var(--gold-500);
  border-radius: 4px;
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.8s infinite;
}

@keyframes scrollWheel {
  0% { top: 7px; opacity: 1; }
  100% { top: 24px; opacity: 0; }
}

/* ==========================================================================
   3. SECCIÓN 1: EL SANTUARIO
   ========================================================================== */
.section-santuario {
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
}

.santuario-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.display-title {
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.text-gradient-green {
  background: linear-gradient(135deg, var(--leaf-600) 0%, var(--leaf-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead-paragraph {
  font-size: 18px;
  color: var(--text-body);
  margin-bottom: 30px;
}

/* Píldoras de los 6 pilares */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.pillar-chip {
  background: var(--white);
  border: 1px solid rgba(140, 171, 103, 0.28);
  padding: 13px 16px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.pillar-chip i {
  color: var(--leaf-600);
  font-size: 16px;
}

.pillar-chip:hover {
  background: var(--leaf-500);
  color: var(--white);
  transform: translateY(-3px);
}

.pillar-chip:hover i {
  color: var(--white);
}

/* Lado derecho: Tapir con forma orgánica moderna */
.santuario-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.organic-backdrop {
  position: absolute;
  width: 92%;
  height: 88%;
  background: linear-gradient(145deg, #f9e68f 0%, #f4d046 100%);
  border-radius: 42% 58% 35% 65% / 48% 36% 64% 52%;
  z-index: 1;
  box-shadow: 0 25px 60px rgba(247, 189, 46, 0.22);
}

.tapir-main-cutout {
  position: relative;
  z-index: 2;
  max-height: 580px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(22, 32, 19, 0.25));
}

/* ==========================================================================
   4. SECCIÓN 2: ¿POR QUÉ SE CREA? (BENTO EDITORIAL)
   ========================================================================== */
.section-porque {
  padding: 70px 0 110px;
}

.bento-porque-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
}

.bento-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Tarjeta Verde Editorial */
.bento-title-card {
  background: linear-gradient(145deg, var(--leaf-600) 0%, var(--forest-700) 100%);
  color: var(--white);
  padding: 52px 44px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.quote-watermark {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 90px;
  color: rgba(255, 255, 255, 0.07);
}

.bento-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-500);
  margin-bottom: 14px;
}

.bento-title-card h2 {
  color: var(--white);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 900;
  line-height: 1.15;
}

.bento-divider {
  width: 60px;
  height: 4px;
  background: var(--gold-500);
  margin: 24px 0;
  border-radius: 4px;
}

.bento-title-card p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
}

/* Tarjeta Foto Cuidadores */
.bento-photo-card {
  position: relative;
  min-height: 380px;
  background: var(--forest-800);
  box-shadow: var(--shadow-md);
}

.bento-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.bento-photo-card:hover img {
  transform: scale(1.04);
}

.photo-floating-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(22, 32, 19, 0.82);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.photo-floating-caption i {
  color: var(--gold-500);
  font-size: 18px;
}

/* Tarjeta Inferior Ancha */
.bento-impact-card {
  grid-column: 1 / -1;
  background: var(--white);
  padding: 42px 48px;
  border: 1px solid rgba(140, 171, 103, 0.22);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.impact-icon {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: var(--leaf-100);
  color: var(--leaf-600);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.impact-text h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.impact-text p {
  font-size: 16.5px;
  color: var(--text-body);
}

/* ==========================================================================
   5. SECCIÓN 3: MISIÓN
   ========================================================================== */
.section-mision {
  position: relative;
  padding: 90px 0 110px;
  background: var(--sand-100);
  overflow: hidden;
}

.floating-monstera {
  position: absolute;
  top: -30px;
  right: -60px;
  width: 380px;
  opacity: 0.85;
  pointer-events: none;
}

.mision-header {
  max-width: 680px;
}

.section-heading {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
}

.mision-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.mision-glass-card {
  background: var(--white);
  padding: 42px 38px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mision-glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.mision-glass-card.success-border {
  border-bottom: 5px solid var(--leaf-500);
}

.card-badge-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 22px;
}

.card-badge-icon.danger {
  background: #fef2f2;
  color: #dc2626;
}

.card-badge-icon.success {
  background: var(--leaf-100);
  color: var(--leaf-600);
}

.mision-glass-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
}

.mision-glass-card p {
  font-size: 16px;
  line-height: 1.75;
}

.threat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.threat-tags span {
  background: var(--sand-100);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
}

/* ==========================================================================
   6. SECCIÓN 4: LA ESPECIE (EL JARDINERO DE LA SELVA)
   ========================================================================== */
.section-especie {
  padding: 100px 0 60px;
}

.especie-showcase-box {
  position: relative;
  background: linear-gradient(135deg, var(--forest-900) 0%, var(--forest-700) 100%);
  border-radius: var(--radius-xl);
  padding: 70px 60px 70px 0; /* 0 a la izquierda para pegar el tapir al borde */
  color: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.especie-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Columna de la imagen anclada al extremo izquierdo */
.especie-image-col {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
}

/* Envoltorio del marco y el tapir */
.tapir-frame-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  margin-left: 0;
}

/* Marco de fondo de cristal pegado a la orilla izquierda */
.tapir-card-backdrop {
  position: absolute;
  top: 20px;
  left: 0;
  right: 20px;
  bottom: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: none; /* Se funde limpio con el filo exterior */
  border-radius: 0 28px 28px 0;
  z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Imagen del tapir limpia, sólida y sin difuminado */
.tapir-especie-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 470px;
  height: auto;
  object-fit: contain;
  display: block;
  margin-left: 0;
  transform: translateY(-5px);
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.45));

  /* Se eliminan las máscaras para que no tenga ningún desvanecimiento */
  -webkit-mask-image: none;
  mask-image: none;
}

/* Resplandor ambiental cálido detrás del tapir */
.especie-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(247, 189, 46, 0.22) 0%, rgba(140, 171, 103, 0.12) 50%, transparent 70%);
  top: 40%;
  left: 40%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

/* Etiqueta flotante inferior anclada al césped */
.tapir-nature-tag {
  position: absolute;
  bottom: 8px;
  left: 45%;
  transform: translateX(-50%);
  background: rgba(22, 32, 19, 0.92);
  border: 1px solid rgba(247, 189, 46, 0.4);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 8px 18px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  z-index: 4;
}

.tapir-nature-tag i {
  color: var(--gold-500);
}

/* Textos de la especie */
.especie-info-col {
  padding-right: 20px;
}

.especie-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--leaf-400);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.especie-heading {
  color: var(--white);
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 900;
}

.especie-description {
  color: rgba(255, 255, 255, 0.86);
  font-size: 16.5px;
  line-height: 1.75;
  margin-bottom: 28px;
}

/* Alerta 2030 */
.urgent-alert-box {
  background: rgba(247, 189, 46, 0.12);
  border-left: 4px solid var(--gold-500);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}

.alert-icon {
  font-size: 28px;
  color: var(--gold-500);
}

.alert-content strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--gold-500);
  margin-bottom: 4px;
}

.alert-content p {
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  margin: 0;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 26px;
  border-radius: 100px;
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--forest-900);
}

.corner-leaf-decor {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 220px;
  opacity: 0.85;
  pointer-events: none;
}

/* ==========================================================================
   7. SECCIÓN 5: CONTACTO (SPLIT CARD)
   ========================================================================== */
.section-contacto {
  padding: 70px 0 120px;
}

.contacto-split-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(140, 171, 103, 0.2);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
}

.contacto-form-side {
  padding: 56px 50px;
}

.contacto-title {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 12px;
}

.contacto-subtitle {
  font-size: 15.5px;
  color: var(--text-body);
  margin-bottom: 20px;
}

.email-direct-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--leaf-100);
  color: var(--leaf-600);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 12px;
  margin-bottom: 28px;
}

.email-direct-pill:hover {
  background: var(--leaf-500);
  color: var(--white);
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-group-modern {
  position: relative;
}

.input-group-modern i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--leaf-500);
  font-size: 16px;
}

.input-group-modern.textarea-group i {
  top: 20px;
  transform: none;
}

.input-group-modern input,
.input-group-modern textarea {
  width: 100%;
  background: var(--sand-50);
  border: 1.5px solid #e2e8dd;
  border-radius: 14px;
  padding: 15px 16px 15px 46px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-dark);
  transition: all 0.25s ease;
}

.input-group-modern input:focus,
.input-group-modern textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--leaf-500);
  box-shadow: 0 0 0 4px rgba(140, 171, 103, 0.15);
}

.btn-submit-form {
  background: linear-gradient(135deg, var(--leaf-500) 0%, var(--leaf-600) 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 18px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(92, 126, 61, 0.3);
  transition: all 0.3s ease;
}

.btn-submit-form:hover {
  background: var(--gold-500);
  color: var(--forest-900);
  transform: translateY(-2px);
}

/* Mapa Derecho */
.contacto-map-side {
  position: relative;
  min-height: 480px;
}

.contacto-map-side iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-floating-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 5;
  border-left: 4px solid var(--gold-500);
  pointer-events: none;
}

.pin-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--leaf-100);
  color: var(--leaf-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.map-floating-card strong {
  display: block;
  font-size: 13px;
  color: var(--text-dark);
}

.map-floating-card span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   8. FOOTER MODERNO
   ========================================================================== */
.site-footer {
  background: var(--forest-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 30px;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  height: 82px;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  max-width: 320px;
  margin-bottom: 22px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.footer-social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social-links a:hover {
  background: var(--leaf-500);
  transform: translateY(-3px);
}

.footer-center {
  text-align: center;
}

.semarnat-img {
  max-width: 220px;
  margin: 0 auto 16px;
}

.uma-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: 12px;
}

.uma-label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--gold-500);
  font-weight: 700;
}

.uma-code {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 12px;
}

.footer-right {
  text-align: right;
}

.footer-right h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 10px;
}

.footer-right p {
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-bottom-bar {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-legal-links {
  display: flex;
  gap: 12px;
}

.footer-legal-links a:hover {
  color: var(--white);
}

/* ==========================================================================
   9. COOKIE TOAST & MODAL VIDEO
   ========================================================================== */
.cookie-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 340px;
  background: rgba(22, 32, 19, 0.95);
  backdrop-filter: blur(12px);
  color: var(--white);
  padding: 22px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 999;
  display: none;
}

.cookie-toast.active {
  display: block;
}

.cookie-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cookie-gif {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.cookie-header strong {
  display: block;
  font-size: 15px;
}

.cookie-header span {
  font-size: 12px;
  color: var(--leaf-400);
}

.cookie-toast p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-cookie-accept {
  background: var(--gold-500);
  color: var(--forest-900);
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.cookie-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

/* Modal de Video */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal.open {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 9, 0.88);
  backdrop-filter: blur(8px);
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 960px;
  z-index: 2;
}

.video-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 30px;
  cursor: pointer;
}

.video-responsive-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-responsive-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   10. ANIMACIONES AL HACER SCROLL (REVEAL)
   ========================================================================== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up { transform: translateY(36px); }
.reveal-left { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }

.reveal-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ==========================================================================
   11. RESPONSIVE DESIGN (TABLETS Y MÓVILES)
   ========================================================================== */
@media (max-width: 991px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 24px;
    right: 24px;
    background: rgba(22, 32, 19, 0.96);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 24px 24px 28px !important;
    flex-direction: column;
    gap: 16px !important;
    
    /* El truco de la animación suave */
    display: flex; 
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px); /* Se esconde ligeramente hacia arriba */
    pointer-events: none; /* Evita clics accidentales cuando está invisible */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .nav-socials {
    border-left: none;
    padding-left: 0;
  }

  .santuario-grid,
  .bento-porque-grid,
  .mision-cards-grid,
  .especie-grid,
  .contacto-split-card,
  .footer-main-grid {
    grid-template-columns: 1fr;
  }

  .especie-showcase-box {
    padding: 44px 28px;
  }

  .tapir-card-backdrop {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    right: 0;
  }

  .tapir-nature-tag {
    left: 50% !important;
  }

  .bento-impact-card {
    flex-direction: column;
    padding: 32px;
  }

  .contacto-form-side {
    padding: 38px 26px;
  }

  .footer-right,
  .footer-main-grid {
    text-align: center;
  }

  .footer-desc {
    margin: 0 auto 20px;
  }

  .footer-social-links {
    justify-content: center;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .pillars-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}










/* ==========================================================================
   10. MODAL DE COOKIES (ESQUINA INFERIOR IZQUIERDA)
   ========================================================================== */
.cookie-toast-corner {
  position: fixed;
  bottom: 24px;
  left: -400px; /* Empieza oculto fuera de la pantalla */
  width: 90%;
  max-width: 320px;
  z-index: 2000;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.15); /* Entrada con ligero rebote */
}

/* Al activarse, se desliza hacia su posición */
.cookie-toast-corner.active {
  left: 24px;
  opacity: 1;
}

/* El tapir asomándose sobre la tarjeta */
.cookie-mascot-corner {
  position: absolute;
  top: -75px; 
  left: 30px; 
  width: 105px;
  z-index: 2;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

/* Tarjeta principal con fondo de bosque */
.cookie-card-content {
  position: relative;
  background: linear-gradient(rgba(22, 32, 19, 0.94), rgba(15, 23, 13, 0.98)), 
              url('../img/fondo2.png') center/cover;
  padding: 24px 20px 20px;
  border-radius: 16px;
  border: 1px solid rgba(140, 171, 103, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.cookie-message {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.cookie-message strong {
  color: var(--white);
  font-weight: 700;
}

/* Botones en horizontal */
.cookie-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.btn-cookie-accept {
  background: #5b6255;
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-cookie-accept:hover {
  background: var(--leaf-500); /* Cambia a verde vibrante al pasar el mouse */
  transform: translateY(-2px);
}

.cookie-link-subtle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.3s ease;
}

.cookie-link-subtle:hover {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* Ajuste móvil */
@media (max-width: 576px) {
  .cookie-toast-corner {
    max-width: calc(100% - 48px);
  }
}

/* ==========================================================================
   BOTÓN SCROLL TO TOP
   ========================================================================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--gold-500, #F59E0B); /* Tu color dorado */
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 999;
  
  /* Animación de entrada */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease-in-out;
}

/* Clase que se activa con Javascript */
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Efecto Hover */
.scroll-to-top:hover {
  background-color: var(--gold-600, #D97706);
  transform: translateY(-5px); /* Salto hacia arriba al pasar el mouse */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Ajuste para móviles: más pequeño y menos pegado a la orilla */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}








































/* ==========================================================================
   12. PÁGINA: NOSOTROS (DISEÑO BENTO & ECO-LUXURY)
   ========================================================================== */

/* Tipografía de Títulos Intermedios */
.display-title-sm {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--forest-900);
}

.text-content p {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* --- Hero Nosotros --- */
.hero-nosotros {
  position: relative;
  height: 60vh;
  min-height: 450px;
  
  /* 1. Quitamos 'cover' y le damos un ligero zoom para tener margen horizontal */
  background-size: 100%; 
  
  /* 2. Ahora sí, al decirle 'right' (o 100%) se moverá a la derecha, manteniendo tu 68% vertical */
  background-position: right 68%; 
  
  background-attachment: fixed;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-nosotros-overlay {
  position: absolute;
  inset: 0;
  /* Reducimos la opacidad: de 0.9 a 0.65 en la izquierda, y de 0.4 a 0.1 en la derecha */
  background: linear-gradient(to right, rgba(22, 32, 19, 0.65) 0%, rgba(22, 32, 19, 0.1) 100%);
  z-index: 1;
}

.hero-nosotros-container {
  position: relative;
  z-index: 2;
}

.hero-nosotros-content {
  /* Reducimos de 650px a 480px para mantener el texto en la columna izquierda */
  max-width: 580px; 
}

.hero-nosotros-content .display-title {
  color: var(--white);
  font-size: clamp(42px, 5vw, 64px);
  margin-bottom: 20px;
}

.hero-nosotros-lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.7;
}

/* --- Sección Misión y Visión --- */
.section-mision-vision {
  position: relative;
  /* Aumentamos el padding superior para separar la sección del Hero */
  padding: 80px 0 100px;
  /* Mantenemos el degradado */
  background: linear-gradient(to bottom, transparent 0%, var(--sand-50) 120px, var(--sand-50) 100%);
}

.mv-bento-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
  /* Eliminamos el margin-top negativo que subía la sección */
  margin-top: 0; 
  position: relative;
  z-index: 3;
}

.mv-bento-card {
  /* Reducimos la altura mínima */
  min-height: auto; 
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  /* Quitamos el padding interno para que la imagen ocupe todo */
  padding: 0; 
  /* Si la tarjeta tenía fondo oscuro, lo quitamos */
  background: transparent; 
}

.mv-bento-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Opcional: Si quieres redondear los bordes de la imagen */
  border-radius: var(--radius-lg); 
}

/* Reutiliza la clase .mision-glass-card del index */
.mb-4 {
  margin-bottom: 25px;
}
/* --- México Paraíso Natural --- */
.section-paraiso {
  position: relative;
  padding: 100px 0;
  background: var(--sand-100);
}

.paraiso-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Bento traslapado de aves */
.paraiso-images-col {
  position: relative;
  padding-bottom: 40px;
}

.main-birds-card {
  min-height: 420px;
}

.overlap-macaw-card {
  position: absolute;
  bottom: 0;
  left: -40px; /* Sale de la caja hacia la izquierda */
  width: 70%;
  padding: 30px;
  text-align: center;
  z-index: 2;
}

.macaw-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* --- El Santuario en Yucatán --- */
.section-el-santuario {
  padding: 100px 0;
  background: var(--sand-50);
}

.santuario-full-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  /* Añadimos un fondo blanco por si la imagen tiene transparencias */
  background: var(--white); 
}

.santuario-full-img img {
  width: 100%;
  /* Cambiamos los 480px a auto para que no se recorte */
  height: auto; 
  /* Evitamos espacios fantasma en la parte inferior */
  display: block; 
  /* Opcional: restringe la altura máxima solo en pantallas ultra grandes */
  max-height: 80vh; 
  object-fit: cover;
}

.mt-5 {
  margin-top: 50px;
}

/* --- Localización y Mensaje --- */
.section-localizacion {
  padding: 100px 0;
  background: var(--sand-100);
}

.loc-grid, .msg-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.mb-6 {
  margin-bottom: 100px;
}

/* Invertir orden en PC para la fila 2 */
.msg-grid {
  grid-template-columns: 1.1fr 1fr;
}

.loc-card, .msg-card {
  min-height: 420px;
}

/* ==========================================================================
   RESPONSIVE NOSOTROS
   ========================================================================== */
@media (max-width: 991px) {
  .mv-bento-grid,
  .paraiso-grid,
  .loc-grid,
  .msg-grid {
    grid-template-columns: 1fr;
  }
  
  .mv-bento-card {
    min-height: 380px;
  }
  
  .overlap-macaw-card {
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    bottom: -30px;
  }
  
  .main-birds-card {
    margin-bottom: 40px;
  }

  .msg-grid {
    display: flex;
    flex-direction: column-reverse;
  }
  
  .santuario-full-img img {
    height: 300px;
  }

  .bento-impact-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .bento-impact-card > div {
    flex-direction: column;
  }
}










































/* ==========================================================================
   PÁGINA: LA UMA
   ========================================================================== */


/* --- Hero UMA --- */
.hero-uma {
  position: relative;
  /* Eliminamos el height fijo y usamos min-height para que crezca si lo necesita */
  min-height: 70vh; 
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  
  /* Aumentamos el padding superior para librar totalmente el menú de navegación */
  padding-top: 90px; 
  /* Añadimos padding inferior para que el texto no quede pegado al borde blanco */
  padding-bottom: 60px; 
}

.hero-uma-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(22, 32, 19, 0.85) 0%, rgba(22, 32, 19, 0.4) 100%);
  z-index: 1;
}

.hero-uma-container {
  position: relative;
  z-index: 2;
}

.hero-uma-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: var(--gold-500);
  color: var(--forest-900);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-uma-lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.7;
  margin-top: 15px;
}

/* --- Sección Especificaciones --- */
.section-uma-specs {
  padding: 80px 0;
  background: var(--sand-50);
}

.specs-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.specs-card-glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-xl);
  padding: 50px;
  box-shadow: var(--shadow-sm);
}

.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specs-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.specs-list li:last-child {
  border-bottom: none;
}

.spec-icon {
  width: 40px;
  height: 40px;
  background: var(--leaf-100);
  color: var(--leaf-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.spec-text {
  color: var(--text-body);
  font-size: 15px;
}

.spec-text strong {
  color: var(--forest-900);
}

/* --- Sección Expertos --- */
.section-expertos {
  padding: 80px 0;
  background: var(--sand-100);
}

.expertos-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: stretch; /* Asegura que ambas columnas tengan la misma altura base */
}

.credentials-card {
  background: var(--forest-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centra el contenido verticalmente */
}

.cred-icon {
  font-size: 40px;
  color: var(--gold-500);
  margin-bottom: 15px;
}

/* Forzamos el color blanco para corregir el texto invisible */
.cred-header h3 {
  color: var(--white); 
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.cred-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-400);
  margin-bottom: 30px;
}

.cred-body p {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}

.cred-body p strong {
  color: var(--white);
  font-weight: 600;
}

.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 16 / 9; /* Mantiene la proporción perfecta del video de YouTube */
  background: #000; /* Fondo negro mientras carga el iframe */
}

/* --- Sección Objetivos --- */
.section-objetivos {
  padding: 80px 0 120px;
  background: var(--sand-50);
}

.objetivos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.objetivo-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--leaf-500);
}

.objetivo-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.objetivo-card i {
  font-size: 32px;
  color: var(--gold-500);
  margin-bottom: 20px;
}

.objetivo-card h4 {
  color: var(--forest-900);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 15px;
}

.objetivo-card p {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE UMA
   ========================================================================== */
@media (max-width: 991px) {
  .specs-bento-grid,
  .expertos-grid {
    grid-template-columns: 1fr;
  }
  
  .objetivos-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .objetivos-grid {
    grid-template-columns: 1fr;
  }
  
  .specs-card-glass {
    padding: 30px;
  }
}




/* ==========================================================================
   SECCIÓN: ALIANZAS Y COMPROMISO (UMA)
   ========================================================================== */
@media (max-width: 991px) {
  .alianzas-grid {
    grid-template-columns: 1fr !important;
  }
  /* Opcional: invierte el orden para que el texto aparezca antes del carrusel en móviles */
  .alianzas-text {
    order: -1;
  }
}



/* --- Carrusel Interactivo Swiper --- */
.alianzas-carousel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mySwiper {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Personalización de los puntitos de Swiper para que encajen con tu diseño */
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.6) !important;
  opacity: 1 !important;
  width: 10px !important;
  height: 10px !important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #ffffff !important;
  transform: scale(1.2);
}








/* ==========================================================================
   PÁGINA: LA ESPECIE
   ========================================================================== */

/* --- Hero Especie --- */
.hero-especie {
  position: relative;
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 60px;
}

.hero-especie-overlay {
  position: absolute;
  inset: 0;
  /* Degradado que oscurece la parte izquierda para que el texto sea muy legible */
  background: linear-gradient(to right, rgba(22, 32, 19, 0.9) 0%, rgba(22, 32, 19, 0.4) 100%);
  z-index: 1;
}

.hero-especie-container {
  position: relative;
  z-index: 2;
}

.hero-especie-content {
  max-width: 700px;
}

.hero-text-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-left: 4px solid var(--gold-500);
  padding: 30px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.hero-text-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.hero-text-box p:last-child {
  margin-bottom: 0;
}

/* --- Datos Curiosos (Grid Bento) --- */
.curiosidades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.curiosidad-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  /* ELIMINAMOS overflow: hidden; para permitir que el número se salga de la caja */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 30px; /* Da espacio extra arriba para que el número no choque con otros elementos */
}

.curiosidad-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.curiosidad-numero {
  position: absolute;
  top: -40px;      /* Lo empuja hacia afuera por arriba */
  right: -20px;    /* Lo empuja hacia afuera por la derecha */
  font-size: 110px;
  font-weight: 900;
  color: var(--leaf-500); /* Color verde vivo para que contraste y resalte perfectamente */
  z-index: 10;     /* Lo trae al frente sobre cualquier otro elemento */
  line-height: 1;
  text-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15); /* Crea el efecto de estar flotando en el aire */
}

.curiosidad-card h4, .curiosidad-card p, .curiosidad-card ul {
  position: relative;
  z-index: 1;
}

.curiosidad-card p {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.6;
}

.curiosidad-img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  grid-row: span 2; /* Hace que la imagen ocupe dos filas de alto */
}

.curiosidades-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

.curiosidades-lista li {
  color: var(--text-body);
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.curiosidades-lista li i {
  color: var(--leaf-500);
  margin-top: 3px;
}

/* --- Contacto --- */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.contacto-form-wrapper {
  background: var(--sand-50);
  padding: 50px;
  border-radius: var(--radius-lg);
}

.custom-form .form-group {
  margin-bottom: 20px;
}

.custom-form input,
.custom-form textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  background: var(--white);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.custom-form input:focus,
.custom-form textarea:focus {
  outline: none;
  border-color: var(--leaf-500);
  box-shadow: 0 0 0 3px rgba(100, 137, 75, 0.1);
}

/* --- Responsive Especie --- */
@media (max-width: 991px) {
  .curiosidades-grid {
    grid-template-columns: 1fr 1fr;
  }
  .curiosidad-img-card {
    grid-row: auto;
    aspect-ratio: 16/9;
  }
  .contacto-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .curiosidades-grid {
    grid-template-columns: 1fr;
  }
  .contacto-form-wrapper {
    padding: 30px;
  }
}


/* --- Carrusel Especies en Peligro (Nosotros) --- */
.especiesSwiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.4) !important;
  opacity: 1 !important;
  transition: all 0.3s ease;
}

.especiesSwiper .swiper-pagination-bullet-active {
  background: var(--gold-500) !important;
  transform: scale(1.2);
}




/* ==========================================================================
   CORRECCIONES DEL HERO Y VIDEO DE YOUTUBE (Z-INDEX, ZOOM Y ALTURA)
   ========================================================================== */

/* 1. Forzar el menú al frente en todo momento (Global) */
.site-header {
  z-index: 99999 !important;
}

/* 2. Empujar toda la sección principal hacia atrás */
.hero-section, .hero-home, .hero {
  position: relative;
  z-index: 1 !important;
}

/* 3. Evitar que la capa oscura bloquee los clics al menú */
.hero-overlay, .hero-home::before, .hero-home::after, .hero-gradient-overlay {
  pointer-events: none !important;
}

/* 4. Ocultar subtítulos y forzar video como fondo cover en PC */
#hero-yt-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Centrado exacto y zoom de 1.25 para PC */
  transform: translate(-50%, -50%) scale(1.25); 
  width: 100vw;
  height: 56.25vw; /* Proporción 16:9 */
  min-height: 100vh;
  min-width: 177.77vh; 
  pointer-events: none !important; 
  z-index: 0 !important;
}

/* --- Ajustes específicos para celulares (Pantallas Verticales) --- */
@media (max-width: 768px) {
/* LA UMA: Desactivar efecto parallax para evitar el zoom gigante del fondo */
  .hero-uma {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    
    /* Centramos la imagen. Puedes cambiar "center center" por "left center" o "right center" según lo que quieras enfocar */
    background-position: center center !important; 
    
    min-height: auto !important;
    padding-top: 120px !important;
    padding-bottom: 50px !important;
  }
  /* LA ESPECIE: Ajuste de encuadre para evitar centrar el zoom en el fondo borroso */
  .hero-especie {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    
    /* EL TRUCO: Movemos el encuadre. 
       Si el tapir está a la derecha en la foto original, usa 80% o right.
       Si está a la izquierda, usa 20% o left. */
    background-position: 35% center !important; 
    
    min-height: auto !important;
    /* Reducimos un poco el relleno para que la caja no sea excesivamente alta */
    padding-top: 100px !important;
    padding-bottom: 40px !important;
  }
  /* 1. Reducir el tamaño del logo */
  .brand-logo img {
    height: 28px !important; /* Reduce la altura original de 38px a 28px */
    width: auto !important;
  }

  /* 2. Ajustar el contenedor del menú para que abrace el contenido */
  .main-nav {
    padding: 24px 24px 28px !important; /* Reduce el exceso de relleno, especialmente abajo */
    gap: 16px !important; /* Junta ligeramente los enlaces de navegación */
    height: auto !important; /* Fuerza a que el menú no tenga una altura fija */
  }

  /* 3. Eliminar márgenes fantasma debajo de las redes sociales */
  .nav-socials {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  
  /* Altura del contenedor recortada a la línea roja */
  .hero-section, .hero-home, .hero { 
    min-height: 85vh !important;
    height: 85vh !important;
    max-height: 85vh !important; /* Eliminamos el conflicto de medidas */
    overflow: hidden !important;
  }

  /* Zoom agresivo para sacar los subtítulos en vertical */
  #hero-yt-iframe {
    min-height: 100vh;
    transform: translate(-50%, -50%) scale(1.1) !important; 
  }
}





@media (max-width: 768px) {
  /* ... tus reglas anteriores ... */
  /* Reducir drásticamente el espacio sobre el texto "Santuario del Tapir" */
  .section-santuario {
    padding-top: 60px !important; /* Puedes bajarlo a 20px si lo quieres aún más pegado */
    padding-bottom: 40px !important;
  }

  /* Asegurar que la etiqueta verde no tenga márgenes invisibles arriba */
  .section-santuario .section-tag {
    margin-top: 0 !important;
  }
  /* 1. Reducir el espacio inferior de la sección anterior (donde termina la tarjeta blanca) */
  .section-porque {
    padding-bottom: 40px !important;
  }

  /* 2. Reducir el espacio superior de la sección Misión */
  .section-mision {
    padding-top: 50px !important; 
  }

  /* 1. Reducir el espacio inferior de la sección Misión */
  .section-mision {
    /* Si ya pusiste el padding-top en el paso anterior, solo añade esta línea: */
    padding-bottom: 50px !important; 
  }

  /* 2. Reducir el espacio superior de la sección La Especie (donde está el tapir) */
  .section-especie {
    padding-top: 40px !important; 
  }
  /* 1. Separar la imagen del tapir del bloque de texto inferior */
  .especie-image-col {
    margin-bottom: 40px !important; 
  }

  /* 2. Bajar ligeramente la etiqueta flotante para que no corte feo la imagen */
  .tapir-nature-tag {
    bottom: -15px !important; 
  }

  /* 3. Ajustar el tamaño del título para que sea más elegante y no invada la pantalla */
  .especie-heading {
    font-size: 32px !important; 
    line-height: 1.15 !important;
    margin-bottom: 20px !important;
  }

  /* 4. Darle un poco más de aire a la pequeña etiqueta verde "TAPIRUS BAIRDII" */
  .especie-badge {
    margin-bottom: 20px !important;
    display: inline-block !important;
  }
  /* 1. Reducir el abismo blanco entre La Especie y Contacto */
  .section-especie {
    padding-bottom: 40px !important; 
  }
  
  .section-contacto {
    padding-top: 30px !important;
    padding-bottom: 60px !important;
  }

  /* 2. Ajustar la tarjeta de contacto para que no se salga de la pantalla */
  .contacto-form-side {
    padding: 35px 24px !important; /* Reduce el espacio interno para darle aire a los lados */
  }

  .contacto-title {
    font-size: 32px !important; /* Ajusta el título para que no sature la vista */
  }

  /* 3. Evitar que el botón del correo rompa el diseño por ser muy largo */
  .email-direct-pill {
    width: 100% !important; /* Fuerza a que tome el ancho de la tarjeta */
    justify-content: center !important; /* Centra el icono y el texto */
    font-size: 13px !important; /* Reduce ligeramente la letra */
    padding: 12px 15px !important;
    box-sizing: border-box;
    white-space: normal !important; /* Permite que el correo baje de línea si la pantalla es muy angosta */
    text-align: center;
  }
  /* 1. Reducir el espacio superior del footer y la separación entre bloques */
  .site-footer {
    padding: 50px 0 30px !important; 
  }
  
  .footer-main-grid {
    gap: 35px !important; 
  }

  /* 2. Forzar el centrado del logo para que coincida con el texto */
  .footer-logo {
    display: block !important;
    margin: 0 auto 20px !important; 
  }

  /* 3. Darle margen al párrafo para que no pegue con las orillas de la pantalla */
  .footer-desc {
    padding: 0 15px !important;
    line-height: 1.6 !important;
  }





/* 3. NOSOTROS */

  /* 1. Evitar el efecto de zoom y encuadrar correctamente el fondo en celular */
.hero-nosotros {
  background-size: cover !important; 
  background-repeat: no-repeat !important; 
  
  /* CLAVE: Desactiva el fondo fijo (parallax) que causa el error de zoom masivo en móviles */
  background-attachment: scroll !important; 
  
  /* Movemos el encuadre un poco a la derecha (70%) para que el tapir y el cuidador no queden fuera */
  background-position: 70% center !important; 
  
  /* Altura mínima asegurada para que la foto no se aplaste si hay poco texto */
  min-height: 480px !important; 
  height: auto !important;
  
  padding-top: 120px !important; 
  padding-bottom: 50px !important;
}

.hero-nosotros-overlay {
  /* Mantenemos tu degradado vertical para la legibilidad del texto */
  background: linear-gradient(to bottom, rgba(22, 32, 19, 0.85) 0%, rgba(22, 32, 19, 0.6) 100%) !important; 
}

  /* 2. Reducir el enorme espacio blanco hacia la tarjeta "Libera el Futuro" */
  .section-mision-vision {
    padding-top: 50px !important; 
  }

  /* 1. Reducir el espacio inferior de la sección anterior (Misión y Visión) */
  .section-mision-vision {
    /* Si ya tenías padding-top aquí, solo agrégale esta línea extra: */
    padding-bottom: 40px !important; 
  }

  /* 2. Reducir el espacio superior de la sección "México Paraíso Natural" */
  .section-paraiso {
    padding-top: 40px !important; 
    padding-bottom: 50px !important; /* Aprovechamos para ajustar también el de abajo */
  }

  /* 1. Reducir el abismo entre el texto y las fotografías */
  .paraiso-grid {
    gap: 30px !important; /* Reduce los 60px originales de escritorio */
  }

  /* 2. Ajustar la altura de la foto principal (las aves) */
  .main-birds-card {
    min-height: 320px !important; /* Evita que la foto sea excesivamente alta en vertical */
    margin-bottom: 0 !important;
  }

  /* 3. Darle espacio al contenedor para que la tarjeta verde flote sin romper el diseño */
  .paraiso-images-col {
    padding-bottom: 40px !important; 
  }

  /* 4. Acomodar la tarjeta verde del carrusel de especies */
  .overlap-macaw-card {
    width: 92% !important; /* Más ancha para aprovechar mejor la pantalla */
    bottom: -20px !important; /* Menos traslape hacia abajo para no invadir la siguiente sección */
    padding: 20px !important; /* Reducimos el relleno interno para que la foto del animal crezca */
  }
  /* Reducir el enorme espacio blanco antes de "NUESTRA META" */
  .section-el-santuario {
    padding-top: 40px !important; 
    padding-bottom: 50px !important; /* Ajustamos también el de abajo de una vez */
  }
  /* Reducir el espacio superior e inferior de la sección Localización */
  .section-localizacion {
    padding-top: 40px !important;
    padding-bottom: 50px !important; 
  }
  /* 1. Reducir la separación gigante entre el texto y la imagen */
  .loc-grid, .msg-grid {
    gap: 30px !important; /* Reduce el espacio del grid */
  }
  
  .mb-6 {
    margin-bottom: 35px !important; /* Reduce márgenes de 100px que separan los bloques */
  }

  /* 2. Ajustar la altura de la tarjeta y forzar a que la foto la cubra por completo */
  .loc-card, .msg-card {
    min-height: 280px !important; /* Bajamos la altura de 420px a algo ideal para móvil */
    position: relative;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
  }

  .loc-card img, .msg-card img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important; /* Hace que la imagen actúe como fondo llenando todo el hueco */
  }

  /* 3. Acomodar la tarjetita flotante de ubicación (el pin amarillo) */
  .map-floating-card {
    bottom: 15px !important;
    left: 15px !important;
    right: 15px !important; /* Le da márgenes a los lados para que no se salga de la pantalla */
    width: auto !important;
    padding: 12px 16px !important;
  }
  /* 1. Centrar todo el contenido de la tarjeta del boletín */
  .msg-card {
    padding: 45px 30px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* 2. Liberar el texto para que use todo el ancho de la tarjeta */
  .msg-card > * {
    position: relative;
    z-index: 2; /* Asegura que el texto y botón queden al frente */
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  /* 3. Centrar el botón y darle un tamaño simétrico */
  .msg-card .btn-primary-gold, 
  .msg-card button, 
  .msg-card a {
    margin: 25px auto 0 !important;
    width: 100% !important;
    max-width: 280px !important; /* Evita que el botón sea exageradamente ancho */
    justify-content: center !important;
  }

  /* 4. Convertir el gráfico verde en una marca de agua sutil de fondo */
  .msg-card img {
  
    object-position: right bottom !important; /* Lo ancla a la esquina inferior derecha */
  }



  /* 1. Quitar el fondo verde y hacer flotar SOLO la imagen del tapir (Transmitir el Mensaje) */
  .msg-image-col .msg-card {
    background-color: transparent !important; 
    padding: 0 !important; 
    min-height: auto !important; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important; 
    border-radius: 24px !important; 
    display: block !important; /* Sobreescribe el flex del boletín */
  }

  /* 2. Redondear la foto y ajustarla perfectamente */
  .msg-image-col .msg-card img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 24px !important; 
    object-fit: cover !important;
    opacity: 1 !important;
  }








/* LA UMA */
  /* 1. Reducir el gran espacio en blanco arriba y abajo de la sección de Especificaciones */
  .section-uma-specs {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  /* 2. Evitar que la palabra ESPECIFICACIONES se salga de la pantalla */
  .specs-card-glass h2 {
    font-size: 28px !important; /* Reducimos el tamaño para móvil */
    word-wrap: break-word !important; /* Fuerza a la palabra a no salirse del contenedor */
    hyphens: auto !important; /* Permite guiones si es estrictamente necesario */
    margin-bottom: 25px !important;
  }

  /* 3. Ajustar la tarjeta blanca de la ficha técnica para que respire bien a los lados */
  .specs-card-glass {
    padding: 35px 20px !important; /* Menos espacio interno a los lados */
    margin-bottom: 30px !important; /* Reduce la separación con la foto del biólogo */
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 1. Reducir el enorme espacio en blanco superior e inferior de la sección */
  .seccion-expertos {
    padding-top: 40px !important;
    padding-bottom: 50px !important;
  }

  /* 2. Reducir la separación entre el título "EN MANOS DE EXPERTOS" y la tarjeta */
  .seccion-expertos .display-title-sm {
    margin-bottom: 30px !important;
  }

  /* 3. Compactar los espacios internos de la tarjeta oscura para que se vea proporcionada */
  .tarjeta-experto {
    padding: 35px 25px !important; 
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 4. Ajustar ligeramente el tamaño del texto dentro de la tarjeta si es necesario */
  .tarjeta-experto h3 {
    font-size: 24px !important;
    margin-bottom: 20px !important;
  }
  /* 1. Recortar el abismo blanco superior de la sección de expertos */
  .section-expertos {
    padding-top: 30px !important; 
    padding-bottom: 40px !important;
  }

  /* 2. Compactar la tarjeta oscura para que aproveche mejor el ancho */
  .credentials-card {
    padding: 35px 25px !important; 
  }

  /* 3. Aumentar sutilmente el subtítulo "Técnico Acreditado" */
  .credentials-card h3 {
    font-size: 16px !important;
    letter-spacing: 1px !important;
    margin-bottom: 10px !important;
  }

  /* 4. Hacer que el nombre del experto destaque mucho más */
  .credentials-card .cred-name {
    font-size: 28px !important; 
    line-height: 1.2 !important;
    margin-bottom: 25px !important;
  }

  /* 5. Aumentar el tamaño de letra de los registros y cédulas para facilitar la lectura */
  .credentials-card .cred-body p {
    font-size: 16px !important; 
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
  }
  /* 1. Reducir el gran padding superior (de 80px a 40px) y el inferior de la sección Alianzas */
  .section-alianzas {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  /* 2. Reducir el espacio entre la cuadrícula que separa el carrusel del texto */
  .alianzas-grid {
    gap: 30px !important; /* Baja de 60px a 30px */
  }

  /* 3. Ajustar el margen inferior del título principal para que el texto de abajo suba un poco */
  .alianzas-text .display-title-sm {
    margin-bottom: 20px !important;
  }

  /* 4. Si es necesario, ajustar el margen inferior del primer párrafo destacado */
  .alianzas-text .text-content p:first-child {
    margin-bottom: 15px !important;
  }
  /* 1. Reducir el abismo blanco en la parte superior e inferior de la sección */
  .section-objetivos { /* Reemplaza por la clase de la sección entera */
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  /* 2. Acercar el título a la primera tarjeta */
  .section-objetivos .display-title-sm {
    margin-bottom: 30px !important;
  }

  /* 3. Reducir el espacio (gap) entre las tarjetas de los objetivos */
  .objetivos-grid { /* Reemplaza por la clase del contenedor de las tarjetas */
    gap: 20px !important; /* Reduce la separación entre la tarjeta de Restauración y la siguiente */
  }

  /* 4. Ajustar el relleno interno de las tarjetas para que no se vean tan vacías */
  .objetivo-card { /* Reemplaza por la clase de la tarjeta individual */
    padding: 25px 20px !important; 
  }


  






  /* 1. Eliminar el relleno gigante de 100px arriba y abajo de toda la sección */
  .section-curiosidades {
    padding-top: 40px !important;
    padding-bottom: 50px !important;
  }

  /* 2. Reducir el margen de 60px que separa el título DATOS CURIOSOS de las tarjetas */
  .section-curiosidades .text-center {
    margin-bottom: 30px !important;
  }

  /* 3. Compactar el espacio (gap) entre cada una de las tarjetas */
  .curiosidades-grid {
    gap: 25px !important; 
    display: flex !important;
    flex-direction: column !important;
  }

  /* 4. Ajustar el espacio interno de las tarjetas para que se vean proporcionadas */
  .curiosidad-card {
    padding: 35px 25px !important;
  }

  /* 5. Ajustar el número decorativo gigante (1, 2, 3...) para que no estorbe la lectura */
  .curiosidad-numero {
    font-size: 80px !important; /* Lo hacemos un poco más pequeño para móvil */
    right: 5px !important; /* Lo pegamos al borde derecho */
    top: -10px !important; /* Lo subimos un poco */
  }
  /* 1. Evitar que el título naranja choque con los números decorativos */
  .curiosidad-card h4 {
    padding-right: 45px !important; /* Empuja el texto antes de que toque el número */
    line-height: 1.4 !important;
    position: relative;
    z-index: 2;
  }

  /* 2. Igualar el ancho y los bordes de la imagen con las tarjetas blancas */
  .curiosidad-img-card {
    width: 100% !important;
    border-radius: 24px !important; /* Aplica la misma curva que las tarjetas blancas */
    overflow: hidden !important; /* Asegura que la foto no se salga del borde curvo */
    min-height: 240px !important; /* Le da una altura proporcionada para celular */
    box-sizing: border-box !important;
    margin: 0 !important; /* Elimina cualquier margen oculto que la esté desalineando */
  }

  /* 1. Anular los 100px forzados en el HTML y reducir el espacio superior/inferior */
  .section-contacto-especie {
    padding-top: 40px !important;
    padding-bottom: 50px !important;
  }

  /* 2. Acercar el título "CONTACTO" a la pregunta descriptiva */
  .contacto-form-wrapper .display-title-sm {
    margin-bottom: 15px !important;
  }

  /* 3. Reducir el margen del párrafo introductorio para compactar el formulario */
  .contacto-form-wrapper p:nth-of-type(2) {
    margin-bottom: 20px !important;
  }

  /* 4. Ajustar la cuadrícula si el formulario y el mapa están muy separados */
  .contacto-grid {
    gap: 35px !important;
  }

  /* 5. Reducir la altura obligatoria de 450px del mapa para que no ocupe toda la pantalla del celular */
  .contacto-mapa iframe {
    min-height: 300px !important;
  }
  /* 1. Eliminar cualquier margen residual en todas las tarjetas (texto y foto) */
  .curiosidad-card,
  .curiosidad-img-card {
    margin: 0 !important;
  }

  /* 2. Controlar la separación exclusivamente con el gap para garantizar simetría exacta */
  .curiosidades-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important; /* Este será el único espacio real entre todos los elementos */
  }
}