/* ====== Reset y tokens ====== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  color: #1b3a2f;
  background: #ffffff;   /* ✅ Fondo blanco global */
  line-height: 1.6;
}
:root{
  --green:#2d8b6e;
  --green-600:#1e6b55;
  --soft:#f1f6f4;
  --muted:#4a6b5f;
  --radius:16px;
  --container:1100px;
}

/* ====== Helpers ====== */
.container{
  width: min(92vw, var(--container));
  margin-inline: auto;
}
.narrow{ width: min(880px, 92vw); }

.section-title{
  position: relative;
  text-align:center;
  color: var(--green-600);
  font-size: clamp(1.25rem, 1.2rem + 1vw, 1.75rem);
  margin: 2.5rem 0 1.5rem;
}
.section-title::before {
  content: "";
  display: block;
  width: 750px;
  height: 1px;
  background: #2d8b6e;
  margin: 0 auto 0.75rem;
  border-radius: 2px;
}

.lead{ color: var(--muted); text-align:center; }
.bg-soft{ background: var(--soft); padding: 2.2rem 0; }

/* ====== Header & Menú ====== */
.site-header .topbar{
  position: sticky; top: 0; z-index: 50;
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding: 12px min(4vw, 24px);
  background:#fff; border-bottom: 1px solid #e5eee9;
}

/* Tamaño de logo */
/* Ajuste del logo en el header */
.logo-img {
  max-height: 120px;  /* Tamaño en desktop */
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo-img {
    max-height: 80px; /* Tamaño en móvil */
  }
}
/* Logo en escritorio */
.logo-img {
  max-height: 50px;   /* antes seguramente era 70px */
  width: auto;        /* mantiene proporción */
}

/* Logo en móviles aún más pequeño */
@media (max-width: 768px) {
  .logo-img {
    max-height: 40px;
  }
}
/* Ajuste del logo en el header */
.logo-img {
  max-height: 120px;  /* Tamaño en desktop */
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo-img {
    max-height: 80px; /* Tamaño en móvil */
  }
}


.main-nav a {
  font-family: 'Roboto', sans-serif;  /* ✅ Usa Roboto */
  font-weight: 400;                   /* ✅ Normal, sin negrita */
  color: #0f2c24;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
}
.main-nav a:hover { background: var(--soft); }
.main-nav a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ====== Botón hamburguesa ====== */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0f2c24;
}

/* ====== Estilo móvil ====== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    top: 60px;
    right: 16px;
    background: #fff;
    padding: 16px;
    border: 1px solid #e5eee9;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  }

  .main-nav.active { display: flex; }
}

/* ===== HERO ===== */
.hero {
  width: 100%;
  height: 64vh;
  overflow: hidden;
}
.hero picture,
.hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* HERO en móvil */
@media (max-width: 768px) {
  .hero { height: auto; max-height: none; overflow: hidden; }
  .hero picture,
  .hero img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
}
@media (max-width: 480px) {
  .hero img { max-height: 360px; }
}

/* ====== Intro ====== */
.intro{ padding: clamp(24px, 3vw, 40px) 0; }
.intro-grid{
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
}
.frame{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.intro .frame img{
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}
.copy h2{ margin: .2rem 0 .6rem; line-height: 1.25; }
.copy p{ margin: .45rem 0; color:#2d473f; }
@media (max-width: 768px){
  .intro-grid{ grid-template-columns: 1fr; gap: 16px; }
  .intro .frame img{ max-height: 360px; }
}
@media (max-width: 420px){
  .intro .frame img{ max-height: 300px; }
}

/* ====== Antecedente ====== */
.antecedente{ background:#f1f6f4; padding: 2.5rem 0; }
.antecedente .section-title{
  color:#1e6b55;
  text-align:center;
  font-weight:800;
  font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem);
  margin-bottom: 1.25rem;
  letter-spacing:.3px;
}
.ant-list{ display:flex; flex-direction:column; gap: 28px; margin-top: 8px; }
.ant-item{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items:flex-start;
  background:#fff;
  border:1px solid #e4efe9;
  border-radius:16px;
  padding: 22px 24px;
}
.ant-icon img{ width: 86px; height:auto; display:block; }
.ant-text{ color:#0e2d25; font-size: clamp(1rem, .94rem + .2vw, 1.15rem); line-height:1.75; }
.ant-text p{ text-align: justify; }
.ant-tags{ text-align:center; color:#2d8b6e; margin-top: 1rem; font-weight: normal; }
@media (max-width: 900px){
  .ant-item{ grid-template-columns: 90px 1fr; }
  .ant-icon img{ width:72px; }
}
@media (max-width: 640px){
  .ant-item{ grid-template-columns: 1fr; gap: 12px; }
  .ant-icon img{ width:68px; }
}

/* ====== Stats ====== */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 1.5rem 0 2rem;
}
.stat {
  background:#fff;
  border: 1px solid #e4efe9;
  border-radius: 14px;
  padding: 22px;
  text-align:center;
}
.stat-icon { height: 70px; margin-bottom: 12px; }
.stat .num {
  font-weight: 800;
  font-size: clamp(1.2rem, 1rem + 1.5vw, 2rem);
  color:#123d31;
  margin-top: 8px;
}
.stat .label { color:#5a7c70; font-size: 1rem; }
@media (max-width: 1024px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* Texto dentro del cuadro de México */
.registro-text {
  background: #ffffff;
  border: 1px solid #d8eae2;
  border-radius: 16px;
  padding: 1.8rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.registro-text p {
  margin: 0.8rem 0;
  color: #2b4a40;
  line-height: 1.7;
  text-align: justify;
}

/* ====== Galería ====== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto 0;
  max-width: 900px;
}
.gallery .card { text-align: center; }
.gallery .card img{
  display:block;
  margin:0 auto;
  width:100%;
  height:250px;
  object-fit:cover;
  border-radius:12px;
}
.card figcaption{ padding:10px 12px; color:#3d5e52; font-size:.95rem; }
@media (max-width: 1024px){ .gallery{ grid-template-columns: repeat(3, 1fr); } .card img{ height:240px; } }
@media (max-width: 768px){ .gallery{ grid-template-columns: repeat(2, 1fr); } .card img{ height:200px; } }
@media (max-width: 480px){ .gallery{ grid-template-columns:1fr; } .card img{ height:auto; } }

/* ====== Contacto & Footer ====== */
#contacto{ padding: 2rem 0; }
.site-footer {
  background: #9bbfa8;
  color: #ffffff;
  padding: 20px 0;
  font-size: 0.95rem;
}
.footer-container {
  width: min(92vw, 1100px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.site-footer p { margin: 0; line-height: 1.4; }
.footer-socials { display: flex; gap: 14px; }
.footer-socials a img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}
.footer-socials a:hover img { opacity: 0.75; }
@media (max-width: 640px) {
  .footer-container { flex-direction: column; text-align: center; gap: 12px; }
  .footer-socials { justify-content: center; }
}

/* 🔽 Elimina scroll lateral en móviles */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
.hero, .hero picture, .hero img { max-width: 100%; overflow-x: hidden; }
header("Content-Type: text/html; charset=UTF-8");

.justify {
  text-align: justify;
}
.step h4 {
  color: #ff6600;
  font-weight: bold;
}
.titulo-seccion {
  font-size: 24px;        /* Tamaño más grande */
  font-weight: bold;
  margin: 30px 0 15px;    /* Espaciado arriba y abajo */
  color: #e26a32;         /* Verde Huawei */
}

.titulo-seccion span {
  color: #e26a32;         /* Naranja para el número */
  margin-right: 6px;
}
.titulo-destacado {
  font-size: 18px;          /* Tamaño grande */
  font-weight: bold;        /* Negritas */
  color: #4caf50;           /* Verde claro */
  margin: 25px 0 15px;      /* Espaciado */
}
.titulo-naranja {
  font-size: 26px;
  font-weight: bold;
  color: #e26a32;             /* Naranja */
  padding-left: 10px;         /* Espacio entre la línea y el texto */
  border-left: 2px solid #2e7d32; /* Línea verde de 2px */
  margin: 25px 0 15px;        /* Espaciado arriba y abajo */
}
/* Contacto en dos columnas */
.contact-container {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap; /* para que se acomode en móviles */
}

.contact-text, .contact-form {
  flex: 1;
  min-width: 280px;
}

/* Ajustes visuales */
.contact-text {
  font-size: 16px;
  color: #444;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
/* ✅ Estilos responsive para el menú hamburguesa */
/* ✅ Estilo para móviles */
@media (max-width: 768px) {
  .topbar {
    position: relative;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;          /* justo debajo del header */
    left: 0;
    right: 0;
    width: 100%;        /* ocupa el ancho completo */
    max-width: 100%;    /* asegura que no se pase */
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    z-index: 1000;
  }

  .main-nav a {
    display: block;
    padding: 12px;
    text-align: center;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    white-space: nowrap;  /* evita cortes raros en el texto */
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .main-nav.active {
    display: flex;
  }
}
.contact-socials {
  display: flex;
  gap: 14px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.contact-socials a {
  width: 100px;                  /* ancho fijo */
  height: 100px;                 /* alto fijo */
  background-color: #a8d5ba;    /* ✅ verde claro */
  border-radius: 8px;           /* esquinas redondeadas (ajusta si quieres cuadrado perfecto: 0) */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact-socials a:hover {
  background-color: #7abf96;    /* verde más oscuro en hover */
  transform: scale(1.1);
}

.contact-socials a img {
  width: 24px;                  /* tamaño del icono */
  height: 24px;
  object-fit: contain;
  display: block;
}

