/* ============================================================
   Cerrajeros Torremolinos Costa
   Diseño industrial-honesto · paleta del logo
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --c-primary: #1e3a5f;
  --c-primary-light: #2d4f7c;
  --c-primary-dark: #0f2440;
  --c-primary-50: #eff4fa;
  --c-primary-100: #dbe7f3;
  --c-accent: #b35900;        /* Contraste 5.25:1 con blanco — pasa WCAG AA */
  --c-accent-dark: #8a4500;   /* Hover/focus — 7.4:1 con blanco AAA */
  --c-accent-light: #d97706;  /* Decoración brillante (no usar como fondo de texto blanco) */

  --c-text: #0f172a;
  --c-text-soft: #334155;
  --c-text-muted: #64748b;
  --c-bg: #ffffff;
  --c-bg-soft: #f7f8fa;
  --c-bg-section: #eef1f5;
  --c-bg-dark: #0b1628;
  --c-border: #dde2e8;
  --c-border-strong: #c4ccd5;

  --shadow-xs: 0 1px 2px rgb(15 23 42 / 0.06);
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.05), 0 1px 1px rgb(15 23 42 / 0.04);
  --shadow-md: 0 2px 4px rgb(15 23 42 / 0.06), 0 4px 8px rgb(15 23 42 / 0.05);
  --shadow-lg: 0 4px 12px rgb(15 23 42 / 0.08), 0 8px 16px rgb(15 23 42 / 0.06);
  --shadow-xl: 0 12px 32px rgb(15 23 42 / 0.12);

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-full: 9999px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI',
               system-ui, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--c-accent-dark); }

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Tipografía ===== */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--c-text);
  margin: 0 0 1rem;
}
h1 {
  font-size: clamp(1.95rem, 3.5vw + 1rem, 3.25rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 800;
}
h2 {
  font-size: clamp(1.55rem, 2vw + 0.9rem, 2.2rem);
  letter-spacing: -0.015em;
}
h3 {
  font-size: clamp(1.15rem, 1vw + 0.8rem, 1.35rem);
  font-weight: 700;
}
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1rem; color: var(--c-text-soft); }
article p { line-height: 1.75; }
article strong { color: var(--c-text); font-weight: 700; }

/* ===== Skip link ===== */
.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus {
  position: fixed; left: 1rem; top: 1rem;
  background: var(--c-primary); color: white;
  padding: 0.85rem 1.25rem; z-index: 999;
  border-radius: var(--r-md);
  font-weight: 600;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.site-header .logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--c-text);
}
.site-header .logo img {
  height: 52px;
  width: auto;
  display: block;
}
.site-header .logo .brand-name {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Acento utilitario para palabras inline (mantiene marca "Costa" en texto enfático) */
.accent {
  color: var(--c-accent-dark);
}

/* ===== Nav con dropdowns ===== */
.main-nav { display: none; }
.main-nav > ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 0.5rem;
  align-items: center;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.9rem;
  color: var(--c-text-soft);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--r-md);
  transition: background .15s ease, color .15s ease;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li:focus-within > a {
  background: var(--c-bg-soft);
  color: var(--c-primary);
}
.main-nav .has-dropdown > a .caret {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 0.25rem;
  transition: transform .15s ease;
}
.main-nav .has-dropdown:hover > a .caret,
.main-nav .has-dropdown:focus-within > a .caret {
  transform: rotate(180deg);
}
.main-nav .dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 100;
}
.main-nav .has-dropdown:hover > .dropdown,
.main-nav .has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .dropdown a {
  display: block;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text-soft);
  border-radius: var(--r-sm);
  background: transparent;
}
.main-nav .dropdown a:hover,
.main-nav .dropdown a:focus-visible {
  background: var(--c-bg-soft);
  color: var(--c-primary);
}
@media (min-width: 960px) {
  .main-nav { display: block; }
}

/* ===== Language switcher ===== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  background: white;
  color: var(--c-text-soft);
  text-decoration: none;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--c-border-strong);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.lang-switch:hover {
  background: var(--c-bg-soft);
  color: var(--c-primary);
  border-color: var(--c-primary);
}

/* ===== Phone CTA del header ===== */
.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  background: var(--c-accent);
  color: white !important;
  text-decoration: none;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, box-shadow .15s ease;
  border: 1px solid var(--c-accent-dark);
}
.phone-cta::before {
  content: '';
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.phone-cta:hover { background: var(--c-accent-dark); color: white !important; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 4rem 0 4.5rem;
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-border);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1.15fr 1fr;
    grid-template-areas:
      "title image"
      "lead  image"
      "ctas  image"
      "trust trust";
    gap: 2.5rem 4rem;
    align-items: center;
  }
  .hero h1 { grid-area: title; align-self: end; }
  .hero .lead { grid-area: lead; }
  .hero .ctas { grid-area: ctas; margin-bottom: 0; }
  .hero .hero-img { grid-area: image; align-self: center; }
  .hero .trust-bar { grid-area: trust; margin-top: 1rem; }
}
.hero h1 { margin-bottom: 1rem; }
.hero .lead {
  font-size: clamp(1.02rem, 0.4vw + 1rem, 1.15rem);
  line-height: 1.6;
  color: var(--c-text-soft);
  max-width: 58ch;
  margin-bottom: 1.5rem;
}
.hero-img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
  object-fit: cover;
  margin: 0;
  border: 1px solid var(--c-border);
}
@media (min-width: 900px) {
  .hero-img { aspect-ratio: 3/4; max-height: 540px; }
}

/* ===== Botones ===== */
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  min-height: 52px;
  letter-spacing: -0.005em;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-accent);
  color: white;
  border-color: var(--c-accent-dark);
  box-shadow: var(--shadow-sm);
}
.btn-primary::before {
  content: '';
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--c-accent-dark);
  color: white;
}
.btn-secondary {
  background: white;
  color: var(--c-primary);
  border-color: var(--c-border-strong);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--c-bg-soft);
  border-color: var(--c-primary);
  color: var(--c-primary);
}

/* ===== Trust bar ===== */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem 1.5rem;
  list-style: none;
  padding: 1.5rem;
  margin: 2rem 0 0;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.trust-bar li {
  position: relative;
  padding-left: 2rem;
  font-size: 0.9rem;
  color: var(--c-text-soft);
  font-weight: 500;
  line-height: 1.45;
}
.trust-bar li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.1rem;
  width: 22px; height: 22px;
  background-color: var(--c-accent);
  background-image: 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%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--r-sm);
}

/* ===== Secciones ===== */
main > section, main > article > section {
  padding: 4.5rem 0;
  border: none;
}
main > section:nth-of-type(even),
main > article > section:nth-of-type(even) {
  background: var(--c-bg-soft);
}
section h2 { margin-bottom: 1.25rem; }
section > .container > p:first-of-type {
  font-size: 1.02rem;
  max-width: 70ch;
  color: var(--c-text-soft);
}

/* ===== Tarjetas servicios ===== */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.servicio-card {
  position: relative;
  padding: 1.75rem;
  background: white;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.servicio-card:hover, .servicio-card:focus-visible {
  border-color: var(--c-border);
  border-left-color: var(--c-accent);
  box-shadow: var(--shadow-md);
  color: inherit;
  transform: translateY(-2px);
}
.servicio-card h3 {
  margin: 0 0 0.4rem;
  color: var(--c-primary);
  font-size: 1.15rem;
}
.servicio-card p {
  color: var(--c-text-muted);
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ===== Zonas ===== */
.zonas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 1.75rem;
}
.zona-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--c-text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color .15s ease, background .15s ease;
}
.zona-card:hover, .zona-card:focus-visible {
  border-color: var(--c-accent);
  background: var(--c-bg-soft);
  color: var(--c-primary);
}
.zona-card span {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--c-text-muted);
  padding: 0.25rem 0.55rem;
  background: var(--c-bg-soft);
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  white-space: nowrap;
}
.zona-card:hover span {
  background: white;
  color: var(--c-accent-dark);
  border-color: var(--c-accent);
}

/* ===== FAQ ===== */
#faq .container > p:first-of-type { margin-bottom: 1.75rem; }
.faq-item {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  margin-bottom: 0.65rem;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item[open] {
  border-color: var(--c-primary-100);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-text);
  padding: 1.1rem 1.4rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 24px; height: 24px;
  background-color: var(--c-bg-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a5f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--r-sm);
  transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p {
  padding: 0 1.4rem 1.25rem;
  color: var(--c-text-soft);
  margin: 0;
  line-height: 1.65;
}

/* ===== Imagen inline con caption ===== */
figure.inline-image {
  margin: 2rem 0;
  padding: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
}
figure.inline-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}
figure.inline-image figcaption {
  padding: 0.85rem 1.25rem;
  font-size: 0.88rem;
  color: var(--c-text-muted);
  border-top: 1px solid var(--c-border);
  background: white;
  font-style: italic;
}

/* Variante "side" — imagen y texto en columna en desktop */
figure.inline-image.side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  aspect-ratio: auto;
}
@media (min-width: 720px) {
  figure.inline-image.side {
    grid-template-columns: 1.2fr 1fr;
  }
  figure.inline-image.side img { aspect-ratio: auto; height: 100%; }
  figure.inline-image.side figcaption {
    border-top: none;
    border-left: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    font-style: normal;
    font-size: 0.95rem;
    color: var(--c-text-soft);
  }
}

/* ===== Galería de fotos (media grid) ===== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}
.media-grid figure {
  margin: 0;
  padding: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: white;
  border: 1px solid var(--c-border);
  transition: transform .15s ease, box-shadow .15s ease;
}
.media-grid figure:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.media-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.media-grid figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  border-top: 1px solid var(--c-border);
  background: var(--c-bg-soft);
}

/* ===== Tabla precios ===== */
.factores-precio {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.75rem 0;
  background: white;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.factores-precio th, .factores-precio td {
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}
.factores-precio th {
  background: var(--c-primary);
  color: white;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.factores-precio tr:last-child td { border-bottom: none; }
.factores-precio tbody tr:hover td { background: var(--c-bg-soft); }
.factores-precio td:first-child { font-weight: 600; color: var(--c-text); white-space: nowrap; }
@media (max-width: 640px) {
  .factores-precio td:first-child { white-space: normal; }
}

/* ===== Callout ===== */
.callout {
  padding: 1.75rem 1.75rem;
  background: var(--c-primary);
  border-radius: var(--r-md);
  margin: 1.75rem 0;
  color: white;
  border-left: 4px solid var(--c-accent);
}
.callout p { color: rgb(255 255 255 / 0.92); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: white; }
.callout a:not(.btn-primary) { color: white; text-decoration: underline; }
.callout .btn-primary { background: var(--c-accent); border-color: var(--c-accent-dark); }
.callout .btn-primary:hover { background: var(--c-accent-dark); }

/* ===== Listas numeradas ===== */
section ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.25rem 0 0;
}
section ol > li {
  position: relative;
  padding: 0.3rem 0 0.3rem 3.5rem;
  counter-increment: step;
  margin-bottom: 1rem;
  color: var(--c-text-soft);
  line-height: 1.65;
  min-height: 2.5rem;
}
section ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.5rem; height: 2.5rem;
  background: var(--c-primary);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
section ol > li strong { color: var(--c-text); }

article ul {
  padding-left: 1.5rem;
  color: var(--c-text-soft);
  margin: 0.85rem 0;
}
article li { margin-bottom: 0.45rem; line-height: 1.65; }
article h2 { margin-top: 2.5rem; }
article h3 { margin-top: 2rem; color: var(--c-primary); font-size: 1.2rem; }

/* ===== Sticky CTA móvil (solo teléfono) ===== */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  background: var(--c-bg-dark);
  box-shadow: 0 -4px 12px rgb(15 23 42 / 0.15);
  border-top: 1px solid rgb(255 255 255 / 0.08);
}
.sticky-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-decoration: none;
  font-weight: 700;
  color: white;
  min-height: 60px;
  font-size: 1rem;
  letter-spacing: -0.005em;
}
.btn-sticky-phone { background: var(--c-accent); }
.btn-sticky-phone::before {
  content: '';
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.btn-sticky-phone:hover { background: var(--c-accent-dark); }

@media (min-width: 1024px) { .sticky-cta { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: 60px; } }

/* ===== Footer ===== */
.site-footer {
  background: var(--c-bg-dark);
  color: rgb(255 255 255 / 0.75);
  padding: 4rem 0 1.5rem;
  margin-top: 0;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-accent);
}
.site-footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}
.site-footer h3 {
  color: white;
  font-size: 0.8rem;
  margin-bottom: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a {
  color: rgb(255 255 255 / 0.7);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color .15s ease;
}
.site-footer a:hover { color: var(--c-accent-light); }
.site-footer address {
  font-style: normal;
  color: rgb(255 255 255 / 0.7);
  line-height: 1.85;
  font-size: 0.92rem;
}
.site-footer address a { color: rgb(255 255 255 / 0.7); }
.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.08);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgb(255 255 255 / 0.45);
  grid-column: 1 / -1;
}

/* ===== Migas de pan ===== */
nav[aria-label="Migas de pan"] { padding: 1.25rem 0 0; }
nav[aria-label="Migas de pan"] ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}
nav[aria-label="Migas de pan"] li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
nav[aria-label="Migas de pan"] li + li::before {
  content: '/';
  color: var(--c-text-muted);
}
nav[aria-label="Migas de pan"] a {
  color: var(--c-text-muted);
  text-decoration: none;
  font-weight: 500;
}
nav[aria-label="Migas de pan"] a:hover { color: var(--c-primary); }
nav[aria-label="Migas de pan"] li:last-child {
  color: var(--c-text);
  font-weight: 600;
}

/* ===== Utilidades ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
::selection {
  background: rgb(232 132 26 / 0.25);
  color: var(--c-primary-dark);
}

/* ===== Móvil ===== */
@media (max-width: 640px) {
  .hero { padding: 3rem 0 3.5rem; }
  main > section, main > article > section { padding: 3.5rem 0; }
  .servicio-card { padding: 1.5rem; }
  .trust-bar { padding: 1.25rem; }
  .callout { padding: 1.5rem; }
  .ctas .btn-primary { flex: 1; }
  .site-header .logo img { height: 42px; width: auto; }
  section ol > li {
    padding-left: 3rem;
    min-height: 2.25rem;
  }
  section ol > li::before {
    width: 2.25rem; height: 2.25rem;
    font-size: 0.95rem;
  }
}

/* ===== Accesibilidad: reducir movimiento ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .servicio-card:hover, .zona-card:hover, .btn-primary:hover, .btn-secondary:hover {
    transform: none !important;
  }
}

/* ===== Menú hamburguesa móvil (CSS-only con <details>) ===== */
@media (max-width: 959px) {
  .main-nav-mobile {
    position: relative;
    display: block;
  }
  .main-nav-mobile > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border-strong);
    color: var(--c-primary);
  }
  .main-nav-mobile > summary::-webkit-details-marker { display: none; }
  .main-nav-mobile > summary::after {
    content: '';
    width: 20px;
    height: 14px;
    background:
      linear-gradient(currentColor 0 0) top/100% 2px no-repeat,
      linear-gradient(currentColor 0 0) center/100% 2px no-repeat,
      linear-gradient(currentColor 0 0) bottom/100% 2px no-repeat;
  }
  .main-nav-mobile[open] > summary::after {
    background:
      linear-gradient(45deg, transparent 45%, currentColor 45% 55%, transparent 55%) center/100% 100% no-repeat,
      linear-gradient(-45deg, transparent 45%, currentColor 45% 55%, transparent 55%) center/100% 100% no-repeat;
  }
  .main-nav-mobile .mobile-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem;
    list-style: none;
    margin: 0;
    z-index: 100;
  }
  .main-nav-mobile .mobile-panel li { margin: 0; }
  .main-nav-mobile .mobile-panel a {
    display: block;
    padding: 0.75rem 0.95rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--c-text-soft);
    text-decoration: none;
    border-radius: var(--r-sm);
  }
  .main-nav-mobile .mobile-panel a:hover,
  .main-nav-mobile .mobile-panel a:focus-visible {
    background: var(--c-bg-soft);
    color: var(--c-primary);
  }
  .main-nav-mobile .mobile-panel .group-title {
    padding: 0.6rem 0.95rem 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-text-muted);
    border-top: 1px solid var(--c-border);
    margin-top: 0.3rem;
  }
  .main-nav-mobile .mobile-panel li:first-child .group-title {
    border-top: 0;
    margin-top: 0;
  }
}
@media (min-width: 960px) {
  .main-nav-mobile { display: none; }
}

