:root {
  --bg: #f2f7fb;
  --bg-strong: #fbfdff;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --ink: #14324f;
  --muted: #5d7085;
  --line: rgba(17, 87, 145, 0.12);
  --brand: #0079c8;
  --brand-deep: #005c98;
  --brand-soft: #dff1ff;
  --accent: #0f7aa8;
  --accent-deep: #17385a;
  --success: #e9f6ef;
  --warning: #f6fbff;
  --shadow: 0 26px 70px rgba(19, 50, 79, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(0, 121, 200, 0.1), transparent 28%),
    radial-gradient(circle at top right, rgba(23, 56, 90, 0.08), transparent 22%),
    linear-gradient(180deg, #fcfeff 0%, #eef5fb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
  position: relative;
}

.topbar,
.topbar-strip,
.hero-illustration-card,
.social-proof-card,
.promo-side-card,
.promo-banner,
.calculator-card,
.result-card,
.compare-table-wrap,
.action-card,
.notice,
.success-box,
.promo-box {
  backdrop-filter: blur(12px);
}

.topbar {
  display: block;
  margin-bottom: 22px;
}

.topbar-strip,
.promo-side-card,
.promo-banner,
.calculator-card,
.result-card,
.compare-table-wrap,
.action-card,
.notice,
.success-box,
.promo-box {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.topbar-strip {
  border-radius: 24px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 300px);
  min-height: 82px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(17, 87, 145, 0.08);
  padding: 12px 18px;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-bar-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.brand-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: right;
}

.brand-copy {
  display: grid;
  gap: 12px;
}

.eyebrow {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 800;
}

.hero h1,
.social-proof-card h2,
.section-heading h2,
.action-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.5rem);
  max-width: 780px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.phone-cta {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78px;
  min-width: 240px;
  padding: 14px 24px;
  border-radius: 22px;
  text-decoration: none;
  color: white;
  background: linear-gradient(145deg, var(--brand-deep), var(--brand));
  box-shadow: 0 18px 34px rgba(0, 92, 152, 0.24);
}

.cta-kicker {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.76;
}

.phone-cta span {
  font-size: 0.88rem;
  opacity: 0.92;
}

.phone-cta strong {
  font-size: 1.6rem;
}

.trust-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.trust-inline span,
.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(223, 241, 255, 0.58);
  border: 1px solid rgba(17, 87, 145, 0.09);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-deep);
}

.topbar-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  background: linear-gradient(145deg, var(--accent-deep), var(--brand-deep));
  font-weight: 800;
  font-size: 1.1rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 30px;
  align-items: start;
}

.hero-copy {
  padding: 10px 4px 10px;
  display: grid;
  gap: 16px;
}

.hero-text {
  margin: 0;
  font-size: 1.09rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
}

.hero-illustration-card,
.social-proof-card {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.hero-illustration-card {
  padding: 16px;
}

.hero-illustration-scene {
  position: relative;
  min-height: 270px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.82), transparent 32%),
    linear-gradient(160deg, #dff1ff 0%, #f7fbff 46%, #d8eefc 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
}

.hero-orb-a {
  width: 180px;
  height: 180px;
  right: -24px;
  top: -30px;
  background: rgba(0, 121, 200, 0.12);
}

.hero-orb-b {
  width: 150px;
  height: 150px;
  left: -30px;
  bottom: -36px;
  background: rgba(23, 56, 90, 0.08);
}

.hero-person {
  position: absolute;
  bottom: 34px;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.hero-person-left {
  left: 48px;
}

.hero-person-center {
  left: 134px;
  bottom: 26px;
}

.hero-person-right {
  left: 228px;
}

.hero-head {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #ffd7b8;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.05);
}

.hero-body {
  width: 56px;
  height: 92px;
  border-radius: 24px 24px 18px 18px;
  background: linear-gradient(180deg, #1f7fd0, #175a94);
}

.hero-person-center .hero-head {
  width: 52px;
  height: 52px;
}

.hero-person-center .hero-body {
  width: 72px;
  height: 118px;
  background: linear-gradient(180deg, #0e5ca5, #163b65);
}

.hero-medical-card {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: 170px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(17, 87, 145, 0.09);
  box-shadow: 0 14px 24px rgba(23, 56, 90, 0.1);
}

.hero-medical-card strong {
  display: block;
  margin-bottom: 6px;
}

.hero-medical-card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.stars {
  color: #f3b323;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
}

.hero-floating-proof strong,
.social-proof-card strong {
  font-size: 1.28rem;
  color: var(--accent-deep);
}

.social-proof-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-floating-proof {
  position: absolute;
  left: 20px;
  top: 20px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(17, 87, 145, 0.09);
  box-shadow: 0 14px 24px rgba(23, 56, 90, 0.08);
}

.hero-floating-proof strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-points li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--brand), #6bbced);
  box-shadow: 0 0 0 6px rgba(0, 121, 200, 0.12);
}

.promo-banner {
  display: none;
  margin-top: 4px;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.promo-banner strong,
.promo-box strong {
  display: block;
  margin-bottom: 6px;
}

.promo-banner span {
  display: block;
  color: var(--muted);
  line-height: 1.65;
}

.calculator-card {
  border-radius: var(--radius-xl);
  padding: 28px;
  position: sticky;
  top: 24px;
}

.hero-side {
  display: grid;
  gap: 18px;
  align-self: start;
}

.social-proof-card {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.social-proof-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.social-proof-card h2 {
  font-size: clamp(1.6rem, 2.1vw, 2.2rem);
}

.social-proof-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.social-proof-stats div {
  display: grid;
  gap: 4px;
  padding: 12px 12px;
  border-radius: 18px;
  background: rgba(249, 252, 255, 0.98);
  border: 1px solid rgba(17, 87, 145, 0.08);
}

.social-proof-stats strong {
  font-size: 1.35rem;
}

.social-proof-stats span {
  color: var(--muted);
  line-height: 1.45;
}

.testimonial-list {
  display: grid;
  gap: 10px;
}

.testimonial-list blockquote {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(223, 241, 255, 0.58);
  border: 1px solid rgba(17, 87, 145, 0.08);
  color: var(--accent-deep);
  line-height: 1.6;
  font-weight: 600;
}

.promo-side-card {
  padding: 20px 22px;
  border-radius: var(--radius-xl);
  display: grid;
  gap: 12px;
}

.promo-side-card strong {
  font-size: 1.2rem;
  color: var(--accent-deep);
}

.promo-side-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.calculator-title {
  margin: 0 0 20px;
  font-size: 1.2rem;
  font-weight: 800;
}

.calculator-lead {
  margin: -8px 0 4px;
  color: var(--muted);
  line-height: 1.55;
}

.calculator-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 4px;
}

.calculator-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(223, 241, 255, 0.62);
  border: 1px solid rgba(17, 87, 145, 0.08);
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.quote-form,
.lead-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.field-group-header span {
  font-size: 0.96rem;
  font-weight: 700;
}

input,
select,
button,
textarea {
  font: inherit;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
}

input:focus,
select:focus {
  outline: 2px solid rgba(0, 121, 200, 0.18);
  border-color: rgba(0, 121, 200, 0.32);
}

input[type="file"] {
  padding: 11px 12px;
}

.field-group {
  display: grid;
  gap: 12px;
}

.field-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.ages-list {
  display: grid;
  gap: 12px;
}

.age-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.age-field {
  margin: 0;
}

.age-preview {
  color: var(--muted);
  line-height: 1.45;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button,
.inline-link,
.modal-close {
  border: none;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.primary-button {
  color: white;
  background: linear-gradient(145deg, var(--brand-deep) 0%, var(--brand) 55%, #4bafe8 100%);
  box-shadow: 0 18px 30px rgba(0, 121, 200, 0.22);
}

.secondary-button {
  color: var(--accent-deep);
  background: #fff;
  border: 1px solid rgba(0, 121, 200, 0.16);
}

.full-width-button {
  width: 100%;
}

.ghost-button,
.text-button,
.inline-link {
  background: none;
  color: var(--accent);
  padding: 0;
  font-weight: 700;
}

.ghost-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: #b3261e;
  font-size: 0.94rem;
}

.notice span,
.notice span,
.result-description,
.result-breakdown,
.price-base,
.action-card-copy p,
.privacy-consent,
.success-box p,
.site-footer p {
  color: var(--muted);
  line-height: 1.65;
}

.results-section,
.compare-section,
.contact-section {
  margin-top: 56px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notice-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.notice {
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.result-card {
  border-radius: var(--radius-xl);
  padding: 24px;
  display: grid;
  gap: 18px;
}

.result-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.result-tag {
  margin: 0 0 8px;
  color: var(--brand-deep);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.result-card h3,
.action-card h3 {
  font-size: 1.65rem;
}

.price-badge {
  min-width: 164px;
  border-radius: 24px;
  padding: 16px 18px;
  background: linear-gradient(145deg, rgba(0, 92, 152, 0.96), rgba(23, 56, 90, 0.98));
  color: white;
  text-align: right;
}

.price-badge strong {
  display: block;
  font-size: 1.5rem;
}

.price-badge span {
  font-size: 0.88rem;
  opacity: 0.82;
}

.micro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.micro-grid span {
  display: grid;
  gap: 4px;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(249, 252, 255, 0.98);
  border: 1px solid rgba(17, 87, 145, 0.08);
  font-size: 0.94rem;
  line-height: 1.45;
}

.micro-grid strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.promo-box {
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, rgba(223, 241, 255, 0.86), rgba(255, 255, 255, 0.98));
}

.promo-eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.promo-box ul,
.result-columns ul {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.result-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.result-columns h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.compare-table-wrap {
  border-radius: var(--radius-xl);
  padding: 10px;
  overflow: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(17, 87, 145, 0.08);
  vertical-align: top;
}

.compare-table thead th {
  background: rgba(0, 121, 200, 0.08);
  font-size: 0.95rem;
}

.compare-table tbody th {
  width: 19%;
  color: var(--accent);
  font-size: 0.92rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.action-card {
  border-radius: var(--radius-xl);
  padding: 26px;
  display: grid;
  gap: 18px;
}

.action-card-copy h3 {
  margin-bottom: 10px;
}

.action-card-copy p {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-full {
  grid-column: 1 / -1;
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.privacy-consent input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.lead-actions {
  display: grid;
  gap: 10px;
}

.success-box {
  border-radius: var(--radius-lg);
  padding: 22px;
  background: rgba(233, 246, 239, 0.96);
}

.success-box h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.success-box p {
  margin: 0;
}

.success-box a {
  color: var(--brand-deep);
  font-weight: 800;
}

.site-footer {
  padding: 28px 0 0;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 50, 79, 0.56);
}

.modal-panel {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(960px, calc(100% - 24px));
  height: min(78vh, 860px);
  border-radius: 24px;
  background: white;
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(12, 19, 30, 0.28);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(17, 87, 145, 0.1);
}

.modal-header h3 {
  margin: 0;
}

.modal-close {
  background: rgba(17, 87, 145, 0.06);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.6rem;
}

.modal-body,
.modal-body iframe {
  width: 100%;
  height: calc(100% - 75px);
}

.modal-body iframe {
  border: 0;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1040px) {
  .topbar,
  .hero,
  .results-grid,
  .contact-grid,
  .promo-banner {
    grid-template-columns: 1fr;
  }

  .topbar-strip,
  .section-heading,
  .result-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-bar-side {
    justify-items: start;
  }

  .brand-meta {
    text-align: left;
  }

  .calculator-card {
    position: static;
  }

  .price-badge {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .calculator-card,
  .result-card,
  .action-card,
  .topbar-strip,
  .hero-illustration-card,
  .social-proof-card,
  .promo-side-card,
  .promo-banner {
    padding: 20px;
  }

  .hero-actions,
  .trust-inline,
  .calculator-trust,
  .form-grid,
  .result-columns,
  .micro-grid,
  .age-row {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .calculator-trust {
    flex-direction: column;
  }

  .social-proof-stats {
    grid-template-columns: 1fr;
  }

  .phone-cta,
  .secondary-button,
  .topbar-phone {
    width: 100%;
  }

  .modal-panel {
    width: calc(100% - 12px);
    height: 84vh;
  }
}

/* =========================================================
   OVERRIDE: DISEÑO LIMPIO Y ORIENTADO A CONVERSIÓN
   ========================================================= */

:root {
  /* Colores más neutros y elegantes */
  --bg: #F8FAFC !important;
  --surface: #FFFFFF !important;
  /* Sombras sutiles y profesionales, cero efecto "nube" */
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
  /* Bordes menos redondos (quita el aspecto de juguete) */
  --radius-xl: 16px !important;
  --radius-lg: 12px !important;
}

/* 1. Limpieza extrema del fondo */
body {
  background: var(--bg) !important;
}
body::before {
  display: none !important; /* Adiós a la rejilla de fondo */
}

/* 2. Eliminar efectos de cristal y unificar tarjetas */
.topbar-strip, .hero-illustration-card, .social-proof-card, .promo-side-card, 
.promo-banner, .calculator-card, .result-card, .compare-table-wrap, 
.action-card, .notice, .success-box, .promo-box {
  backdrop-filter: none !important;
  background: var(--surface) !important;
  border: 1px solid rgba(17, 87, 145, 0.08) !important;
  box-shadow: var(--shadow) !important;
}

/* 3. Limpiar la ilustración (quitar bolas decorativas flotantes) */
.hero-illustration-scene {
  background: #f0f7ff !important;
}
.hero-orb {
  display: none !important; 
}

/* 4. Destacar la caja principal de conversión (Calculadora) */
.calculator-card {
  border-top: 4px solid var(--brand) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 92, 152, 0.15) !important;
}

/* 5. Refinar los botones de acción principal */
.primary-button {
  background: var(--brand) !important; /* Color sólido, sin gradiente barato */
  box-shadow: 0 4px 12px rgba(0, 121, 200, 0.25) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 121, 200, 0.35) !important;
}

/* 6. Mejorar legibilidad tipográfica general */
.hero-text, .social-proof-text, .promo-side-card p {
  color: #475569 !important;
  font-size: 1.15rem !important;
}

/* =========================================================
   OVERRIDE 2: FOCO EN LA CALCULADORA Y TIPOGRAFÍA
   ========================================================= */

/* 1. Titulares más pequeños y elegantes */
.hero h1 { font-size: clamp(2rem, 3vw, 2.5rem) !important; max-width: 680px; }
.social-proof-card h2, .section-heading h2, .action-card h3 { font-size: 1.5rem !important; }
.hero-text { font-size: 1.05rem !important; }

/* 2. Ocultar el texto DGS superior (se mantiene en el footer) */
.brand-meta { display: none !important; }

/* 3. Arreglar el botón del teléfono (soluciona el corte del texto) */
.topbar-phone {
  padding: 0 24px !important; /* Más espacio a los lados */
  min-height: 48px !important;
  font-size: 1.15rem !important;
  white-space: nowrap !important; /* Evita que los números se amontonen */
  line-height: 1 !important;
}

/* 4. Forzar la calculadora a la primera posición visual */
.hero-side {
  display: flex !important;
  flex-direction: column !important;
}
.calculator-card {
  order: -1 !important;
  border-top: 4px solid var(--brand) !important; /* Ancla la mirada aquí */
  margin-bottom: 24px !important;
}

/* 5. Limpiar el bloque de confianza para su nueva posición */
.social-proof-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* =========================================================
   OVERRIDE 4: FRICCIÓN DNI UPLOAD
   ========================================================= */
input[type="file"] {
  border: 2px dashed rgba(0, 121, 200, 0.3) !important;
  background: #f8fafc !important;
  padding: 16px 12px !important;
  cursor: pointer !important;
  border-radius: var(--radius-md) !important;
  color: var(--muted) !important;
  font-size: 0.9rem !important;
  transition: all 0.2s ease !important;
  min-height: 70px !important;
}

input[type="file"]:hover {
  border-color: var(--brand) !important;
  background: #f0f7ff !important;
}

input[type="file"]::file-selector-button {
  background: var(--surface) !important;
  color: var(--brand-deep) !important;
  border: 1px solid rgba(0, 121, 200, 0.2) !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  margin-right: 15px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
  transition: all 0.2s ease !important;
}

input[type="file"]::file-selector-button:hover {
  background: var(--brand-soft) !important;
  border-color: var(--brand) !important;
}

/* =========================================================
   OVERRIDE 10: CALCULADORA FLOTANTE (INACTIVIDAD)
   ========================================================= */
body.calculator-modal-active::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 45, 0.65);
  backdrop-filter: blur(5px);
  z-index: 900;
}
body.calculator-modal-active .calculator-card {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(90%, 420px) !important;
  z-index: 1000 !important;
  margin: 0 !important;
  box-shadow: 0 40px 100px rgba(0,0,0,0.4) !important;
  animation: calcPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}
@keyframes calcPop {
  0% { opacity: 0; transform: translate(-50%, -40%) scale(0.95); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.calc-modal-close {
  display: none;
}
body.calculator-modal-active .calc-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(17, 87, 145, 0.08);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.2s ease;
}
body.calculator-modal-active .calc-modal-close:hover {
  background: rgba(17, 87, 145, 0.18);
  color: #b3261e;
}

/* =========================================================
   OVERRIDE 11: ETIQUETAS FUERTES Y MODAL FLOTANTE
   ========================================================= */

/* 1. Hacer Código Postal y Fechas de nacimiento sutilmente más fuertes */
.calculator-card .field > span,
.calculator-card .field-group-header > span {
    font-weight: 800 !important;
    font-size: 1.05rem !important; /* Un poco más grande */
    color: var(--ink) !important; /* Color más oscuro y sólido */
    letter-spacing: -0.01em !important;
}

/* 2. Diseño del fondo oscuro cuando la calculadora flota */
body.calculator-modal-active::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 45, 0.7);
    backdrop-filter: blur(4px);
    z-index: 900;
}

/* 3. Comportamiento de la tarjeta cuando se vuelve flotante */
body.calculator-modal-active .calculator-card {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(90%, 440px) !important;
    z-index: 1000 !important;
    margin: 0 !important;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5) !important;
    animation: calcPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

@keyframes calcPop {
    0% { opacity: 0; transform: translate(-50%, -40%) scale(0.95); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 4. Botón de cerrar la calculadora flotante (solo visible en modo modal) */
.calc-modal-close { display: none; }
body.calculator-modal-active .calc-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(17, 87, 145, 0.08);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--ink);
    transition: all 0.2s ease;
}
body.calculator-modal-active .calc-modal-close:hover {
    background: rgba(17, 87, 145, 0.18);
    color: #b3261e;
}

/* =========================================================
   OVERRIDE 14: REFINAMIENTO VISUAL Y TABLA MÓVIL
   ========================================================= */

/* 1. Compactar listas en las tarjetas de resultados para que no sean tan altas */
.result-columns ul {
    margin-top: 6px !important;
    gap: 4px !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}
.result-columns h4 { margin-bottom: 4px !important; }

/* 2. Micro-copia de Urgencia en rojo */
.promo-side-card strong {
    color: #b3261e !important;
}

/* 3. Tabla comparativa: Congelar la primera columna en móviles */
@media (max-width: 720px) {
    .compare-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .compare-table th:first-child, 
    .compare-table td:first-child {
        position: sticky;
        left: 0;
        background: rgba(248, 250, 252, 0.95);
        backdrop-filter: blur(4px);
        z-index: 2;
        border-right: 1px solid rgba(17, 87, 145, 0.1);
        box-shadow: 2px 0 5px rgba(0,0,0,0.03);
    }
    .compare-table thead th:first-child {
        background: #f1f5f9;
        z-index: 3;
    }
}

/* =========================================================
   OVERRIDE 16: MODAL BLINDADO (Z-INDEX FORZADO)
   ========================================================= */
body.calculator-modal-active::after {
    content: ''; position: fixed; inset: 0; 
    background: rgba(15, 30, 45, 0.7) !important; 
    backdrop-filter: blur(4px) !important; 
    z-index: 9998 !important;
}
body.calculator-modal-active .calculator-card {
    position: fixed !important; 
    top: 50% !important; 
    left: 50% !important;
    transform: translate(-50%, -50%) !important; 
    width: min(90%, 440px) !important;
    z-index: 9999 !important; 
    margin: 0 !important;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5) !important;
    animation: calcPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}
