:root {
  --bg: #ffffff;
  --ink: #3a4953;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #ffffff; --ink: #3a4953; }
}
:root[data-theme="dark"] { --bg: #ffffff; --ink: #3a4953; }

html { scroll-behavior: smooth; scroll-padding-top: env(safe-area-inset-top, 0px); }
*, *::before, *::after { box-sizing: inherit; }
img { max-width: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #3a4953; }
a:hover { color: #e9425c; }
input::placeholder { color: #7b8890; }

/* --- comparativa responsive (desktop: 3-col table; mobile: 2-col stacked) --- */
.cmp { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 31fr) minmax(0, 31fr); }
@media (max-width: 680px) {
  .cmp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cmp-empty { display: none !important; }
  .cmp-l { grid-column: 1 / -1; text-align: center !important; justify-content: center !important; padding: 14px 8px 4px 8px !important; border-top: 0 !important; background: linear-gradient(90deg, #fdf1f3 50%, #fff7ef 50%) !important; }
  .cmp-l span { background: #ffffff; border-radius: 999px; padding: 5px 12px; font-size: 13px; }
  .cmp-v { border-top: 0 !important; padding: 8px 8px 14px 8px !important; font-size: 14px !important; }
  .cmp-h { padding: 18px 10px 16px 10px !important; }
  .cmp-h img { max-height: 44px !important; }
}

/* --- FAQ accordion (native <details>/<summary>, no JS needed) --- */
summary::-webkit-details-marker { display: none; }
summary { outline-offset: 4px; cursor: pointer; }
.faq-ico { display: inline-flex; flex-shrink: 0; transition: transform 0.2s ease; }
details[open] .faq-ico { transform: rotate(45deg); }

/* --- form states --- */
input:focus-visible { outline: none; border-color: #3a4953 !important; box-shadow: 0 0 0 3px rgba(233, 66, 92, 0.25); }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(233, 66, 92, 0.5); outline-offset: 3px; }
input.error { border-color: #c22a40 !important; }

/* --- sticky mobile CTA --- */
.sticky-cta { display: none; }
@media (max-width: 680px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 20;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) 16px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -6px 20px rgba(51, 69, 79, 0.12);
    transform: translateY(110%);
    transition: transform 0.25s ease;
  }
  .sticky-cta.on { transform: translateY(0); }
  footer { padding-bottom: 96px !important; }
}
