/* S.O.S Feet — sitio estático. Colores tomados del logotipo. Sin dependencias ni fuentes externas. */
:root {
  --navy: #0f4a95;
  --navy-dark: #0a3570;
  --blue: #2e7bc4;
  --teal: #4aa3ab;
  --teal-dark: #2b7b83;
  --ink: #15303d;
  --muted: #566b76;
  --bg: #ffffff;
  --soft: #f3f9fa;
  --line: #d9e7eb;
  --wa: #12804a;
  --wa-dark: #0d6a3d;
  --radius: 16px;
  --shadow: 0 10px 30px -18px rgba(15, 74, 149, 0.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; color: var(--navy-dark); margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw + 0.5rem, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.4vw + 0.7rem, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); font-size: 0.95rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---- botones ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.85rem 1.35rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s, background 0.15s, box-shadow 0.15s; line-height: 1.1; font-size: 1rem; }
.btn:hover { transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 22px -14px rgba(18, 128, 74, 0.9); }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--soft); color: var(--navy-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-sm { padding: 0.6rem 1rem; font-size: 0.92rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.4rem 0 0.4rem; }
.center + .cta-row, .section .cta-row { margin-top: 1.4rem; }

/* ---- cabecera ---- */
.site-header { position: relative; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; }
.brand img { width: 130px; height: auto; }
.nav { display: flex; gap: 0.25rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink); padding: 0.4rem 0.85rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { background: var(--navy); color: #fff; }

@media (min-height: 760px) { .site-header { position: sticky; top: 0; } }

/* ---- portada ---- */
.hero { background: linear-gradient(180deg, var(--soft), #fff); padding: clamp(2rem, 5vw, 4rem) 0; }
.hero-grid { display: grid; gap: 2.2rem; align-items: center; }
.kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 0.8rem; }
.lead { font-size: clamp(1.08rem, 1vw + 0.9rem, 1.28rem); color: #28434f; }
.hero-img, .side-img { margin: 0; }
.hero-img img, .side-img img { border-radius: 22px; box-shadow: var(--shadow); width: 100%; }
figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; text-align: center; }
.trust { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.5rem; grid-template-columns: 1fr 1fr; font-size: 0.93rem; color: #28434f; }
.trust li { display: flex; gap: 0.5rem; align-items: center; }
.trust .ico { color: var(--teal-dark); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; } }

/* ---- secciones ---- */
.section { padding: clamp(2.4rem, 5vw, 4.2rem) 0; }
.section.alt { background: var(--soft); }
.section-lead { max-width: 62ch; color: #35505c; margin-bottom: 1.6rem; }
.two-col { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.svc-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.svc-grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 760px; }
.svc-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform 0.15s, border-color 0.15s; }
.svc-card:hover { transform: translateY(-3px); border-color: var(--teal); color: var(--ink); }
.svc-card h3 { margin-bottom: 0.35rem; }
.svc-card p { color: #3d5763; font-size: 0.98rem; margin-bottom: 0.8rem; }
.svc-card .more { display: inline-flex; gap: 0.35rem; align-items: center; color: var(--navy); font-weight: 700; font-size: 0.92rem; }
.svc-card.small p { margin-bottom: 0; }
.svc-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(150deg, var(--teal), var(--blue)); color: #fff; margin-bottom: 0.9rem; }
.svc-ico .ico { width: 24px; height: 24px; }

/* ---- precios ---- */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 1rem; }
.prices { width: 100%; border-collapse: collapse; }
.prices th, .prices td { padding: 0.85rem 1.1rem; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.prices tr:first-child th, .prices tr:first-child td { border-top: 0; }
.prices th { font-weight: 650; }
.prices th small { display: block; font-weight: 400; color: var(--muted); font-size: 0.86rem; }
.prices td { text-align: right; white-space: nowrap; font-weight: 800; color: var(--navy-dark); }
.prices .quote { font-weight: 600; color: var(--teal-dark); font-size: 0.92rem; }

/* ---- pasos ---- */
.steps { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.steps li { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.steps .n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 0.7rem; }
.steps p { margin: 0; color: #35505c; }

/* ---- equipo ---- */
.team { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.person { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.avatar { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(150deg, var(--navy), var(--blue)); color: #fff; font-weight: 800; letter-spacing: 0.04em; }
.person h3 { margin-bottom: 0.1rem; }
.person p { margin: 0.25rem 0 0; font-size: 0.95rem; color: #3d5763; }
.person .role { color: var(--teal-dark); font-weight: 700; font-size: 0.88rem; }

/* ---- listas con palomita ---- */
.check-list, .prose ul { padding-left: 0; list-style: none; }
.check-list li, .prose ul li { position: relative; padding-left: 1.7rem; margin-bottom: 0.7rem; }
.check-list li::before, .prose ul li::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='m9.5 16.6-4.1-4.1 1.4-1.4 2.7 2.7 7.7-7.7 1.4 1.4-9.1 9.1Z'/%3E%3C/svg%3E") center/80% no-repeat; }

/* ---- preguntas frecuentes ---- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 0.7rem; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 1rem 3rem 1rem 1.2rem; font-weight: 700; color: var(--navy-dark); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--teal-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 1.2rem 1.1rem; color: #35505c; }

/* ---- mapa y contacto ---- */
.map { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 320px; background: var(--soft); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.nap { font-style: normal; margin: 1rem 0; }
.nap p { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.55rem; }
.nap .ico { color: var(--teal-dark); margin-top: 0.2em; }

/* ---- páginas de servicio ---- */
.page-hero { background: linear-gradient(180deg, var(--soft), #fff); padding: clamp(1.6rem, 4vw, 3rem) 0 clamp(1.2rem, 3vw, 2rem); }
.page-hero .lead { max-width: 70ch; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.8rem; }
.crumbs a { color: var(--muted); }
.content-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .content-grid { grid-template-columns: 1fr 340px; gap: 3rem; } .price-box { position: sticky; top: 16px; } }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.steps-list { padding-left: 1.3rem; }
.steps-list li { margin-bottom: 0.6rem; padding-left: 0.3rem; }
.price-box { background: linear-gradient(160deg, var(--navy), var(--blue)); color: #fff; border-radius: 22px; padding: 1.6rem; box-shadow: var(--shadow); }
.price-box p { margin: 0 0 0.6rem; }
.pb-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.9; }
.pb-amount { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.pb-note { font-size: 0.93rem; opacity: 0.95; }
.price-box .btn { width: 100%; margin-top: 0.4rem; }

/* ---- pie de página ---- */
.site-footer { background: #0b2f63; color: #d7e6f6; padding: 2.6rem 0 6rem; margin-top: 0; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot-brand { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 0.2rem; }
.foot-h { font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.legal { border-top: 1px solid rgba(255, 255, 255, 0.18); margin-top: 1.6rem; padding-top: 1rem; font-size: 0.82rem; color: #aac3df; }

/* ---- WhatsApp flotante y barra móvil ---- */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.5); }
.wa-float .ico { width: 30px; height: 30px; }
.wa-float:hover { background: var(--wa-dark); color: #fff; }
.mobile-bar { display: none; }
@media (max-width: 640px) {
  .wa-float { display: none; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 0.6rem; padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); }
  .mobile-bar .btn { flex: 1; padding: 0.8rem 0.5rem; }
  .head-cta { display: none; }
  .brand img { width: 112px; }
  .trust { grid-template-columns: 1fr; }
  .prices th, .prices td { padding: 0.75rem 0.85rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .wa-float, .mobile-bar, .map { display: none; } }
