/* ============================================================
   UNIMETA PREGRADOS — Neobrutalism
   Tokens: primary #FDC800 · secondary #432DD7 · success #16A34A
           surface #FBFBF9 · ink #1C293C
   Fonts: Inter (UI/display) · JetBrains Mono (etiquetas)
   ============================================================ */

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

:root {
  --primary:   #FDC800;
  --primary-d: #E0B000;
  --secondary: #432DD7;
  --secondary-d:#2E1F9C;
  --success:   #16A34A;
  --success-d: #0F7C38;
  --danger:    #DC2626;
  --surface:   #FBFBF9;
  --paper:     #FFFFFF;
  --ink:       #1C293C;
  --muted:     #5B6675;

  --bd: 3px;
  --radius: 10px;
  --shadow:   5px 5px 0 var(--ink);
  --shadow-lg: 7px 7px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--surface);
  background-image:
    radial-gradient(var(--ink) 1.1px, transparent 1.1px);
  background-size: 22px 22px;
  background-position: -11px -11px;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px 150px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.card {
  background: var(--paper);
  border: var(--bd) solid var(--ink);
  border-radius: var(--radius);
  max-width: 470px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* === Cabecera violeta con logo === */
.logo-wrap {
  background: var(--secondary);
  border-bottom: var(--bd) solid var(--ink);
  padding: 26px 20px 22px;
  text-align: center;
  position: relative;
}
.logo-img {
  max-width: 190px;
  height: auto;
  display: inline-block;
  filter: brightness(0) invert(1);
}
.logo {
  display: inline-block;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  font-size: 26px;
  padding: 10px 24px;
  border: var(--bd) solid #fff;
  border-radius: var(--radius);
}
.logo-badge {
  display: inline-block;
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--ink);
  background: var(--primary);
  border: var(--bd) solid var(--ink);
  border-radius: 6px;
  padding: 5px 12px;
  box-shadow: var(--shadow-sm);
}

/* === Contenido === */
.content-pad { padding: 26px 24px 30px; }

.hook {
  text-align: center;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 900;
  color: var(--ink);
  margin: 16px 0 24px;
  padding: 0 2px;
}

.progress {
  background: #fff;
  height: 16px;
  border: var(--bd) solid var(--ink);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 8px;
}
.bar {
  height: 100%;
  background: var(--primary);
  transition: width .4s cubic-bezier(.2,.9,.3,1);
  border-right: var(--bd) solid var(--ink);
}
.step-num {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 22px;
  font-weight: 700;
}

.step { display: none; }
.step.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

h2 {
  font-size: 18px;
  text-align: left;
  margin-bottom: 18px;
  color: var(--ink);
  font-weight: 800;
}

/* === Grid de carreras === */
.carreras-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.carrera-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--paper);
  border: var(--bd) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.carrera-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
  background: #FFFDF2;
}
.carrera-card:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.carrera-card:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}
.carrera-card.selected {
  background: var(--primary);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}

.carrera-icon {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--primary);
  border: var(--bd) solid var(--ink);
  border-radius: 8px;
}
.carrera-card.selected .carrera-icon {
  background: var(--secondary);
  color: #fff;
}
.carrera-text { flex: 1 1 auto; min-width: 0; }
.carrera-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.2;
}
.carrera-subtitle {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 500;
}
.carrera-chip {
  flex: 0 0 auto;
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--secondary);
  background: #EDEAFB;
  border: 2px solid var(--secondary);
  border-radius: 5px;
  padding: 3px 6px;
  white-space: nowrap;
}
.carrera-card.selected .carrera-chip {
  background: #fff;
}

.hint {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  font-weight: 500;
}

/* === Paso 2 === */
.back {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: var(--bd) solid var(--ink);
  border-radius: 6px;
  padding: 6px 12px;
  text-decoration: none;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.back:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow); }
.back:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); }

.desc-box {
  background: var(--primary);
  border: var(--bd) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 22px;
  font-weight: 500;
}
.desc-box strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 6px;
}

label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
  margin-top: 16px;
  letter-spacing: .2px;
}

input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: var(--bd) solid var(--ink);
  border-radius: 8px;
  padding: 12px 14px;
  transition: box-shadow .12s ease, transform .12s ease;
}
input::placeholder { color: #9aa3b0; }
input:focus {
  outline: none;
  box-shadow: var(--shadow-sm);
  transform: translate(-1px,-1px);
}

/* === Botones === */
.btn {
  display: block;
  width: 100%;
  margin-top: 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .3px;
  color: var(--ink);
  background: var(--primary);
  border: var(--bd) solid var(--ink);
  border-radius: var(--radius);
  padding: 15px 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--ink); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }

.btn-success {
  color: #fff;
  background: var(--success);
}
.btn-success:hover { background: var(--success-d); }

.legal {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
  font-weight: 500;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.badges span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 5px 9px;
}

/* === Banner cookies === */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 470px;
  margin: 0 auto;
  background: var(--secondary);
  color: #fff;
  border: var(--bd) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateY(160%);
  transition: transform .4s cubic-bezier(.2,.9,.3,1);
  z-index: 999;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 12.5px; line-height: 1.4; font-weight: 500; }
.cookie-btn {
  flex: 0 0 auto;
  font-family: inherit;
  font-weight: 900;
  font-size: 13px;
  color: var(--ink);
  background: var(--primary);
  border: var(--bd) solid var(--ink);
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease;
}
.cookie-btn:hover { transform: translate(-1px,-1px); }
.cookie-btn:active { transform: translate(2px,2px); box-shadow: none; }

/* ============================================================
   GRACIAS.PHP
   ============================================================ */
.card-thanks { text-align: center; }

.check-wrap { margin: 8px auto 18px; width: 92px; height: 92px; }
.check-svg {
  width: 92px; height: 92px;
  background: var(--success);
  border: var(--bd) solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow);
  padding: 6px;
}
.check-circle { fill: none; stroke: transparent; }
.check-path {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: draw .6s .25s ease forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.thanks-title { font-size: 27px; font-weight: 900; color: var(--ink); margin-bottom: 8px; }
.thanks-sub { font-size: 14.5px; color: var(--muted); line-height: 1.5; font-weight: 500; margin-bottom: 22px; }

.carrera-tag {
  background: var(--primary);
  border: var(--bd) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  margin-bottom: 22px;
}
.carrera-tag span {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
  text-transform: uppercase;
}
.carrera-tag strong { font-size: 17px; font-weight: 900; color: var(--ink); line-height: 1.25; }

.video-section { margin-bottom: 22px; }
.video-label { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.video-wrap {
  position: relative;
  padding-top: 56.25%;
  border: var(--bd) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #000;
}
.video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.btn-wa {
  text-decoration: none;
  text-align: center;
  background: var(--success);
  color: #fff;
}

.social-section { margin-top: 26px; }
.social-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.social-grid { display: flex; gap: 10px; justify-content: center; }
.social-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  background: #fff;
  border: var(--bd) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.social-card:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow); background: var(--primary); }
.social-card:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); }
.social-ico { font-size: 22px; }
.social-name { font-size: 12px; font-weight: 800; }

.back-home {
  display: inline-block;
  margin-top: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 2px;
}
.back-home:hover { color: var(--secondary-d); }

/* === Responsive === */
@media (max-width: 420px) {
  .hook { font-size: 19px; }
  .content-pad { padding: 22px 18px 26px; }
  .carrera-icon { width: 44px; height: 44px; }
  .carrera-chip { display: none; }
  .thanks-title { font-size: 23px; }
}
