/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  min-height: 100vh;
}

/* ============================================================
   LAYOUT — page wrapper
   ============================================================ */
.page-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "left right"
    "footer footer";
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
}

/* ============================================================
   LEFT PANEL
   ============================================================ */
.panel--left {
  grid-area: left;
  background: linear-gradient(160deg, #ebebeb 0%, #d8d8d8 100%);
  display: flex;
  flex-direction: column;
  padding: 32px 48px 48px;
  position: relative;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  margin-bottom: 32px;
}

.header__logo {
  width: 148px;
  height: auto;
  display: block;
}

/* ============================================================
   CARDS SECTION
   ============================================================ */
.cards-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.cards-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.cards-stack__img {
  width: min(420px, 90%);
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.18));
}

/* ============================================================
   SELECTOR
   ============================================================ */
.selector {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.selector__label {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.selector__control {
  position: relative;
  background: #fff;
  border: 1.5px solid #c8c8c8;
  border-radius: 6px;
  padding: 0 44px 0 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 64px;
  text-align: left;
  transition: border-color 0.2s;
}

.selector__control:hover { border-color: #1d3a8a; }

.selector__hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1d5cbf;
  display: block;
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}

.selector__select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #1a1a1a;
  cursor: pointer;
  width: 100%;
  padding: 0;
}

.selector__chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #555;
  pointer-events: none;
  flex-shrink: 0;
}

/* ============================================================
   RIGHT PANEL
   ============================================================ */
.panel--right {
  grid-area: right;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 56px 56px 56px 64px;
}

.content {
  max-width: 520px;
  width: 100%;
}

/* ============================================================
   TITLE
   ============================================================ */
.content__title {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
  color: #1a1a1a;
  margin-bottom: 36px;
}

.content__title strong {
  font-weight: 800;
}

/* ============================================================
   SUBTITLE
   ============================================================ */
.content__subtitle {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
}

/* ============================================================
   BENEFITS LIST
   ============================================================ */
.benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 44px;
}

.benefits__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.benefits__badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e3000f;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.benefits__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #1a1a1a;
  font-weight: 400;
}

/* ============================================================
   CTA BUTTON
   ============================================================ */
.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #1a3ec7 0%, #1631a8 60%, #1228a0 100%);
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  padding: 18px 48px;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(26, 62, 199, 0.35);
}

.cta-btn:hover  { filter: brightness(1.08); }
.cta-btn:active { transform: scale(0.97); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  grid-area: footer;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
  padding: 24px 48px 28px;
}

.footer__vigilado-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #444;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer__vigilado-img {
  width: 16px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.footer__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__disclaimer,
.footer__address,
.footer__legal {
  font-size: 0.75rem;
  line-height: 1.6;
  color: #444;
}

.footer__disclaimer { color: #333; }

.footer__link {
  color: #1d5cbf;
  text-decoration: none;
}

.footer__link:hover { text-decoration: underline; }

.footer__aval {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.footer__aval-img {
  width: 80px;
  height: auto;
  display: block;
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .panel--left  { padding: 28px 32px 40px; }
  .panel--right { padding: 44px 40px 44px 44px; }

  .cards-stack__img { width: min(340px, 85%); }

  .content__title    { font-size: 1.3125rem; }
  .content__subtitle { font-size: 1rem; }

  .footer { padding: 20px 32px 24px; }
}

/* CTA sticky oculto por defecto en desktop */
.cta-sticky { display: none; }

/* ============================================================
   RESPONSIVE — Tablet (≤ 768px): columna única, logo centrado,
   CTA sticky al fondo como en el screenshot real
   ============================================================ */
@media (max-width: 768px) {

  /* Grid apilado */
  .page-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "left"
      "right"
      "footer";
  }

  /* ── LEFT PANEL ── */
  .panel--left {
    padding: 20px 20px 28px;
    background: linear-gradient(180deg, #ebebeb 0%, #d4d4d4 100%);
  }

  /* Logo centrado en mobile */
  .header {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
  }
  .header__logo { width: 130px; }

  .cards-section { gap: 24px; }
  .cards-stack__img { width: min(280px, 78%); }

  .selector { max-width: 100%; }
  .selector__label { font-size: 1rem; }
  .selector__control { height: 60px; }

  /* ── RIGHT PANEL ── */
  .panel--right {
    padding: 28px 20px 100px; /* espacio para el CTA sticky */
    justify-content: flex-start;
    background: #fff;
  }

  .content { max-width: 100%; }

  .content__title {
    font-size: 1.125rem;
    margin-bottom: 24px;
    line-height: 1.45;
  }

  .content__subtitle {
    font-size: 0.9375rem;
    margin-bottom: 18px;
  }

  .benefits { gap: 16px; margin-bottom: 0; }
  .benefits__text { font-size: 0.875rem; }

  /* Ocultar el CTA inline en mobile — se muestra el sticky */
  .cta-btn--inline { display: none; }

  /* ── CTA STICKY ── */
  .cta-sticky {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    padding: 14px 20px 18px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.10);
  }

  .cta-sticky .cta-btn {
    width: 100%;
    max-width: 420px;
    text-align: center;
    padding: 17px 24px;
    font-size: 0.9rem;
  }

  /* ── FOOTER ── */
  .footer {
    grid-template-columns: 1fr auto;
    padding: 20px 20px 88px; /* espacio extra por el CTA sticky */
    gap: 14px;
  }

  .footer__aval { align-items: flex-start; }
}

/* ============================================================
   RESPONSIVE — Mobile portrait (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .panel--left  { padding: 16px 16px 24px; }
  .panel--right { padding: 24px 16px 100px; }

  .header__logo { width: 116px; }
  .cards-stack__img { width: min(240px, 84%); }

  .selector__label  { font-size: 0.9375rem; }
  .content__title   { font-size: 1rem; }
  .content__subtitle{ font-size: 0.875rem; }

  .benefits__badge { width: 24px; height: 24px; font-size: 0.75rem; }
  .benefits__text  { font-size: 0.8125rem; }

  .footer {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 88px;
  }

  .footer__aval { align-items: flex-start; }

  .footer__disclaimer,
  .footer__address,
  .footer__legal { font-size: 0.6875rem; }
}
