/* =========================================================
   GRUPO SALUTRANS — hoja de estilos compartida
   Paleta azul / amarillo
   ========================================================= */

:root {
  --bg: #f6fafd;
  --bg-alt: #eaf2fa;
  --surface: #ffffff;
  --blue-900: #0b2a4a;
  --blue-800: #123a61;
  --blue-700: #1b5183;
  --blue-600: #2670ac;
  --blue-500: #3d8ccb;
  --blue-200: #cfe3f5;
  --blue-100: #e5f0fb;
  --yellow: #ffc93c;
  --yellow-dark: #e7a80f;
  --ink: #122436;
  --ink-soft: #516a7d;
  --border: #dce7f1;
  --shadow: 0 20px 40px -24px rgba(11, 42, 74, 0.28);
  --radius: 18px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--blue-900);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 88px 0;
}
main {
  display: block;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--yellow-dark);
  display: inline-block;
  border-radius: 2px;
}
.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--yellow);
  color: var(--blue-900);
  box-shadow: 0 14px 28px -14px rgba(231, 168, 15, 0.6);
}
.btn-primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
}
.btn-blue {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(27, 81, 131, 0.6);
}
.btn-blue:hover {
  background: var(--blue-800);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--blue-900);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--blue-600);
  background: var(--surface);
}
.btn-light {
  background: var(--surface);
  color: var(--blue-900);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
}

/* ===== FOTOS A SANGRE COMPLETA (sin marco blanco) ===== */
.photo-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ratio-16-9 {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.ratio-4-3 {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.ratio-1-1 {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}
.ratio-16-9 img,
.ratio-4-3 img,
.ratio-1-1 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 10px;
}
.photo-grid .ratio-1-1 {
  border-radius: 14px;
}
.photo-grid .ratio-1-1:nth-child(1),
.photo-grid .ratio-1-1:nth-child(8),
.photo-grid .ratio-1-1:nth-child(11),
.photo-grid .ratio-1-1:nth-child(12) {
  grid-column: span 2;
  grid-row: span 2;
}
.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-card .ratio-4-3 {
  border-radius: 0;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 250, 253, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
nav {
  flex: 1;
  min-width: 0;
}
nav ul {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}
nav a {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition:
    color 0.15s,
    background 0.15s;
  white-space: nowrap;
}
nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow-dark);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}
nav a:hover {
  color: var(--blue-700);
  background: var(--blue-100);
}
nav a.active {
  color: var(--blue-700);
  font-weight: 700;
}
nav a.active::after {
  width: 18px;
}
nav .nav-tel {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.tel-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--blue-900);
  font-size: 0.86rem;
  white-space: nowrap;
}
.tel-btn svg {
  width: 16px;
  height: 16px;
  color: var(--yellow-dark);
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-900);
  transition:
    transform 0.3s ease,
    opacity 0.2s ease,
    top 0.3s ease;
}
.nav-toggle span:nth-child(1) {
  top: 15px;
}
.nav-toggle span:nth-child(2) {
  top: 21px;
}
.nav-toggle span:nth-child(3) {
  top: 27px;
}
.nav-toggle[aria-expanded="true"] {
  background: var(--blue-100);
  border-color: var(--blue-200);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}
.nav-backdrop {
  display: none;
}

/* ===== HERO (portada) ===== */
.hero {
  padding: 80px 0 56px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
/* Foto de fondo: cubre en ordenador y se adapta al ancho en móvil */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/nos11.jpg") center 30% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(246, 250, 253, 0.94) 0%,
    rgba(246, 250, 253, 0.94) 45%,
    rgba(246, 250, 253, 0.72) 100%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue-600);
}
.hero p.lead {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-trust {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 20px 30px;
}
.hero-trust div {
  display: flex;
  flex-direction: column;
}
.hero-trust strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--blue-900);
}
.hero-trust span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.hero-visual {
  position: relative;
}
.pulse-card {
  background: linear-gradient(155deg, var(--blue-700), var(--blue-900));
  border-radius: 20px;
  padding: 34px 30px;
  color: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 48px -20px rgba(11, 42, 74, 0.45);
}
.pulse-card .tag {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 6px;
}
.value-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.pulse-contador {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--yellow);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 2px 14px;
  line-height: 1.4;
}
.pulse-card .value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
}
.pulse-line {
  width: 100%;
  height: 66px;
  margin-top: 14px;
}
.pulse-line path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2.6;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw 2.6s ease-in-out infinite;
}
@keyframes draw {
  0% {
    stroke-dashoffset: 340;
  }
  55% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -340;
  }
}
.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.mini-stats .item {
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 16px;
}
.mini-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--blue-900);
}
.mini-stats span {
  font-size: 0.76rem;
  color: var(--ink-soft);
}

/* ===== CABECERA DE PÁGINA INTERIOR ===== */
.page-header {
  background: linear-gradient(155deg, var(--blue-800), var(--blue-900));
  padding: 64px 0 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 201, 60, 0.22),
    transparent 70%
  );
}
.page-header .eyebrow {
  color: var(--yellow);
}
.page-header .eyebrow::before {
  background: var(--yellow);
}
.page-header h1 {
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  max-width: 640px;
}
.page-header p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 14px;
  max-width: 560px;
  font-size: 1.02rem;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== STATS BAND ===== */
.stats-band {
  background: var(--blue-900);
  padding: 52px 0;
}
.stats-band .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-band strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--yellow);
}
.stats-band span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ===== SERVICIOS / TARJETAS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue-200);
}
.service-card .ratio-4-3 {
  border-radius: 0;
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 26px 0 18px 26px;
}
.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--blue-600);
}
.service-body {
  padding: 0 26px 26px;
}
.service-card.has-photo .service-icon {
  margin: 18px 0 14px 22px;
}
.service-card.has-photo .service-body {
  padding: 0 22px 22px;
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}
/* Tarjetas sin .service-body (p. ej. envíos): mismo margen interior que el resto */
.service-card > h3,
.service-card > p {
  padding: 0 26px;
}
.service-card > p:last-child {
  padding-bottom: 26px;
}

/* ===== PROCESO ===== */
.process {
  background: var(--bg-alt);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--blue-200) 0 10px,
    transparent 10px 18px
  );
}
.process-step {
  position: relative;
  padding: 0 18px;
  text-align: left;
}
.process-step .num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--blue-600);
  color: var(--blue-700);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.process-step h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ===== BADGES / CERTIFICACIONES ===== */
.cert-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.cert-strip .badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--blue-900);
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}
.cert-strip .badge svg {
  width: 16px;
  height: 16px;
  color: var(--blue-600);
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cert-card .ratio-16-9 {
  background: var(--blue-100);
}
.cert-card .ratio-16-9 img {
  object-fit: contain;
  padding: 18px;
  background: #fff;
}
.cert-card-body {
  padding: 28px 30px;
}
/* Si el número de certificados es impar, el último ocupa todo el ancho en horizontal */
.cert-grid .cert-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.cert-grid .cert-card:last-child:nth-child(odd) .ratio-16-9 {
  height: 100%;
}
.cert-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}
.cert-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ===== VEHICULOS ===== */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.vehicle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.vehicle-card {
  display: grid;
  grid-template-columns: 44% 1fr;
}
.vehicle-thumb {
  position: relative;
  min-height: 210px;
}
.vehicle-thumb img {
  position: absolute;
  inset: 0;
}
.vehicle-body {
  align-self: center;
}
.vehicle-body {
  padding: 24px 26px;
}
.vehicle-body .tag-type {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  background: #fff6e0;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.vehicle-body h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.vehicle-body p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ===== TESTIMONIOS ===== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
}
.testi-card p {
  font-size: 0.96rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.testi-person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-700);
}
.testi-person strong {
  display: block;
  font-size: 0.9rem;
  color: var(--blue-900);
}
.testi-person span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ===== PRENSA ===== */
.press-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.press-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  align-items: stretch;
}
.press-card .press-text {
  padding: 22px 26px;
  align-self: center;
}
.press-thumb {
  height: 100%;
  min-height: 160px;
}
.press-date {
  font-size: 0.78rem;
  color: var(--blue-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.press-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.press-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.press-card a.read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-700);
}

/* ===== SOSTENIBILIDAD ===== */
.sustain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.sustain-visual {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.sustain-visual .ratio-4-3 {
  border-radius: 0;
}
.dark-panel {
  background: linear-gradient(155deg, var(--blue-700), var(--blue-900));
  border-radius: 24px;
  padding: 32px;
  color: #fff;
}
.sustain-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}
.sustain-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.sustain-item .ic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sustain-item .ic svg {
  width: 19px;
  height: 19px;
  color: var(--blue-600);
}
.sustain-item h4 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.sustain-item p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ===== FORMULARIOS ===== */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 6px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue-500);
  outline: none;
}
textarea {
  resize: vertical;
  min-height: 110px;
}
input[type="file"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 10px;
  border: 1px dashed var(--blue-200);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  color: var(--blue-900);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
input[type="file"]:hover::file-selector-button {
  border-color: var(--blue-600);
}
.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-600);
  flex-shrink: 0;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.checkbox-row input {
  margin-top: 3px;
}
.btn-politica {
  padding: 10px 20px;
  font-size: 0.88rem;
}
.modal-politica {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(11, 42, 74, 0.45);
  overflow: hidden;
}
.modal-politica[open] {
  display: flex;
  flex-direction: column;
  animation: modalIn 0.2s ease;
}
.modal-politica::backdrop {
  background: rgba(11, 42, 74, 0.45);
  backdrop-filter: blur(2px);
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
}
.modal-head h2 {
  font-size: 1.3rem;
}
.modal-head .cookie-close {
  position: static;
  flex-shrink: 0;
}
.modal-body {
  padding: 22px 26px;
  overflow-y: auto;
  max-width: none;
}
.modal-foot {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 26px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
@media (max-width: 600px) {
  .modal-head,
  .modal-body,
  .modal-foot {
    padding-left: 18px;
    padding-right: 18px;
  }
  .modal-foot .btn {
    flex: 1 1 auto;
  }
}
.form-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ===== CONTACTO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-item .ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item .ic svg {
  width: 20px;
  height: 20px;
  color: var(--blue-600);
}
.contact-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.contact-item p,
.contact-item a {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.map-frame {
  width: 100%;
  height: 230px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.social-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-row a:hover {
  background: var(--blue-600);
}
.social-row a:hover svg {
  color: #fff;
}
.social-row svg {
  width: 17px;
  height: 17px;
  color: var(--blue-600);
}

/* ===== CTA FINAL ===== */
.cta-final {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  border-radius: 32px;
  padding: 60px 56px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-final h2 {
  color: #fff;
  font-size: 1.9rem;
  max-width: 480px;
}
.cta-final p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 10px;
  max-width: 440px;
}
.cta-final .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== ESTADOS (ok / error / 404) ===== */
.state-block {
  text-align: center;
  padding: 100px 0;
  max-width: 520px;
  margin: 0 auto;
}
.state-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
}
.state-icon.ok {
  background: var(--blue-100);
}
.state-icon.ok svg {
  width: 34px;
  height: 34px;
  color: var(--blue-600);
}
.state-icon.error {
  background: #fff6e0;
}
.state-icon.error svg {
  width: 34px;
  height: 34px;
  color: var(--yellow-dark);
}
.state-block h1 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}
.state-block p {
  color: var(--ink-soft);
  margin-bottom: 28px;
}

/* ===== TEXTO LEGAL ===== */
.legal-content {
  max-width: 760px;
}
.legal-content h2 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content h3 {
  font-size: 1rem;
  margin: 22px 0 8px;
}
.legal-content a {
  color: var(--blue-700);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.legal-content a:hover {
  text-decoration: underline;
}
.legal-content .legal-dato {
  margin-bottom: 6px;
}
.legal-content .legal-dato strong {
  color: var(--blue-900);
}
.legal-content .legal-fecha {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  font-style: italic;
}
.legal-content p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 12px;
}
.legal-content ul {
  margin: 0 0 12px 0;
}
.legal-content li {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
}
.legal-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

/* ===== COOKIES: BANNER Y PANEL ===== */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: none;
}
.cookie-banner.show {
  display: block;
}
#cookiePanel {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.cookie-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--blue-900);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.cookie-close:hover {
  background: var(--blue-100);
}
.cookie-aviso {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 32px 20px;
  min-height: 200px;
  border: 1px dashed var(--blue-200);
  border-radius: 16px;
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.cookie-banner p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.cookie-banner p a {
  color: var(--blue-700);
  font-weight: 600;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-actions .btn {
  padding: 10px 18px;
  font-size: 0.85rem;
}
.cookie-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.cookie-panel-row:first-of-type {
  padding-top: 0;
}
.cookie-panel-row h4 {
  font-size: 0.94rem;
  margin-bottom: 4px;
}
.cookie-panel-row p {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 0;
}
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 100px;
  transition: 0.2s;
  cursor: pointer;
}
.switch .slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.switch input:checked + .slider {
  background: var(--blue-600);
}
.switch input:checked + .slider::before {
  transform: translateX(20px);
}
.switch input:disabled + .slider {
  background: var(--blue-300, #9cc1e0);
  cursor: not-allowed;
}

/* ===== FOOTER ===== */
footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 68px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px 60px;
  align-items: start;
  margin-bottom: 44px;
}
.footer-contact {
  min-width: 240px;
}
.footer-brand .logo {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.footer-brand .logo .mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(155deg, var(--blue-600), var(--blue-800));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-brand .logo .mark svg {
  width: 20px;
  height: 20px;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 0.9rem;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.footer-social a:hover {
  background: var(--blue-600);
}
.footer-social svg {
  width: 16px;
  height: 16px;
  color: #fff;
}
footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
footer ul li {
  margin-bottom: 11px;
}
footer ul a {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s;
}
footer ul a:hover {
  color: var(--yellow);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a:hover {
  color: var(--yellow);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1180px) {
  nav a {
    padding: 8px 9px;
    font-size: 0.86rem;
  }
}
@media (max-width: 1080px) {
  .header-actions .tel-btn {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    z-index: 101;
    max-height: calc(100vh - 78px);
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 30px 50px -20px rgba(11, 42, 74, 0.35);
    padding: 14px 20px 22px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    pointer-events: none;
    transition:
      opacity 0.25s ease,
      transform 0.3s ease,
      visibility 0s linear 0.3s;
  }
  nav.mobile-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition:
      opacity 0.25s ease,
      transform 0.3s ease;
  }
  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-width: 560px;
    margin: 0 auto;
  }
  nav li {
    opacity: 0;
    transform: translateY(-6px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease;
  }
  nav.mobile-open li {
    opacity: 1;
    transform: none;
  }
  nav.mobile-open li:nth-child(2) {
    transition-delay: 0.03s;
  }
  nav.mobile-open li:nth-child(3) {
    transition-delay: 0.06s;
  }
  nav.mobile-open li:nth-child(4) {
    transition-delay: 0.09s;
  }
  nav.mobile-open li:nth-child(5) {
    transition-delay: 0.12s;
  }
  nav.mobile-open li:nth-child(6) {
    transition-delay: 0.15s;
  }
  nav.mobile-open li:nth-child(7) {
    transition-delay: 0.18s;
  }
  nav.mobile-open li:nth-child(8) {
    transition-delay: 0.21s;
  }
  nav a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 1rem;
    color: var(--blue-900);
  }
  nav a::after {
    left: 0;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 0;
    transform: translateY(-50%);
    transition: height 0.2s ease;
  }
  nav a.active {
    background: var(--blue-100);
  }
  nav a.active::after {
    width: 3px;
    height: 22px;
  }
  nav .nav-tel {
    display: block;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }
  nav .nav-tel a {
    justify-content: center;
    width: 100%;
    padding: 14px 26px;
    color: var(--blue-900);
    background: var(--yellow);
  }
  nav .nav-tel a::after {
    display: none;
  }
  nav .nav-tel svg {
    width: 18px;
    height: 18px;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 78px 0 0 0;
    z-index: 99;
    background: rgba(11, 42, 74, 0.35);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.25s ease,
      visibility 0s linear 0.25s;
  }
  body.menu-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease;
  }
  body.menu-open {
    overflow: hidden;
  }
}
@media (max-width: 1080px) {
  .cert-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .cert-strip .badge:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    min-width: calc(50% - 7px);
  }
}
@media (max-width: 900px) {
  .hero-grid,
  .sustain-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero::before {
    background-size: 100% auto;
    background-position: center top;
  }
  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(246, 250, 253, 0.78) 0%,
      rgba(246, 250, 253, 0.84) 30vw,
      var(--bg) 78vw
    );
  }
  .stats-band .container {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }
  .services-grid,
  .testi-grid,
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vehicle-grid {
    grid-template-columns: 1fr;
  }
  .services-grid > :last-child:nth-child(odd),
  .vehicle-grid > :last-child:nth-child(odd),
  .testi-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 36px;
  }
  .process-grid::before {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr auto;
  }
  .cta-final {
    padding: 44px 28px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .press-card {
    grid-template-columns: 1fr;
  }
  .press-thumb {
    min-height: 200px;
  }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-grid .ratio-1-1:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }
}
@media (max-width: 600px) {
  section {
    padding: 60px 0;
  }
  .container {
    padding: 0 20px;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .page-header {
    padding: 48px 0 42px;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .hero-cta .btn {
    flex: 1 1 auto;
  }
  .hero-trust {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-band {
    padding: 44px 0;
  }
  .stats-band strong {
    font-size: 1.8rem;
  }
  .cta-final {
    padding: 36px 24px;
    border-radius: 24px;
  }
  .cta-final h2 {
    font-size: 1.55rem;
  }
  .cta-final .actions,
  .cta-final .actions .btn {
    width: 100%;
  }
  .form-card {
    padding: 24px 20px;
  }
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px;
  }
  .cert-card-body {
    padding: 22px 22px;
  }
  .footer-grid {
    gap: 32px 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-contact {
    min-width: 0;
  }
  .footer-brand p {
    max-width: none;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .footer-bottom > div {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px !important;
  }
  .services-grid,
  .testi-grid,
  .vehicle-grid,
  .cert-grid,
  .cert-strip {
    grid-template-columns: 1fr;
  }
  .vehicle-card {
    display: block;
  }
  .vehicle-thumb {
    min-height: 0;
    height: 200px;
  }
  .cert-strip .badge:last-child:nth-child(odd) {
    min-width: 0;
    justify-self: stretch;
  }
  .cert-grid .cert-card:last-child:nth-child(odd) {
    display: block;
  }
  .cert-grid .cert-card:last-child:nth-child(odd) .ratio-16-9 {
    height: auto;
  }
  .process-grid {
    grid-template-columns: 1fr !important;
  }
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px;
  }
  .cookie-actions .btn {
    flex: 1 1 auto;
  }
  .state-block {
    padding: 64px 0;
  }
}
@media (hover: none) {
  .service-card:hover,
  .vehicle-card:hover,
  .btn-primary:hover,
  .btn-light:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  nav,
  nav li,
  .nav-backdrop,
  .nav-toggle span {
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .pulse-line path {
    animation: none;
    stroke-dashoffset: 0;
  }
}
