/* VARIABLES GLOBALES */
/* Colores, sombras y bordes usados en todo el sitio */
:root {
  --bg: #f7f4f2;         /* Fondo General */
  --card: #ffffff;       /* Fondo de Tarjetas */
  --accent: #c62828;     /* Rojo Principal */
  --accent-2: #b71c1c;   /* Rojo Oscuro */
  --text: #1f1f1f;       /* Color de Texto */
  --muted: #4f4f4f;      /* Texto Secundario */
  --shadow: 0 18px 48px rgba(198, 40, 40, 0.12);
  --radius: 22px;        /* Redondeo de bordes */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ESTILOS GENERALES */
/* Configuracion base del cuerpo y reset */
html { background: var(--bg); min-height: 100%; height: 100%; }

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* Fondo complejo con degradados para efecto de textura */
  background:
    linear-gradient(145deg, rgba(198, 40, 40, 0.05), rgba(255, 255, 255, 0.92)),
    radial-gradient(120% 140% at 20% 10%, rgba(0, 0, 0, 0.04), transparent),
    radial-gradient(140% 140% at 80% 20%, rgba(0, 0, 0, 0.035), transparent),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.018) 0, rgba(0, 0, 0, 0.018) 2px, transparent 2px, transparent 12px),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  height: 100%;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* SECCION HERO (ENCABEZADO) */
/* Titulo de bienvenida y logo */
.landing__hero {
  text-align: center;
  padding: 28px 18px 8px;
  max-width: 960px;
  margin: 0 auto;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.landing__welcome {
  margin: 0 0 12px;
  color: #b71c1c;
  font-size: 20px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.12), rgba(183, 28, 28, 0.08)),
              repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0, rgba(0,0,0,0.04) 6px, transparent 6px, transparent 14px);
}
.landing__hero h1 {
  margin: 0;
  font-size: 38px;
  color: var(--accent);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.landing__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-top: 10px;
  margin-bottom: 0;
  border-radius: 999px;
  background:  rgba(198, 40, 40, 0.1);
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(198, 40, 40, 0.2);
}

/* GRID DE CONTENIDO */
/* Distribucion de tarjetas informativas */
.landing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  padding: 0 14px 24px;
  max-width: 1080px;
  margin: 0 auto;
  justify-content: center;
}

.landing__card {
  background: linear-gradient(145deg, rgba(245, 242, 234, 0.9), rgba(255, 255, 255, 0.9));
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid rgba(198, 40, 40, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  max-width: 920px;
  justify-self: center;
}

.landing__card h2 { margin: 0 0 12px; color: var(--accent); }

.landing__list { padding-left: 18px; margin: 0; color: var(--text); line-height: 1.5; }
.landing__list li { margin-bottom: 8px; display: flex; gap: 8px; align-items: flex-start; }
.landing__icon { font-size: 18px; line-height: 1.4; }

.landing__card--pautas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 18px;
  align-items: center;
  justify-content: center;
}

/* BOTONES Y LLAMADAS A LA ACCION */
/* Estilos de botones principales y secundarios */
.landing__cta {
  background: rgba(198, 40, 40, 0.06);
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(198, 40, 40, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms var(--ease);
}
.btn:hover { transform: translateY(-1px) scale(1.01); border-color: rgba(198, 40, 40, 0.22); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }

.btn--cta {
  background: #e53935;
  color: #fff;
  border: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-left: 18px;
  padding-right: 18px;
  box-shadow: 0 8px 18px rgba(229, 57, 53, 0.18);
  border-radius: 999px;
}

/* PIE DE PAGINA */
/* Logos institucionales y bandera */
.landing__footer {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 26px;
  color: #e9e9e9;
  font-size: 14px;
  background: linear-gradient(135deg, #1f2633, #0f1724);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 12px;
  width: 100%;
}
.landing__footer p { margin: 4px 0; }
.landing__footer-img {
  width: 70px;
  max-width: 20vw;
  object-fit: contain;
  background: transparent;
}
.landing__footer-flag {
  width: 80px;
  max-width: 24vw;
  object-fit: contain;
  background: transparent;
}
.landing__footer-text { text-align: center; flex: 1; }
