/* ===============================
   CONFIGURACIÓN GENERAL
   =============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}


body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  background: linear-gradient(180deg, #e9f1e3, #cfe3c2);
  color: #243624;
}

/* ===============================
   HERO / PORTADA
   =============================== */

.hero {
  background: none;     /* ❌ sin verde */
  padding: 40px 20px;   /* más corto */
  text-align: center;
}






.hero h1 {
  font-size: 48px;
  margin: 0;
  letter-spacing: 1px;
}

.hero p {
  font-size: 18px;
  margin-top: 10px;
  color: #3b5a3b;
}

/* ===============================
   CONTENEDOR PRINCIPAL
   =============================== */

.contenedor {
  max-width: 1150px;
  margin: 0 auto;
  padding: 80px 50px;
  box-sizing: border-box;
}

/* ===============================
   MENÚ PRINCIPAL
   =============================== */

.menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-bottom: 80px;
}

.boton {
  background: linear-gradient(135deg, #d7cf77, #bdb85f);
  padding: 22px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  color: #1f2e1f;
  font-weight: bold;
  font-size: 17px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.35s ease;
}

.boton:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

/* ===============================
   SECCIONES DE TEXTO
   =============================== */

section {
  margin-bottom: 90px;
}

h2 {
  font-size: 32px;
  margin-bottom: 25px;
  border-left: 8px solid #7da87b;
  padding-left: 18px;
}

p {
  font-size: 18px;
  line-height: 1.9;
  max-width: 900px;
}

/* ===============================
   GALERÍA DE IMÁGENES
   =============================== */

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.galeria img {
  width: 100%;
  border-radius: 25px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease;
}

.galeria img:hover {
  transform: scale(1.08);
}

/* ===============================
   TABLAS (CATÁLOGO)
   =============================== */

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin: 60px 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

th, td {
  padding: 16px;
  text-align: center;
}

th {
  background: #5f8f6a;
  color: white;
  font-size: 16px;
}

td {
  font-size: 15px;
}

tr:nth-child(even) {
  background-color: #eef5e6;
}

/* ===============================
   DESCRIPCIONES (SUBFAMILIA / TRIBU)
   =============================== */

.descripcion-subfamilia,
.descripcion-tribu {
  background: white;
  padding: 35px 45px;
  border-radius: 30px;
  max-width: 950px;
  margin: 60px auto;
  font-size: 18px;
  line-height: 1.9;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
  border-left: 10px solid #7da87b;
}

/* ===============================
   BOTÓN VOLVER
   =============================== */

.volver-wrapper {
  display: flex;
  justify-content: center;
  margin: 120px auto 80px;
  width: 100%;
}


.btn-volver {
  background: linear-gradient(135deg, #d9d27a, #bfb95d);
  padding: 18px 50px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: bold;
  color: #1f2e1f;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
  transition: all 0.35s ease;

  position: relative;
  z-index: 10;
}


.btn-volver:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.4);
}


@media (max-width: 768px) {
  .hero {
    padding: 60px 15px;
  }


  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }
}

/* =========================
   FOOTER GLOBAL – FIX MÓVIL
   ========================= */

.footer-global {
  width: 100%;
  background-color: #6f9e6b;
  padding: 40px 16px;
  margin-top: 100px;
  box-sizing: border-box;
}

.footer-global p {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
  color: #ffffff;
}

.menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}


.boton-card {
  background: linear-gradient(135deg, #ffffff, #f1f6ec);
  border-radius: 28px;
  padding: 35px 30px;
  text-align: center;
  text-decoration: none;
  color: #2c3e2c;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.boton-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7da87b, #5f8f6a);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.boton-card:hover::before {
  opacity: 0.08;
}

.boton-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.3);
}

.icono {
  font-size: 38px;
  display: block;
  margin-bottom: 15px;
}

.titulo {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.descripcion {
  font-size: 14.5px;
  color: #4f6b4f;
}
/* ===============================
   BOTONES TIPO CARD (MENÚ)
   =============================== */

.boton-card {
  display: flex;
  flex-direction: column;      /* 👈 clave */
  align-items: center;
  text-align: center;

  background: linear-gradient(135deg, #f4f1c9, #d6cf77);
  padding: 30px 25px;
  border-radius: 28px;
  text-decoration: none;
  color: #1f2e1f;

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.boton-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

/* ÍCONO */
.boton-card .icono {
  font-size: 42px;
  margin-bottom: 14px;
}

/* TÍTULO */
.boton-card .titulo {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;   /* 👈 separación con descripción */
}

/* DESCRIPCIÓN */
.boton-card .descripcion {
  font-size: 14.5px;
  line-height: 1.5;
  opacity: 0.85;
}
/* ===============================
   MENÚ TIPO CARDS (SOLO INDEX)
   =============================== */

.menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 90px;
}

.boton-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  background: linear-gradient(135deg, #f4f1c9, #d6cf77);
  padding: 32px 26px;
  border-radius: 26px;
  text-decoration: none;
  color: #1f2e1f;

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.boton-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.boton-card .icono {
  font-size: 40px;
  margin-bottom: 14px;
}

.boton-card .titulo {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 6px;
}

.boton-card .descripcion {
  font-size: 14.5px;
  opacity: 0.85;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .menu {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .menu {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .contenedor {
    padding: 40px 18px;
  }

  p {
    font-size: 15.5px;
  }
}
/* ===============================
   FIX REAL PARA CELULAR
   =============================== */

@media (max-width: 520px) {

  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  .contenedor {
    padding: 32px 16px; /* 👈 ESTE ES EL FIX */
  }

  .hero {
    padding: 50px 14px;
  }

 

  .footer-global {
    padding: 40px 16px;
    box-sizing: border-box;
  }

  .footer-global p {
    max-width: 100%;
  }
}
body {
  -webkit-text-size-adjust: 100%;
}
/* ===============================
   TABLAS RESPONSIVE (MÓVIL)
   =============================== */

.tabla-scroll {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 30px;
  -webkit-overflow-scrolling: touch;
}

.tabla-scroll table {
  min-width: 720px;
}

/* Evita que el body se desborde */
body {
  overflow-x: hidden;
}

/* Indicador visual solo en móvil */
@media (max-width: 768px) {
  .tabla-scroll::after {
    content: "↔ Desliza horizontalmente para ver la tabla completa";
    display: block;
    text-align: center;
    font-size: 13px;
    color: #355f3a;
    margin-top: 8px;
    font-style: italic;
  }
}
.boton {
  display: inline-block;
  margin: 20px auto;
}
#mapa-colombia {
  width: 100%;
  max-width: 900px;
  height: 500px;
  margin: 40px auto;
  border-radius: 25px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  #mapa-colombia {
    height: 360px;
  }
}
#mapa-colombia {
  width: 100%;
  height: 450px;
  margin: 30px 0;
  border-radius: 14px;
}

/* Celular */
@media (max-width: 768px) {
  #mapa-colombia {
    height: 350px;
  }
}

.text-italic {
  font-style: italic;
}

.primerMayus:first-letter {
text-transform: uppercase
}
/* Contenedor blanco del hero */
/* ===============================
   HERO FULL WIDTH (PORTADA)
   =============================== */

/* === HERO SOLO IMAGEN (FIX DEFINITIVO) === */

/* === HERO TIPO BANNER === */

.hero {
  padding: 0;
  background: #f9faf6; /* fondo neutro */
}

.hero-text.hero-imagen {
  width: 100%;
  max-width: none;
  padding: 0;
}

.hero-img {
  width: 100vw;        /* lado a lado */
  max-width: none;
  height: auto;        /* 👈 clave: no forzar altura */
max-height: 610px;
  display: block;
  margin: 0 auto;

  object-fit: contain; /* 👈 NO corta */
}





.hero {
  background: rgb(255, 255, 255);
}



@media (max-width: 768px) {
  .imagen-portada-full {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .imagen-portada-full {
    height: 220px;
  }
}
.hero-full {
  position: relative;
}
.visually-hidden {
  position: absolute;
  left: -9999px;
}

/* =========================
   CLAVE DICOTÓMICA
   ========================= */

.bloque-info {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 25px;
  margin: 30px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.titulo-info {
  font-size: 18px;
  color: #2f4f2f;
  margin-bottom: 15px;
}

.paso-clave {
  font-family: "Georgia", serif;
  font-size: 16px;
  margin: 10px 0;
  white-space: nowrap;
}

.paso-clave a {
  font-weight: bold;
  text-decoration: none;
  color: #1e6b3a;
}

.paso-clave a:hover {
  text-decoration: underline;
}

.titulo-tribu {
  font-size: 17px;
  margin-bottom: 10px;
}

.volver-clave {
  margin-top: 15px;
  font-size: 14px;
}
.bloque-info,
.paso-clave {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
  white-space: normal;
}

}