/* ============================================================
   DIVOC - Estilos principales (mobile first)
   ============================================================ */

:root {
  --azul:      #1a3a6b;
  --azul-med:  #2356a4;
  --azul-claro:#3b7dd8;
  --naranja:   #e85d04;
  --naranja-l: #f48c06;
  --gris-bg:   #f4f6fb;
  --gris-card: #ffffff;
  --gris-txt:  #374151;
  --gris-sub:  #6b7280;
  --gris-bord: #e5e7eb;
  --verde:     #059669;
  --rojo:      #dc2626;
  --sombra:    0 2px 12px rgba(26,58,107,.10);
  --radio:     12px;
  --radio-sm:  8px;
  --font:      'Nunito', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--gris-bg);
  color: var(--gris-txt);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Tipografía ──────────────────────────────────────────── */
h1, h2, h3 { color: var(--azul); font-weight: 800; line-height: 1.25; }
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 4vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }
p  { color: var(--gris-sub); }

a { color: var(--azul-claro); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-sm {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  background: var(--azul);
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}

.navbar-logo-text span { color: var(--naranja); }

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.navbar-menu a {
  color: rgba(255,255,255,.85);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  transition: background .2s;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  background: rgba(255,255,255,.15);
  color: #fff;
  text-decoration: none;
}

.btn-nav-cta {
  background: var(--naranja) !important;
  color: #fff !important;
  padding: 7px 16px !important;
  border-radius: 20px !important;
}

.btn-nav-cta:hover { background: var(--naranja-l) !important; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: radial-gradient(ellipse at center, #89d2f6 0%, #1b437c 100%);
  padding: 64px 16px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 250px; height: 250px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
}

.hero-logo {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -3px;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.hero-logo span { color: var(--naranja); }

.hero-sub {
  font-size: clamp(.8rem, 2vw, .95rem);
  color: rgba(255,255,255,.7);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(1.4rem, 5vw, 2.6rem);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.hero-desc {
  font-size: clamp(.95rem, 2.5vw, 1.15rem);
  color: rgba(255,255,255,.82);
  max-width: 580px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 28px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none;
  font-family: var(--font);
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--naranja);
  color: #fff;
  box-shadow: 0 4px 16px rgba(232,93,4,.4);
}

.btn-primary:hover { background: var(--naranja-l); box-shadow: 0 6px 20px rgba(232,93,4,.5); }

.btn-secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
}

.btn-secondary:hover { background: rgba(255,255,255,.22); }

.btn-outline {
  background: transparent;
  color: var(--azul);
  border: 2px solid var(--azul);
}

.btn-outline:hover { background: var(--azul); color: #fff; }

.btn-success { background: var(--verde); color: #fff; }
.btn-danger  { background: var(--rojo); color: #fff; }

.btn-sm { padding: 8px 18px; font-size: .875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

.btn-block { display: flex; width: 100%; justify-content: center; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--gris-card);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 24px;
}

.card-header {
  border-bottom: 1px solid var(--gris-bord);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

/* ── Features (landing) ──────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 56px 0;
}

.feature-card {
  background: #fff;
  border-radius: var(--radio);
  padding: 28px 24px;
  box-shadow: var(--sombra);
  text-align: center;
  transition: transform .2s;
}

.feature-card:hover { transform: translateY(-4px); }

.feature-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
}

.feature-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p  { font-size: .9rem; }

/* ── Video embed ─────────────────────────────────────────── */
.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ── Precio ──────────────────────────────────────────────── */
.precio-card {
  background: linear-gradient(135deg, var(--azul), var(--azul-med));
  color: #fff;
  border-radius: var(--radio);
  padding: 40px 32px;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(26,58,107,.3);
}

.precio-monto {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.precio-monto sup { font-size: 1.5rem; vertical-align: top; margin-top: 12px; }
.precio-currency  { font-size: 1rem; opacity: .8; margin-bottom: 8px; }

/* ── Wizard cuestionario ─────────────────────────────────── */
.wizard-progress {
  background: #fff;
  border-radius: var(--radio);
  padding: 20px 24px;
  box-shadow: var(--sombra);
  margin-bottom: 24px;
}

.wizard-steps {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 60px;
}

.wizard-step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gris-bord);
  color: var(--gris-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  transition: background .3s, color .3s;
  position: relative;
  z-index: 1;
}

.wizard-step.done   .wizard-step-circle { background: var(--verde); color: #fff; }
.wizard-step.active .wizard-step-circle { background: var(--azul); color: #fff; box-shadow: 0 0 0 4px rgba(26,58,107,.2); }

.wizard-step-label {
  font-size: .65rem;
  font-weight: 700;
  color: var(--gris-sub);
  text-align: center;
  margin-top: 4px;
  white-space: nowrap;
}

.wizard-step.active .wizard-step-label { color: var(--azul); }

.wizard-connector {
  flex: 1;
  height: 3px;
  background: var(--gris-bord);
  margin-top: -18px;
  z-index: 0;
}

.wizard-connector.done { background: var(--verde); }

.progress-bar-wrap {
  height: 6px;
  background: var(--gris-bord);
  border-radius: 3px;
  margin-top: 14px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--azul-claro), var(--azul));
  border-radius: 3px;
  transition: width .4s ease;
}

/* ── Preguntas ───────────────────────────────────────────── */
.pregunta-item {
  background: #fff;
  border-radius: var(--radio);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  border-left: 4px solid var(--gris-bord);
  transition: border-color .2s;
}

.pregunta-item.respondida { border-left-color: var(--verde); }

.pregunta-num {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gris-sub);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.pregunta-texto {
  font-weight: 700;
  color: var(--azul);
  font-size: 1rem;
  margin-bottom: 14px;
}

.opciones-radio {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.opcion-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  border: 2px solid var(--gris-bord);
  border-radius: var(--radio-sm);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gris-sub);
  transition: all .2s;
  text-align: center;
  min-height: 56px;
}

.opcion-label:hover { border-color: var(--azul-claro); color: var(--azul); background: #f0f4ff; }
.opcion-label input[type=radio] { display: none; }
.opcion-label.selected { border-color: var(--azul); background: #e8f0fd; color: var(--azul); }

.opcion-valor {
  font-size: 1.1rem;
  font-weight: 900;
  display: block;
}

/* ── Formularios ─────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 700; font-size: .9rem; color: var(--azul); margin-bottom: 6px; }
.form-label span { color: var(--rojo); }

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gris-bord);
  border-radius: var(--radio-sm);
  font-size: 1rem;
  font-family: var(--font);
  background: #fff;
  color: var(--gris-txt);
  transition: border-color .2s;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--azul-claro);
  box-shadow: 0 0 0 3px rgba(59,125,216,.15);
}

.form-control select { cursor: pointer; }

select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }

.form-error { color: var(--rojo); font-size: .82rem; margin-top: 4px; }

/* ── Alertas ─────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radio-sm);
  margin-bottom: 18px;
  font-size: .92rem;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--verde); }
.alert-danger   { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--rojo); }
.alert-info     { background: #dbeafe; color: #1e40af; border-left: 4px solid var(--azul-claro); }
.alert-warning  { background: #fef3c7; color: #92400e; border-left: 4px solid var(--naranja-l); }

/* ── Resultados ──────────────────────────────────────────── */
.dvp-bar-wrap { width: 100%; background: var(--gris-bord); border-radius: 4px; height: 14px; overflow: hidden; }
.dvp-bar-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }

.tabla-resultados { width: 100%; border-collapse: collapse; }
.tabla-resultados th, .tabla-resultados td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--gris-bord);
  font-size: .9rem;
}
.tabla-resultados th { background: var(--gris-bg); font-weight: 700; color: var(--azul); font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
.tabla-resultados tr:hover td { background: #f8faff; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-muy-afin  { background: #d1fae5; color: #065f46; }
.badge-afin      { background: #dbeafe; color: #1e40af; }
.badge-poco-afin { background: #fef3c7; color: #92400e; }
.badge-no-afin   { background: #fee2e2; color: #991b1b; }

/* ── Gráfica DVP ─────────────────────────────────────────── */
.chart-area {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 180px;
  padding-top: 30px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.chart-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 48px;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar-val { font-size: .7rem; font-weight: 700; color: var(--azul); margin-bottom: 4px; }

.chart-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  transition: height 1s ease;
  min-height: 4px;
}

.chart-bar-label {
  font-size: .6rem;
  text-align: center;
  color: var(--gris-sub);
  margin-top: 6px;
  word-break: break-word;
  line-height: 1.2;
  max-width: 60px;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--azul);
  color: rgba(255,255,255,.7);
  padding: 40px 16px 24px;
  margin-top: 60px;
  font-size: .875rem;
  text-align: center;
}

.footer a { color: rgba(255,255,255,.85); }

/* ── Sección CTA ─────────────────────────────────────────── */
.section-cta {
  background: linear-gradient(135deg, var(--naranja), var(--naranja-l));
  padding: 56px 16px;
  text-align: center;
}

.section-cta h2 { color: #fff; }
.section-cta p  { color: rgba(255,255,255,.88); }

/* ── Panel admin ─────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px;
  background: var(--azul);
  padding: 20px 0;
  flex-shrink: 0;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  overflow-y: auto;
  z-index: 50;
}

.admin-main {
  margin-left: 240px;
  flex: 1;
  padding: 28px 24px;
  min-height: 100vh;
}

.sidebar-logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 12px;
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}

.sidebar-logo span { color: var(--naranja); }

.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 600;
  transition: all .2s;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }

.stat-card {
  background: #fff;
  border-radius: var(--radio);
  padding: 20px;
  box-shadow: var(--sombra);
  text-align: center;
}

.stat-num { font-size: 2rem; font-weight: 900; color: var(--azul); }
.stat-lbl { font-size: .8rem; color: var(--gris-sub); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* ── Cuenta alumno ───────────────────────────────────────── */
.evaluaciones-list { display: flex; flex-direction: column; gap: 14px; }

.eval-card {
  background: #fff;
  border-radius: var(--radio);
  padding: 20px;
  box-shadow: var(--sombra);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.eval-info h4 { font-size: 1rem; margin-bottom: 4px; }
.eval-info p  { font-size: .85rem; }

.eval-badge-estado {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 700;
}

.estado-pagada   { background: #d1fae5; color: #065f46; }
.estado-completada{ background: #dbeafe; color: #1e40af; }
.estado-progreso  { background: #fef3c7; color: #92400e; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-menu { display: none; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 16px; }
  .eval-card { flex-direction: column; align-items: flex-start; }
  .chart-area { height: 140px; }
  .opciones-radio { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero { padding: 48px 16px 56px; }
  .precio-card { padding: 28px 20px; }
  .card { padding: 18px; }
  .wizard-step-label { display: none; }
}
