/* ==========================================================================
   Estilos modernos y adaptativos para Flora y Fauna - deporcuna.com
   ========================================================================== */

/* Configuración base para asegurar el escalado correcto en móviles */
html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #222222;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f4f7f6;
  -webkit-text-size-adjust: 100%; /* Evita zoom automático extraño en algunos móviles */
}

.contenedor-principal {
  max-width: 1000px;
  margin: 10px auto;
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

h1, h2, h3 {
  color: #1b4332;
  font-family: Garamond, serif;
}

h1.titulo-seccion {
  text-align: center;
  font-size: 2rem;
  margin-top: 10px;
  margin-bottom: 20px;
  color: #2d6a4f;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu-interno {
  text-align: center;
  margin-bottom: 25px;
  padding: 10px;
  background: #e9f5ed;
  border-radius: 5px;
}

.menu-interno a {
  font-family: Garamond, serif;
  font-size: 1.1rem;
  color: #2d6a4f;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

.menu-interno a:hover {
  text-decoration: underline;
  color: #1b4332;
}

/* Tarjetas y rejillas flexibles */
.grid-3 {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.columna-3 {
  flex: 1;
  min-width: 280px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  border-top: 4px solid #2d6a4f;
}

.bloque-destacado {
  background: #e9f5ed;
  border-left: 5px solid #2d6a4f;
  padding: 20px;
  margin: 25px 0;
  border-radius: 0 6px 6px 0;
}

.tarjetas-portada {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.tarjeta-enlace {
  flex: 1;
  background: #e9f5ed;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  color: #2d6a4f;
  font-weight: bold;
  border: 2px solid #b7e4c7;
  transition: all 0.2s ease;
}

.tarjeta-enlace:hover {
  background: #d8f3dc;
  border-color: #2d6a4f;
}

hr {
  border: 0;
  height: 1px;
  background: #dcdcdc;
  margin: 25px 0;
}

.pie-pagina {
  font-size: 0.85rem;
  color: #666666;
  text-align: center;
  margin-top: 30px;
}

/* Adaptabilidad estricta para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
  body {
    background-color: #ffffff; /* Fondo limpio en móvil */
  }
  .contenedor-principal {
    padding: 12px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .grid-3, .tarjetas-portada {
    flex-direction: column;
  }
  /* Ajuste automático para que las imágenes flotantes o grandes no fuercen el ancho */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}