/* =========================================================
   LIZZARDINT — Hoja de estilos
   Paleta de marca: navy #0f2f52 · teal #0f7684 · teal claro #409da9
   Tipografía: Lato (bold en títulos, regular en cuerpo)
   Mobile-first · animaciones con curvas de easing personalizadas
   ========================================================= */

:root {
  /* Colores de marca */
  --navy: #0f2f52;
  --navy-deep: #0a2138;
  --navy-soft: #1c456e;
  --teal: #0f7684;
  --teal-light: #409da9;
  --teal-50: #e8f3f4;

  /* Neutros */
  --ink: #122436;
  --body: #45596b;
  --muted: #6b7c8c;
  --line: #e3e9ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --bg-tint: #eef4f6;
  --white: #ffffff;

  /* Tipografía */
  --font-display: "Lato", system-ui, sans-serif;
  --font-body: "Lato", system-ui, sans-serif;
  --fs-body: 13px;
  --fs-small: 12px;
  --fs-lg: 14.5px;

  /* Radios */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(15, 47, 82, 0.06), 0 2px 8px rgba(15, 47, 82, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 47, 82, 0.10);
  --shadow-lg: 0 20px 48px rgba(15, 47, 82, 0.16);
  --shadow-teal: 0 14px 32px rgba(15, 118, 132, 0.28);

  /* Curvas de easing (Emil Kowalski) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Layout */
  --container: 1360px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
input, textarea, select { font-family: inherit; font-size: var(--fs-body); }
p { font-size: var(--fs-body); }
em { font-style: normal; color: var(--muted); font-size: var(--fs-small); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 640px) { .container { padding-inline: 28px; } }
@media (min-width: 1024px) { .container { padding-inline: 36px; } }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: var(--r-sm);
  transition: top 200ms var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* ---------- Barra de progreso ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  z-index: 120; transition: width 80ms linear;
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  padding: 14px 26px; border-radius: var(--r-pill);
  transition: transform 160ms var(--ease-out), box-shadow 220ms var(--ease-out), background-color 200ms ease, color 200ms ease;
  will-change: transform; text-align: center; line-height: 1;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-teal); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(15, 47, 82, 0.20); }
.btn-lg { padding: 17px 36px; font-size: 1rem; }
.btn-block { width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #0d6774; box-shadow: 0 18px 40px rgba(15, 118, 132, 0.36); transform: translateY(-2px); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--teal); color: var(--teal); }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height 280ms var(--ease-out), background-color 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}
.site-header.scrolled {
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(15, 47, 82, 0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; display: block; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark .bm-1 { fill: var(--navy); }
.brand-mark .bm-2 { fill: var(--teal-light); }
.brand-mark .bm-3 { fill: var(--teal); }
.brand-word {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em;
  color: var(--navy); font-size: 1.3rem;
}

.main-nav { display: none; align-items: center; gap: 6px; }
.main-nav-head { display: none; }
.nav-link {
  font-weight: 700; color: var(--ink); padding: 9px 14px; border-radius: var(--r-sm);
  font-size: var(--fs-body); position: relative; transform-origin: center;
  transition: color 180ms ease, transform 200ms var(--ease-out);
}
.nav-link.active { color: var(--teal); }
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--teal); }
}
.nav-cta {
  font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--navy);
  padding: 8px 20px; border-radius: var(--r-pill); margin-left: 8px; font-size: var(--fs-body); line-height: 1.2;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.nav-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .nav-cta:hover { background: var(--teal); } }

/* Toggle móvil */
.nav-toggle {
  width: 44px; height: 44px; display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px; border-radius: var(--r-sm);
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform 280ms var(--ease-out), opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-close {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: var(--navy); background: var(--bg-soft); flex: none;
  transition: background-color 180ms ease, transform 160ms var(--ease-out);
}
.nav-close svg { width: 18px; height: 18px; }
.nav-close:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .nav-close:hover { background: var(--teal-50); color: var(--teal); } }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: calc(var(--header-h) + 40px) 0 56px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 88% 8%, rgba(64, 157, 169, 0.18), transparent 60%),
    radial-gradient(55% 60% at 0% 100%, rgba(15, 47, 82, 0.08), transparent 55%),
    linear-gradient(180deg, #fbfdfe 0%, #eef4f6 100%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(15, 47, 82, 0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15, 47, 82, 0.035) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent 75%);
}
.hero-inner { display: grid; gap: 40px; align-items: center; }

.hero-title { font-size: clamp(2.1rem, 7vw, 3.6rem); color: var(--navy); margin: 0 0 18px; font-weight: 700; }
.hero-sub { font-size: var(--fs-lg); line-height: 1.8; color: var(--body); max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-body); font-weight: 700; color: var(--ink); }
.hero-trust li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Media del hero */
.hero-media { position: relative; }
.hero-photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 16 / 11; background: var(--bg-tint);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 55%, rgba(15, 47, 82, 0.22));
}
.hero-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  padding: 13px 16px; border-radius: var(--r-md); box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.hero-card strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-body); color: var(--navy); }
.hero-card small { color: var(--muted); font-size: var(--fs-small); }
.hc-ico { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--teal), var(--teal-light)); }
.hc-ico svg { width: 20px; height: 20px; }
.hero-card--a { top: 12%; right: -8px; animation: floaty 6s var(--ease-in-out) infinite; }
.hero-card--b { bottom: 9%; left: -10px; animation: floaty 6s var(--ease-in-out) infinite 1.4s; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* =========================================================
   MARQUEE — pista clonada dinámicamente por JS para evitar huecos
   ========================================================= */
.marquee { background: var(--navy); color: rgba(255, 255, 255, 0.92); padding: 16px 0; overflow: hidden; }
.marquee-track {
  display: flex; align-items: center; width: max-content;
  animation: marquee-scroll var(--marquee-duration, 24s) linear infinite;
}
.marquee-group {
  display: flex; align-items: center; gap: 28px; flex: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding-right: 28px;
}
.marquee-track i { color: var(--teal-light); font-style: normal; }
@keyframes marquee-scroll { to { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); } }

/* =========================================================
   SECCIONES (genérico)
   ========================================================= */
.section { padding: 64px 0; }
.section-title { font-size: clamp(1.6rem, 4.6vw, 2.4rem); color: var(--navy); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-intro, .lead { color: var(--body); margin-top: 14px; font-size: var(--fs-lg); line-height: 1.8; }
.grid-2 { display: grid; gap: 40px; }

/* ---------- Nosotros ---------- */
.nosotros { background: var(--bg); }
.about-layout { display: grid; gap: 26px; }
.about-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-blocks { display: grid; gap: 16px; }
.about-block--intro .section-title { margin-bottom: 4px; }
.about-block--intro .lead { margin-top: 4px; font-weight: 700; color: var(--navy); }
.about-block--intro p + p { margin-top: 12px; }
.about-block:not(.about-block--intro) {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms ease;
}
.about-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--navy), var(--teal)); margin-bottom: 12px; }
.about-ico svg { width: 24px; height: 24px; }
.about-block h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 6px; }
@media (hover: hover) and (pointer: fine) {
  .about-block:not(.about-block--intro):hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
}

/* ---------- Servicios ---------- */
.servicios { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.services-grid { display: grid; gap: 22px; align-items: start; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), border-color 320ms ease;
}
.service-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-tint); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.service-num {
  position: absolute; top: 14px; left: 14px; font-family: var(--font-display); font-weight: 700;
  color: #fff; background: rgba(15, 47, 82, 0.55); backdrop-filter: blur(6px);
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: var(--fs-body);
}
.service-body { padding: 22px; }
.service-body h3 { font-size: 1.14rem; color: var(--navy); margin-bottom: 8px; }
.service-body > p { font-size: var(--fs-body); }
.service-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-family: var(--font-display); font-weight: 700; color: var(--teal); font-size: var(--fs-body);
  align-self: flex-start; padding: 6px 0;
}
.service-more svg { width: 18px; height: 18px; transition: transform 260ms var(--ease-out); }
.service-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.service-list {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 360ms var(--ease-out), opacity 280ms ease, margin-top 360ms var(--ease-out);
  overflow: hidden; margin-top: 0;
}
.service-list.open { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
.service-list > * { min-height: 0; }
.service-list li {
  position: relative; padding: 7px 0 7px 26px; font-size: var(--fs-body); color: var(--body);
  border-top: 1px solid var(--line);
}
.service-list li:first-child { border-top: none; }
.service-list li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230f7684' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
  .service-card:hover .service-media img { transform: scale(1.06); }
}

/* ---------- Valores: filas compactas ---------- */
.valores { background: var(--bg); }
.values-grid { display: grid; gap: 12px; }
.value-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px; transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms ease;
}
.value-ico {
  width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--teal), var(--teal-light));
  transition: transform 260ms var(--ease-out);
}
.value-ico svg { width: 22px; height: 22px; }
.value-copy h3 { font-size: 0.98rem; color: var(--navy); margin-bottom: 2px; }
.value-copy p { font-size: var(--fs-body); line-height: 1.6; }
@media (hover: hover) and (pointer: fine) {
  .value-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: transparent; }
  .value-row:hover .value-ico { transform: scale(1.08) rotate(-4deg); }
}

/* ---------- Beneficios (sección oscura, tarjetas con acordeón) ---------- */
.beneficios { background: radial-gradient(80% 120% at 100% 0%, var(--navy-soft), var(--navy) 55%, var(--navy-deep)); color: rgba(255, 255, 255, 0.78); position: relative; overflow: hidden; }
.beneficios::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 50% at 8% 100%, rgba(64, 157, 169, 0.25), transparent 60%);
}
.section-head--light .section-title { color: #fff; }
.section-intro--light { color: rgba(255, 255, 255, 0.6); }
.benefits-grid { display: grid; gap: 12px; }
.benefit-item {
  position: relative; text-align: left; width: 100%; display: block;
  padding: 22px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 260ms ease, border-color 260ms ease, transform 260ms var(--ease-out);
}
.benefit-num { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-body); color: var(--teal-light); display: block; margin-bottom: 8px; }
.benefit-item h3 { color: #fff; font-size: 1.02rem; }
.benefit-desc {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 340ms var(--ease-out), opacity 260ms ease, margin-top 340ms var(--ease-out);
  overflow: hidden; margin-top: 0;
}
.benefit-desc > span { min-height: 0; display: block; font-size: var(--fs-body); color: rgba(255, 255, 255, 0.72); line-height: 1.7; }
.benefit-item.is-open .benefit-desc,
.benefit-item:focus-visible .benefit-desc { grid-template-rows: 1fr; opacity: 1; margin-top: 10px; }
@media (hover: hover) and (pointer: fine) {
  .benefit-item:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); transform: translateY(-3px); }
  .benefit-item:hover .benefit-desc { grid-template-rows: 1fr; opacity: 1; margin-top: 10px; }
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy); }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 33, 56, 0.94) 20%, rgba(15, 118, 132, 0.75) 75%, rgba(64, 157, 169, 0.55) 100%);
}
.cta-inner {
  position: relative; padding: 56px 0; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 28px;
}
.cta-copy { max-width: 620px; }
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 3.6vw, 2.15rem); }
.cta-inner p { color: rgba(255, 255, 255, 0.88); margin-top: 14px; font-size: var(--fs-lg); line-height: 1.8; }
.cta-band .btn-primary { background: #fff; color: var(--teal); box-shadow: 0 16px 36px rgba(10, 33, 56, 0.22); flex: none; }
@media (hover: hover) and (pointer: fine) { .cta-band .btn-primary:hover { background: var(--navy-deep); color: #fff; } }

/* =========================================================
   CONTACTO
   ========================================================= */
.contacto { background: var(--bg-soft); }
/* El mapa cierra la sección: sin espacio entre el mapa y el pie de página */
.section.contacto { padding-bottom: 0; }
.contacto-grid { display: grid; gap: 36px; margin-bottom: 44px; }

.contact-info-card {
  margin-top: 26px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.contact-info-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
.contact-info-row + .contact-info-row { border-top: 1px solid var(--line); }
.ci-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--teal); background: var(--teal-50); }
.ci-ico svg { width: 20px; height: 20px; }
.contact-info-row strong { display: block; font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: var(--fs-body); margin-bottom: 2px; }
.contact-info-row a, .contact-info-row span { color: var(--body); font-size: var(--fs-body); }
.contact-info-row a { transition: color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .contact-info-row a:hover { color: var(--teal); } }

/* Formulario — sin tarjeta contenedora */
.contact-form { display: grid; gap: 16px; align-content: start; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; gap: 16px; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-body); color: var(--navy); }
.field label em { font-family: var(--font-body); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa9b6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 4px rgba(64, 157, 169, 0.16);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #d9534f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn .btn-spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff; display: none;
}
.btn.loading .btn-label { opacity: 0.65; }
.btn.loading .btn-spinner { display: inline-block; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { font-size: var(--fs-body); font-weight: 700; min-height: 1.2em; opacity: 0; transform: translateY(-4px); transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.form-status.show { opacity: 1; transform: none; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #d9534f; }
.form-privacy {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-align: center; font-size: var(--fs-small); color: var(--muted);
}
.form-privacy svg { width: 16px; height: 16px; flex: none; color: var(--teal); }

/* Mapa a lo ancho de la página */
.map-full { width: 100%; aspect-ratio: 21 / 8; background: var(--bg-tint); }
.map-full iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 767px) {
  .map-full { aspect-ratio: 4 / 5; }

  /* Hero: tarjetas compactas que cuelgan del borde inferior y apenas rozan la foto.
     max-width evita que se corten o choquen en pantallas angostas. */
  .hero-card { padding: 9px 11px; gap: 8px; max-width: 45%; }
  .hero-card small { display: none; }
  .hero-card strong { font-size: 12px; line-height: 1.25; }
  .hc-ico { width: 28px; height: 28px; border-radius: 9px; }
  .hc-ico svg { width: 15px; height: 15px; }
  .hero-card--a { top: auto; bottom: -18px; right: 10px; }
  .hero-card--b { top: auto; bottom: -18px; left: 10px; }

  /* CTA: más aire lateral y sin saltos de línea forzados */
  .cta-inner { padding: 44px 24px; }
  .cta-copy .d-desk { display: none; }

  /* Copyright del pie en una sola línea */
  .footer-bottom-inner, .footer-bottom-inner p { font-size: 10.5px; white-space: nowrap; }
}

/* =========================================================
   FOOTER — fondo claro
   ========================================================= */
.site-footer { background: var(--white); color: var(--body); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 32px; padding: 52px 0 36px; }
.footer-brand .footer-logo { width: 160px; height: auto; margin-bottom: 14px; }
.footer-brand p { font-size: var(--fs-body); max-width: 38ch; }
.footer-col h4 { color: var(--navy); font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { font-size: var(--fs-body); transition: color 180ms ease, transform 180ms ease; display: inline-block; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { color: var(--teal); transform: translateX(3px); } }

.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; font-size: var(--fs-small); color: var(--muted); }

/* =========================================================
   BOTÓN VOLVER ARRIBA
   ========================================================= */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; transform: scale(0.8) translateY(10px); pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), background-color 200ms ease;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .to-top:hover { background: var(--teal); } }

/* =========================================================
   REVEAL (scroll)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .section { padding: 84px 0; }
  .hero { padding: calc(var(--header-h) + 56px) 0 72px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 52px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 64px 0 40px; }
  .cta-inner { padding: 64px 0; }
  .cta-inner .btn-lg { margin-left: auto; }
}

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .contacto-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; }

  /* Nosotros: la foto queda fija (sticky) mientras aparecen los bloques al hacer scroll */
  .about-layout { grid-template-columns: 0.82fr 1.18fr; gap: 56px; align-items: start; }
  .about-media { position: sticky; top: calc(var(--header-h) + 32px); }
  .about-blocks { gap: 18px; }

  /* --- Tipografía en escritorio: cuerpo legible, títulos +20% --- */
  body { font-size: 17px; line-height: 1.7; }
  p, .service-body > p, .value-copy p, .service-list li,
  .benefit-desc > span, .about-block p,
  .contact-info-row a, .contact-info-row span, .contact-info-row strong { font-size: 17px; }
  .hero-sub, .lead, .section-intro { font-size: 19px; line-height: 1.7; }

  /* Títulos +20% */
  .hero-title { font-size: clamp(3rem, 4.6vw, 4.3rem); }
  .section-title { font-size: 2.9rem; }
  .cta-inner h2 { font-size: 2.55rem; }
  .service-body h3 { font-size: 1.37rem; }
  .value-copy h3 { font-size: 1.18rem; }
  .about-block h3 { font-size: 1.44rem; }
  .benefit-item h3 { font-size: 1.22rem; }

  /* Menú, botones y secundarios: compactos y legibles (no se duplican) */
  .nav-link { font-size: 16px; }
  .nav-link:hover, .nav-link.active { transform: scale(1.08); }
  .marquee-group { font-size: 18px; }
  .btn { font-size: 1.05rem; }
  .hero-trust li { font-size: 16px; }
  .hero-card strong { font-size: 16px; }
  .hero-card small { font-size: 13px; }
  .service-num { font-size: 16px; }
  .benefit-num { font-size: 16px; }
  .field label { font-size: 16px; }
  .field input, .field textarea, .field select { font-size: 17px; }
  .form-privacy { font-size: 15px; }
  .footer-brand p, .footer-col a { font-size: 16px; }
  .footer-col h4 { font-size: 14px; }
  .footer-bottom-inner { font-size: 14px; }
}

/* =========================================================
   MENÚ MÓVIL — despliegue hacia abajo, con botón de cierre
   ========================================================= */
@media (max-width: 1023px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
    box-shadow: 0 24px 48px rgba(15, 47, 82, 0.16);
    border-top: 1px solid var(--line);
    transform-origin: top; transform: translateY(-8px) scaleY(0.98); opacity: 0;
    transition: transform 320ms var(--ease-drawer), opacity 260ms ease, visibility 320ms;
    display: flex; visibility: hidden; z-index: 101;
  }
  .main-nav.open { transform: translateY(0) scaleY(1); opacity: 1; visibility: visible; }
  .main-nav-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
  .main-nav-title { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: var(--fs-body); text-transform: uppercase; letter-spacing: 0.06em; }
  .nav-link { font-size: 1rem; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link::after { display: none; }
  .nav-cta { margin: 18px 0 4px; text-align: center; padding: 15px; }
  body.menu-open { overflow: hidden; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 99; background: rgba(10, 33, 56, 0.45);
    opacity: 0; pointer-events: none; transition: opacity 320ms var(--ease-out);
    backdrop-filter: blur(2px);
  }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }

  /* Pie de página centrado en móvil */
  .footer-grid { text-align: center; justify-items: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-col ul { justify-items: center; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* =========================================================
   PREFERS-REDUCED-MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero-card--a, .hero-card--b { animation: none; }
  .marquee-track { animation: none; }
  .btn:active, .to-top:active { transform: none; }
}
