/* Social Accelerator Learning Platform — SolVertic */

:root {
  --azul: #1a3a5c;
  --azul-medio: #2563a8;
  --azul-claro: #e8f0fb;
  --verde: #10b981;
  --verde-claro: #d1fae5;
  --gris: #f4f6f9;
  --gris-medio: #e2e8f0;
  --gris-texto: #64748b;
  --texto: #1e293b;
  --blanco: #ffffff;
  --sombra: 0 2px 12px rgba(26, 58, 92, 0.10);
  --sombra-hover: 0 6px 24px rgba(26, 58, 92, 0.16);
  --radio: 12px;
  --radio-btn: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
  font-size: 16px;
}

/* ── TIPOGRAFÍA ── */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--gris-texto); }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blanco);
  border-bottom: 1px solid var(--gris-medio);
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 42px;
  width: auto;
}

.logo-img--compact { display: none; }

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

nav a {
  text-decoration: none;
  color: var(--texto);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radio-btn);
  transition: background 0.2s, color 0.2s;
}

nav a:hover { background: var(--gris); color: var(--azul); }

.btn-nav {
  background: var(--azul) !important;
  color: var(--blanco) !important;
  padding: 8px 18px !important;
}

.btn-nav:hover { background: var(--azul-medio) !important; }

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radio-btn);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--azul);
  color: var(--blanco);
}
.btn-primary:hover { background: var(--azul-medio); transform: translateY(-1px); box-shadow: var(--sombra-hover); }

.btn-secondary {
  background: var(--blanco);
  color: var(--azul);
  border: 2px solid var(--azul);
}
.btn-secondary:hover { background: var(--azul-claro); }

.btn-verde {
  background: var(--verde);
  color: var(--blanco);
}
.btn-verde:hover { background: #059669; transform: translateY(-1px); }

.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--azul) 0%, #1e4a7a 60%, #1a3a5c 100%);
  color: var(--blanco);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.2);
  border: 1px solid rgba(16,185,129,0.4);
  color: #6ee7b7;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero-badge span { color: #34d399; }

.hero h1 { color: var(--blanco); margin-bottom: 20px; }

.hero h1 em {
  font-style: normal;
  color: #6ee7b7;
}

.hero-desc {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-microcopy {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

.hero-microcopy::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--verde);
}

/* Tarjeta visual hero */
.hero-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 28px;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.hero-card-title {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.status-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #6ee7b7;
}

.status-dot::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--verde);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.stat-item {
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 16px;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blanco);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}

.hero-progress {
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 68%;
  background: var(--verde);
  border-radius: 999px;
}

/* ── SECCIÓN VALOR ── */
.seccion-valor { background: var(--gris); }

.section-header { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-header p { margin-top: 14px; font-size: 1.05rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 28px 24px;
  box-shadow: var(--sombra);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover { box-shadow: var(--sombra-hover); transform: translateY(-2px); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.icon-azul { background: var(--azul-claro); }
.icon-verde { background: var(--verde-claro); }

.card h3 { margin-bottom: 10px; color: var(--texto); }
.card p { font-size: 0.9rem; }

/* ── CURSOS ── */
.curso-destacado { background: var(--blanco); }

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.curso-mini-card {
  background: var(--blanco);
  border: 1px solid var(--gris-medio);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.curso-mini-card:hover { box-shadow: var(--sombra-hover); transform: translateY(-2px); }

.curso-mini-header {
  background: linear-gradient(135deg, var(--azul) 0%, #1e6ea8 100%);
  padding: 24px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.curso-mini-header::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(16,185,129,0.2) 0%, transparent 70%);
}

.curso-mini-nombre {
  color: var(--blanco);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  z-index: 1;
}

.curso-mini-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.curso-mini-resumen {
  font-size: 0.875rem;
  color: var(--gris-texto);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.curso-mini-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.curso-mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gris-texto);
  background: var(--gris);
  padding: 3px 10px;
  border-radius: 999px;
}

.curso-card {
  background: var(--blanco);
  border: 1px solid var(--gris-medio);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sombra);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  margin: 0 auto;
}

.curso-img {
  background: linear-gradient(135deg, var(--azul) 0%, #1e6ea8 100%);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.curso-img::before {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(16,185,129,0.2) 0%, transparent 70%);
}

.curso-etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--verde);
  color: var(--blanco);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.curso-titulo-img {
  color: var(--blanco);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  z-index: 1;
}

.curso-body { padding: 36px 32px; }

.curso-desc { color: var(--gris-texto); font-size: 0.95rem; margin-bottom: 28px; }

.curso-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.meta-item strong { color: var(--texto); font-weight: 600; min-width: 90px; }
.meta-item span { color: var(--gris-texto); }

.meta-icon { font-size: 1rem; }

.estado-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--verde-claro);
  color: #065f46;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ── CÓMO FUNCIONA ── */
.como-funciona { background: var(--gris); }

.pasos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.pasos-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: var(--gris-medio);
  z-index: 0;
}

.paso {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.paso-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--blanco);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 4px solid var(--gris);
  position: relative;
  z-index: 1;
}

.paso h3 { margin-bottom: 8px; font-size: 0.98rem; }
.paso p { font-size: 0.85rem; }

/* ── INDICADORES ── */
.indicadores { background: var(--azul); }
.indicadores .section-header { color: var(--blanco); }
.indicadores .section-header h2 { color: var(--blanco); }
.indicadores .section-header p { color: rgba(255,255,255,0.65); }

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,0.2);
  border: 1px solid rgba(16,185,129,0.35);
  color: #6ee7b7;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.indicadores-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.indicador-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radio);
  padding: 28px 20px;
  text-align: center;
  transition: background 0.2s;
}

.indicador-card:hover { background: rgba(255,255,255,0.12); }

.indicador-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blanco);
  line-height: 1;
  margin-bottom: 8px;
}

.indicador-verde { color: #6ee7b7 !important; }

.indicador-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.3;
}

/* ── CIERRE ── */
.cierre {
  background: var(--blanco);
  text-align: center;
  padding: 100px 0;
}

.cierre h2 { margin-bottom: 20px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cierre p { max-width: 580px; margin: 0 auto 40px; font-size: 1rem; }
.cierre-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  background: var(--azul);
  color: rgba(255,255,255,0.6);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand { color: var(--blanco); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }

.footer-logo {
  height: 34px;
  width: auto;
  background: var(--blanco);
  border-radius: 6px;
  padding: 3px;
  flex-shrink: 0;
}
.footer-sub { font-size: 0.78rem; margin-top: 2px; }
.footer-right { font-size: 0.78rem; text-align: right; }

/* ── FORMULARIO ── */
.form-page {
  min-height: calc(100vh - 64px);
  background: var(--gris);
  padding: 56px 0;
}

.form-card {
  background: var(--blanco);
  border-radius: 16px;
  box-shadow: var(--sombra);
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
}

.form-header {
  background: var(--azul);
  padding: 36px 40px;
  color: var(--blanco);
}

.form-header h1 { font-size: 1.6rem; color: var(--blanco); margin-bottom: 8px; }
.form-header p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

.form-body { padding: 40px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--texto); }

.field input,
.field select,
.field textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gris-medio);
  border-radius: var(--radio-btn);
  font-size: 0.95rem;
  color: var(--texto);
  background: var(--blanco);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--azul-medio);
  box-shadow: 0 0 0 3px rgba(37,99,168,0.12);
}

.field textarea { resize: vertical; min-height: 90px; }

.field .required { color: #ef4444; }

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--azul);
  flex-shrink: 0;
}

.checkbox-field label {
  font-size: 0.875rem;
  color: var(--gris-texto);
  line-height: 1.5;
  cursor: pointer;
}

.form-actions { margin-top: 32px; }
.form-actions .btn { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; }

.form-note {
  text-align: center;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--gris-texto);
}

/* Error de validación */
.field-error { border-color: #ef4444 !important; }
.error-msg { font-size: 0.78rem; color: #ef4444; margin-top: 2px; }

/* ── ADMIN ── */
.admin-page { min-height: calc(100vh - 72px); background: var(--gris); padding: 32px 0 56px; }
.admin-header-bar {
  background: var(--azul);
  padding: 20px 0;
}
.admin-header-bar .container { display: flex; align-items: center; justify-content: space-between; }
.admin-title { color: var(--blanco); font-weight: 700; font-size: 1.1rem; }
.admin-sub { color: rgba(255,255,255,0.6); font-size: 0.8rem; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.admin-stat {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 20px;
  box-shadow: var(--sombra);
  text-align: center;
}
.admin-stat-num { font-size: 2rem; font-weight: 800; color: var(--azul); }
.admin-stat-label { font-size: 0.8rem; color: var(--gris-texto); margin-top: 4px; }

.admin-table-wrap {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.admin-table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gris-medio);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-table-header h2 { font-size: 1rem; }

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gris-texto);
  background: var(--gris);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--gris-medio);
}
td {
  padding: 14px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--gris-medio);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gris); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-pendiente { background: #fef3c7; color: #92400e; }
.badge-aprobado { background: var(--verde-claro); color: #065f46; }
.badge-rechazado { background: #fee2e2; color: #991b1b; }
.badge-matriculado { background: var(--azul-claro); color: var(--azul); }

/* ── GRACIAS ── */
.gracias-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gris);
  padding: 40px 24px;
}

.gracias-card {
  background: var(--blanco);
  border-radius: 16px;
  box-shadow: var(--sombra-hover);
  padding: 60px 48px;
  max-width: 520px;
  text-align: center;
}

.gracias-icon {
  width: 72px;
  height: 72px;
  background: var(--verde-claro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 28px;
}

.gracias-card h1 { font-size: 1.8rem; margin-bottom: 14px; }
.gracias-card p { margin-bottom: 12px; }
.gracias-card .btn { margin-top: 32px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .pasos-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pasos-grid::before { display: none; }
  .indicadores-grid { grid-template-columns: repeat(3, 1fr); }
  .curso-card { grid-template-columns: 1fr; }
  .curso-img { min-height: 200px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  section { padding: 60px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .pasos-grid { grid-template-columns: 1fr; }
  .indicadores-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-body { padding: 28px 24px; }
  .form-header { padding: 28px 24px; }
  nav { display: none; }
  .logo-img--full { display: none; }
  .logo-img--compact { display: block; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-right { text-align: center; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}
