/* Portada del sitio público SIADEMX.
   Complementa /estilo.css, se carga después y solo en la página de inicio.
   Sin dependencias externas. Todos los colores provienen de las variables de estilo.css. */

/* ---- Encabezado principal ---- */

.portada { margin-bottom: .5rem; }

.portada h1 { font-size: 2.15rem; margin-bottom: .8rem; }

.etiqueta {
  margin: 0 0 .7rem;
  color: var(--acento);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.entrada {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--texto-2);
  margin: 0 0 1.4rem;
  max-width: 38rem;
}
.entrada strong { color: var(--texto); }

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 0 0 1.1rem;
}
.acciones .boton, .acciones .boton-secundario { margin-top: 0; }

.boton-secundario {
  display: inline-block;
  padding: .6rem 1.1rem;
  border: 1px solid var(--borde);
  border-radius: 8px;
  background: var(--fondo-2);
  color: var(--acento);
  font-weight: 600;
  text-decoration: none;
}
.boton-secundario:hover, .boton-secundario:focus {
  border-color: var(--acento);
  background: var(--acento-suave);
}

.nota-estado {
  margin: 0;
  padding-left: .8rem;
  border-left: 3px solid var(--borde);
  color: var(--texto-2);
  font-size: .92rem;
}
.nota-estado strong { color: var(--texto); }

/* ---- Empresa y principios ---- */

.glosa {
  color: var(--texto-2);
  font-size: .95rem;
}

.subseccion { margin-top: 1.9rem; }

.principios {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.5rem;
}
.principios > li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 0;
  margin: 0;
  border-top: 1px solid var(--borde);
}
.principios > li:last-child { border-bottom: 1px solid var(--borde); }
.principios > li > .icono { margin-top: .15rem; }
.principios strong { display: block; margin-bottom: .2rem; }
.principios p { margin: 0; color: var(--texto-2); }
.principios em { color: var(--texto-2); }

/* ---- Rejilla de bloques ---- */

.rejilla {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}
.rejilla .tarjeta { margin: 0; }

@media (min-width: 44rem) {
  .rejilla { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
}

.rejilla .tarjeta h3 {
  display: flex;
  align-items: center;
  gap: .55rem;
  line-height: 1.35;
}

.icono {
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--acento);
}

/* ---- Pasos numerados ---- */

.pasos {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.5rem;
  counter-reset: paso;
}
.pasos li {
  counter-increment: paso;
  position: relative;
  padding-left: 2.4rem;
  margin: .75rem 0;
}
.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: .1rem;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid var(--borde);
  border-radius: 50%;
  background: var(--acento-suave);
  color: var(--acento);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.6rem;
  text-align: center;
}

/* ---- Tabla de contacto ---- */

.tabla-envoltura th[scope="row"] {
  white-space: nowrap;
  padding-right: 1.2rem;
}
.tabla-envoltura td { overflow-wrap: anywhere; }

/* ---- Detalles ---- */

.pie-tarjeta {
  margin-bottom: 0;
  color: var(--texto-2);
  font-size: .9rem;
}

@media (max-width: 40rem) {
  .portada h1 { font-size: 1.7rem; }
  .entrada { font-size: 1.05rem; }
  .acciones .boton, .acciones .boton-secundario { flex: 1 1 12rem; text-align: center; }
}
