/* ============================================================
   DUO SERVICE J&N SAS — Design tokens
   Paleta inspirada en el mundo del mantenimiento certificado:
   azul "uniforme" profundo, verde-azulado "recién limpiado"
   y ámbar "sello/advertencia" para acentos y llamados a la acción.
   ============================================================ */
:root {
  --navy: #0B2436;
  --navy-2: #123449;
  --teal: #0EA5A0;
  --teal-dark: #0B8683;
  --amber: #FFB020;
  --paper: #F5F7F8;
  --white: #FFFFFF;
  --ink: #16232C;
  --muted: #5B6B74;
  --line: #E1E7EA;

  --wa-green: #25D366;
  --wa-green-dark: #1EB954;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  --shadow-s: 0 2px 8px rgba(11, 36, 54, 0.08);
  --shadow-m: 0 12px 30px rgba(11, 36, 54, 0.12);
  --shadow-l: 0 20px 45px rgba(11, 36, 54, 0.18);

  --container: 1180px;
}

/* ============================================================
   Reset & base
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 10px 0 12px; }
.section-head p { color: var(--muted); font-size: 16px; }

section { padding: 88px 0; }

/* Reveal-on-scroll (activado por js/script.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Botones
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primario {
  background: var(--wa-green);
  color: var(--white);
  box-shadow: var(--shadow-s);
}
.btn-primario:hover { background: var(--wa-green-dark); transform: translateY(-2px); box-shadow: var(--shadow-m); }

.btn-secundario {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-secundario:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-2px); }

.btn-consultar {
  text-decoration: none;
  color: var(--teal-dark);
  border: 1.5px solid var(--teal);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
  transition: 0.25s;
  display: inline-block;
}
.btn-consultar:hover { background: var(--teal); color: var(--white); }

/* ============================================================
   WhatsApp flotante
   ============================================================ */
.wsp-flotante {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  z-index: 1000;
  animation: pulso 2.6s ease-in-out infinite;
}
.wsp-flotante svg { width: 30px; height: 30px; fill: var(--white); }
.wsp-flotante:hover { animation-play-state: paused; transform: scale(1.08); }

@keyframes pulso {
  0%, 100% { box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.75), 0 0 0 8px rgba(37, 211, 102, 0.12); }
}

/* ============================================================
   Header
   ============================================================ */
.header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 900;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.header.con-sombra { box-shadow: 0 6px 24px rgba(0,0,0,0.25); }

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo img {
  height: 62px;
  width: auto;            /* logo completo, sin recortar */
  object-fit: contain;
  background: #fff;
  padding: 4px 8px;
  border-radius: 10px;
}
.logo-texto { display: flex; flex-direction: column; line-height: 1.15; }
.logo-texto strong { font-family: var(--font-display); color: var(--white); font-size: 20px; letter-spacing: 0.02em; }
.logo-texto span { font-size: 12px; color: var(--teal); letter-spacing: 0.08em; text-transform: uppercase; }

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  padding: 10px 14px;
  border-radius: 8px;
  transition: 0.25s;
  position: relative;
}
.menu a:hover, .menu a.activo { color: var(--white); background: rgba(255,255,255,0.08); }

.menu a.llamar {
  background: var(--teal);
  color: var(--white);
  margin-left: 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu a.llamar:hover { background: var(--teal-dark); }
.menu a.llamar svg { width: 15px; height: 15px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}
.menu-toggle span { margin: 5px 0; }
.menu-toggle::before, .menu-toggle::after { flex-shrink: 0; }
.menu-toggle.abierto::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle.abierto span { opacity: 0; }
.menu-toggle.abierto::after { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 34px, rgba(255,255,255,0.035) 34px, rgba(255,255,255,0.035) 35px),
    repeating-linear-gradient(90deg, transparent, transparent 34px, rgba(255,255,255,0.035) 34px, rgba(255,255,255,0.035) 35px),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 76px 0 92px;
  overflow: hidden;
  position: relative;
}

.hero__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__content .eyebrow { color: var(--teal); }
.hero__content .eyebrow::before { background: var(--amber); }

.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 4.4vw, 50px);
  margin: 16px 0 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero__lead {
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  max-width: 460px;
  margin-bottom: 32px;
}
.hero__lead strong {
  color: var(--teal);
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero__stamps {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.sello {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}
.sello strong {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--amber);
  line-height: 1;
}
.sello span {
  font-size: 10.5px;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
  line-height: 1.2;
  max-width: 78px;
}
.sello:nth-child(1) { transform: rotate(-6deg); }
.sello:nth-child(2) { transform: rotate(3deg); }
.sello:nth-child(3) { transform: rotate(-3deg); }

/* Collage de imágenes del hero:
   foto principal COMPLETA arriba (misma proporción que el archivo, sin recorte)
   y tres fotos cuadradas debajo, en fila. */
.hero__gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hero__gallery figure {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  z-index: 1;
  aspect-ratio: 1 / 1;
}
.hero__gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero__gallery .g1 { grid-column: 1 / -1; aspect-ratio: 797 / 435; }

/* ============================================================
   Servicios — tarjetas estilo "ficha de trabajo"
   ============================================================ */
.servicios { background: var(--paper); }

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px;
  align-items: stretch;
}

.tarjeta-servicio {
  background: var(--white);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.tarjeta-servicio:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-m);
}

.tarjeta-servicio__media {
  position: relative;
  aspect-ratio: 5 / 4;
  background: #DCE4E9;
  overflow: hidden;
  cursor: zoom-in;
}
/* La foto llena toda la casilla; el encuadre de cada una se ajusta con
   object-position (en el HTML). Al tocarla se abre COMPLETA (ver lightbox). */
.tarjeta-servicio__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain; /* la foto SIEMPRE se ve completa */
  display: block;
  transition: transform 0.4s ease;
}
.tarjeta-servicio__media:hover img { transform: scale(1.03); }
.tarjeta-servicio__media:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.tarjeta-servicio__media::after {
  content: "Ver foto completa";
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(11, 36, 54, 0.78);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  pointer-events: none;
}
.tarjeta-servicio__codigo {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 36, 54, 0.82);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 5px;
}
.tarjeta-servicio__certificado {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--amber);
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px 6px 8px;
  border-radius: 30px;
  box-shadow: var(--shadow-s);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.tarjeta-servicio__certificado svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background: var(--navy);
  color: var(--amber);
  border-radius: 50%;
  padding: 2px;
  box-sizing: content-box;
}


.tarjeta-servicio__body {
  padding: 4px 20px 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.tarjeta-servicio__body h3 { font-size: 18px; margin-bottom: 8px; }
.tarjeta-servicio__body p { color: var(--muted); font-size: 14px; margin-bottom: 18px; flex-grow: 1; }
/* Si el párrafo va seguido de una lista, no se estira (evita el hueco) */
.tarjeta-servicio__body p:has(+ .tarjeta-servicio__lista) { flex-grow: 0; margin-bottom: 14px; }

/* ---- Tarjetas compactas: descripción recortada + botón "Ver más" ----
   Solo se activa con JavaScript (clase .js); sin JS todo se muestra completo. */
.tarjeta-servicio__body p { line-height: 1.55; }
.js .tarjeta-servicio__body h3 { line-height: 1.2; }
.js .tarjeta-servicio:not(.abierta) .tarjeta-servicio__body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.65em;
  flex-grow: 0;
}
.js .tarjeta-servicio__body p { margin-bottom: 8px; flex-grow: 0; }
.js .tarjeta-servicio:not(.abierta) .tarjeta-servicio__lista { display: none; }
.js .tarjeta-servicio.abierta .tarjeta-servicio__body p { margin-bottom: 14px; }
.tarjeta-servicio__mas {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 6px 0;
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.tarjeta-servicio__mas::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}
.tarjeta-servicio.abierta .tarjeta-servicio__mas::after { transform: rotate(-135deg) translateY(-2px); }
.tarjeta-servicio__mas:hover { text-decoration: underline; }
.tarjeta-servicio__mas:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
/* Mantiene el mismo alto cuando una tarjeta no tiene nada más que mostrar */
.tarjeta-servicio__mas.sin-mas { visibility: hidden; pointer-events: none; }

/* Lista de características (servicios con varios puntos destacados) */
.tarjeta-servicio__lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 2px 0 20px;
  flex-grow: 1;
}
.tarjeta-servicio__lista li {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}
.tarjeta-servicio__lista li strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============================================================
   Nosotros — Quiénes somos / Misión / Visión / Objetivos
   ============================================================ */
.nosotros { background: var(--white); }

.nosotros__intro {
  max-width: 820px;
  margin: -16px auto 56px;
  text-align: center;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.7;
}
.nosotros__intro strong { color: var(--navy); }

.grid-mision-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
}

.mv-card {
  background: var(--paper);
  border-radius: var(--radius-m);
  padding: 36px 32px;
  border-top: 4px solid var(--teal);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.mv-card__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 14px;
}
.mv-card p { color: var(--muted); font-size: 15px; line-height: 1.65; }

.grid-objetivos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.objetivo {
  background: var(--paper);
  padding: 28px 24px;
  border-radius: var(--radius-m);
  border-bottom: 4px solid var(--amber);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.objetivo:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.objetivo h3 { font-size: 16.5px; margin-bottom: 8px; color: var(--navy); }
.objetivo p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ============================================================
   Proceso
   ============================================================ */
.proceso { background: var(--navy); color: var(--white); }
.proceso .section-head h2 { color: var(--white); }
.proceso .section-head p { color: rgba(255,255,255,0.65); }
.proceso .eyebrow { color: var(--teal); }

.grid-proceso {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  counter-reset: paso;
}
.paso {
  position: relative;
  padding: 30px 24px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-m);
}
.paso::before {
  counter-increment: paso;
  content: "0" counter(paso);
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--amber);
  display: block;
  margin-bottom: 14px;
}
.paso h3 { color: var(--white); font-size: 17px; margin-bottom: 8px; }
.paso p { color: rgba(255,255,255,0.68); font-size: 14.5px; }

/* ============================================================
   Cobertura
   ============================================================ */
.cobertura { background: var(--paper); text-align: center; }
.cobertura .section-head { margin-bottom: 28px; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
}
.chip {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 30px;
}

/* ============================================================
   Contacto
   ============================================================ */
.contacto { background: var(--white); }

.contacto-card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  border-radius: var(--radius-l);
  padding: 52px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-m);
}

.contacto-info .eyebrow { color: var(--teal); margin-bottom: 14px; }
.contacto-info h2 { color: var(--white); font-size: 30px; margin-bottom: 14px; }
.contacto-info > p { color: rgba(255,255,255,0.75); margin-bottom: 26px; }

.contacto-datos { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contacto-datos li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.9);
}
.contacto-datos svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--teal); }
.contacto-datos a { text-decoration: none; color: inherit; }
.contacto-datos a:hover { color: var(--teal); }

.contacto-accion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contacto-accion .btn { width: 100%; padding: 16px 20px; font-size: 15.5px; }
.contacto-accion .btn-secundario { border-color: rgba(255,255,255,0.35); }

.contacto-nota {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__marca { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer__marca img { height: 52px; width: auto; border-radius: 8px; object-fit: contain; background: #fff; padding: 3px 7px; }
.footer__marca strong { color: var(--white); font-family: var(--font-display); font-size: 16px; }
.footer p { font-size: 14px; max-width: 320px; }
footer h4 { color: var(--white); font-size: 14px; margin-bottom: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer ul a { text-decoration: none; font-size: 14px; color: rgba(255,255,255,0.7); transition: 0.2s; }
footer ul a:hover { color: var(--teal); }
.footer__bottom {
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__gallery { max-width: 560px; width: 100%; margin: 0 auto; }
  .contacto-card { grid-template-columns: 1fr; padding: 36px 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  section { padding: 56px 0; }
  .container, .hero__grid, .header__inner { padding-left: 18px; padding-right: 18px; }

  /* Encabezado + menú desplegable (hamburguesa) */
  .header__inner { padding-top: 10px; padding-bottom: 10px; }
  .logo img { height: 52px; width: auto; }
  .logo-texto strong { font-size: 18px; }
  .menu-toggle { display: flex; }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-2);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .menu.abierto { max-height: 380px; }
  .menu a { padding: 14px 12px; font-size: 16px; }
  .menu a.llamar { margin: 8px 0 0; justify-content: center; padding: 14px; }

  /* Hero: texto grande y legible, botones a todo el ancho */
  .hero { padding: 36px 0 52px; }
  .hero__grid { gap: 36px; }
  .hero h1 { font-size: 31px; line-height: 1.18; margin: 14px 0 16px; }
  .hero__lead { font-size: 16.5px; line-height: 1.6; max-width: none; margin-bottom: 26px; }
  .hero__actions { flex-direction: column; gap: 12px; margin-bottom: 34px; }
  .hero__actions .btn { width: 100%; padding: 16px 20px; font-size: 16px; }

  /* Sellos: tres iguales, alineados en una sola fila */
  .hero__stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sello { width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: 112px; margin: 0 auto; transform: none !important; }
  .sello strong { font-size: 21px; }
  .sello span { font-size: 10px; max-width: 80%; }

  /* Collage del hero: foto principal completa + 3 cuadradas debajo */
  .hero__gallery { gap: 8px; max-width: none; }

  /* Títulos de sección y textos */
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 27px; }
  .section-head p { font-size: 16px; }

  /* Servicios: una tarjeta por fila, texto cómodo de leer */
  .grid-servicios { grid-template-columns: 1fr; gap: 22px; }
  .tarjeta-servicio__body { padding: 6px 20px 24px; }
  .tarjeta-servicio__body h3 { font-size: 20px; }
  .tarjeta-servicio__body p { font-size: 15.5px; line-height: 1.6; }
  .tarjeta-servicio__lista li { font-size: 15px; }
  .btn-consultar { display: block; text-align: center; padding: 14px 18px; font-size: 16px; border-radius: 50px; }
  .tarjeta-servicio__codigo { font-size: 12px; }
  .tarjeta-servicio__certificado { font-size: 12px; }

  /* Nosotros */
  .nosotros__intro { font-size: 16px; margin-bottom: 36px; text-align: left; }
  .mv-card { padding: 28px 22px; }
  .mv-card p { font-size: 16px; }
  .mv-card__eyebrow { font-size: 14px; }
  .objetivo h3 { font-size: 18px; }
  .objetivo p { font-size: 15.5px; }

  /* Proceso, cobertura, contacto, pie */
  .paso h3 { font-size: 19px; }
  .paso p { font-size: 15.5px; }
  .chip { font-size: 15px; }
  .contacto-card { padding: 30px 22px; }
  .contacto-info h2 { font-size: 27px; }
  .contacto-datos li { font-size: 16px; }
  .contacto-accion .btn { font-size: 16.5px; padding: 17px 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  footer p, footer ul a { font-size: 15px; }
  .wsp-flotante { width: 56px; height: 56px; bottom: 16px; right: 16px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 28px; }
  .logo-texto strong { font-size: 16px; }
  .logo img { height: 44px; width: auto; }
  .logo-texto { display: none; } /* el logo ya incluye el nombre */
}


/* ============================================================
   Visor de foto completa (lightbox)
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 20, 30, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 24px;
}
.lightbox.abierto { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-l);
}
.lightbox__cerrar {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: var(--white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__cerrar:hover { background: rgba(255,255,255,0.26); }
@media (prefers-reduced-motion: reduce) {
  .tarjeta-servicio__media img, .tarjeta-servicio__mas::after { transition: none; }
}


/* Fondo difuminado: rellena los lados/arriba/abajo con la misma foto
   para que nunca queden franjas vacías y la foto se vea completa. */
.tarjeta-servicio__media::before,
.hero__gallery figure::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: var(--foto) center / cover no-repeat;
  filter: blur(18px) brightness(0.85);
  z-index: 0;
}
.hero__gallery img { position: relative; z-index: 1; object-fit: contain; }
.hero__gallery .g1 img { object-fit: contain; }
.hero__gallery figure { background: #123449; }
.tarjeta-servicio__media::after { z-index: 2; }
.tarjeta-servicio__codigo, .tarjeta-servicio__certificado { z-index: 3; }

/* Miniaturas del inicio: formato 4:3 para que las fotos anchas pierdan menos espacio */
.hero__gallery figure:not(.g1) { aspect-ratio: 4 / 3; }


/* ===== Galería del inicio: mosaico original (fotos llenas, sin franjas) ===== */
.hero__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  grid-template-areas: "a b" "a c" "d c";
  gap: 14px;
  aspect-ratio: 721 / 566;
}
.hero__gallery figure,
.hero__gallery .g1 { aspect-ratio: auto; background: #123449; min-height: 0; }
.hero__gallery figure::before { display: none; }
.hero__gallery img,
.hero__gallery .g1 img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__gallery .g1 { grid-area: a; grid-column: auto; }
.hero__gallery .g2 { grid-area: b; }
.hero__gallery .g3 { grid-area: c; }
.hero__gallery .g4 { grid-area: d; }
.hero__gallery .g1 img { object-position: 62% 50%; }
.hero__gallery .g2 img { object-position: 50% 50%; }
.hero__gallery .g3 img { object-position: 50% 40%; }
.hero__gallery .g4 img { object-position: 45% 50%; }
@media (max-width: 760px) { .hero__gallery { gap: 8px; } }
.hero__gallery { grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: repeat(3, minmax(0,1fr)); }
.hero__gallery figure { height: 100%; width: 100%; }
.hero__gallery .g1 img { object-position: 84% 50%; }

/* El logo ya trae el nombre de la empresa: se oculta el texto duplicado */
.logo-texto { display: none; }
.logo img { height: 64px; }
@media (max-width: 760px) { .logo img { height: 54px; } }
@media (max-width: 480px) { .logo img { height: 48px; } }

/* ===== Logo más grande ===== */
.header__inner { padding-top: 10px; padding-bottom: 10px; }
.logo img { height: 84px; padding: 5px 10px; border-radius: 12px; }
@media (max-width: 980px) { .logo img { height: 72px; } }
@media (max-width: 760px) { .logo img { height: 64px; } }
@media (max-width: 480px) { .logo img { height: 60px; } }
.footer__marca img { height: 64px; }

/* ===== Servicios: la última fila queda centrada (sin hueco vacío) ===== */
@media (min-width: 981px) {
  .grid-servicios { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid-servicios > .tarjeta-servicio { grid-column: span 2; }
  .grid-servicios > .tarjeta-servicio:nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; } /* 2 tarjetas sueltas */
  .grid-servicios > .tarjeta-servicio:nth-child(3n+1):last-child { grid-column: 3 / span 2; }          /* 1 tarjeta suelta */
}
@media (min-width: 761px) and (max-width: 980px) {
  .grid-servicios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-servicios > .tarjeta-servicio:last-child:nth-child(odd) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 13px);
  }
}

/* ===== Objetivos estratégicos: 3 columnas ===== */
.grid-objetivos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-objetivos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-objetivos { grid-template-columns: 1fr; } }

/* ===== Preguntas frecuentes ===== */
.faq { background: var(--white); }
.faq__lista { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--paper);
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--teal-dark);
  border-bottom: 2px solid var(--teal-dark);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item summary:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.faq__item p { padding: 0 20px 20px; color: var(--muted); line-height: 1.65; }

@media (max-width: 640px) {
  .faq__item summary { font-size: 16px; }
}
