:root {
  --brand-blue: #0b3a8f;
  --brand-blue-2: #1a5bd6;
  --soft-gray: #f5f7fb;
  --text-muted-2: #6b7280;
}

@font-face {
  font-family: "RepublicaMinor";
  src: url("/fonts/republica-minor-2.0.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Estricta";
  src: url("/fonts/Estricta.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Estricta";
  src: url("/fonts/Estricta-Bold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Estricta";
  src: url("/fonts/Estricta-Black.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Estricta";
  background-position-y: top;
}

p {
  font-size: 0.9rem;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 644;
  background-image: url("/imagenes/surubi-2026/header.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
  height: 100%;
}

.hero .moto {
  max-width: 460px;
  width: 100%;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
}

.hero-title {
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: clamp(18px, 2.2vw, 22px);
  opacity: 0.95;
}

.title {
  font-size: 4rem;
  font-weight: 800;
  text-align: center;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}

.hero-brand img {
  height: 54px;
  width: auto;
}

.hero-brand .brand-word {
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 1px;
  line-height: 1;
}

.hero-sub {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.15);
}

/* BENEFICIOS */

.benefit-card {
  border: 0;
  border-radius: 18px;
  padding: 18px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.benefit-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(26, 91, 214, 0.12);
  display: grid;
  place-items: center;
}

.benefit-icon i {
  font-size: 26px;
  color: var(--brand-blue-2);
}

.benefit-text {
  line-height: 1.05;
  text-align: left;
}

.benefit-top {
  font-weight: 700;
  font-family: "RepublicaMinor";
  color: #1f2937;
  font-size: 16px;
}
.benefit-bottom {
  font-weight: 900;
  font-family: "RepublicaMinor";
  color: var(--brand-blue-2);
  font-size: 22px;
}

/* CUERPO */
.lead-copy {
  color: var(--text-muted-2);
  font-size: 15px;
}
.lead-copy b {
  color: var(--brand-blue-2);
}
.lead-copy a {
  color: var(--brand-blue-2);
  text-decoration: none;
  font-weight: 700;
}
.lead-copy a:hover {
  text-decoration: underline;
}

/* FORM */

.form-control,
.form-select {
  border-radius: 10px;
  height: 44px;
}

.form-control::placeholder {
  color: #9aa3b2;
}

.textarea {
  min-height: 110px;
}

.hint {
  color: #9aa3b2;
  font-size: 12px;
}

.btn-primary {
  background: #234086;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  min-width: 220px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  box-shadow: 0 10px 25px rgba(30, 60, 255, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(30, 60, 255, 0.45);
}

.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
  background: #1b326a;
}

.btn:hover {
  background: #1b326a;
}

/* FOOTER */
footer {
  background: #313131;
  color: #ffffff;
}
.footer-logo {
  max-height: 34px;
  width: auto;
  opacity: 0.95;
}
.footer-small {
  font-size: 11px;
  color: #aab3c2;
}

.items {
  height: 6rem;
  width: auto;
}

input::placeholder,
textarea::placeholder {
  color: #000 !important;
}

.terms-close-custom {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(90deg, #4082fd 0%, #264e97 100%);
  color: white;
  border: none;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  line-height: 1;
  padding: 0;
  cursor: pointer;

  position: absolute;
  right: 10px;
  z-index: 9;
}

/* Modal "card" look */
.terms-modal {
  border: 0;
  /* border-radius: 18px; */
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  /* background: #fff; */
}

/* Header con close arriba derecha */
.terms-header {
  position: relative;
  padding: 12px 14px 0 14px;
}
.terms-close {
  position: absolute;
  top: 12px;
  right: 14px;
  opacity: 0.9;
  z-index: 9;
  background: linear-gradient(90deg, #4082fd 0%, #264e97 100%);
  color: white;
  border-radius: 50%;
}

/* Body tipo “tarjeta” interna */
.terms-body {
  padding: 22px 26px 18px 26px;
}
.terms-title {
  text-align: center;
  margin: 0 0 12px 0;
  font-weight: 600;
}

/* Páginas: se muestran de a una */
.terms-pages {
  position: relative;
  min-height: 360px; /* ajustá según tu contenido */
}
.terms-page {
  display: none;
  font-size: 13px;
  line-height: 1.45;
  color: #2f2f2f;
  margin-top: 1.5rem;
}
.terms-page.is-active {
  display: block;
}

/* Footer con flechas + contador centrado */
.terms-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 16px 16px 16px;
}
.terms-counter {
  font-size: 12px;
  color: #6b6b6b;
  min-width: 48px;
  text-align: center;
  user-select: none;
}
.terms-nav {
  width: 34px;
  height: 34px;
  padding: 0;
  line-height: 32px;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #4082fd;
}
.terms-nav:disabled {
  opacity: 0;
  cursor: not-allowed;
}

/* Backdrop más suave (opcional) */
.modal-backdrop.show {
  opacity: 0.35;
}

.form-wrap {
  padding-top: 3rem;
  padding-bottom: 8rem;
}

select option.select-sep {
  font-weight: 700;
  background-color: #f5f5f5;
}

.benefits {
  padding-top: 6rem;
}

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.terms-modal.active {
  display: block;
}

.terms-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.terms-modal__content {
  position: relative;
  width: min(90%, 720px);
  max-height: 85vh;
  margin: 5vh auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 32px 24px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalFadeIn 0.25s ease;
}

.terms-modal__title {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
}

.terms-modal__body {
  max-height: calc(85vh - 100px);
  overflow-y: auto;
  padding-right: 8px;
}

.terms-modal__body p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

.terms-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

.terms-link {
  color: #6b6b6b;
  text-decoration: underline;
  font-weight: 600;
}

body.modal-open {
  overflow: hidden;
}

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

@media (max-width: 768px) {
  .terms-modal__content {
    width: calc(100% - 24px);
    margin: 4vh auto;
    padding: 24px 18px 18px;
  }

  .terms-modal__title {
    font-size: 22px;
  }

  .terms-modal__body p {
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .benefit-card {
    justify-content: flex-start;
  }

  .items {
    height: 4rem;
  }

  .hero {
    aspect-ratio: 780 / 460;
    background-image: url("/imagenes/surubi-2026/header-t.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 100%;
  }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .benefit-card {
    justify-content: flex-start;
  }

  .items {
    height: 4rem;
  }

  .hero {
    aspect-ratio: 440 / 460;
    background-image: url("/imagenes/surubi-2026/header-m.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 100%;
  }
}

@media (max-width: 440px) {
  .items {
    height: 7rem;
  }
}
