/* =========================================================
   Identidad de marca - Litoral, Institución de Educación Superior
   Colores tomados de www.litoral.edu.co
   ========================================================= */

/* FUENTES (Poppins, licencia OFL: fonts/Poppins-OFL.txt) */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Marca */
  --litoral-purple: #5b5599; /* barra de menú */
  --litoral-purple-dark: #3d3870;
  --litoral-violet: #a706f1;
  --litoral-magenta: #ed0e91;
  --litoral-blue: #0026f7;
  --litoral-blue-dark: #0038b4;
  --litoral-pink: #ea5a90;
  --litoral-coral: #ec6c4f;
  --litoral-yellow: #ffc107;
  --litoral-dark: #2b2523; /* barra superior */

  /* Degradados de los botones del sitio */
  --gradient-magenta: linear-gradient(224deg, var(--litoral-magenta) 1%, var(--litoral-violet) 89%);
  --gradient-blue: linear-gradient(250deg, var(--litoral-blue-dark) 1%, var(--litoral-blue) 89%);
  --gradient-coral: linear-gradient(250deg, var(--litoral-pink) 1%, var(--litoral-coral) 89%);
  --gradient-hero: linear-gradient(160deg, #6a1fc4 0%, #4b0f8f 55%, #2e0a5c 100%);

  /* Neutros */
  --white: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f5f3fb;
  --border: #dcd8ec;
  --text: #2b2523;
  --text-muted: #5f5a6e;

  /* Estados */
  --success: #1e8e4f;
  --success-soft: #e7f6ee;
  --error: #b42318;
  --error-soft: #fdecea;

  --radius-card: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 24px 60px rgba(30, 6, 70, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--litoral-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Franja de colores (patrón superior del sitio) ---------- */
.brand-stripe {
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--litoral-blue) 0 20%,
    var(--litoral-magenta) 20% 40%,
    var(--litoral-yellow) 40% 60%,
    var(--litoral-coral) 60% 80%,
    var(--litoral-violet) 80% 100%
  );
}

/* ---------- Encabezado ---------- */
.site-header {
  background: var(--litoral-purple);
  padding: 14px 24px;
  display: flex;
  justify-content: center;
}
.site-header__logo img {
  display: block;
  height: 40px;
  width: auto;
}

/* ---------- Zona principal (estilo banner del sitio) ---------- */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  overflow: hidden;
  background: var(--gradient-hero);
}

/* Formas decorativas */
.hero__shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(200deg, #d61cff 0%, #8a12d6 100%);
  opacity: 0.55;
  pointer-events: none;
}
.hero__shape--a {
  width: 520px;
  height: 520px;
  top: -260px;
  left: -180px;
}
.hero__shape--b {
  width: 620px;
  height: 420px;
  bottom: -240px;
  right: -200px;
  border-radius: 60% 40% 0 0;
}
.hero__spiral {
  position: absolute;
  left: -70px;
  top: 45%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    transparent 0 10px,
    rgba(214, 28, 255, 0.55) 10px 18px
  );
  pointer-events: none;
}

/* ---------- Tarjeta ---------- */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 40px 40px 36px;
}
.card--wide {
  max-width: 640px;
}
.card--center {
  text-align: center;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--litoral-violet);
}
.card__title {
  margin: 0;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--litoral-purple);
}
.card__title strong {
  color: var(--litoral-magenta);
}
.card__lead {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Formulario ---------- */
.form {
  margin-top: 28px;
  display: grid;
  gap: 20px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-weight: 600;
  font-size: 14px;
  color: var(--litoral-purple-dark);
}
.field input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface-soft);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.field input[type="text"]::placeholder {
  color: #9a94ad;
}
.field input[type="text"]:hover {
  border-color: #c3bde0;
}
.field input[type="text"]:focus {
  outline: none;
  background: var(--white);
  border-color: var(--litoral-violet);
  box-shadow: 0 0 0 4px rgba(167, 6, 241, 0.15);
}
.field__help {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 20px;
}
.field__error {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--error);
  padding-left: 20px;
}
.field--error input[type="text"] {
  border-color: var(--error);
}
.field--captcha {
  justify-content: center;
}

@media (max-width: 400px) {
  .g-recaptcha {
    transform: scale(0.88);
    transform-origin: center;
  }
}

/* ---------- Alertas ---------- */
.alert {
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  background: var(--error-soft);
  color: var(--error);
  border-left: 4px solid var(--error);
  text-align: left;
}
.alert p {
  margin: 0;
}

/* ---------- Botones ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 32px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  background: var(--gradient-magenta);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(237, 14, 145, 0.3);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(237, 14, 145, 0.4);
}
.button:focus-visible {
  outline: 3px solid var(--litoral-yellow);
  outline-offset: 3px;
}
.button:disabled {
  cursor: progress;
  opacity: 0.75;
  transform: none;
}
.button--block {
  width: 100%;
}
.button--secondary {
  background: var(--gradient-blue);
  box-shadow: 0 8px 20px rgba(0, 38, 247, 0.25);
}
.button--secondary:hover {
  box-shadow: 0 12px 26px rgba(0, 38, 247, 0.35);
}

/* ---------- Resultado ---------- */
.status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  text-align: left;
}
.status--ok {
  background: var(--success-soft);
  color: var(--success);
}
.status--warn {
  background: var(--error-soft);
  color: var(--error);
}
.status__icon {
  flex: none;
  width: 44px;
  height: 44px;
}
.status__title {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
}
.status__text {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.details {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}
.details + .details {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.details__item {
  min-width: 0;
}
.details__item--full {
  grid-column: 1 / -1;
}
.details dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--litoral-violet);
}
.details dd {
  margin: 2px 0 0;
  font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere;
}
.details__item--full dd {
  font-size: 18px;
  font-weight: 600;
  color: var(--litoral-purple-dark);
}

.actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* ---------- Páginas de error ---------- */
.error-code {
  margin: 0;
  font-size: clamp(72px, 18vw, 120px);
  line-height: 1;
  font-weight: 700;
  background: var(--gradient-magenta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Pie de página ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  padding: 16px 24px;
  font-size: 13px;
  color: #c9c7b3;
  background: var(--litoral-dark);
  text-align: center;
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  color: var(--white);
  font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero {
    padding: 24px 16px;
    align-items: flex-start;
  }
  .card {
    padding: 28px 20px 24px;
    border-radius: 20px;
  }
  .details {
    grid-template-columns: 1fr;
  }
  .hero__spiral {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
