/* ═══════════════════════════════════════════════════════════════════════════
   HCT — Portal administrativo · Hoja de estilos
   Marca Hayim School (regla 60-30-10):
     60% Blanco / Crema  (#FFFFFF · #f0f4fa)
     30% Azul institucional (#012f65)
     10% Rojo acento     (#c72629)
   Fuentes: Playfair Display (títulos) · Inter (cuerpo)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --navy:        #012f65;
  --navy-light:  #013a7a;
  --navy-dark:   #011e42;
  --red:         #c72629;
  --red-light:   #d94446;
  --red-pale:    #fdeaea;
  --cream:       #f0f4fa;
  --white:       #ffffff;
  --text:        #0d1b2e;
  --text-mid:    #3d5170;
  --text-light:  #7a8fa8;
  --border:      #cdd8e8;
  --border-soft: #e2e9f3;
  --ok:          #166534;
  --ok-bg:       #f0fdf4;
  --warn:        #92400e;
  --warn-bg:     #fffbeb;

  --shadow-sm: 0 1px 3px rgba(1,47,101,.08);
  --shadow-md: 0 6px 20px rgba(1,47,101,.10);
  --shadow-lg: 0 16px 44px rgba(1,47,101,.16);
  --radius:    8px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --transition: 200ms ease;
  --max-w: 1160px;
  /* Azul de acento para el refresco moderno del panel (junto al rojo). */
  --accent-blue: #2f6fd1;
}

/* ─── Reset / base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  /* Fondo del panel con aurora institucional (como el index, pero estático para
     no distraer en tablas): glows azul + rojo claramente visibles en el área de
     contenido. La portada y el login lo sobrescriben a blanco. */
  background:
    radial-gradient(50vw 46vw at 100% 8%,  rgba(199,38,41,.16),  transparent 56%),
    radial-gradient(58vw 56vw at -8% 40%,  rgba(47,111,209,.22), transparent 58%),
    radial-gradient(50vw 44vw at 66% 120%, rgba(199,38,41,.13),  transparent 60%),
    linear-gradient(180deg, #edf2fb 0%, #e4ebf6 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; color: var(--navy); }
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-light); }

/* ─── Barra superior (header + navegación) ───────────────────────────────── */
/* Header y subnav van juntos en un solo contenedor sticky. Antes el subnav
   tenía su propio `top` en píxeles, que había que mantener igual a la altura
   del header: si el header crecía (fuente distinta, nombre largo, otro rol) el
   subnav se metía por debajo al hacer scroll. Con el contenedor no hay número
   mágico que mantener. */
.hct-topbar { position: sticky; top: 0; z-index: 100; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.hct-header {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(120deg, var(--navy-dark), var(--navy) 70%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
/* Fina línea de acento (azul → rojo institucional) al pie del header. */
.hct-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--red));
}
.hct-header__brand { display: flex; align-items: center; gap: 12px; }
.hct-header__mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--white); border-radius: 10px; padding: 6px;
  box-shadow: var(--shadow-sm);
}
.hct-header__mark img { width: 100%; height: 100%; object-fit: contain; }
.hct-header__name { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 800; color: var(--white); }
.hct-header__name small { display: block; font-family: 'Inter', sans-serif; font-weight: 400; font-size: .68rem; letter-spacing: .04em; opacity: .72; text-transform: uppercase; }
.hct-header__nav { display: flex; align-items: center; gap: 18px; font-size: .9rem; }
.hct-header__user { opacity: .85; }
.hct-header__nav a { color: var(--white); opacity: .85; transition: opacity var(--transition); }
.hct-header__nav a:hover { opacity: 1; color: var(--white); text-decoration: underline; }

/* ─── Navegación de secciones ────────────────────────────────────────────── */
/* Barra secundaria bajo el header. Es sticky junto con él para que cambiar de
   sección no obligue a subir hasta arriba en listados largos. En móvil se
   desplaza horizontalmente en vez de romper a varias líneas. */
.hct-subnav {
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.hct-subnav__list {
  display: flex; align-items: stretch; gap: 4px;
  list-style: none;
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(8px, 4vw, 40px);
  overflow-x: auto;
  scrollbar-width: thin;
}
.hct-subnav__link {
  display: flex; align-items: center;
  padding: 13px 16px;
  font-size: .88rem; font-weight: 600; white-space: nowrap;
  color: var(--text-mid);
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.hct-subnav__link:hover { color: var(--navy); background: var(--cream); }
.hct-subnav__link.is-active { color: var(--navy); border-bottom-color: var(--red); }

@media (max-width: 640px) {
  /* En pantallas chicas el header se apila y la barra completa comería
     demasiado alto útil, así que deja de ser fija. */
  .hct-topbar { position: static; }
}

/* ─── Layout principal ───────────────────────────────────────────────────── */
.hct-main { max-width: var(--max-w); margin: 0 auto; padding: clamp(20px, 4vw, 40px); }

/* ─── Dashboard ──────────────────────────────────────────────────────────── */
.hct-dashboard h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
/* Nombre con el degradado azul↔rojo que fluye (mismo detalle de la portada). */
.hct-name-accent {
  background: linear-gradient(100deg, var(--accent-blue), var(--red) 55%, var(--accent-blue));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: hctpFlow 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .hct-name-accent { animation: none; } }
.hct-dashboard__subtitle { color: var(--text-mid); margin: 4px 0 24px; }
.hct-cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 8px;
}
.hct-card {
  display: block; position: relative;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: 0 2px 10px rgba(1,47,101,.05);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.hct-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--accent-blue), var(--red));
  opacity: 0; transition: opacity var(--transition);
}
a.hct-card { cursor: pointer; }
a.hct-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(1,47,101,.14); border-color: var(--border); }
a.hct-card:hover::before { opacity: 1; }
.hct-card h2 { font-size: 1.15rem; margin-bottom: 4px; }
.hct-card p { font-size: .82rem; color: var(--text-light); }
a.hct-card p { color: var(--navy); font-weight: 600; }
.hct-card__icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; color: var(--navy);
  background: linear-gradient(135deg, rgba(47,111,209,.12), rgba(199,38,41,.08));
  margin-bottom: 14px; transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.hct-card__icon svg { width: 22px; height: 22px; }
a.hct-card:hover .hct-card__icon { background: linear-gradient(135deg, var(--accent-blue), var(--red)); color: var(--white); box-shadow: 0 6px 16px rgba(47,111,209,.3); }

/* Tarjeta de una sección que aún no existe: se ve claramente inerte para que
   nadie la intente clicar, pero sigue legible (no un gris ilegible). */
.hct-card--pendiente { background: transparent; border-style: dashed; box-shadow: none; }
.hct-card--pendiente h2 { color: var(--text-mid); }
.hct-card--pendiente .hct-card__icon { background: transparent; color: var(--text-light); box-shadow: inset 0 0 0 1px var(--border-soft); }

/* Encabezado que agrupa un bloque de tarjetas. */
.hct-section-title {
  font-family: 'Inter', sans-serif;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-light);
  margin: 30px 0 12px;
}
.hct-section-title:first-of-type { margin-top: 18px; }

/* ─── Panel (páginas de gestión) ─────────────────────────────────────────── */
.hct-panel {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 14px rgba(1,47,101,.06);
  padding: clamp(18px, 3vw, 28px);
}
.hct-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.hct-panel__head h1 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.hct-panel__hint { font-size: .85rem; color: var(--text-mid); margin: 2px 0 18px; }
/* Intro de sección: explica de qué va la página para quien entra por primera vez. */
.hct-panel__intro { font-size: .92rem; color: var(--text-mid); line-height: 1.55; margin: 2px 0 20px; max-width: 70ch; }
.hct-panel__intro strong { color: var(--text-dark, var(--text-mid)); font-weight: 600; }

/* ─── Filtros ────────────────────────────────────────────────────────────── */
.hct-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; }
.hct-filters input, .hct-filters select { max-width: 260px; }

/* ─── Tablas ─────────────────────────────────────────────────────────────── */
.hct-table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: 0 2px 14px rgba(1,47,101,.06); background: var(--white); }
.hct-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--white); }
.hct-table th {
  text-align: left; padding: 13px 14px;
  background: linear-gradient(180deg, var(--navy), var(--navy-dark)); color: var(--white);
  font-weight: 600; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap;
}
.hct-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); color: var(--text); }
.hct-table tbody tr { transition: background var(--transition); }
.hct-table tbody tr:hover { background: rgba(47,111,209,.06); }
.hct-table tbody tr:last-child td { border-bottom: none; }
.hct-table__empty { text-align: center; color: var(--text-light); padding: 28px; }
.hct-table__count { font-size: .8rem; color: var(--text-light); margin-top: 12px; }
.hct-table__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.hct-pager { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--text-mid); }
.hct-table__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hct-table__actions form { display: inline; }

/* ─── Botones ────────────────────────────────────────────────────────────── */
.hct-btn, button, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: .9rem; font-weight: 600;
  padding: 10px 18px; min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white); color: var(--navy);
  cursor: pointer; transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.hct-btn:hover, button:hover { background: var(--cream); border-color: var(--navy); }
.hct-btn--primary, button[type="submit"] {
  background: var(--navy); color: var(--white); border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(1,47,101,.16);
}
.hct-btn--primary:hover, button[type="submit"]:hover { background: var(--navy-light); border-color: var(--navy-light); color: var(--white); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(1,47,101,.24); }
.hct-btn--danger { background: var(--red); color: var(--white); border-color: var(--red); box-shadow: 0 4px 12px rgba(199,38,41,.18); }
.hct-btn--danger:hover { background: var(--red-light); border-color: var(--red-light); color: var(--white); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(199,38,41,.28); }
.hct-link-btn { background: none; border: none; color: var(--navy); text-decoration: underline; padding: 4px 6px; min-height: auto; }
.hct-link-btn:hover { color: var(--red); background: none; }
button:disabled, .hct-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ─── Badges ─────────────────────────────────────────────────────────────── */
.hct-badge {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  background: var(--cream); color: var(--text-mid); border: 1px solid var(--border-soft);
}
.hct-badge--publicado, .hct-badge--activo, .hct-badge--completado, .hct-badge--disponible,
.hct-badge--abierta { background: var(--ok-bg); color: var(--ok); border-color: #bbf7d0; }
.hct-badge--borrador, .hct-badge--pendiente, .hct-badge--en_progreso,
.hct-badge--programada { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }
.hct-badge--archivado, .hct-badge--inactivo, .hct-badge--cancelado, .hct-badge--abandonado,
.hct-badge--cerrada { background: var(--red-pale); color: var(--red); border-color: #f7c6c6; }
/* Nivel parcial (intento cancelado): ámbar, para distinguirlo del completado. */
.hct-badge--parcial { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }
/* sin_ventana usa el estilo neutro por defecto de .hct-badge */

/* ─── Formularios ────────────────────────────────────────────────────────── */
label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font-family: inherit; font-size: .92rem; color: var(--text);
  padding: 10px 12px; min-height: 42px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(47,111,209,.15);
}
.hct-form { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.hct-form--grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: none; }
.hct-form--inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; max-width: none; }
.hct-option-row { display: flex; gap: 10px; align-items: center; }
.hct-option-row input { width: auto; min-height: auto; }
.hct-section-list { display: grid; gap: 10px; margin: 8px 0; }
.hct-detail-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--text-mid); font-size: .88rem; margin: 6px 0 20px; }
.hct-temp-password {
  font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--navy-dark); color: #e8f0fc; padding: 4px 10px; border-radius: var(--radius-sm);
  letter-spacing: .06em; font-weight: 600; display: inline-block;
}

/* ─── Alertas ────────────────────────────────────────────────────────────── */
.hct-alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .9rem; border: 1px solid; margin-bottom: 14px; }
.hct-alert--info    { background: #eef4ff; color: var(--navy); border-color: #cdddf7; }
.hct-alert--success { background: var(--ok-bg); color: var(--ok); border-color: #bbf7d0; }
.hct-alert--error   { background: var(--red-pale); color: var(--red); border-color: #f7c6c6; }

/* ─── Login ──────────────────────────────────────────────────────────────── */
.hct-login {
  max-width: 400px; margin: clamp(24px, 8vh, 80px) auto;
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: clamp(28px, 5vw, 40px);
}
.hct-login h1 { font-size: 1.7rem; margin-bottom: 4px; }
.hct-login__subtitle { color: var(--text-mid); font-size: .9rem; margin-bottom: 22px; }
.hct-login .hct-form { max-width: none; }

/* ─── Hero (landing pública) ─────────────────────────────────────────────── */
.hct-hero { text-align: center; padding: clamp(40px, 10vh, 96px) 20px; max-width: 720px; margin: 0 auto; }
.hct-hero h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 14px; }
.hct-hero p { color: var(--text-mid); font-size: 1.05rem; margin-bottom: 28px; }
.hct-hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Acciones de rescate del panel en vivo: dos formularios lado a lado dentro
   de la celda, compactos para no ensanchar la tabla. */
.hct-table__actions form { display: flex; gap: 6px; align-items: center; }
.hct-table__actions .hct-btn { padding: 6px 12px; min-height: 34px; font-size: .82rem; }
.hct-select--mini { width: auto; min-height: 34px; padding: 4px 8px; font-size: .82rem; }

/* ─── Guía de flujo del dashboard ────────────────────────────────────────── */
.hct-guia-flujo {
  position: relative; overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px 26px 22px 28px;
  margin: 18px 0 8px;
  box-shadow: 0 2px 10px rgba(1,47,101,.05);
}
.hct-guia-flujo::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--accent-blue), var(--red));
}
.hct-guia-flujo__titulo {
  font-family: 'Inter', sans-serif;
  font-size: .95rem; font-weight: 700; color: var(--navy);
  margin-bottom: 16px;
}
.hct-flujo {
  list-style: none;
  display: grid; gap: 14px 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.hct-flujo li { display: flex; gap: 12px; align-items: flex-start; }
.hct-flujo__n {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  color: var(--white);
  font-size: .82rem; font-weight: 700;
  box-shadow: 0 3px 8px rgba(1,47,101,.22);
}
.hct-flujo li div { font-size: .86rem; color: var(--text-mid); line-height: 1.4; }
.hct-flujo li strong { color: var(--text); }
.hct-flujo a { font-weight: 600; text-decoration: underline; }

/* ─── Reportes (admin/reportes.php) ──────────────────────────────────────── */

/* Pestañas de tipo de reporte. */
.hct-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border-soft); margin: 18px 0 22px; }
.hct-tab {
  padding: 10px 16px; font-size: .88rem; font-weight: 600;
  color: var(--text-mid); border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.hct-tab:hover { color: var(--navy); background: var(--cream); }
.hct-tab.is-active { color: var(--navy); border-bottom-color: var(--red); }

/* Tarjetas de cifra grande. */
.hct-kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 6px; }
.hct-kpi {
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(1,47,101,.05);
}
.hct-kpi__valor {
  display: block; font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.1;
}
.hct-kpi__etiqueta { display: block; font-size: .78rem; color: var(--text-mid); margin-top: 2px; }

/* Distribución de niveles. Barras en CSS puro: no vale la pena una librería
   de gráficas (y la CSP `script-src 'self'` impide traerla de un CDN). */
.hct-barras { display: grid; gap: 8px; }
.hct-barra { display: grid; grid-template-columns: 34px 1fr 84px; align-items: center; gap: 12px; }
.hct-barra__nivel { font-weight: 700; font-size: .85rem; color: var(--navy); }
.hct-barra__pista { background: var(--cream); border-radius: var(--radius-pill); height: 22px; overflow: hidden; }
.hct-barra__relleno {
  height: 100%; background: linear-gradient(90deg, var(--navy), var(--accent-blue)); border-radius: var(--radius-pill);
  min-width: 2px; transition: width var(--transition);
}
.hct-barra__valor { font-size: .85rem; font-weight: 600; color: var(--text); text-align: right; }
.hct-barra__valor small { color: var(--text-light); font-weight: 400; margin-left: 4px; }

/* Diagnóstico de calidad de pregunta. Se apoya en .hct-badge. */
.hct-badge--muy_facil   { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }
.hct-badge--muy_dificil { background: var(--red-pale); color: var(--red); border-color: #f7c6c6; }
.hct-badge--correcta    { background: var(--ok-bg); color: var(--ok); border-color: #bbf7d0; }

@media (max-width: 640px) {
  .hct-barra { grid-template-columns: 28px 1fr 70px; gap: 8px; }
}

/* ─── Auditoría (admin/auditoria.php) ────────────────────────────────────── */
.hct-audit__id { color: var(--text-light); font-size: .8rem; }
/* Los valores antes/después pueden ser largos; se recortan para que la fila no
   se desborde, y el valor completo queda en el title del navegador. */
.hct-audit__valor {
  max-width: 220px; font-size: .84rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hct-badge--create { background: var(--ok-bg); color: var(--ok); border-color: #bbf7d0; }
.hct-badge--update { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }
.hct-badge--delete { background: var(--red-pale); color: var(--red); border-color: #f7c6c6; }
code {
  font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85em; background: var(--cream); padding: 1px 6px;
  border-radius: 4px; color: var(--navy);
}

/* ─── Guía del alumno (student/index.php) ────────────────────────────────── */
.hct-guia { max-width: 700px; margin: 0 auto; }
.hct-guia h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.hct-guia__intro { color: var(--text-mid); margin: 8px 0 28px; }
.hct-guia__nota { color: var(--text-mid); font-size: .92em; margin: 8px 0 0; }

.hct-pasos { list-style: none; counter-reset: hct-paso; margin-bottom: 26px; }
.hct-paso {
  counter-increment: hct-paso;
  position: relative;
  padding: 0 0 26px 56px;
}
/* Línea que conecta los pasos; el último no la lleva. */
.hct-paso::after {
  content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px;
  width: 2px; background: var(--border-soft);
}
.hct-paso:last-child { padding-bottom: 0; }
.hct-paso:last-child::after { display: none; }
.hct-paso::before {
  content: counter(hct-paso);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-size: .95rem; font-weight: 700;
}
.hct-paso h2 { font-size: 1.1rem; margin: 5px 0 6px; }
.hct-paso p { color: var(--text-mid); font-size: .93rem; margin-bottom: 10px; }
.hct-paso p:last-child { margin-bottom: 0; }

/* ─── Panel de desempeño en vivo ─────────────────────────────────────────── */
.hct-live-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--text-mid);
  padding: 6px 14px; background: var(--cream);
  border: 1px solid var(--border-soft); border-radius: var(--radius-pill); white-space: nowrap;
}
.hct-live-status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 0 rgba(22,101,52,.5);
  animation: hct-pulse 1.8s infinite;
}
@keyframes hct-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,101,52,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(22,101,52,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,101,52,0); }
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.hct-footer { text-align: center; color: var(--text-light); font-size: .82rem; padding: 28px 20px; margin-top: 20px; }

/* ─── Accesibilidad ──────────────────────────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .hct-card:focus-visible {
  outline: 3px solid var(--red); outline-offset: 2px; border-radius: var(--radius-sm);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hct-header { flex-direction: column; align-items: flex-start; }
  .hct-header__nav { width: 100%; justify-content: space-between; }
  .hct-filters input, .hct-filters select { max-width: none; width: 100%; }
  .hct-form--inline { flex-direction: column; align-items: stretch; }
}

/* ── Validación pública de certificados (public/validar.php) ── */
.hct-validar { max-width: 660px; margin: 0 auto; }
.hct-validar > h1 { font-size: clamp(1.5rem, 4vw, 2rem); }

.hct-cert {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-top: 5px solid var(--ok);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: clamp(22px, 4vw, 34px);
    text-align: center;
    margin-top: 16px;
}
.hct-cert--invalido { border-top-color: var(--red); }

.hct-cert__estado {
    display: inline-block;
    font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 5px 14px; border-radius: var(--radius-pill);
    background: var(--ok-bg); color: var(--ok); border: 1px solid #bbf7d0;
}
.hct-cert__estado--malo { background: var(--red-pale); color: var(--red); border-color: #f7c6c6; }

.hct-cert__nivel {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3rem, 12vw, 4.5rem); font-weight: 800;
    color: var(--navy); line-height: 1.05; margin: 14px 0 2px;
}
.hct-cert__nombre { font-size: 1.15rem; color: var(--text); margin-bottom: 18px; }
.hct-cert--invalido .hct-cert__nombre { color: var(--text-mid); font-size: 1rem; margin-top: 16px; }

.hct-cert__datos {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
    border-top: 1px solid var(--border-soft); padding-top: 16px; margin-top: 4px;
}
.hct-cert__datos dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-light); }
.hct-cert__datos dd { font-size: .95rem; font-weight: 600; color: var(--text); }

.hct-cert__subtitulo {
    font-size: 1rem; margin: 24px 0 8px; text-align: left;
    padding-top: 18px; border-top: 1px solid var(--border-soft);
}
.hct-cert .hct-table-wrap { text-align: left; }

/* ─── Evaluación humana (Writing / Speaking) ──────────────────────────────── */
/* Texto del alumno y consigna: caja legible que respeta saltos de línea. */
.hct-respuesta {
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 16px 18px;
  color: var(--text); line-height: 1.6; font-size: .95rem;
  white-space: normal; margin-bottom: 8px;
}
.hct-respuesta--consigna { background: var(--cream); color: var(--text-mid); }
.hct-audio { width: 100%; max-width: 520px; margin: 4px 0 8px; }

.hct-rubrica-bandas {
  list-style: none; display: grid; gap: 6px; margin: 4px 0 16px;
  font-size: .86rem; color: var(--text-mid);
}
.hct-rubrica-bandas li { padding-left: 2px; }

/* Un criterio de la rúbrica: nombre + descriptor + selector de banda. */
.hct-criterio {
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 12px 14px; background: var(--white);
}
.hct-criterio__desc { font-size: .82rem; color: var(--text-light); margin: 2px 0 8px; font-weight: 400; }
.hct-criterio select { max-width: 140px; }

/* Botón-enlace de acción destructiva (Eliminar). Rojo sobrio, sin gritar. */
.hct-link-btn--danger { color: #b42318; }
.hct-link-btn--danger:hover { color: #912018; text-decoration: underline; }

/* ─── Mini-tabla de destrezas en el panel en vivo ────────────────────────── */
/* Cada destreza del examen como una casilla: nombre arriba, nivel abajo (o "—"
   si el alumno aún no llega a esa sección). La que está en curso se resalta en
   navy; las ya confirmadas van en verde. */
.hct-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.hct-skill {
  display: flex; flex-direction: column; align-items: center; min-width: 62px;
  padding: 4px 8px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  background: var(--white); line-height: 1.2;
}
.hct-skill__name { font-size: .68rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .3px; }
.hct-skill__lvl  { font-size: .95rem; font-weight: 700; color: var(--text); }
.hct-skill--activa { border-color: var(--navy); background: #eef4fc; }
.hct-skill--activa .hct-skill__name { color: var(--navy); }
.hct-skill--ok { border-color: #bbe7c6; background: var(--ok-bg); }
.hct-skill--ok .hct-skill__lvl { color: var(--ok); }

/* ═══════════════════════════════════════════════════════════════════════════
   PORTADA CINEMATOGRÁFICA HCT (.hct-landing-page) — TEMA CLARO
   Aurora viva sobre FONDO BLANCO (100% CSS, sin JS por la CSP) en paleta
   institucional Hayim: AZUL institucional + ROJO institucional, con blur y un
   degradado del acento que FLUYE (azul↔rojo). TODO scopeado bajo
   .hct-landing-page para NO tocar el panel administrativo.
   ═══════════════════════════════════════════════════════════════════════════ */
.hct-landing-page {
  --hctp-bg:     #ffffff;
  --hctp-navy:   #012f65;
  --hctp-blue:   #2f6fd1;
  --hctp-red:    #c72629;
  --hctp-red-lt: #e0555a;
  --hctp-ink:    #0d1b2e;
  --hctp-muted:  #5b6b82;
  --hctp-line:   rgba(1,47,101,.12);
  --hctp-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  background: var(--hctp-bg);
  color: var(--hctp-ink);
  overflow-x: hidden;
}
.hct-landing-page .hct-main { max-width: none; margin: 0; padding: 0; }

.hctp {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 118px 24px 72px;
  text-align: center;
}

/* ─── Aurora clara (azul + rojo institucional, blend multiply sobre blanco) ── */
.hctp-aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--hctp-bg); }
.hctp-blade {
  position: absolute; border-radius: 50%;
  filter: blur(72px); mix-blend-mode: multiply; will-change: transform, opacity;
}
.hctp-blade--1 {
  width: 80vw; height: 32vw; left: -16vw; top: -4vh;
  background: radial-gradient(closest-side, rgba(47,111,209,.5), rgba(1,47,101,.22) 46%, rgba(255,255,255,0) 80%);
  transform: rotate(-20deg);
  animation: hctpBlade1 16s ease-in-out infinite;
}
.hctp-blade--2 {
  width: 72vw; height: 28vw; right: -18vw; top: 20vh;
  background: radial-gradient(closest-side, rgba(199,38,41,.44), rgba(224,85,90,.20) 48%, rgba(255,255,255,0) 82%);
  transform: rotate(-14deg);
  animation: hctpBlade2 20s ease-in-out infinite;
}
.hctp-blade--3 {
  width: 66vw; height: 26vw; left: 8vw; bottom: -8vh;
  background: radial-gradient(closest-side, rgba(47,111,209,.40), rgba(199,38,41,.18) 52%, rgba(255,255,255,0) 84%);
  transform: rotate(-24deg);
  animation: hctpBlade3 18s ease-in-out infinite;
}
/* 0% = floración plena (para que un frame estático luzca rico) */
@keyframes hctpBlade1 {
  0%,100% { transform: translate3d(0,0,0) rotate(-20deg) scale(1.12); opacity: .9; }
  50%     { transform: translate3d(4%,3%,0) rotate(-12deg) scale(1);  opacity: .6; }
}
@keyframes hctpBlade2 {
  0%,100% { transform: translate3d(0,0,0) rotate(-14deg) scale(1.15); opacity: .85; }
  50%     { transform: translate3d(-4%,3%,0) rotate(-22deg) scale(1);  opacity: .55; }
}
@keyframes hctpBlade3 {
  0%,100% { transform: translate3d(0,0,0) rotate(-24deg) scale(1.1);  opacity: .8; }
  50%     { transform: translate3d(5%,-3%,0) rotate(-16deg) scale(.98); opacity: .5; }
}
.hctp-grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .035; mix-blend-mode: multiply;
}
/* Vignette que funde los bordes hacia el blanco (mantiene el centro legible) */
.hctp-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 92% at 50% 22%, rgba(255,255,255,0) 46%, rgba(255,255,255,.9) 100%);
}

/* ─── Nav flotante (glass claro) ─────────────────────────────────────────── */
.hctp-nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 20;
  display: flex; align-items: center; gap: 26px;
  width: min(1080px, calc(100% - 32px));
  padding: 9px 10px 9px 16px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hctp-line); border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 30px rgba(1,47,101,.12);
}
.hctp-nav__brand { display: flex; align-items: center; gap: 10px; color: var(--hctp-navy); font-weight: 700; font-size: .92rem; white-space: nowrap; }
.hctp-nav__brand:hover { color: var(--hctp-navy); }
.hctp-nav__logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; padding: 4px; box-shadow: 0 0 0 1px var(--hctp-line), 0 4px 14px rgba(47,111,209,.25); }
.hctp-nav__logo img { width: 100%; height: 100%; object-fit: contain; }
.hctp-nav__links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.hctp-nav__links a { color: var(--hctp-muted); font-size: .86rem; font-weight: 500; transition: color .2s; }
.hctp-nav__links a:hover { color: var(--hctp-navy); }
.hctp-nav__cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px;
  font-size: .84rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--hctp-red), var(--hctp-red-lt));
  box-shadow: 0 6px 16px rgba(199,38,41,.32), 0 1px 0 rgba(255,255,255,.3) inset;
  transition: transform .2s, box-shadow .2s;
}
.hctp-nav__cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(199,38,41,.45); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hctp-hero { position: relative; z-index: 2; max-width: 760px; display: flex; flex-direction: column; align-items: center; }
.hctp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 26px;
  font-size: .76rem; font-weight: 600; letter-spacing: .02em; color: var(--hctp-navy);
  background: rgba(255,255,255,.7); border: 1px solid var(--hctp-line); border-radius: 999px;
  box-shadow: 0 2px 8px rgba(1,47,101,.06);
}
.hctp-eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hctp-red); box-shadow: 0 0 10px rgba(199,38,41,.6); }
.hctp-title {
  font-family: 'Inter', sans-serif !important;
  font-size: clamp(2.6rem, 6.4vw, 4.4rem) !important;
  font-weight: 800; line-height: 1.05; letter-spacing: -.02em;
  color: var(--hctp-navy); margin: 0 0 20px;
}
/* Degradado que FLUYE azul↔rojo (efecto "tipo RGB" en el texto) */
.hctp-accent {
  background: linear-gradient(100deg, var(--hctp-blue), var(--hctp-red) 50%, var(--hctp-blue));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: hctpFlow 6s ease-in-out infinite;
}
@keyframes hctpFlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hctp-sub { max-width: 620px; margin: 0 auto 34px; font-size: 1.06rem; line-height: 1.65; color: var(--hctp-muted); }
.hctp-sub strong { color: var(--hctp-navy); font-weight: 700; }

/* ─── Botones ────────────────────────────────────────────────────────────── */
.hctp-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hctp-key {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  color: var(--hctp-navy);
  background: rgba(255,255,255,.8);
  border: 1px solid var(--hctp-line);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 8px 20px rgba(1,47,101,.1);
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.hctp-key svg { opacity: .8; }
.hctp-key:hover { color: var(--hctp-navy); transform: translateY(-2px); background: #fff; border-color: rgba(1,47,101,.22); box-shadow: 0 12px 26px rgba(1,47,101,.16); }
.hctp-key--primary {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--hctp-red), var(--hctp-red-lt));
  box-shadow: 0 0 0 1px rgba(199,38,41,.3), 0 10px 26px rgba(199,38,41,.38), 0 1px 0 rgba(255,255,255,.35) inset;
}
.hctp-key--primary svg { opacity: 1; }
.hctp-key--primary:hover { color: #fff; background: linear-gradient(135deg, #d92c2f, #e86a6e); box-shadow: 0 0 0 1px rgba(199,38,41,.45), 0 16px 36px rgba(199,38,41,.5), 0 1px 0 rgba(255,255,255,.4) inset; }
.hctp-caption { margin-top: 20px; font-size: .82rem; color: var(--hctp-muted); font-family: var(--hctp-mono); letter-spacing: .01em; }

/* ─── Panel glass claro: validación de certificado ───────────────────────── */
.hctp-glass {
  position: relative; z-index: 2;
  width: min(560px, 100%); margin-top: 52px;
  background: rgba(255,255,255,.75); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--hctp-line); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(1,47,101,.16), 0 1px 0 rgba(255,255,255,.8) inset;
  overflow: hidden; text-align: left;
}
.hctp-glass__bar { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--hctp-line); }
.hctp-glass__search { color: var(--hctp-muted); flex-shrink: 0; }
.hctp-glass__query { font-family: var(--hctp-mono); font-size: .92rem; color: var(--hctp-navy); letter-spacing: .02em; }
.hctp-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--hctp-red); box-shadow: 0 0 8px rgba(199,38,41,.6); animation: hctpCaret 1.05s steps(1) infinite; }
@keyframes hctpCaret { 50% { opacity: 0; } }
.hctp-glass__mode { margin-left: auto; padding: 4px 11px; font-size: .72rem; font-weight: 600; color: var(--hctp-navy); background: rgba(1,47,101,.06); border: 1px solid var(--hctp-line); border-radius: 999px; }
.hctp-glass__list { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.hctp-glass__row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; }
.hctp-glass__row.is-active { background: linear-gradient(90deg, rgba(47,111,209,.14), rgba(199,38,41,.08)); box-shadow: 0 0 0 1px rgba(47,111,209,.2) inset; }
.hctp-glass__ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--hctp-navy); background: rgba(1,47,101,.05); border: 1px solid var(--hctp-line); flex-shrink: 0; }
.hctp-glass__ico--ok { color: #fff; background: linear-gradient(135deg, var(--hctp-blue), var(--hctp-red)); border-color: transparent; }
.hctp-glass__label { font-size: .9rem; font-weight: 500; color: var(--hctp-ink); }
.hctp-glass__val { margin-left: auto; font-family: var(--hctp-mono); font-size: .82rem; color: var(--hctp-muted); }
.hctp-glass__chip { margin-left: auto; padding: 4px 10px; font-family: var(--hctp-mono); font-size: .72rem; font-weight: 600; color: var(--hctp-navy); background: rgba(1,47,101,.06); border: 1px solid var(--hctp-line); border-radius: 6px; }
.hctp-glass__chip--ok { color: #fff; background: linear-gradient(135deg, var(--hctp-red), var(--hctp-red-lt)); border-color: transparent; box-shadow: 0 2px 10px rgba(199,38,41,.3); }
.hctp-glass__foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--hctp-line); font-family: var(--hctp-mono); font-size: .72rem; color: var(--hctp-muted); }
.hctp-glass__brand { font-weight: 700; letter-spacing: .12em; color: var(--hctp-navy); }

/* ─── Ghost pill + badge ─────────────────────────────────────────────────── */
.hctp-ghost {
  position: relative; z-index: 2; margin-top: 30px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 999px;
  font-size: .86rem; color: var(--hctp-navy); background: rgba(255,255,255,.6); border: 1px solid var(--hctp-line);
  transition: color .2s, border-color .2s, background .2s;
}
.hctp-ghost:hover { color: var(--hctp-navy); border-color: rgba(1,47,101,.28); background: #fff; }
.hctp-badge {
  position: fixed; right: 22px; bottom: 22px; z-index: 20;
  display: flex; align-items: center; gap: 11px;
  padding: 11px 15px; max-width: 260px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hctp-line); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(1,47,101,.14);
  text-align: left;
}
.hctp-badge__mark { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; color: #fff; background: linear-gradient(135deg, var(--hctp-blue), var(--hctp-red)); box-shadow: 0 4px 14px rgba(47,111,209,.3); }
.hctp-badge__text { display: flex; flex-direction: column; font-size: .74rem; line-height: 1.35; color: var(--hctp-muted); }
.hctp-badge__text strong { color: var(--hctp-navy); font-size: .82rem; font-weight: 700; }

/* ─── Footer sobre el tema claro ─────────────────────────────────────────── */
.hct-landing-page .hct-footer { position: relative; z-index: 2; color: var(--hctp-muted); background: transparent; margin-top: 40px; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .hctp { padding: 96px 18px 60px; }
  .hctp-nav { gap: 12px; padding: 8px 8px 8px 12px; }
  .hctp-nav__links { display: none; }
  .hctp-nav__word { display: none; }
  .hctp-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .hctp-key { justify-content: center; }
  .hctp-badge { display: none; }
}

/* ─── Tarjeta de acceso (login) con el mismo tema — compacta ──────────────── */
.hctp--auth { justify-content: center; padding-top: 56px; }
.hctp-authcard {
  position: relative; z-index: 2;
  width: min(348px, 100%);
  padding: 28px 26px 22px; text-align: center;
  background: rgba(255,255,255,.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hctp-line); border-radius: 16px;
  box-shadow: 0 24px 56px rgba(1,47,101,.15), 0 1px 0 rgba(255,255,255,.85) inset;
}
.hctp-authcard__logo {
  width: 48px; height: 48px; margin: 0 auto 14px;
  display: grid; place-items: center; background: #fff; border-radius: 12px; padding: 8px;
  box-shadow: 0 6px 16px rgba(47,111,209,.2), 0 0 0 1px var(--hctp-line);
}
.hctp-authcard__logo img { width: 100%; height: 100%; object-fit: contain; }
.hctp-authcard__title {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.42rem !important; font-weight: 800; letter-spacing: -.01em;
  color: var(--hctp-navy); margin: 0 0 4px;
}
.hctp-authcard__sub { font-size: .82rem; color: var(--hctp-muted); margin-bottom: 20px; }
.hctp-authcard__err {
  margin-bottom: 16px; padding: 9px 12px; border-radius: 9px;
  font-size: .82rem; color: #fff; text-align: left;
  background: linear-gradient(135deg, var(--hctp-red), var(--hctp-red-lt));
  box-shadow: 0 6px 16px rgba(199,38,41,.26);
}
.hctp-authform { display: flex; flex-direction: column; text-align: left; }
.hctp-authform label { font-size: .76rem; font-weight: 600; color: var(--hctp-navy); margin: 10px 0 5px; }
.hct-landing-page .hctp-authform input {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--hctp-line); border-radius: 8px;
  background: rgba(255,255,255,.72); font-family: 'Inter', sans-serif; font-size: .9rem; color: var(--hctp-ink);
  transition: border-color .2s, box-shadow .2s;
}
.hct-landing-page .hctp-authform input:focus {
  outline: none; border-color: var(--hctp-blue); box-shadow: 0 0 0 3px rgba(47,111,209,.15);
}
.hct-landing-page .hctp-authform button {
  margin-top: 18px; padding: 10px; width: 100%;
  border: none; border-radius: 10px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: .92rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--hctp-red), var(--hctp-red-lt));
  box-shadow: 0 8px 20px rgba(199,38,41,.32), 0 1px 0 rgba(255,255,255,.35) inset;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.hct-landing-page .hctp-authform button:hover {
  color: #fff; transform: translateY(-1px);
  background: linear-gradient(135deg, #d92c2f, #e86a6e);
  box-shadow: 0 12px 28px rgba(199,38,41,.44), 0 1px 0 rgba(255,255,255,.4) inset;
}
.hctp-authcard__back { display: inline-block; margin-top: 18px; font-size: .8rem; color: var(--hctp-muted); }
.hctp-authcard__back:hover { color: var(--hctp-navy); }

/* ─── Accesibilidad: sin movimiento ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hct-landing-page .hctp-blade,
  .hct-landing-page .hctp-caret,
  .hct-landing-page .hctp-accent { animation: none !important; }
}
