/* ═══════════════════════════════════════════
   TOKENS & RESET
═══════════════════════════════════════════ */
:root {
  --red:        #E30613;
  --red-dark:   #B8000F;
  --red-deeper: #8C000B;
  --white:      #FFFFFF;
  --grey-bg:    #F6F6F6;
  --grey-light: #E8E8E8;
  --grey-mid:   #9E9E9E;
  --grey-text:  #4A4A4A;
  --black:      #1F1F1F;
  --green-wa:   #25D366;
  --green-wa-d: #1DA851;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);

  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w: 1140px;
  --max-narrow: 760px;

  --transition: .22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container--narrow { max-width: var(--max-narrow); }
.text-center { text-align: center; }
.br-lg { display: none; }
@media (min-width: 900px) { .br-lg { display: block; } }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform .1s;
  white-space: nowrap;
  line-height: 1.3;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--red-dark);
  border-color: var(--red-dark);
  outline: none;
}

.btn--hero-white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
  font-weight: 800;
}
.btn--hero-white:hover, .btn--hero-white:focus-visible {
  background: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.88);
  outline: none;
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  outline: none;
}

.btn--outline-dark {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn--outline-dark:hover { background: rgba(0,0,0,.05); }

.btn--ghost {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn--ghost:hover { background: rgba(227,6,19,.06); }

.btn--whatsapp {
  background: var(--green-wa);
  color: var(--white);
  border-color: var(--green-wa);
}
.btn--whatsapp:hover { background: var(--green-wa-d); border-color: var(--green-wa-d); }

.btn--lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: var(--shadow-sm);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar__nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.topbar__nav a {
  font-size: .85rem;
  font-weight: 600;
  color: var(--grey-text);
  text-decoration: none;
  transition: color var(--transition);
}
.topbar__nav a:hover { color: var(--red); }

/* Logo real */
.topbar__logo-img {
  height: 72px;
  width: auto;
  display: block;
}
.footer__logo-img {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: .75rem;
}

/* Logo placeholder — sustituir por <img> real */
.logo-placeholder {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  user-select: none;
}
.logo-placeholder__rose { font-size: 1.6rem; line-height: 1; }
.logo-placeholder div { display: flex; flex-direction: column; line-height: 1.2; }
.logo-placeholder strong { font-size: 1rem; color: var(--red); letter-spacing: .03em; }
.logo-placeholder span { font-size: .7rem; color: var(--grey-text); }
.logo-placeholder--small .logo-placeholder__rose { font-size: 1.2rem; }
.logo-placeholder--small strong { font-size: .85rem; }
.logo-placeholder--small span { font-size: .65rem; }

@media (max-width: 600px) { .topbar__nav { display: none; } }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
/* ── HERO ── */
.hero {
  position: relative;
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  padding: 0;         /* sin padding: la foto maneja la altura */
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 90% at 105% 50%, rgba(0,0,0,.22) 0%, transparent 60%),
    linear-gradient(140deg, var(--red) 0%, var(--red-deeper) 100%);
  z-index: 0;
}
/* Wave bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 64px;
  background: var(--grey-bg);
  clip-path: ellipse(58% 100% at 50% 100%);
  z-index: 1;
}
.hero__band {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: rgba(255,255,255,.18);
  z-index: 2;
}

/* Layout dos columnas */
.hero__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
}

/* Columna texto */
.hero__content {
  padding: 5rem 2rem 5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Columna foto */
.hero__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 2.5rem;
}

.hero__photo-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 520px;    /* limita la altura máxima */
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 3;
}

/* Móvil */
@media (max-width: 860px) {
  .hero__layout {
    grid-template-columns: 1fr;
  }
  .hero__photo {
    order: -1;
    padding-block: 2rem 0;
  }
  .hero__photo-img {
    max-height: 260px;
  }
  .hero__content {
    padding: 1.5rem 1.25rem 3rem;
  }
}
.hero__eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .72;
  margin-bottom: 1.25rem;
}
.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin-bottom: 1.25rem;
  max-width: 820px;
}
.hero__subtitle {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  line-height: 1.65;
  opacity: .92;
  max-width: 640px;
  margin-bottom: 2.25rem;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}
.hero__card {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  background: rgba(255,255,255,.13);
  border: 1.5px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  max-width: 440px;
}
.hero__card-icon { font-size: 1.6rem; flex-shrink: 0; }
.hero__card p { font-size: 1.05rem; line-height: 1.45; }

/* ═══════════════════════════════════════════
   SECTION BASE
═══════════════════════════════════════════ */
.section { padding-block: 5rem; }
.section--white  { background: var(--white); }
.section--light  { background: var(--grey-bg); }
.section--form   { background: var(--black); }
.section--political {
  background: linear-gradient(135deg, var(--red-deeper) 0%, var(--red-dark) 100%);
  color: var(--white);
}
.section--cta { background: var(--grey-bg); }

.section__header { margin-bottom: 3rem; }
.section__header--light { text-align: center; }

.section__title {
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  font-weight: 900;
  line-height: 1.13;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
  color: var(--black);
}
.section__title--light { color: var(--white); }

.section__lead {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: var(--grey-text);
  max-width: 680px;
  line-height: 1.72;
}
.section__lead--light {
  color: rgba(255,255,255,.88);
  max-width: 100%;
}

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 2.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--red);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__icon { font-size: 2rem; margin-bottom: 1rem; }
.card__title { font-size: 1.1rem; font-weight: 800; margin-bottom: .55rem; }
.card__text { font-size: .92rem; color: var(--grey-text); line-height: 1.62; }

.info-box {
  background: #fff7f7;
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  font-size: .92rem;
  color: var(--grey-text);
  line-height: 1.68;
}
.info-box strong { color: var(--black); }

/* ═══════════════════════════════════════════
   STEPS
═══════════════════════════════════════════ */
.steps {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--grey-light);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.step:hover { border-color: var(--red); box-shadow: var(--shadow-md); }
.step__number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -.02em;
  box-shadow: 0 3px 12px rgba(227,6,19,.32);
}
.step__title { font-size: 1.05rem; font-weight: 800; margin-bottom: .4rem; }
.step__text { font-size: .92rem; color: var(--grey-text); line-height: 1.62; }
.cta-inline { text-align: center; }

/* ═══════════════════════════════════════════
   FORM
═══════════════════════════════════════════ */
.form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
  max-width: 840px;
  margin-inline: auto;
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 600px) {
  .form__grid { grid-template-columns: 1fr; }
  .form__group--full { grid-column: 1; }
  .form { padding: 1.5rem; }
}
.form__group { display: flex; flex-direction: column; gap: .35rem; }
.form__group--full { grid-column: 1 / -1; }
.form__label { font-size: .85rem; font-weight: 700; color: var(--black); }
.required { color: var(--red); }

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: .72rem 1rem;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227,6,19,.14);
}
.form__input.error,
.form__select.error { border-color: var(--red); }
.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239E9E9E' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form__textarea { resize: vertical; min-height: 90px; }
.form__error { font-size: .78rem; color: var(--red); font-weight: 600; min-height: 1.1em; }

.form__checkboxes {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  color: var(--grey-text);
  cursor: pointer;
  line-height: 1.5;
}
.form__checkbox-label input[type="checkbox"] {
  margin-top: .18rem;
  flex-shrink: 0;
  accent-color: var(--red);
  width: 16px;
  height: 16px;
}
.link { color: var(--red); text-decoration: underline; }

.form__privacy-notice {
  background: #fff7f7;
  border: 1px solid rgba(227,6,19,.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: .82rem;
  color: var(--grey-text);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════
   RESULTADO
═══════════════════════════════════════════ */
.resultado {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 840px;
  margin: 2rem auto 0;
  border-top: 5px solid var(--red);
}
.resultado__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.resultado__icon { font-size: 2rem; }
.resultado__title { font-size: 1.4rem; font-weight: 900; }

.resultado__disclaimer {
  background: #fff7f7;
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .9rem 1.1rem;
  font-size: .88rem;
  color: var(--grey-text);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.resultado__resumen {
  background: var(--grey-bg);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  font-size: .9rem;
  line-height: 1.75;
  display: grid;
  gap: .25rem;
}
.resultado__resumen strong { color: var(--black); }

.resultado__texto-box { margin-bottom: 1.75rem; }
.resultado__texto-box h4 { font-size: 1rem; font-weight: 800; margin-bottom: .75rem; }

.resultado__texto {
  background: var(--grey-bg);
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: .8rem;
  line-height: 1.8;
  color: var(--black);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 380px;
  overflow-y: auto;
}

.resultado__actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
@media (max-width: 500px) {
  .resultado { padding: 1.5rem; }
  .resultado__actions { flex-direction: column; }
}

/* ═══════════════════════════════════════════
   FAQ
═══════════════════════════════════════════ */
.faq { display: flex; flex-direction: column; gap: .5rem; }
.faq__item {
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq__item--open { border-color: var(--red); }

.faq__question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 1.15rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  text-align: left;
  transition: background var(--transition);
}
.faq__question:hover { background: var(--grey-bg); }
.faq__question:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }

.faq__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  transition: transform var(--transition);
}
.faq__question[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }

.faq__answer {
  padding: 0 1.25rem 1.15rem;
  font-size: .94rem;
  color: var(--grey-text);
  line-height: 1.72;
}

/* ═══════════════════════════════════════════
   POLITICAL BLOCK
═══════════════════════════════════════════ */
.political-quote {
  margin-top: 2.5rem;
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 900;
  font-style: normal;
  line-height: 1.3;
  color: var(--white);
  border-left: 5px solid rgba(255,255,255,.38);
  padding-left: 1.5rem;
}

/* ═══════════════════════════════════════════
   CTA FINAL
═══════════════════════════════════════════ */
.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}
@media (max-width: 480px) { .cta-actions { flex-direction: column; align-items: stretch; } }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer { background: var(--black); color: rgba(255,255,255,.72); }
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-block: 2.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__brand { max-width: 320px; }
.footer__address { font-size: .82rem; margin-top: .75rem; line-height: 1.72; }
.footer__link {
  color: rgba(255,255,255,.58);
  text-decoration: none;
  font-size: .85rem;
  transition: color var(--transition);
}
.footer__link:hover { color: var(--white); }
.footer__nav { display: flex; flex-direction: column; gap: .55rem; }
.footer__legal {
  background: rgba(255,255,255,.05);
  padding-block: 1rem;
}
.footer__legal p {
  font-size: .78rem;
  color: rgba(255,255,255,.42);
  line-height: 1.65;
}
@media (max-width: 600px) { .footer__inner { flex-direction: column; } }

/* ═══════════════════════════════════════════
   TOAST
═══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--black);
  color: var(--white);
  padding: .85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  max-width: 300px;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast--success { border-left: 4px solid #25D366; }
.toast--info    { border-left: 4px solid var(--red); }

/* ═══════════════════════════════════════════
   ACCESSIBILITY
═══════════════════════════════════════════ */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════
   MOBILE TWEAKS
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero { padding-block: 3.5rem 3rem; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .section { padding-block: 3.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
}
