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

:root {
  --rojo: #c8102e;
  --rojo-oscuro: #9a0c23;
  --rojo-claro: #e63946;
  --dorado: #f5b800;
  --dorado-claro: #ffd770;
  --gris-bg: #f5f5f7;
  --gris-borde: #e0e0e6;
  --texto: #1a1a1a;
  --texto-suave: #6b6b75;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #fafafa 0%, #f0e8e8 100%);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 140px 16px;
  color: var(--texto);
}

.card {
  background: #fff;
  border-radius: 20px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(200, 16, 46, 0.12);
  overflow: hidden;
}

/* === Cabecera roja con logo === */
.logo-wrap {
  background: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-oscuro) 100%);
  padding: 28px 20px 24px;
  text-align: center;
  position: relative;
}
.logo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--dorado) 0%, var(--dorado-claro) 50%, var(--dorado) 100%);
}
.logo-img {
  max-width: 200px;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}
.logo {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 4px;
  color: #fff;
  font-size: 26px;
  padding: 12px 26px;
  border: 2px solid #fff;
  border-radius: 50px;
}

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

.hook {
  text-align: center;
  font-size: 17px;
  color: var(--rojo);
  font-weight: 700;
  line-height: 1.4;
  margin: 22px 0 22px;
  padding: 0 4px;
}

.progress {
  background: #f3e8ea;
  height: 8px;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 6px;
}
.bar {
  height: 100%;
  background: linear-gradient(90deg, var(--rojo), var(--dorado));
  transition: width .4s ease;
  border-radius: 50px;
}
.step-num {
  text-align: right;
  font-size: 13px;
  color: var(--texto-suave);
  margin-bottom: 22px;
  font-weight: 600;
}

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

h2 {
  font-size: 18px;
  text-align: center;
  margin-bottom: 20px;
  color: var(--texto);
  font-weight: 700;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 6px;
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

select, input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1.5px solid var(--gris-borde);
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  color: var(--texto);
}
select:focus, input:focus {
  outline: none;
  border-color: var(--rojo);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.hint {
  font-size: 12px;
  color: var(--texto-suave);
  margin-top: 8px;
  font-style: italic;
}

.btn {
  width: 100%;
  padding: 16px;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, filter .2s;
  font-family: inherit;
  letter-spacing: 0.3px;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-oscuro) 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(200, 16, 46, 0.35);
}

.btn-success {
  background: linear-gradient(135deg, #1cb05c 0%, #25d366 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

.back {
  display: inline-block;
  color: var(--rojo);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
  transition: transform .2s;
}
.back:hover { transform: translateX(-3px); }

.desc-box {
  background: linear-gradient(135deg, #fffbf0 0%, #fff8e6 100%);
  border-left: 4px solid var(--dorado);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 22px;
  font-size: 14px;
  color: #4a4a55;
  line-height: 1.55;
  box-shadow: 0 4px 14px rgba(245, 184, 0, 0.12);
}
.desc-box strong {
  color: var(--rojo);
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
}

.legal {
  text-align: center;
  font-size: 12px;
  color: var(--texto-suave);
  margin-top: 14px;
  line-height: 1.5;
}

.badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.badges span {
  background: #fdf3f4;
  border: 1px solid #f5dde0;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 12px;
  color: var(--rojo-oscuro);
  font-weight: 600;
}

.ok-msg {
  background: linear-gradient(135deg, #e6f9ee 0%, #d4f5e0 100%);
  border: 1.5px solid #25d366;
  color: #0f6b34;
  padding: 22px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  margin-top: 14px;
  font-size: 15px;
}

/* === Banner de cookies === */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  max-width: 460px;
  width: calc(100% - 32px);
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 12px 40px rgba(200, 16, 46, 0.18);
  border-top: 3px solid var(--dorado);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 9999;
  transition: transform .5s cubic-bezier(.2,.9,.3,1.2);
}
.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
}
.cookie-banner p {
  flex: 1;
  font-size: 13px;
  color: #4a4a55;
  line-height: 1.45;
  margin: 0;
}
.cookie-btn {
  background: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-oscuro) 100%);
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.3);
  transition: transform .15s, filter .2s;
}
.cookie-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

@media (max-width: 480px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .cookie-btn { width: 100%; }
}

/* ========================================== */
/* === PÁGINA DE GRACIAS === */
/* ========================================== */

.card-thanks .content-pad { text-align: center; }

.check-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 18px;
}
.check-svg {
  width: 90px;
  height: 90px;
}
.check-circle {
  fill: none;
  stroke: #25d366;
  stroke-width: 4;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: drawCircle 0.6s ease-out forwards;
}
.check-path {
  fill: none;
  stroke: #25d366;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: drawCheck 0.4s ease-out 0.5s forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.thanks-title {
  font-size: 26px;
  color: var(--rojo);
  font-weight: 800;
  margin-bottom: 8px;
}
.thanks-sub {
  font-size: 15px;
  color: var(--texto-suave);
  line-height: 1.5;
  margin-bottom: 22px;
}

.carrera-tag {
  background: linear-gradient(135deg, #fffbf0 0%, #fff8e6 100%);
  border-left: 4px solid var(--dorado);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  text-align: left;
  box-shadow: 0 4px 14px rgba(245, 184, 0, 0.12);
}
.carrera-tag span {
  display: block;
  font-size: 11px;
  color: var(--texto-suave);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  margin-bottom: 4px;
}
.carrera-tag strong {
  display: block;
  color: var(--rojo);
  font-size: 16px;
  font-weight: 800;
}

.video-section { margin-bottom: 24px; }
.video-label {
  font-size: 14px;
  color: var(--texto);
  font-weight: 700;
  margin-bottom: 12px;
  text-align: left;
}
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
/* Bloquear botón "Abrir en Drive" del iframe */
.video-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  background: transparent;
  z-index: 10;
  cursor: default;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.btn-wa {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  margin-top: 0;
}

.social-section { margin-top: 28px; }
.social-label {
  font-size: 13px;
  color: var(--texto-suave);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  margin-bottom: 12px;
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: #fdf3f4;
  border: 1px solid #f5dde0;
  border-radius: 12px;
  text-decoration: none;
  color: var(--rojo-oscuro);
  font-weight: 600;
  font-size: 12px;
  transition: transform .2s, box-shadow .2s;
}
.social-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.15);
}
.social-ico { font-size: 22px; }

.back-home {
  display: block;
  text-align: center;
  margin-top: 22px;
  color: var(--texto-suave);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s;
}
.back-home:hover { color: var(--rojo); }
