/* ===============================
   VARIABLES – AHORA NACIÓN
================================ */
:root {
  --rojo: #C80000;
  --rojo-oscuro: #9E0000;
  --rojo-claro: #FFE5E5;
  --blanco: #FFFFFF;
  --gris-texto: #333333;
  --gris-borde: #DDDDDD;
  --fondo: #F7F7F7;
  --verde-ok: #1E7E34;
}

/* ===============================
   RESET BÁSICO
================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

/* ===============================
   BODY
================================ */
body {
  background: linear-gradient(180deg, #f2f6fb 0%, #ffffff 100%);
  color: var(--gris-texto);
}

/* ===============================
   CONTENEDOR
================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* ===============================
   HEADER
================================ */
.header {
  background: var(--rojo);
  color: var(--blanco);
  padding: 20px 28px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

/* LOGO */
/* CONTENEDOR BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* CONTENEDOR DEL LOGO */
.logo {
  display: flex;
  align-items: center;
}

/* IMAGEN DEL LOGO */
.logo img {
  width: 80px;       /* ?? controla el tamaño aquí */
  height: auto;
  display: block;
}
/* ===============================
   NAV HEADER – AHORA NACIÓN
================================ */

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

/* Hover */
.nav a:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Activo (Inicio) */
.nav a.active {
  background: #ffffff;
  color: #c80000;
  font-weight: 700;
}

/* ===============================
   CARD
================================ */
.card {
  background: var(--blanco);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ===============================
   TITULOS DE SECCIÓN
================================ */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--rojo);
  margin: 28px 0 16px;
}

/* ===============================
   GRID
================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

/* ===============================
   CAMPOS
================================ */
.field label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.req {
  color: var(--rojo);
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--gris-borde);
  font-size: 14px;
  transition: all 0.2s ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--rojo);
  box-shadow: 0 0 0 3px rgba(200, 0, 0, 0.15);
}

/* ===============================
   HINT
================================ */
.hint {
  font-size: 12px;
  color: #777;
  margin-top: 6px;
}

/* ===============================
   TURSTILE
================================ */
.cf-turnstile {
  margin-top: 8px;
}

/* ===============================
   BOTONES
================================ */
.actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
}

#btn-submit {
  background: var(--rojo);
  color: var(--blanco);
  border: none;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

#btn-submit:hover {
  background: var(--rojo-oscuro);
}

#btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===============================
   MENSAJES
================================ */
.msg {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
}

.msg.ok {
  background: #e8f8ee;
  color: var(--verde-ok);
  border: 1px solid #b7e4c7;
}

.msg.err {
  background: var(--rojo-claro);
  color: var(--rojo);
  border: 1px solid var(--rojo);
}

/* ===============================
   FOOTER
================================ */
.footer {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: #777;
}

/* ===============================
   BOTONES INDEX – AHORA NACIÓN
================================ */

.opciones {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-opcion {
  background: var(--rojo);
  color: var(--blanco);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(200, 0, 0, 0.25);
}

.btn-opcion:hover {
  background: var(--rojo-oscuro);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(200, 0, 0, 0.35);
}

/* Botón secundario (opcional) */
.btn-opcion.secondary {
  background: transparent;
  color: var(--rojo);
  border: 2px solid var(--rojo);
  box-shadow: none;
}

.btn-opcion.secondary:hover {
  background: var(--rojo);
  color: var(--blanco);
}

/* ===============================
   BOTONES OPCIONES – INDEX
================================ */

.actions-opciones {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}

/* BOTONES BASE */
.btn-accion {
  min-width: 180px;
  padding: 14px 28px;
  border-radius: 16px;
  background-color: #c80000;   /* rojo */
  color: #ffffff;              /* blanco */
  border: 3px solid #c80000;
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
/* HOVER ? INVERTIR */
.btn-accion:hover {
  background-color: #ffffff;
  color: #c80000;
}
/* Botón alterno */
.btn-secundario {
  background: #ffffff;
  color: #c80000;
  border: 2px solid #c80000;
}

.btn-secundario:hover {
  background: #c80000;
  color: #ffffff;
}
.autor {
  font-weight: bold;
  margin-top: 1rem;
}
.cita {
  text-align: justify;
}
p {
  margin-top: 0;
  margin-bottom: 0.2rem;
}