/* =================================================================
   Cerrajero Santiago Fuengirola — Hoja de estilos
   Diseño profesional, mobile-first, optimizado para rendimiento/SEO
   ================================================================= */

:root {
  /* Paleta */
  --navy: #0f1b2d;
  --navy-2: #16263d;
  --navy-3: #1d3553;
  --amber: #f5a623;
  --amber-d: #d98a0b;
  --amber-ink: #9a5b00; /* ámbar oscuro para texto: contraste AA (~5.4:1 sobre blanco) */
  --green: #16a34a;
  --red: #e23b3b;
  --ink: #1a2232;
  --muted: #5b6678;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --white: #ffffff;

  /* Tipografía */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Medidas */
  --container: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 27, 45, .08);
  --shadow-lg: 0 18px 50px rgba(15, 27, 45, .14);
  --header-h: 78px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.18; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
p { margin-bottom: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-call { background: var(--amber); color: var(--navy); box-shadow: 0 8px 22px rgba(245,166,35,.35); }
.btn-call:hover { background: var(--amber-d); color: #fff; }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(37,211,102,.32); }
.btn-wa:hover { background: #1da851; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-3); color: #fff; }
.btn-lg { padding: 17px 32px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: #cfe0f5; font-size: .86rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar #tb-weather:empty { display: none; }
.topbar #tb-weather .ic-svg { color: var(--amber); }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 18px; position: relative; }
.brand { display: flex; align-items: center; gap: 13px; font-weight: 800; color: var(--navy); font-size: 1.18rem; line-height: 1.12; }
.brand:hover { text-decoration: none; }
.brand .logo-img { width: 66px; height: 66px; object-fit: contain; flex: 0 0 auto; }
.site-footer .brand .logo-img { width: 76px; height: 76px; }
.brand small { display: block; font-size: .7rem; font-weight: 700; color: var(--amber-d); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }

.menu { display: flex; align-items: center; gap: 1px; list-style: none; }
.menu > li { position: relative; }
.menu > li > a {
  display: flex; align-items: center; padding: 11px 13px; color: var(--ink); font-weight: 600; font-size: .94rem;
  border-radius: 8px; position: relative; transition: color .15s;
}
.menu > li > a:hover { text-decoration: none; color: var(--amber-d); }
.menu > li > a::before {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 7px; height: 2px;
  background: var(--amber); border-radius: 2px; transform: scaleX(0); transition: transform .18s ease;
}
.menu > li > a:hover::before { transform: scaleX(1); }
.menu .has-sub > a::after {
  content: ""; width: 6px; height: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); margin-left: 7px; margin-top: -3px;
}
.nav-lang { font-weight: 700 !important; color: var(--navy) !important; }

.submenu {
  position: absolute; top: calc(100% + 2px); left: 0; min-width: 256px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease; z-index: 120;
}
.menu .has-sub:hover .submenu, .menu .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: .92rem; font-weight: 500; transition: .12s; }
.submenu a:hover { background: var(--bg-soft); text-decoration: none; color: var(--amber-d); padding-left: 16px; }

/* ---------- Mega menú ---------- */
.menu > li.has-mega { position: static; }
.megamenu {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 120;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 22px; display: grid; grid-template-columns: 1fr 300px; gap: 22px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .18s ease;
}
.menu .has-mega:hover .megamenu, .menu .has-mega:focus-within .megamenu { opacity: 1; visibility: visible; transform: translateY(0); }
.megamenu a { text-decoration: none; }
.mega-main { display: flex; flex-direction: column; gap: 16px; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mega-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; border-radius: 12px; transition: background .14s; }
.mega-item:hover { background: var(--bg-soft); }
.mega-ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(245,166,35,.13); color: var(--amber-d); display: grid; place-items: center; flex: 0 0 auto; }
.mega-ic .ic-svg { width: 21px; height: 21px; }
.mega-tx { display: flex; flex-direction: column; line-height: 1.2; }
.mega-tx strong { color: var(--navy); font-size: .94rem; font-weight: 700; }
.mega-tx small { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.mega-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }
.mega-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); width: 100%; margin-bottom: 2px; }
.mega-pill { display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--navy); }
.mega-pill-link { color: var(--amber-ink); border-color: rgba(245,166,35,.4); }
.mega-pill-link:hover, a.mega-pill:hover { border-color: var(--amber); color: var(--amber-d); }
.mega-pill .ic-svg { width: 14px; height: 14px; }
.mega-aside { background: var(--navy); color: #fff; border-radius: 14px; padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.mega-aside h4 { color: #fff; font-size: 1.08rem; margin-bottom: 8px; }
.mega-aside p { color: #c9d6ea; font-size: .88rem; margin-bottom: 18px; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-call { display: inline-flex; align-items: center; gap: 8px; background: var(--amber); color: var(--navy); font-weight: 800; padding: 12px 20px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 16px rgba(245,166,35,.32); transition: .15s; }
.nav-call:hover { background: var(--amber-d); color: #fff; text-decoration: none; transform: translateY(-1px); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 3px; margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background:
    linear-gradient(180deg, rgba(15,27,45,.86), rgba(15,27,45,.94)),
    radial-gradient(1200px 500px at 80% -10%, rgba(245,166,35,.22), transparent 60%),
    var(--navy);
  padding: 64px 0 72px;
}
.hero .badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #eaf1fb; padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 .accent { color: var(--amber); }

/* Hero centrado (inicio) */
.hero--center { text-align: center; }
.hero--center h1 { max-width: none; margin: 0 auto; }
.hero--center .badges { justify-content: center; }
.hero--center p.lead { margin-left: auto; margin-right: auto; }
.hero--center .hero-cta { justify-content: center; }
.hero--center .hero-trust { justify-content: center; }
.hero p.lead { color: #c9d6ea; margin-top: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-trust div { font-size: .9rem; color: #c9d6ea; }
.hero-trust strong { display: block; color: #fff; font-size: 1.5rem; font-weight: 800; }

/* ---------- Tarjetas de valor ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.value-card h3 { margin-bottom: 6px; }
.value-card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Grid de servicios ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.service-card h3 { color: var(--navy); margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.service-card .more { margin-top: 14px; color: var(--amber-ink); font-weight: 700; font-size: .92rem; }

/* ---------- Bloque "soy Santiago" ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.profile-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.profile-card h3 { color: #fff; }
.profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
.profile-stats div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 14px; }
.profile-stats strong { display: block; color: var(--amber); font-size: 1.3rem; }
.profile-stats span { font-size: .82rem; color: #c9d6ea; }
.check-list { list-style: none; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--ink); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--green); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }

/* ---------- Marcas ---------- */
.brands { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.brand-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 110px; padding: 14px 22px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 800; color: var(--navy); letter-spacing: .04em; box-shadow: var(--shadow); }
.brand-pill:hover { border-color: var(--amber); color: var(--amber-d); text-decoration: none; }

/* ---------- Stats banda ---------- */
.stats-band { background: var(--navy); color: #fff; }
.stats-band .grid-4 { gap: 16px; }
.stat { text-align: center; padding: 10px; }
.stat strong { display: block; font-size: 2.2rem; color: var(--amber); font-weight: 800; }
.stat span { color: #c9d6ea; font-size: .95rem; }

/* ---------- Zonas ---------- */
.zone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.zone-link { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; text-align: center; font-weight: 700; color: var(--navy); box-shadow: var(--shadow); }
.zone-link:hover { border-color: var(--amber); color: var(--amber-d); text-decoration: none; transform: translateY(-2px); }
.zone-link small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy); list-style: none; position: relative; padding-right: 50px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--amber-d); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }

/* ---------- CTA final ---------- */
.cta-final { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; text-align: center; border-radius: 0; }
.cta-final h2 { color: #fff; }
.cta-final p { color: #c9d6ea; max-width: 620px; margin: 12px auto 26px; }
.cta-final .hero-cta { justify-content: center; }

/* ---------- Bloque "manda foto" ---------- */
.photo-cta { background: var(--amber); color: var(--navy); border-radius: var(--radius); padding: 34px; text-align: center; }
.photo-cta h2 { color: var(--navy); }
.photo-cta p { color: #4a3a10; max-width: 640px; margin: 10px auto 22px; }

/* ---------- Tipos de cliente ---------- */
.clients { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.client-pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 12px 22px; font-weight: 700; color: var(--navy); box-shadow: var(--shadow); }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .86rem; color: var(--muted); padding: 14px 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--amber-d); }

/* ---------- Page hero (interiores) — centrado como el inicio ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 40px 0 48px; text-align: center; }
.page-hero .eyebrow { color: var(--amber); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c9d6ea; max-width: 760px; margin-left: auto; margin-right: auto; }
.page-hero .hero-cta { margin-top: 22px; justify-content: center; }
.price-flag { display: inline-flex; align-items: center; gap: 8px; background: var(--amber); color: var(--navy); font-weight: 800; padding: 10px 20px; border-radius: 999px; margin-top: 18px; }

/* ---------- Proceso pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--amber); display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Lista situaciones ---------- */
.sit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sit { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; text-align: center; font-weight: 600; color: var(--navy); }
.sit .ic { font-size: 1.6rem; display: block; margin-bottom: 8px; }

/* ---------- Caja info contacto ---------- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.info-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.info-card p { color: var(--muted); margin: 0; }
.info-card a { font-weight: 700; }

/* ---------- Valoración Google ---------- */
.grating { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 1rem; flex-wrap: wrap; justify-content: center; }
.gstars { display: inline-flex; color: var(--amber); }
.gstars .ic-svg { width: 22px; height: 22px; }
.grating strong { color: var(--navy); font-size: 1.35rem; }
.gmuted { color: var(--muted); }

/* ---------- Tarjetas de reseña ---------- */
.reviews-grid { margin-top: 30px; text-align: left; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.rv-stars { display: inline-flex; color: var(--amber); margin-bottom: 12px; }
.rv-stars .ic-svg { width: 18px; height: 18px; }
.rv-text { color: var(--ink); font-size: .98rem; flex: 1; margin-bottom: 18px; }
.rv-author { display: flex; align-items: center; gap: 12px; }
.rv-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex: 0 0 auto; }
.rv-meta { display: flex; flex-direction: column; line-height: 1.25; }
.rv-meta strong { color: var(--navy); }
.rv-meta small { color: var(--muted); font-size: .8rem; display: inline-flex; align-items: center; gap: 5px; }
.rv-meta small .ic-svg { width: 14px; height: 14px; }

/* Carrusel vertical de reseñas (3 columnas que suben en bucle) */
.reviews-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px;
  height: 540px; overflow: hidden; text-align: left;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.reviews-col { overflow: hidden; }
.reviews-coltrack { display: flex; flex-direction: column; gap: 18px; animation: reviews-up 38s linear infinite; will-change: transform; }
.reviews-coltrack--2 { animation-duration: 52s; }
.reviews-coltrack--3 { animation-duration: 45s; }
.reviews-cols .review-card { text-align: left; }
.reviews-cols .review-card:hover { transform: none; box-shadow: var(--shadow); }
.reviews-cols .review-card { cursor: default; }
@keyframes reviews-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .reviews-coltrack { animation: none; } }
@media (max-width: 980px) { .reviews-cols { grid-template-columns: repeat(2, 1fr); } .reviews-col--3 { display: none; } }
@media (max-width: 600px) { .reviews-cols { grid-template-columns: 1fr; height: 480px; } .reviews-col--2 { display: none; } }

/* ---------- Blog ---------- */
.posts-grid { gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.post-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-body h3 { color: var(--navy); font-size: 1.12rem; margin-bottom: 8px; }
.post-card-body p { color: var(--muted); font-size: .94rem; flex: 1; }
.post-card-body .more { margin-top: 14px; color: var(--amber-ink); font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 5px; }

.post { max-width: 820px; margin: 0 auto; }
.post-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 28px; }
.post-body { font-size: 1.05rem; }
.post-body h2 { margin: 32px 0 14px; }
.post-body h3 { margin: 24px 0 8px; font-size: 1.2rem; }
.post-body p { margin-bottom: 1.1rem; }
.post-body ul, .post-body ol { margin: 0 0 1.2rem 1.3rem; }
.post-body li { margin-bottom: 9px; }
.post-body a { color: var(--amber-ink); font-weight: 600; }
.post-cta { margin-top: 36px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.post-cta h3 { margin-bottom: 6px; }
.post-cta p { color: var(--muted); margin-bottom: 18px; }
.post-cta .hero-cta { justify-content: center; }

/* ---------- Mapa ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); line-height: 0; }
.map-wrap iframe { width: 100%; height: 360px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aebfd6; padding: 56px 0 24px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.site-footer a { color: #aebfd6; }
.site-footer a:hover { color: var(--amber); text-decoration: none; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-brand .logo-mark { display: inline-grid; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; font-size: 1.1rem; }
.social a:hover { background: var(--amber); color: var(--navy); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: #8298b8; }

/* ---------- Barra móvil fija ---------- */
.mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15,27,45,.12); padding: 8px; gap: 8px; }
.mobile-bar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 10px; font-weight: 800; font-size: 1rem; }
.mobile-bar .mb-call { background: var(--amber); color: var(--navy); }
.mobile-bar .mb-wa { background: #25d366; color: #fff; }

/* WhatsApp flotante (desktop) */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 150; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: var(--shadow-lg); }
.wa-float:hover { transform: scale(1.06); text-decoration: none; }

/* ---------- Iconos SVG ---------- */
.ic-svg { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.16em; flex: 0 0 auto; }
.ic { width: 54px; height: 54px; border-radius: 14px; background: rgba(245,166,35,.13); color: var(--amber-d); display: inline-grid; place-items: center; margin-bottom: 14px; }
.ic .ic-svg { width: 27px; height: 27px; vertical-align: middle; }
.btn .ic-svg { width: 1.15em; height: 1.15em; }
.chip { gap: 8px; }
.chip .ic-svg { width: 16px; height: 16px; color: var(--amber); }
.sit .ic { width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 8px; display: grid; }
.sit .ic .ic-svg { width: 24px; height: 24px; }
.client-pill { display: inline-flex; align-items: center; gap: 8px; }
.client-pill .ic-svg { color: var(--amber-d); }
.price-flag .ic-svg { width: 18px; height: 18px; }
.info-card h3 { display: flex; align-items: center; gap: 8px; }
.info-card h3 .ic-svg { color: var(--amber-d); width: 20px; height: 20px; }
.profile-card h3 .ic-svg { color: var(--amber); }
.footer-links li { display: flex; align-items: center; gap: 7px; }
.footer-links a { display: inline-flex; align-items: center; gap: 7px; }
.footer-links .ic-svg { color: var(--amber); }
.topbar .ic-svg { width: 15px; height: 15px; color: var(--amber); }
.social a .ic-svg { width: 19px; height: 19px; }
.mobile-bar .ic-svg { width: 20px; height: 20px; }
.wa-float .ic-svg { width: 28px; height: 28px; }
.nav-call .ic-svg { width: 17px; height: 17px; }
.more .ic-svg, .zone-link .ic-svg { width: 16px; height: 16px; }

/* ---------- Imágenes ---------- */
.media-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; display: block; aspect-ratio: 4/3; }
.profile-photo { width: 100%; border-radius: 12px; margin-bottom: 16px; object-fit: cover; aspect-ratio: 16/10; }
.zone-banner { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 16/7; margin-bottom: 18px; }
.brand-logos { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.brand-logo { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; box-shadow: var(--shadow); display: grid; place-items: center; min-width: 130px; height: 92px; }
.brand-logo img { max-height: 56px; max-width: 130px; width: auto; object-fit: contain; }
.brand-logo:hover { border-color: var(--amber); transform: translateY(-2px); text-decoration: none; }
.brand-hero-img { width: 100%; max-width: 260px; margin: 0 auto 8px; border-radius: 12px; background:#fff; padding:18px; box-shadow: var(--shadow); object-fit: contain; aspect-ratio: 1/1; }

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-amber { color: var(--amber-ink); }
.prose p { margin-bottom: 1.1rem; }
.prose h2 { margin: 32px 0 14px; }
.prose h3 { margin: 24px 0 10px; }
.prose ul { margin: 0 0 1.2rem 1.2rem; }
.prose li { margin-bottom: 8px; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .value-grid, .grid-3, .steps, .sit-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .zone-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .menu, .nav-cta .btn-text { display: none; }
  .burger { display: block; }
  .nav-cta .nav-call span.full { display: none; }

  /* Menú móvil desplegable */
  .menu.open {
    display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 10px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .menu.open > li { width: 100%; }
  .menu.open > li > a { padding: 13px 14px; border-radius: 8px; }
  .menu.open .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 2px 0 8px 14px; padding: 0;
  }
  .menu.open .has-sub > a::after { float: right; }

  /* Mega menú en móvil: lista simple desplegable */
  .menu.open .megamenu {
    display: none; position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 2px 0 8px 14px; gap: 0;
    grid-template-columns: 1fr; margin: 2px 0 6px;
  }
  .menu.open .megamenu .mega-main { gap: 0; }
  .menu.open .megamenu .mega-grid { grid-template-columns: 1fr; gap: 0; }
  .menu.open .megamenu .mega-aside, .menu.open .megamenu .mega-pills { display: none; }
  .menu.open .megamenu .mega-item { padding: 9px 8px; }
  .menu.open .megamenu .mega-ic { width: 34px; height: 34px; border-radius: 9px; }
  .menu.open .megamenu .mega-ic .ic-svg { width: 18px; height: 18px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; padding-bottom: 70px; } /* hueco barra móvil */
  .section { padding: 44px 0; }
  .value-grid, .grid-2, .grid-3, .grid-4, .steps, .sit-grid, .zone-grid, .info-grid, .profile-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-cta .btn, .cta-final .btn { width: 100%; }
  .mobile-bar { display: flex; }
  .wa-float { display: none; }
  .topbar .tb-hide { display: none; }
  .hero-trust { gap: 16px; }
  .hero-trust strong { font-size: 1.25rem; }
}

@media (max-width: 380px) {
  .sit-grid { grid-template-columns: 1fr 1fr; }
}
