/* ===== Colores y tipografía (tomados del logo) ===== */
:root {
  --navy: #13305F;
  --navy-dark: #0C2147;
  --teal: #0F8396;      /* versión un poco más oscura del turquesa del logo, para buen contraste */
  --teal-light: #E3F3F6;
  --sky: #5AAEE0;
  --bg: #F5F8FB;
  --white: #FFFFFF;
  --text: #16243A;
  --muted: #4A5568;
  --line: #DCE3EC;
  --display: 'Montserrat', 'Arial', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split--top { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.kicker { color: var(--teal); font-weight: 600; font-size: 15px; margin-bottom: 12px; }

/* ===== Header ===== */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 12px; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--teal); }
.nav a.btn { color: var(--white); }
.menu-btn { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 8px; }

/* ===== Botones ===== */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 15px 26px; border-radius: 8px; border: 2px solid transparent; transition: background-color .2s, color .2s; text-align: center; }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--navy); }
.btn--ghost { color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--teal-light); }
.btn--sm { padding: 10px 18px; }
.btn--block { width: 100%; cursor: pointer; font: inherit; font-weight: 600; font-size: 17px; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ===== Hero ===== */
.hero { background: var(--bg); padding: 88px 0; }
.hero__text { display: flex; flex-direction: column; gap: 20px; }
.hero__lead { font-size: 19px; color: var(--muted); max-width: 34em; }

/* Ilustración de resultado de búsqueda */
.serp { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 20px 50px -24px rgba(19,48,95,.35); display: flex; flex-direction: column; gap: 14px; }
.serp__bar { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; color: var(--text); font-size: 16px; }
.serp__bar svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.serp__ad { border-radius: 10px; padding: 16px; }
.serp__ad--yours { border: 2px solid var(--teal); background: var(--teal-light); }
.serp__tag { font-size: 13px; font-weight: 700; color: var(--text); }
.serp__url { font-size: 13px; color: var(--muted); }
.serp__title { font-size: 19px; color: #1A47A8; font-weight: 600; margin: 4px 0; }
.serp__desc { font-size: 14px; color: var(--muted); }
.serp__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.serp__actions span { font-size: 13px; font-weight: 600; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.serp__ad--muted { display: flex; flex-direction: column; gap: 8px; padding: 6px 16px; }
.line { display: block; height: 10px; border-radius: 5px; background: #E8EDF3; }
.line--s { width: 30%; } .line--m { width: 70%; } .line--l { width: 90%; }
.serp__note { font-size: 14px; font-weight: 600; color: var(--teal); text-align: center; }

/* ===== Secciones ===== */
.section { padding: 96px 0; }
.section--tint { background: var(--bg); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section p { color: var(--muted); font-size: 17px; }

.grid--services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 12px; background: var(--white); }
.card svg { width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: var(--teal-light); fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card p { font-size: 16px; }

/* Proceso (pasos en orden) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; counter-reset: none; }
.step { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.step__num { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--display); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.step p { font-size: 16px; }

/* Beneficios */
.benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.benefits li { display: flex; gap: 16px; align-items: flex-start; }
.benefits svg { width: 32px; height: 32px; flex-shrink: 0; padding: 6px; border-radius: 50%; background: var(--teal); fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.benefits h3 { margin-bottom: 4px; }
.benefits p { font-size: 16px; }

/* ===== CTA ===== */
.cta { background: var(--navy); padding: 64px 0; }
.cta__inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { flex: 1 1 520px; color: var(--white); }

/* ===== Contacto ===== */
.contact { background: var(--bg); padding: 96px 0; position: relative; }
.contact__grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.contact__info { flex: 1 1 380px; display: flex; flex-direction: column; gap: 24px; }
.contact__info .kicker { margin-bottom: -12px; }
.contact__lead { color: var(--muted); font-size: 18px; }
.contact__group { display: flex; flex-direction: column; gap: 6px; }
.contact__group h3 { font-size: 18px; }
.contact__group p { color: var(--muted); font-size: 17px; }
.contact__group a { color: var(--muted); text-decoration: none; word-break: break-word; }
.contact__group a:hover { color: var(--navy); text-decoration: underline; }

.form { flex: 1 1 460px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 8px; }
.form label { font-size: 15px; font-weight: 600; margin-top: 12px; color: var(--text); }
.req { color: #C8102E; }
.form input, .form textarea { font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid #C5CFDB; border-radius: 8px; background: var(--white); color: var(--text); width: 100%; }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--sky); border-color: var(--navy); }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 24px; }
.form__row > div { display: flex; flex-direction: column; gap: 8px; }
.phone { display: flex; }
.phone__prefix { display: flex; align-items: center; padding: 0 12px; border: 1px solid #C5CFDB; border-right: 0; border-radius: 8px 0 0 8px; background: var(--bg); font-size: 15px; white-space: nowrap; }
.phone input { border-radius: 0 8px 8px 0; min-width: 0; }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; margin: 16px 0 12px !important; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--teal); }
.consent a { color: var(--navy); }

/* ===== Páginas simples (gracias / aviso / 404) ===== */
.page { max-width: 760px; margin: 0 auto; padding: 72px 24px; }
.page h1 { margin-bottom: 24px; font-size: clamp(32px, 4vw, 44px); }
.page h2 { font-size: 24px; margin: 32px 0 12px; }
.page p, .page li { color: var(--muted); font-size: 17px; margin-bottom: 12px; }

/* ===== Footer ===== */
.footer { background: var(--white); border-top: 1px solid var(--line); padding: 32px 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer img { height: 44px; width: auto; }
.footer p { color: var(--muted); font-size: 14px; }
.footer a { color: var(--muted); }

/* ===== Botón flotante WhatsApp ===== */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 60; }
.wa-float svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; }

/* ===== Móvil ===== */
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .logo img { height: 46px; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 16px; padding: 8px 0 12px; }
  .nav.is-open { display: flex; }
  .hero, .section, .contact { padding-top: 56px; padding-bottom: 56px; }
  .form { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
