* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: #f2f0ec;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: #243a5a;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #fb741a;
  text-decoration: none;
}

button {
  font-family: inherit;
}

img {
  max-width: 100%;
}

/* ===== Keyframes ===== */

@keyframes markSpin {
  0% {
    opacity: 0;
    transform: rotateY(-40deg) scale(2.5);
  }
  14% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: rotateY(1080deg) scale(1);
  }
}

@keyframes bgReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes formIn {
  from {
    opacity: 0;
    transform: translateY(-42%) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== Page shell ===== */

.page {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */

.site-hdr {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, #78839deb, rgba(30, 45, 66, 0.72) 48%, rgba(30, 45, 66, 0) 100%);
  padding-bottom: 22px;
}

.hdr-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
}

.hdr-logo {
  height: clamp(30px, 4.4vw, 40px);
  width: auto;
  flex: none;
}

.hdr-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.hdr-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fb741a;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 1.6vw, 16px);
  padding: 12px clamp(18px, 2.6vw, 28px);
  border-radius: 10px;
  flex: none;
  width: 159px;
  height: 37px;
}
.hdr-cta:hover {
  background: #c85512;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  background: #1e2d42;
  color: #fff;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: bgReveal 1.4s ease 2.2s forwards;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 45, 66, 0.95) 0%, rgba(30, 45, 66, 0.86) 42%, rgba(30, 45, 66, 0.6) 100%);
  pointer-events: none;
}

.hero-decor-hex {
  position: absolute;
  top: -80px;
  right: -90px;
  opacity: 0.06;
  pointer-events: none;
}

.hero-decor-line {
  position: absolute;
  bottom: 64px;
  left: -40px;
  width: 120px;
  height: 2px;
  background: #11b9b1;
  opacity: 0.5;
  transform: rotate(-18deg);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(18px, 3vh, 44px) clamp(20px, 4vw, 48px);
}

.hero-copy {
  position: relative;
  max-width: min(100%, 600px);
  /* Espacio fijo reservado para el logo: no depende de su tamaño real, así
     que agrandar/achicar el logo ya no corre el título ni lo de abajo. */
  padding-top: clamp(84px, 11.3vw, 116px);
  animation: heroRise 0.9s ease 0.15s both;
}

.hero-badge {
  position: absolute;
  top: 0;
  left: 0;
  height: clamp(76px, 10.5vw, 108px);
  /* El archivo ya viene recortado a su contenido real (~1.9:1, no cuadrado);
     "width: auto" deja que escale proporcional según la altura, sin estirarlo. */
  width: auto;
}

.hero-title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 15ch;
}

.hero-title .accent {
  color: #fb741a;
}

.hero-subtitle {
  margin: clamp(14px, 2vh, 24px) 0 0;
  font-size: clamp(16px, 1.9vw, 21px);
  line-height: 1.5;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(20px, 3vh, 38px);
  scroll-margin-top: 100px;
}

.hero-btn-primary,
.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  border-radius: 10px;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-btn-primary {
  color: #fff;
  font-weight: 600;
  padding: clamp(15px, 1.9vw, 20px) clamp(28px, 3.4vw, 42px);
  background-color: #fb741a;
  width: 201px;
  height: 46px;
}
.hero-btn-primary:hover {
  background: #c85512;
}
.hero-btn-primary[data-active="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.hero-btn-outline {
  background: transparent;
  color: #fff;
  font-weight: 500;
  padding: clamp(15px, 1.9vw, 20px) clamp(24px, 3vw, 34px);
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  width: 257px;
  height: 46px;
}
.hero-btn-outline:hover {
  border-color: #fff;
}
.hero-btn-outline[data-active="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2.4vw, 26px);
  margin-top: clamp(16px, 2.4vh, 28px);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-sep {
  opacity: 0.4;
}

/* ===== Hero mark (imagen giratoria) ===== */

.hero-mark-wrap {
  position: absolute;
  right: clamp(16px, 6vw, 96px);
  top: 50%;
  transform: translateY(-50%);
  perspective: 1200px;
  pointer-events: none;
  z-index: 1;
  /* El filtro va en el contenedor (que no anima) y no en la imagen (que sí
     anima transform/opacity): mezclar filter+transform en el mismo elemento
     desactiva la aceleración por GPU en Safari/iOS y causa animaciones con
     muy pocos frames en móvil/tablet. */
  filter: drop-shadow(0 24px 55px rgba(0, 0, 0, 0.4));
}

.hero-mark {
  height: clamp(150px, 24vw, 290px);
  width: auto;
  animation: markSpin 1.9s cubic-bezier(0.22, 0.68, 0.24, 1) forwards;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* ===== Flow panel (modal) ===== */

.flow-panel {
  pointer-events: auto;
  position: fixed;
  right: clamp(16px, 5vw, 80px);
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 16px;
  padding: clamp(22px, 3vh, 32px);
  width: min(92%, 430px);
  color: #243a5a;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  max-height: calc(100vh - 130px);
  overflow: auto;
  animation: formIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  z-index: 60;
}
.flow-panel[hidden] {
  display: none;
}

.flow-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: #f1f0ec;
  color: #6a7180;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.flow-logo {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 18px;
}

.flow-step {
  animation: stepIn 0.3s ease both;
}
.flow-step[hidden] {
  display: none;
}

.flow-back {
  background: none;
  border: none;
  color: #6a7180;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 12px;
}

.flow-title {
  margin: 0 0 6px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.flow-subtitle {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #6a7180;
}

.form-label {
  display: block;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: #3a4a63;
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #d3d7de;
  border-radius: 9px;
  padding: 13px 14px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  color: #243a5a;
  outline: none;
}
.form-input:focus {
  border-color: #fb741a;
}

.field-error {
  margin: 10px 0 0;
  font-size: 13px;
  color: #d84315;
}

.final-cta {
  width: 100%;
  margin-top: 18px;
  background: #fb741a;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.final-cta:hover {
  background: #c85512;
}
.final-cta:disabled {
  cursor: default;
  opacity: 0.7;
}

/* ===== Pasos: elegir medio de verificación / elegir candidato ===== */

.medio-list,
.candidato-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 4px;
}

.medio-btn,
.candidato-btn {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #d3d7de;
  border-radius: 10px;
  padding: 13px 15px;
  background: #fff;
  cursor: pointer;
  font-family: "Source Sans 3", sans-serif;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.medio-btn:hover,
.candidato-btn:hover {
  border-color: #fb741a;
  background: #fff8f3;
}
.medio-btn:disabled,
.candidato-btn:disabled {
  opacity: 0.6;
  cursor: default;
  background: #fff;
  border-color: #d3d7de;
}

.medio-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
}
.medio-btn-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: #243a5a;
}
.medio-btn-sub {
  font-size: 12.5px;
  color: #6a7180;
}

.candidato-btn {
  text-align: center;
  font-size: 15.5px;
  letter-spacing: 0.03em;
  color: #243a5a;
}

/* ===== Paso: obligaciones ===== */

.obligaciones-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.obligacion-item {
  text-align: left;
  background: #fff;
  border: 1.5px solid #e2ddd4;
  border-radius: 11px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}
.obligacion-item.is-elegida {
  background: #fff5ee;
  border-color: #fb741a;
}

.obligacion-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid #c7ccd4;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 2px;
}
.obligacion-item.is-elegida .obligacion-checkbox {
  border-color: #fb741a;
  background: #fb741a;
}
.obligacion-checkbox svg {
  display: none;
}
.obligacion-item.is-elegida .obligacion-checkbox svg {
  display: block;
}

.obligacion-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.obligacion-entidad {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #243a5a;
}

.obligacion-fecha {
  font-size: 13.5px;
  color: #6a7180;
}

.obligacion-valor {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fb741a;
  margin-top: 4px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eceae5;
}

.total-label {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #3a4a63;
}

.total-value {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #243a5a;
}

/* ===== Paso: done ===== */

.done-step {
  text-align: center;
  padding: 8px 0;
}

.done-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e4f5f3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.done-title {
  margin: 0 0 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 22px;
}

.done-text {
  margin: 0 auto 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #6a7180;
  max-width: 32ch;
}

/* ===== Secciones ocultas (igual que en el diseño original) ===== */

.hidden-sections {
  display: none;
}

.section-eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #11b9b1;
}

.section-title {
  margin: 0 0 clamp(36px, 5vw, 56px);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.recuperas-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) clamp(20px, 4vw, 48px);
}

.recuperas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.4vw, 26px);
}

.recuperas-card {
  flex: 1 1 260px;
  background: #fff;
  border: 1px solid rgba(36, 58, 90, 0.08);
  border-radius: 16px;
  padding: clamp(26px, 3.4vw, 38px);
}

.recuperas-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fb741a;
  margin-bottom: 20px;
}

.recuperas-card h3 {
  margin: 0 0 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 26px);
  color: #243a5a;
}

.recuperas-card p {
  margin: 0;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.55;
  color: #6a7180;
}

.opciones-section {
  background: #fff;
  border-top: 1px solid rgba(36, 58, 90, 0.08);
  border-bottom: 1px solid rgba(36, 58, 90, 0.08);
  scroll-margin-top: 80px;
}

.opciones-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) clamp(20px, 4vw, 48px);
  text-align: center;
}

.opciones-title {
  margin: 0 auto clamp(12px, 2vw, 18px);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 18ch;
}

.opciones-subtitle {
  margin: 0 auto clamp(38px, 5vw, 56px);
  font-size: clamp(16px, 2vw, 19px);
  color: #6a7180;
  max-width: 44ch;
}

.opciones-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.4vw, 24px);
  justify-content: center;
  text-align: left;
}

.opcion-card {
  flex: 1 1 280px;
  max-width: 360px;
  background: #fff;
  border: 1px solid rgba(36, 58, 90, 0.12);
  border-radius: 18px;
  padding: clamp(28px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.opcion-card.is-recomendado {
  border: 2px solid #fb741a;
}

.opcion-tag {
  align-self: flex-start;
  background: #fb741a;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 5px 13px;
  border-radius: 999px;
  position: absolute;
  top: -13px;
  left: clamp(28px, 3.4vw, 40px);
}

.opcion-card h3 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 27px);
  color: #243a5a;
}

.opcion-card p {
  margin: 0;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.55;
  color: #6a7180;
  flex: 1;
}

.opcion-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  background: #fff;
  color: #243a5a;
  border: 1.5px solid #243a5a;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 999px;
}
.opcion-card.is-recomendado .opcion-cta {
  background: #fb741a;
  color: #fff;
  border: none;
}

.pasos-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) clamp(20px, 4vw, 48px);
}

.pasos-title {
  margin: 0 0 clamp(40px, 5.5vw, 64px);
  max-width: 16ch;
}

.pasos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 48px);
}

.paso-card {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.paso-num {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1;
  color: #e4e4e4;
}

.paso-bar {
  width: 44px;
  height: 3px;
  background: #fb741a;
}

.paso-card h3 {
  margin: 6px 0 0;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(19px, 2.3vw, 23px);
  color: #243a5a;
}

.paso-card p {
  margin: 0;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.55;
  color: #6a7180;
}

.faq-section {
  background: #fff;
  border-top: 1px solid rgba(36, 58, 90, 0.08);
}

.faq-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) clamp(20px, 4vw, 48px);
}

.faq-title {
  margin: 0 0 clamp(32px, 4.5vw, 48px);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  text-align: left;
  background: #fff;
  border: 1px solid rgba(36, 58, 90, 0.1);
  border-radius: 14px;
  padding: clamp(18px, 2.4vw, 24px) clamp(20px, 2.6vw, 28px);
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}
.faq-item.is-open {
  background: #faf8f4;
}

.faq-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 2vw, 19px);
  color: #243a5a;
}

.faq-plus {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fb741a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item.is-open .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  margin-top: 14px;
  font-family: "Source Sans 3", sans-serif;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.6;
  color: #6a7180;
}
.faq-item.is-open .faq-answer {
  display: block;
}

.cta-final-section {
  background: #243a5a;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final-dot {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fb741a;
}

.cta-final-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) clamp(20px, 4vw, 48px);
}

.cta-final-title {
  margin: 0 0 16px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.cta-final-text {
  margin: 0 auto clamp(30px, 4vw, 42px);
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255, 255, 255, 0.8);
  max-width: 40ch;
}

.cta-final-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fb741a;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(17px, 2vw, 21px);
  padding: clamp(16px, 2vw, 22px) clamp(32px, 4vw, 50px);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(251, 116, 26, 0.4);
}
.cta-final-btn:hover {
  background: #c85512;
}

.site-footer {
  background: #1e2d42;
  color: rgba(255, 255, 255, 0.55);
}

.footer-top {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 340px;
}

.footer-brand img {
  height: 38px;
  width: auto;
}

.footer-brand p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 64px);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.footer-col.legal {
  max-width: 240px;
}

.footer-col-title {
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 48px);
  font-size: 13px;
}

/* ===== Responsive ===== */

@media (max-width: 640px) {
  .hdr-nav {
    display: none !important;
  }
  .hdr-cta {
    width: auto !important;
    height: auto !important;
    font-size: 14px !important;
    padding: 9px 18px !important;
  }
  .hero-mark-wrap {
    position: absolute !important;
    left: auto !important;
    top: auto !important;
    right: -14px !important;
    bottom: 18px !important;
    transform: none !important;
    opacity: 0.5;
  }
  .hero-mark-wrap img {
    height: 132px !important;
  }
  .hero-copy p {
    max-width: 100% !important;
  }
  .flow-panel {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(92vw, 420px) !important;
    max-height: 88vh !important;
  }
}

/* ===== Página de obligaciones (después del redirect por cédula) ===== */

.simple-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.simple-hdr {
  background: #fff;
  border-bottom: 1px solid rgba(36, 58, 90, 0.08);
}

.simple-hdr-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.simple-hdr-brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.simple-hdr-brand {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #243a5a;
}

.simple-hdr-divider {
  width: 1px;
  height: 22px;
  background: rgba(36, 58, 90, 0.15);
}

.simple-hdr-logo {
  height: 30px;
  width: auto;
  display: block;
}

.simple-hdr-back {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #6a7180;
}
.simple-hdr-back:hover {
  color: #fb741a;
}

.page-main {
  flex: 1;
  padding: clamp(24px, 5vw, 48px) 20px;
}

.oblig-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

@media (max-width: 800px) {
  .oblig-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Columna izquierda: facturas --- */

.oblig-panel {
  background: #fff;
  border-radius: 16px;
  padding: clamp(24px, 3vw, 32px);
  box-shadow: 0 20px 50px rgba(36, 58, 90, 0.08);
  color: #243a5a;
  animation: stepIn 0.3s ease both;
}

.oblig-tabs {
  display: flex;
  gap: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid rgba(36, 58, 90, 0.1);
  margin-bottom: 20px;
}

.oblig-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #aeb3bc;
  padding: 0 0 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.oblig-tab.is-active {
  color: #243a5a;
  border-bottom-color: #fb741a;
}

.checkbox-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14.5px;
  color: #3a4a63;
  user-select: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  text-align: left;
}

.select-all-row {
  margin-bottom: 16px;
}

.oblig-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #c7ccd4;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.oblig-checkbox svg {
  display: none;
}
.is-checked .oblig-checkbox {
  border-color: #fb741a;
  background: #fb741a;
}
.is-checked .oblig-checkbox svg {
  display: block;
}

.oblig-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.oblig-card {
  border: 1.5px solid #e2ddd4;
  border-radius: 12px;
  padding: clamp(16px, 2vw, 20px);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.oblig-card.is-checked {
  border-color: #fb741a;
  background: #fff8f3;
}

.oblig-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}

.oblig-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}

.oblig-ref-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #6a7180;
}
.oblig-ref-row b {
  color: #243a5a;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.02em;
}
.oblig-ref-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #aeb3bc;
  display: inline-flex;
  padding: 2px;
}
.oblig-ref-toggle:hover {
  color: #fb741a;
}

.oblig-desc-row {
  font-size: 13.5px;
  color: #6a7180;
}
.oblig-entidad {
  display: block;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #243a5a;
  margin-bottom: 2px;
}

.oblig-value-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 160px;
}

.oblig-value-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #243a5a;
}

.oblig-value-error {
  font-size: 12px;
  color: #d84315;
  text-align: right;
}

/* --- Columna derecha: resumen --- */

.oblig-sidebar {
  background: #eef0f2;
  border-radius: 16px;
  padding: clamp(24px, 3vw, 32px);
  color: #243a5a;
  position: sticky;
  top: 20px;
}

.sidebar-title {
  margin: 0 0 12px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 22px;
}

.sidebar-text {
  margin: 0 0 28px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #5c6b80;
}

.sidebar-detail-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}

.sidebar-row {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  padding: 9px 0;
  color: #3a4a63;
}
.sidebar-row.total {
  border-top: 1px solid rgba(36, 58, 90, 0.12);
  margin-top: 6px;
  padding-top: 14px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.sidebar-count {
  text-align: center;
  font-size: 12.5px;
  color: #8a94a3;
  margin: 6px 0 18px;
}

.sidebar-pagar-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 15px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  background: #fb741a;
  color: #fff;
}
.sidebar-pagar-btn:hover {
  background: #c85512;
}
.sidebar-pagar-btn:disabled {
  background: #b9c0cc;
  cursor: default;
}

.history-empty {
  color: #6a7180;
  font-size: 14.5px;
  padding: 24px 0;
  text-align: center;
}
