/* Assessment TIVIT & AWS — v4 */
/* Assessment de Preparación para IA y Gobierno de Datos — TIVIT & AWS
   Todos los selectores están namespaced bajo .tva para no colisionar con el tema de HubSpot. */

.tva, .tva * { box-sizing: border-box; }

.tva {
  position: relative;
  overflow: hidden;
  background: #0A0C1A;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  color: #EAEAF2;
  padding: 0 clamp(16px, 4vw, 20px) 72px;
  -webkit-font-smoothing: antialiased;
}

.tva p { margin: 0; }
.tva h1, .tva h2, .tva h3 { margin: 0; font-family: 'Poppins', Helvetica, Arial, sans-serif; }
.tva button { font: inherit; }
.tva a { text-decoration: none; }

/* ---------- Fondo animado ---------- */
.tva-bg { position: absolute; inset: -20% -10%; pointer-events: none; z-index: 0; }
.tva-blob { position: absolute; border-radius: 50%; animation: tvaDrift 24s ease-in-out infinite; }
.tva-blob-1 { top: -6%; left: -4%; width: 62vw; height: 62vw; background: radial-gradient(circle at 50% 50%, rgba(242,0,36,0.55), rgba(242,0,36,0) 65%); filter: blur(70px); animation-duration: 22s; }
.tva-blob-2 { top: 8%; right: -10%; width: 56vw; height: 56vw; background: radial-gradient(circle at 50% 50%, rgba(108,99,255,0.6), rgba(108,99,255,0) 65%); filter: blur(80px); animation-duration: 26s; animation-direction: reverse; }
.tva-blob-3 { top: 38%; left: 22%; width: 48vw; height: 48vw; background: radial-gradient(circle at 50% 50%, rgba(255,107,157,0.45), rgba(255,107,157,0) 62%); filter: blur(90px); animation-duration: 30s; }
.tva-blob-4 { bottom: -18%; right: 14%; width: 52vw; height: 52vw; background: radial-gradient(circle at 50% 50%, rgba(32,67,139,0.7), rgba(32,67,139,0) 66%); filter: blur(80px); }

@keyframes tvaDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(3%,-3%,0) scale(1.08); }
  100% { transform: translate3d(0,0,0) scale(1); }
}
@keyframes tvaFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tva-blob { animation: none; }
  .tva-fade { animation: none !important; }
}

.tva-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; }
.tva-fade { animation: tvaFadeUp .5s ease both; }
.tva-hidden { display: none !important; }

/* ---------- Encabezado / logos ---------- */
.tva-logos { display: flex; align-items: center; gap: clamp(14px, 3vw, 22px); padding: clamp(22px, 4vw, 30px) 0 8px; }
.tva-logo-tivit { height: 34px; width: auto; display: block; }
.tva-logo-aws { height: 26px; width: auto; display: block; }
.tva-logo-sep { width: 1px; height: 34px; background: rgba(255,255,255,0.35); }

/* ---------- Píldoras / etiquetas ---------- */
.tva-pill {
  display: inline-block;
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: #F20024; background: #FFFFFF; border-radius: 999px; padding: 10px 20px;
}
.tva-pill-sm { font-size: 11px; padding: 9px 18px; }
.tva-eyebrow {
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #FF6B9D;
}

/* ---------- Intro ---------- */
.tva-intro { padding: 44px 0 0; }
.tva-h1 {
  font-size: clamp(27px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -1.2px; font-weight: 700;
  margin: 18px 0 0; max-width: 17ch; text-wrap: balance;
}
.tva-nowrap { white-space: nowrap; }
.tva-lead { font-size: 18px; line-height: 1.6; color: rgba(234,234,242,0.82); max-width: 60ch; margin: 22px 0 0; text-wrap: pretty; }

.tva-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 38px 0 0; }
.tva-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px; padding: 22px; backdrop-filter: blur(18px);
}
.tva-card-title { font-family: 'Poppins', Helvetica, Arial, sans-serif; font-size: 15px; font-weight: 600; color: #fff; }
.tva-card-text { font-size: 14px; line-height: 1.55; color: rgba(234,234,242,0.72); margin-top: 8px; }

/* ---------- Botones ---------- */
.tva-btn-primary {
  display: inline-block; font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 17px; font-weight: 600; color: #fff; background: #F20024;
  border: none; border-radius: 999px; padding: 20px 42px; cursor: pointer; text-align: center;
  box-shadow: 0 18px 44px rgba(242,0,36,0.32);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.tva-btn-primary:hover { transform: translateY(-2px); background: #990017; box-shadow: 0 22px 54px rgba(242,0,36,0.45); color: #fff; }
.tva-btn-primary--cta { font-size: 16px; padding: 19px 38px; box-shadow: 0 16px 40px rgba(242,0,36,0.3); }
.tva-btn-ghost {
  font-family: 'Poppins', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 500;
  color: rgba(234,234,242,0.8); background: transparent;
  border: 1px solid rgba(255,255,255,0.28); border-radius: 999px; padding: 14px 26px; cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.tva-btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.tva-btn-ghost--lg { font-size: 15px; color: #fff; padding: 18px 32px; border-color: rgba(255,255,255,0.32); }
.tva-btn-ghost--sm { font-size: 14px; color: rgba(234,234,242,0.7); padding: 13px 26px; border-color: rgba(255,255,255,0.24); }
.tva-actions { display: flex; align-items: center; gap: 14px; margin: 30px 0 0; }
.tva-actions--wrap { flex-wrap: wrap; margin: 30px 0 0; }

/* ---------- Quiz ---------- */
.tva-quiz { padding: 36px 0 0; max-width: 760px; }
.tva-stepbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: 'Poppins', Helvetica, Arial, sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(234,234,242,0.7);
}
.tva-stepbar span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tva-stepbar span:last-child { white-space: nowrap; }
.tva-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.14); margin: 14px 0 34px; overflow: hidden; }
.tva-track-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,#F20024,#FF6B9D,#6C63FF); transition: width .4s cubic-bezier(.2,.8,.2,1); }

.tva-q { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.16; letter-spacing: -.8px; font-weight: 600; max-width: 26ch; text-wrap: pretty; }
.tva-q-help { font-size: 15px; line-height: 1.6; color: rgba(234,234,242,0.66); margin: 14px 0 28px !important; max-width: 56ch; }
.tva-opts { display: grid; gap: 12px; }
.tva-opt {
  display: flex; align-items: center; gap: 16px; text-align: left; width: 100%;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.45; color: #fff;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px; padding: 18px 20px; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.tva-opt:hover { transform: translateX(3px); border-color: rgba(255,255,255,0.55); }
.tva-opt-dot {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4); background: transparent;
  box-shadow: inset 0 0 0 3px rgba(10,12,26,0.9);
}
.tva-opt.is-selected { background: rgba(242,0,36,0.18); border-color: rgba(242,0,36,0.9); }
.tva-opt.is-selected .tva-opt-dot { border-color: #F20024; background: #F20024; }

/* ---------- Resultado ---------- */
.tva-result { padding: 40px 0 0; }
.tva-h2 { font-size: clamp(29px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -1.1px; font-weight: 700; margin: 16px 0 0; max-width: 20ch; text-wrap: pretty; }
.tva-result-lead { font-size: 18px; line-height: 1.6; color: rgba(234,234,242,0.85); max-width: 62ch; margin: 20px 0 0; text-wrap: pretty; }

.tva-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 36px 0 0; }
.tva-panel { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); border-radius: 20px; padding: 26px; backdrop-filter: blur(18px); }
.tva-panel-label { font-family: 'Poppins', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(234,234,242,0.66); }
.tva-dims { display: grid; gap: 18px; margin-top: 22px; }
.tva-dim-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: 'Poppins', Helvetica, Arial, sans-serif; font-size: 15px; font-weight: 500; }
.tva-dim-name { display: flex; align-items: center; gap: 10px; }
.tva-dim-icon { flex: none; width: 26px; height: 26px; border-radius: 8px; background: rgba(242,0,36,0.16); display: flex; align-items: center; justify-content: center; }
.tva-dim-icon i { width: 9px; height: 9px; border-radius: 2px; background: #F20024; display: block; }
.tva-dim-level { font-size: 13px; color: rgba(234,234,242,0.7); white-space: nowrap; }
.tva-dim-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.12); margin-top: 10px; overflow: hidden; }
.tva-dim-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,#F20024,#FF6B9D); }

.tva-panel-text { font-size: 16px; line-height: 1.6; color: rgba(234,234,242,0.85); margin: 18px 0 0 !important; }
.tva-panel-note { font-size: 13px; line-height: 1.5; color: rgba(234,234,242,0.5); margin-top: 16px; }
.tva-rule { height: 1px; background: rgba(255,255,255,0.14); margin: 22px 0; }
.tva-panel-sub { font-family: 'Poppins', Helvetica, Arial, sans-serif; font-size: 15px; font-weight: 600; }
.tva-panel-sub-text { font-size: 16px; line-height: 1.6; color: rgba(234,234,242,0.85); margin: 8px 0 0 !important; }

/* ---------- Bloque de captura (formulario) ---------- */
.tva-gate {
  margin: 34px 0 0;
  background: linear-gradient(140deg, rgba(242,0,36,0.16), rgba(108,99,255,0.16));
  border: 1px solid rgba(255,255,255,0.2); border-radius: 24px;
  padding: clamp(22px, 4vw, 34px); backdrop-filter: blur(20px);
}
.tva-gate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: start; }
.tva-gate-title { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; letter-spacing: -.9px; font-weight: 700; margin: 18px 0 0; text-wrap: pretty; }
.tva-gate-text { font-size: 17px; line-height: 1.62; color: rgba(234,234,242,0.88); margin: 14px 0 0 !important; text-wrap: pretty; }
.tva-mark { background: rgba(255,255,255,0.96); color: #F20024; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.tva-benefits { display: grid; gap: 14px; margin-top: 26px; }
.tva-benefit { display: flex; align-items: center; gap: 14px; }
.tva-benefit-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.tva-benefit-copy { font-size: 16px; line-height: 1.45; color: #fff; }
.tva-benefit-copy strong { font-family: 'Poppins', Helvetica, Arial, sans-serif; font-weight: 600; }
.tva-benefit-copy span { font-size: 14px; color: rgba(234,234,242,0.72); }

.tva-form-card { background: #FFFFFF; border: 1px solid rgba(255,255,255,0.9); border-radius: 18px; padding: 26px; box-shadow: 0 18px 44px rgba(10,12,26,0.35); }
.tva-form-card-title { font-family: 'Poppins', Helvetica, Arial, sans-serif; font-size: 15px; font-weight: 600; color: #454D54; margin-bottom: 16px; }
.tva-form-host { min-height: 460px; }
.tva-form-host .hs-form-frame { width: 100%; min-height: 460px; display: block; }
.tva-form-host iframe { height: 100% !important; min-height: 460px !important; width: 100% !important; border: 0 !important; }
.tva-form-host label, .tva-form-host .hs-form-field > label { color: #454D54 !important; }
.tva-form-host input, .tva-form-host select, .tva-form-host textarea { max-width: 100% !important; }

/* ---------- Informe desbloqueado ---------- */
.tva-report { margin: 34px 0 0; }
.tva-h3 { font-size: 30px; line-height: 1.14; letter-spacing: -.8px; font-weight: 600; margin: 14px 0 0; }
.tva-grid-reco { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin: 24px 0 0; }
.tva-reco-head { display: flex; align-items: center; gap: 12px; }
.tva-reco-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(242,0,36,0.18); display: flex; align-items: center; justify-content: center; }
.tva-reco-icon i { width: 12px; height: 12px; border-radius: 3px; background: #F20024; display: block; }
.tva-reco-name { font-family: 'Poppins', Helvetica, Arial, sans-serif; font-size: 17px; font-weight: 600; }
.tva-reco-level { font-size: 12px; font-family: 'Poppins', Helvetica, Arial, sans-serif; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(234,234,242,0.6); margin-top: 16px; }
.tva-reco-text { font-size: 16px; line-height: 1.6; color: rgba(234,234,242,0.86); margin: 10px 0 0 !important; text-wrap: pretty; }
.tva-panel--wide { padding: 30px; margin: 18px 0 0; }
.tva-panel-h { font-family: 'Poppins', Helvetica, Arial, sans-serif; font-size: 17px; font-weight: 600; }
.tva-panel-p { font-size: 16px; line-height: 1.65; color: rgba(234,234,242,0.86); margin: 12px 0 0 !important; max-width: 80ch; text-wrap: pretty; }
.tva-footnote { font-size: 13px; color: rgba(234,234,242,0.5); margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .tva-intro { padding: 32px 0 0; }
  .tva-lead { font-size: 16px; }
  .tva-btn-primary { width: 100%; padding: 18px 24px; font-size: 16px; }
  .tva-btn-primary--cta { width: 100%; }
  .tva-btn-ghost--lg { width: 100%; }
  .tva-actions--wrap { flex-direction: column; align-items: stretch; }
  .tva-opt { font-size: 15px; padding: 16px 16px; gap: 12px; }
  .tva-panel { padding: 22px; }
  .tva-form-card { padding: 20px; }
  .tva-gate-grid { gap: 26px; }
  .tva-h3 { font-size: 24px; }
  .tva-result-lead { font-size: 16px; }
}

/* ---------- Impresión (informe descargable) ---------- */
@media print {
  .tva-noprint, .tva-bg { display: none !important; }
  .tva { background: #fff; color: #14161f; padding: 0; }
  .tva-panel, .tva-gate { background: #fff !important; border-color: #d8dae2 !important; backdrop-filter: none !important; box-shadow: none !important; }
  .tva-h2, .tva-h3, .tva-panel-h, .tva-reco-name { color: #14161f; }
  .tva-result-lead, .tva-panel-p, .tva-reco-text, .tva-panel-text, .tva-panel-sub-text { color: #333844 !important; }
  .tva-eyebrow { color: #F20024; }
}


/* ============================================================
   BLINDAJE ANTE EL TEMA DE HUBSPOT
   El tema del portal carga después de esta hoja y reescribe
   tipografía y transformaciones de texto. El ESPACIADO vertical
   NO se define aquí: va inline en el HTML y en el JS, para que
   no dependa de especificidad ni de caché. No añadir reglas de
   margin con !important en este archivo.
   ============================================================ */

.tva, .tva h1, .tva h2, .tva h3, .tva p, .tva span, .tva div, .tva button, .tva a, .tva strong, .tva mark {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
}
.tva h1, .tva h2, .tva h3,
.tva .tva-pill, .tva .tva-eyebrow, .tva .tva-card-title,
.tva .tva-panel-label, .tva .tva-panel-h, .tva .tva-panel-sub,
.tva .tva-reco-name, .tva .tva-reco-level, .tva .tva-stepbar,
.tva .tva-btn-primary, .tva .tva-btn-ghost, .tva .tva-form-card-title,
.tva .tva-benefit-copy strong, .tva .tva-dim-head {
  font-family: 'Poppins', Helvetica, Arial, sans-serif !important;
}

.tva .tva-opt,
.tva .tva-btn-primary,
.tva .tva-btn-ghost { text-transform: none !important; letter-spacing: normal !important; }
.tva .tva-pill,
.tva .tva-eyebrow,
.tva .tva-panel-label,
.tva .tva-reco-level,
.tva .tva-stepbar { text-transform: uppercase !important; }

/* ============================================================
   FORMULARIO DE HUBSPOT
   Reubicar u ocultar con display:none el iframe del formulario
   lo deja en blanco. Antes del resultado el bloque de captura
   vive fuera del viewport (posicionado inline por el JS), ya
   renderizado y medido. Aquí solo se reserva su altura.
   ============================================================ */
.tva .tva-form-host { min-height: 460px; }
.tva .tva-form-host .hs-form-frame { width: 100%; min-height: 460px; display: block; }
.tva .tva-form-host iframe { height: 100% !important; min-height: 460px !important; width: 100% !important; border: 0 !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .tva .tva-h1 { font-size: clamp(26px, 7.4vw, 34px) !important; letter-spacing: -.8px !important; max-width: none !important; }
  .tva .tva-nowrap { white-space: normal !important; }
  .tva .tva-h2 { font-size: clamp(26px, 7vw, 32px) !important; max-width: none !important; }
  .tva .tva-q { font-size: clamp(21px, 6vw, 26px) !important; max-width: none !important; }
  .tva .tva-gate-title { font-size: clamp(23px, 6.4vw, 28px) !important; }
  .tva .tva-h3 { font-size: 24px !important; }
  .tva .tva-lead { font-size: 16px !important; }
  .tva .tva-result-lead { font-size: 16px !important; }
  .tva .tva-pill { font-size: 11px !important; letter-spacing: .16em !important; padding: 9px 16px !important; }
  .tva .tva-btn-primary { width: 100%; padding: 18px 24px; font-size: 16px; }
  .tva .tva-btn-ghost--lg { width: 100%; }
  .tva .tva-actions--wrap { flex-direction: column; align-items: stretch; }
  .tva .tva-opt { font-size: 15px; padding: 16px 16px; gap: 12px; }
  .tva .tva-panel { padding: 22px; }
  .tva .tva-form-card { padding: 20px; }
  .tva .tva-gate-grid { gap: 26px; }
  .tva .tva-gate { padding: 22px; }
}
