:root {
  --navy: #0d2340;
  --navy-2: #16345c;
  --teal: #0e8f7e;
  --teal-dark: #0a6f62;
  --teal-soft: #e3f4f1;
  --ink: #1c2733;
  --muted: #5a6878;
  --line: #e2e8ee;
  --bg: #f6f9fb;
  --white: #ffffff;
  --wa: #1fa855;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(13, 35, 64, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}
img, svg { max-width: 100%; }
a { color: var(--teal-dark); }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.alt { background: var(--bg); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-dark); margin-bottom: .8em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand strong { display: block; font-size: 1.02rem; line-height: 1.1; }
.brand span { display: block; font-size: .74rem; color: var(--teal-dark); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 22px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal-dark); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.menu-toggle svg { display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1rem; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178f47; color: #fff; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #ffffff 0%, var(--teal-soft) 100%); padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .lead { margin-bottom: 1.4em; }
.hero-card {
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow); padding: 26px;
  border: 1px solid var(--line);
}
.hero-card h2 { font-size: 1.1rem; margin-bottom: .8em; }
.pulse { width: 100%; height: 56px; margin-bottom: 10px; }
.pulse path { stroke: var(--teal); stroke-width: 3; fill: none; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.6s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse path { animation: none; stroke-dashoffset: 0; } }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--muted); font-size: .92rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { color: var(--teal); }

/* Page hero (inner) */
.page-hero { background: linear-gradient(160deg, #ffffff 0%, var(--teal-soft) 100%); padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: 0 1px 0 rgba(13,35,64,.03);
}
a.card { text-decoration: none; color: inherit; display: block; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #c9dbe6; color: inherit; }
.card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; margin-bottom: 14px; }
.card p { color: var(--muted); margin-bottom: .6em; }
.card .more { font-weight: 700; color: var(--teal-dark); font-size: .95rem; }
.audience { border-top: 4px solid var(--teal); }
.audience.b2b { border-top-color: var(--navy); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); margin-bottom: 10px; }
.audience.b2b .tag { background: #e6ecf5; color: var(--navy); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.steps p { color: var(--muted); margin: 0; }

/* Content */
.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.aside-card { position: sticky; top: 92px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px; }
.aside-card h2, .aside-card h3 { color: #fff; }
.aside-card p { color: #c9d6e6; }
.aside-card .btn { width: 100%; justify-content: center; margin-top: 10px; }
.aside-card .btn-ghost { border-color: #fff; color: #fff; }
.aside-card .btn-ghost:hover { background: #fff; color: var(--navy); }
.notice { background: #fff8e6; border: 1px solid #f1dca4; border-radius: 12px; padding: 16px 18px; margin: 1.4em 0; }
.notice strong { color: #7a5a00; }
.symptoms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; list-style: none; padding: 0 !important; }
.symptoms li { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 !important; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; background: var(--white); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* Zones */
.zones { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.zones li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem; }
.zones li.main { background: var(--navy); color: #fff; border-color: var(--navy); }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #c9d6e6; margin: 0; }

/* Form */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd6e0; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(14,143,126,.25); border-color: var(--teal); }
.form textarea { min-height: 120px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { font-weight: 600; }
.form-status.ok { color: var(--teal-dark); }
.form-status.err { color: #b42318; }

/* Footer */
.site-footer { background: #0a1b31; color: #b8c6d8; padding: 48px 0 28px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #e2eaf3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45em; }
.footer-bottom { border-top: 1px solid #1f3554; margin-top: 32px; padding-top: 18px; font-size: .85rem; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.wa-float:hover { color: #fff; background: #178f47; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-cta { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .grid-2, .grid-3, .steps, .symptoms, .form .row, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 28px; }
  .hero { padding: 48px 0; }
}

/* Campo de teléfono con selector de país */
.phone-field { position: relative; }
.pf-box {
  display: flex; align-items: stretch; border: 1.5px solid #cbd6e0; border-radius: 12px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.phone-field.is-focus .pf-box, .phone-field.is-open .pf-box { border-color: #5b7fb5; box-shadow: 0 0 0 3px rgba(91,127,181,.15); }
.pf-country {
  display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #f1f4f8; border: 0;
  border-right: 1px solid #e2e8ee; border-radius: 11px 0 0 11px; cursor: pointer; color: var(--ink);
}
.pf-country:focus-visible { outline: 3px solid rgba(14,143,126,.35); outline-offset: -3px; }
.pf-chev { transition: transform .15s ease; }
.phone-field.is-open .pf-chev { transform: rotate(180deg); }
.pf-flag { width: 22px; height: 16px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none; }
.pf-main { flex: 1; display: block; padding: 8px 14px 9px; margin: 0 !important; cursor: text; min-width: 0; }
.pf-label { display: block; font-size: .74rem; font-weight: 500; color: var(--muted); line-height: 1.2; }
.pf-line { display: flex; align-items: center; gap: 6px; }
.pf-dial { color: var(--ink); font-weight: 500; }
.form .pf-main input { border: 0; padding: 2px 0 0; outline: none; box-shadow: none; font-weight: 600; background: transparent; min-width: 0; }
.form .pf-main input:focus { outline: none; }
.pf-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff;
  border: 1px solid #e2e8ee; border-radius: 12px; box-shadow: 0 12px 32px rgba(13,35,64,.14); overflow: hidden;
}
.pf-search { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #edf1f5; color: var(--muted); }
.form .pf-search input { border: 0; padding: 0; outline: none; font-size: 1rem; }
.form .pf-search input:focus { outline: none; }
.pf-list { list-style: none; margin: 0; padding: 6px; max-height: 248px; overflow-y: auto; }
.pf-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.pf-opt:hover, .pf-opt.is-active { background: #f1f4f8; }
.pf-name { flex: 1; }
.pf-name strong { font-weight: 800; }
.pf-check { color: var(--navy); display: flex; }
.pf-empty { padding: 12px; color: var(--muted); }

/* Imágenes */
.card-img { display: block; width: calc(100% + 48px); max-width: none; height: auto; margin: -24px -24px 18px; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 3 / 2; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.hero-img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } .hero-img { max-width: 480px; } }
