/* CTDigital — hoja de estilos principal */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --paper: #ffffff;
  --mist: #eef2f1;
  --ink: #15232b;
  --muted: #4c5c63;
  --line: #d5dedc;
  --petrol: #0d4b53;
  --petrol-deep: #0a3a40;
  --petrol-soft: #dbe8e7;
  --amber: #f0b23e;
  --focus: #0d4b53;

  /* Tipografía */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.875rem, 1.2rem + 2.2vw, 2.75rem);
  --step-4: clamp(2.25rem, 1.3rem + 3.3vw, 3.85rem);

  /* Espacio */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --max: 76rem;
  --header-h: 4.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  font-stretch: 112%;
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--petrol); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

.hero :focus-visible,
.urgent :focus-visible,
.contact-info :focus-visible,
.site-footer :focus-visible,
.site-header.is-top:not(.is-scrolled) :focus-visible { outline-color: var(--amber); }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  font-stretch: 105%;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--petrol-deep); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--petrol); color: var(--petrol); }

.btn-small { min-height: 2.6rem; padding: 0.5rem 1rem; font-size: var(--step--1); }

.btn-accent { background: var(--amber); color: var(--ink); }
.btn-accent:hover { background: #f5c362; }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }

/* Cabecera */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand { display: block; flex: none; }
.brand img { height: 2.15rem; width: auto; }
.brand .logo-on-dark { display: none; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.nav ul a {
  color: var(--ink);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 1.5px solid transparent;
}
.nav ul a:hover { border-bottom-color: currentColor; }

.nav-toggle { display: none; }

/* Mientras está sobre el hero oscuro */
.site-header.is-top:not(.is-scrolled) { background: var(--petrol-deep); backdrop-filter: none; }
.site-header.is-top:not(.is-scrolled) .logo-on-dark { display: block; }
.site-header.is-top:not(.is-scrolled) .logo-on-light { display: none; }
.site-header.is-top:not(.is-scrolled) .nav-toggle { color: #fff; }
@media (min-width: 861px) {
  .site-header.is-top:not(.is-scrolled) .nav ul a { color: #fff; }
  .site-header.is-top:not(.is-scrolled) .nav-call { background: #fff; color: var(--petrol-deep); }
  .site-header.is-top:not(.is-scrolled) .nav-call:hover { background: var(--petrol-soft); }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2rem, 4.5vw, 3.75rem) calc(clamp(3rem, 6vw, 4.5rem) + 5.5rem);
  background: var(--petrol-deep);
  color: #fff;
}

.hero-bg {
  position: absolute;
  right: -25rem;
  top: -10rem;
  width: 48rem;
  height: auto;
  pointer-events: none;
}
.hero-bg-line {
  fill: #fff;
  fill-opacity: 0.025;
  stroke: #fff;
  stroke-opacity: 0.14;
  stroke-width: 0.06;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy { padding-block: clamp(0rem, 2vw, 1.5rem); }

.hero h1 {
  font-size: var(--step-4);
  font-stretch: 116%;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.028em;
  max-width: 19ch;
}

.lead {
  margin-top: 1.75rem;
  max-width: 36rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
}
.hero .lead { color: #c3d8d6; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }


.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 0.92;
  object-fit: cover;
  object-position: 30% 50%;
  border-radius: 14px;
}

.hero-pixel {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--amber);
  border-radius: 3px;
}

.hero-badge {
  position: absolute;
  left: -2rem;
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 19rem;
  padding: 1rem 1.25rem;
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  box-shadow: 0 18px 40px -18px rgba(5, 30, 34, 0.55);
}
.hero-badge-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.hero-badge-mark path { fill: var(--petrol); }
.hero-badge-mark rect { fill: var(--amber); }
.hero-badge p { font-size: 0.9rem; line-height: 1.35; color: var(--muted); }
.hero-badge strong { display: block; color: var(--ink); font-weight: 650; font-size: 0.97rem; }

/* Entrada: el contorno del símbolo se dibuja detrás del titular; la foto y la tarjeta aparecen después */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero-bg-line { animation: draw 2.4s cubic-bezier(0.65, 0, 0.35, 1) 0.1s both, fade 1.2s ease 1.6s both; }
  html.js .hero-pixel { animation: settle 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.9s both; }
  html.js .hero-badge { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s both; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { fill-opacity: 0; } }
@keyframes settle { from { opacity: 0; transform: translateY(-120%); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

/* Resumen de servicios: tarjetas que asoman bajo el hero */

.quick { position: relative; z-index: 2; margin-top: -5.5rem; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.6rem 1.6rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 48px -28px rgba(10, 58, 64, 0.45);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.quick-card:hover { border-color: var(--petrol); box-shadow: 0 28px 52px -26px rgba(10, 58, 64, 0.55); }

.quick-icon {
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1.1rem;
  padding: 0.6rem;
  background: var(--petrol-soft);
  border-radius: 8px;
  fill: none;
  stroke: var(--petrol);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quick-title { font-size: 1.15rem; font-weight: 680; font-stretch: 110%; line-height: 1.2; letter-spacing: -0.01em; }
.quick-text { margin-top: 0.5rem; color: var(--muted); font-size: 0.97rem; line-height: 1.5; }
.quick-more {
  margin-top: auto;
  padding-top: 1.1rem;
  color: var(--petrol);
  font-size: 0.95rem;
  font-weight: 600;
}
.quick-card:hover .quick-more { text-decoration: underline; text-underline-offset: 0.2em; }

/* Herramientas */

.tools-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 3rem;
  padding-block: 2.25rem 2.5rem;
}
.tools-inner p { color: var(--muted); font-size: 0.95rem; }
.tools-inner ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-weight: 650;
  font-stretch: 110%;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

/* Llamada directa en la cabecera del móvil */
.header-call { display: none; }

/* Campo trampa antispam: fuera de la vista */
.field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Secciones */

.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: 1rem; font-size: var(--step-1); line-height: 1.5; color: var(--muted); }

/* Servicios */

.services { padding-block: var(--section); background: var(--mist); }

.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.service:last-child { padding-bottom: 0; }

.service-art {
  margin: 0;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  background: var(--paper);
  border-radius: 12px;
}

/* Ilustraciones: misma geometría y colores que el logotipo */
.art { width: 100%; height: auto; }
.art .s,
.art .s2,
.art .s-w,
.art .s-ink,
.art .s-road { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.art .s { stroke: var(--petrol); stroke-width: 3; }
.art .s2 { stroke: var(--petrol); stroke-width: 2.5; }
.art .s-w { stroke: #fff; stroke-width: 3; }
.art .s-dash { stroke-dasharray: 4 7; }
.art .s-ink { stroke: var(--line); stroke-width: 2; }
.art .s-road { stroke: #fff; stroke-width: 6; stroke-linecap: butt; }
.art .f-w { fill: #fff; }
.art .f-wa { fill: #fff; fill-opacity: 0.45; }
.art .f-p { fill: var(--petrol); }
.art .f-s { fill: var(--petrol-soft); }
.art .f-m { fill: #a9c6c4; }
.art .f-a { fill: var(--amber); }
.art text {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  text-anchor: middle;
}

.service h3 { font-size: var(--step-2); font-stretch: 112%; }
.service-body > p { margin-top: 0.75rem; max-width: 34rem; color: var(--muted); }

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 2.5rem;
  margin: 1.75rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  align-content: start;
}
.service-list li {
  position: relative;
  padding-left: 1.15rem;
  line-height: 1.45;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--petrol);
}

/* Por qué un técnico cercano */

.local { padding-block: var(--section); }

.local-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.local-media { position: relative; padding: 0 0 4rem 0; }
.local-photo {
  width: 88%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  object-position: 60% 50%;
  border-radius: 14px;
}
.local-photo-detail {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 8px solid var(--paper);
  border-radius: 16px;
}
.local-media::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: -1.25rem;
  width: 5.5rem;
  height: 5.5rem;
  background: var(--petrol-soft);
  border-radius: 6px;
  z-index: -1;
}

.local-copy h2 { font-size: var(--step-3); max-width: 18ch; }
.local-copy > p { margin-top: 1rem; max-width: 34rem; font-size: var(--step-1); line-height: 1.5; color: var(--muted); }

.reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.reason-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.9rem;
  padding: 0.55rem;
  background: var(--petrol-soft);
  border-radius: 8px;
  fill: none;
  stroke: var(--petrol);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reasons h3 { font-size: 1.1rem; font-stretch: 108%; font-weight: 650; line-height: 1.25; }
.reasons p { margin-top: 0.4rem; color: var(--muted); font-size: 0.97rem; line-height: 1.5; }

/* Urgencias */

.urgent {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--petrol-deep);
  color: #fff;
}
.urgent-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.urgent::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 58, 64, 0.97) 0%, rgba(10, 58, 64, 0.9) 45%, rgba(10, 58, 64, 0.55) 100%);
}
.urgent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3rem;
}
.urgent h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); max-width: 22ch; }
.urgent p { margin-top: 0.75rem; max-width: 34rem; font-size: var(--step-1); line-height: 1.5; color: #c3d8d6; }
.urgent .actions { margin-top: 0; }

/* Preguntas frecuentes */

.faq { padding-block: var(--section); background: var(--mist); }

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.faq-head h2 { font-size: var(--step-3); }
.faq-head p { margin-top: 1rem; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 1.35rem 3rem 1.35rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  font-stretch: 105%;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.95rem;
  height: 2px;
  background: var(--petrol);
  transition: transform 0.2s ease;
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list summary:hover { color: var(--petrol); }
.faq-list details p { padding: 0 3rem 1.5rem 0; max-width: 46rem; color: var(--muted); }

/* Proceso */

.process { padding-block: var(--section); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 1.5rem;
  font-size: 3rem;
  font-stretch: 125%;
  font-weight: 300;
  line-height: 1;
  color: var(--petrol);
  font-variant-numeric: lining-nums;
}
.steps h3 { font-size: 1.2rem; font-stretch: 108%; font-weight: 650; line-height: 1.25; }
.steps p { margin-top: 0.6rem; color: var(--muted); font-size: 0.98rem; }

/* Contacto */

.contact {
  padding-block: var(--section);
  background: var(--petrol);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact-info h2 { font-size: var(--step-3); }
.contact-info > p { margin-top: 1rem; max-width: 30rem; color: #cfe0df; font-size: var(--step-1); line-height: 1.5; }

.channels { margin: 2.5rem 0 0; }
.channels div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding-block: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.channels div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.channels dt { color: #9fc1bf; font-size: 0.95rem; }
.channels dd { margin: 0; }
.channels a { color: #fff; font-weight: 600; text-decoration: none; }
.channels a:hover { text-decoration: underline; }

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }

.field label { font-size: 0.95rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #7d8f8c;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2315232b' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.75rem;
  padding-right: 2.5rem;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #aebdba; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px var(--petrol-soft); }

.field [aria-invalid="true"] { border-color: #b4321f; }
.field-error { color: #b4321f; font-size: 0.875rem; }

.field-check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 0.4rem 0.7rem; }
.field-check label { flex: 1; }
.field-check .field-error { flex-basis: 100%; }
.field-check input {
  width: 1.2rem;
  height: 1.2rem;
  min-height: 0;
  margin: 0.2rem 0 0;
  padding: 0;
  accent-color: var(--petrol);
  flex: none;
}
.field-check label { font-weight: 400; font-size: 0.95rem; }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.25rem; }
.form-status { font-size: 0.95rem; color: var(--muted); }
.form-status.is-error { color: #b4321f; }
.form-status.is-ok { color: var(--petrol); font-weight: 600; }

/* Pie */

.site-footer {
  padding-block: 3.5rem 2.5rem;
  background: var(--ink);
  color: #b8c4c8;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 2rem 4rem;
}

.footer-brand img { height: 2rem; width: auto; }
.footer-brand p { margin-top: 1rem; max-width: 22rem; }

.footer-title { color: #fff; font-weight: 600; margin-bottom: 0.6rem; }
.footer-contact ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.footer-contact a { color: #e6ecee; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-nav { display: flex; gap: 4rem; padding-top: 2.15rem; }
.footer-nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; align-content: start; }
.footer-nav a { color: #e6ecee; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--step--1);
}

/* Páginas legales */

.legal { padding-block: clamp(3rem, 7vw, 5.5rem) var(--section); }
.legal .wrap { max-width: 48rem; }
.legal h1 { font-size: var(--step-3); }
.legal .updated { margin-top: 0.75rem; color: var(--muted); font-size: var(--step--1); }
.legal h2 { margin-top: 2.75rem; font-size: 1.3rem; font-stretch: 108%; }
.legal p, .legal ul { margin-top: 0.9rem; }
.legal ul { padding-left: 1.2rem; }
.legal li + li { margin-top: 0.35rem; }

/* Responsive */

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .hero-media img { aspect-ratio: 2 / 1; object-position: 50% 62%; }
  .hero-bg { display: none; }
  .quick { margin-top: -3.5rem; }
  .quick-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .quick-card { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.15rem 1.25rem; }
  .quick-icon { grid-row: span 3; margin-bottom: 0; }
  .quick-more { padding-top: 0.5rem; }
  .hero { padding-bottom: calc(3rem + 3.5rem); }

  .hero-badge { left: 1.25rem; bottom: 1.25rem; }
  .hero-bg { width: 40rem; left: auto; right: -12rem; bottom: auto; top: -6rem; }
  .local-grid { grid-template-columns: 1fr; }
  .local-media { max-width: 40rem; }
  .faq-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 4rem; }

  .brand img { height: 1.9rem; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.5rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 1.35rem;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px -16px rgba(21, 35, 43, 0.25);
  }
  .nav:not(.is-open) { display: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding-block: 0.9rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav ul a:hover { border-bottom-color: var(--line); color: var(--petrol); }
  .nav-call { justify-content: center; min-height: 3rem; font-size: 1rem; }

  .header-call { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-left: auto; color: var(--petrol); }
  .header-call .icon { width: 1.35rem; height: 1.35rem; }
  .site-header.is-top:not(.is-scrolled) .header-call { color: #fff; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-nav { padding-top: 0; }
  .service { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .lead, .section-head p, .contact-info > p { font-size: 1.125rem; }
  .hero-media img { aspect-ratio: 4 / 3; border-radius: 10px; }
  .hero-pixel { width: 2.25rem; height: 2.25rem; top: -0.6rem; right: -0.4rem; }
  .hero-badge { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; max-width: none; padding: 0.8rem 1rem; }
  .hero-bg { width: 28rem; right: -10rem; top: -4rem; }
  .tools-inner { gap: 0.75rem; padding-block: 1.75rem 2rem; }
  .tools-inner ul { gap: 0.5rem 1.5rem; font-size: 0.95rem; }
  .local-media { padding-bottom: 3rem; }
  .local-media::before { left: -0.5rem; top: -0.75rem; width: 3.5rem; height: 3.5rem; }
  .reasons { grid-template-columns: 1fr; gap: 1.75rem; }
  .faq-list summary { font-size: 1.02rem; padding-right: 2.25rem; }
  .faq-list details p { padding-right: 0; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .service-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .channels div { grid-template-columns: 1fr; gap: 0.15rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { flex-direction: column; gap: 0.55rem; }
  .footer-nav { gap: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
