/* ===============================================================
   RYSZARD - Hoja de estilos
   =============================================================== */

:root {
  --rojo: #e70303;
  --rojo-osc: #c00202;
  --rojo-btn: #b70000;
  --rojo-btn-osc: #aa0303;
  --negro: #0f0f10;
  --gris-nav: #1b1b1d;
  --gris-panel: #2c3035;
  --negro-panel: #212121;
  --negro-cta: #181c1f;
  --gris-texto: #333333;
  --gris-claro: #6b6b6b;
  --blanco: #ffffff;
  --max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--gris-texto);
  line-height: 1.6;
  background: var(--blanco);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { text-decoration: none; color: inherit; }

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--rojo);
  color: var(--blanco);
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  z-index: 1000;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--rojo);
  outline-offset: 2px;
  border-radius: 2px;
}
.btn-cotizar:focus-visible,
.cookie-more:focus-visible {
  outline-color: var(--blanco);
}

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

h1, h2, h3 { font-weight: 800; line-height: 1.08; color: var(--negro); letter-spacing: -0.02em; }

/* ---------- Etiquetas tipo "eyebrow" ---------- */
.overline {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 13px;
  color: var(--negro);
  margin-bottom: 14px;
}
.hero .overline { color: var(--blanco); }
.overline--line { position: relative; padding-bottom: 12px; display: inline-block; }
.overline--line::before {
  content: "";
  position: absolute; bottom: 0; left: 0;
  width: 40px; height: 2px; background: var(--rojo);
}
.clientes .overline--line,
.faq-header .overline--line { display: block; }
.clientes .overline--line::before,
.faq-header .overline--line::before { left: 50%; transform: translateX(-50%); }

/* ---------- Botones ---------- */
.btn-primary {
  display: inline-block;
  background: var(--rojo-btn);
  color: var(--blanco);
  padding: 15px 30px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s ease;
  font-size: 15px;
}
.btn-primary:hover { background: var(--rojo-btn-osc); }

.btn-theme {
  display: inline-block;
  background: var(--rojo-btn);
  color: var(--blanco);
  padding: 15px 34px;
  font-weight: 600;
  border-radius: 4px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: background .2s ease;
}
.btn-theme:hover { background: var(--rojo-btn-osc); }

.btn-light {
  display: inline-block;
  background: var(--blanco);
  color: var(--negro);
  padding: 14px 34px;
  font-weight: 600;
  border-radius: 3px;
  transition: opacity .2s ease;
}
.btn-light:hover { opacity: .85; }

/* ===============================================================
   ENCABEZADO
   =============================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(27, 27, 29, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header .nav-wrap {
  display: flex; align-items: center; gap: 32px;
  height: 80px;
  max-width: none;
  width: 100%;
  padding: 0 32px;
  margin: 0;
}
.logo img { height: 40px; width: auto; }

.main-nav { margin-left: 10px; }
.main-nav ul { display: flex; gap: 34px; list-style: none; }
.main-nav a {
  color: var(--blanco);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .5px;
  transition: color .2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--rojo); }

.btn-cotizar {
  margin-left: 14px;
  background: var(--blanco);
  color: var(--negro);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 0;
  font-size: 14px;
  transition: background .2s ease, color .2s ease;
}
.btn-cotizar:hover { background: var(--rojo); color: var(--blanco); }

/* ---------- Selector de idioma ---------- */
.lang-switch { position: relative; margin-left: auto; }
.lang-current {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  color: var(--blanco);
  padding: 8px 11px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
}
.lang-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  flex: none;
  display: block;
  overflow: hidden;
}
.lang-caret {
  width: 12px;
  height: 12px;
  flex: none;
  transition: transform .2s ease;
}
.lang-switch.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  list-style: none;
  background: var(--negro-panel);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  padding: 6px;
  min-width: 130px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 200;
}
.lang-switch.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 4px;
  color: var(--blanco);
  font-size: 13px;
  font-weight: 600;
}
.lang-menu a:hover { background: rgba(255, 255, 255, .08); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; margin-left: auto; }
.nav-toggle span {
  display: block; width: 26px; height: 3px; margin: 5px 0;
  background: var(--blanco); border-radius: 2px;
}

/* ===============================================================
   HERO
   =============================================================== */
.hero {
  position: relative;
  background: var(--negro);
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 3; width: 100%; }
.hero-text { max-width: 620px; padding: 60px 0; }
.hero h1 {
  color: var(--blanco);
  font-size: 60px;
  margin-bottom: 24px;
}
.hero-desc {
  color: #d5d5d5;
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-image {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 62%;
  z-index: 1;
  background: #14140f;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}
.hero-image::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--negro) 0%, rgba(15,15,16,.65) 22%, rgba(15,15,16,0) 55%);
  z-index: 2;
}

/* ===============================================================
   ¿QUIÉNES SOMOS?
   =============================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.nosotros { padding: 90px 0; background: var(--blanco); }
.nosotros-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #ececec;
  border-radius: 2px;
}
.nosotros h2 { font-size: 52px; margin: 6px 0 26px; }
.nosotros .lead { color: var(--gris-texto); font-size: 17px; margin-bottom: 20px; }
.nosotros p { color: var(--gris-claro); margin-bottom: 16px; }

/* ===============================================================
   COMPROMISO CON LA CALIDAD (foto de fondo + overlay)
   =============================================================== */
.calidad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 560px;
}
.calidad-panel {
  background: var(--rojo);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.calidad-content { max-width: 480px; padding: 60px 7%; margin: 0 auto; }
.calidad-content h2 { color: var(--blanco); font-size: 44px; margin-bottom: 20px; }
.calidad-content p { color: #ffe1e1; font-size: 17px; margin-bottom: 34px; }
.iso-badge { width: 200px; margin: 0 auto; }
.calidad-image {
  background: #2c3035 url('../images/altamira-monterre-transporte.jpg') center center / cover no-repeat;
}

/* ===============================================================
   NUESTRO COMPROMISO (mapa de rutas + texto)
   =============================================================== */
.compromiso { padding: 90px 0; background: var(--blanco); }
.compromiso-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: stretch;
}
.compromiso-map {
  background: var(--negro-panel) url('../images/imagen_bg_mapa.png') center center / cover no-repeat;
  border-radius: 4px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mexico-map { width: 100%; height: auto; display: block; }
.mexico-outline {
  fill: none;
  stroke: rgba(255, 255, 255, .55);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.map-marker-dot { fill: var(--rojo); }
.map-marker-pulse {
  fill: none;
  stroke: var(--rojo);
  stroke-width: 2.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: mapPulse 2.4s ease-out infinite;
}
@keyframes mapPulse {
  0% { opacity: .9; transform: scale(.4); }
  100% { opacity: 0; transform: scale(3.4); }
}
.map-marker-label {
  fill: var(--blanco);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
}
.route-line {
  fill: none;
  stroke: rgba(231, 3, 3, .4);
  stroke-width: 1.1;
  stroke-dasharray: 3 3;
}
.route-dot {
  fill: var(--rojo);
  stroke: var(--blanco);
  stroke-width: .6;
}
.city-dot { fill: rgba(255, 255, 255, .85); }
.city-label {
  fill: rgba(255, 255, 255, .8);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
}
.compromiso-side { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.compromiso-text h2 { font-size: 38px; margin: 6px 0 14px; }
.compromiso-text p { color: var(--gris-claro); font-size: 16px; }
.compromiso-routes { border-top: 1px solid #ececec; padding-top: 26px; }
.compromiso-routes .overline { margin-bottom: 16px; }
.routes-list { list-style: none; }
.routes-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-weight: 600;
  color: var(--negro);
  font-size: 14.5px;
}
.routes-list li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e70303' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E") no-repeat center / contain;
}
.routes-list li span { display: block; font-weight: 400; color: var(--gris-claro); font-size: 13px; margin-top: 2px; }

/* ===============================================================
   BANDA CTA "Atendemos todas tus dudas" (aparece en todas las páginas)
   =============================================================== */
.cta-band {
  background-color: var(--negro-cta);
  background-image: url('../images/cta-band-bg.png');
  background-repeat: repeat-x;
  background-position: center top;
}
.cta-band-inner {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--gris-panel);
  background-image: url('../images/cta-icon-contacto2-1.png');
  background-repeat: no-repeat;
  background-position: left top;
  padding: 55px 20% 45px;
  text-align: center;
}
.cta-band h2 {
  color: var(--blanco);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}
.cta-band .cta-phone {
  display: block;
  color: var(--rojo);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 22px;
}
.cta-band .cta-line {
  width: 90px; height: 2px; background: rgba(255,255,255,.15);
  margin: 0 auto 26px;
}

/* ===============================================================
   PIE DE PÁGINA
   =============================================================== */
.site-footer {
  background: var(--negro);
  color: #cfcfcf;
  padding: 30px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-tag { color: #cfcfcf; margin-bottom: 6px; font-size: 15px; }
.footer-name { color: var(--rojo); font-size: 34px; font-weight: 800; }
.footer-col h3 { color: var(--blanco); font-size: 16px; margin-bottom: 12px; font-weight: 600; }
.footer-col address { font-style: normal; color: #bcbcbc; line-height: 1.7; }
.footer-col p { color: #bcbcbc; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 24px;
  font-size: 13px;
  color: #8a8a8a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-social { display: flex; gap: 14px; list-style: none; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #cfcfcf;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.footer-social a:hover { background: var(--rojo); border-color: var(--rojo); color: #fff; }

/* ===============================================================
   WHATSAPP FLOTANTE
   =============================================================== */
.whatsapp-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  z-index: 200;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ===============================================================
   AVISO DE COOKIES
   =============================================================== */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(90,90,90,.985);
  color: #fff;
  z-index: 150;
  padding: 19px 0;
}
.cookie-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.cookie-text { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 260px; }
.cookie-text p { font-size: 14px; margin: 0; }
.cookie-actions { display: flex; align-items: center; gap: 22px; }
.cookie-more { color: #fff; font-size: 14px; }
.btn-cookie { padding: 10px 26px; }

/* ===============================================================
   CLIENTES / EMPRESAS QUE CONFÍAN EN NOSOTROS
   =============================================================== */
.clientes {
  padding: 70px 0;
  margin-bottom: 60px;
  background: #f7f7f7;
}
.clientes .overline { text-align: center; margin-bottom: 34px; }
.clientes-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  overflow-x: auto;
  padding: 0 4px 4px;
}
.clientes-grid img {
  flex: none;
  height: 42px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.65);
  transition: filter .2s ease, transform .2s ease;
}
.clientes-grid img:hover {
  transform: scale(1.05);
  filter: grayscale(0) opacity(1);
}

/* ===============================================================
   ENCABEZADO DE PÁGINA INTERIOR (Sobre nosotros / Oferta / Contacto)
   =============================================================== */
.page-hero {
  position: relative;
  background-color: var(--negro-panel);
  background-repeat: no-repeat;
  padding: 130px 0 90px;
  min-height: 566px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero > .container { width: 100%; }
.page-hero .overline {
  position: relative; z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blanco);
  margin-bottom: 16px;
}
.page-hero .overline::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--rojo);
}
.page-hero h1 {
  position: relative; z-index: 2;
  color: var(--blanco);
  font-size: 54px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
  max-width: 720px;
}
.page-hero .lead {
  position: relative; z-index: 2;
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
  line-height: 1.6;
  max-width: 600px;
  margin-top: 16px;
}
.page-hero--photo {
  background-size: cover;
  background-position: center 30%;
}
.page-hero--photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,15,16,.82) 0%, rgba(15,15,16,.45) 55%, rgba(15,15,16,.15) 100%);
}
.page-hero--photo .container { position: relative; z-index: 2; }
.page-hero--photo h1 { max-width: 640px; }
.page-hero--oferta h1 { max-width: 620px; }

.page-hero--panel {
  background-size: auto 100%, cover;
  background-repeat: no-repeat, no-repeat;
  background-position: 60% center, center;
}
.page-hero--panel h1 { max-width: 50%; }
.page-hero--panel.page-hero--oferta h1 { max-width: 620px; }
.page-hero--panel.page-hero--contacto {
  background-size: cover, cover;
  background-position: 78% center, center;
}
.page-hero--panel.page-hero--sobrenosotros {
  background-position: right center, center;
}
.page-hero--panel.page-hero--oferta {
  background-position: right center, center;
}

/* ===============================================================
   BREADCRUMB (navegación de migas de pan)
   =============================================================== */
.breadcrumb {
  background: #f7f7f7;
  border-bottom: 1px solid #ececec;
  padding: 14px 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--gris-claro);
}
.breadcrumb a { color: var(--gris-claro); }
.breadcrumb a:hover { color: var(--rojo); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #c9c9c9; }
.breadcrumb li[aria-current] { color: var(--negro); font-weight: 600; }

/* ===============================================================
   SECCIONES DIVIDIDAS (imagen + texto, reutilizable)
   =============================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 90px;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #ececec;
  border-radius: 2px;
}
.split-media--wide img { aspect-ratio: 4 / 3; }
.split-text h2 { font-size: 42px; margin: 6px 0 22px; }
.split-text h3 { font-size: 34px; margin: 6px 0 22px; }
.split-text .lead { color: var(--negro); font-weight: 600; font-size: 18px; margin-bottom: 18px; }
.split-text p { color: var(--gris-claro); margin-bottom: 16px; }
.split-text p strong { color: var(--negro); }

/* Listas con icono (principios / valores / preguntas de contacto) */
.icon-list { margin-bottom: 20px; }
.icon-list p {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--gris-claro);
}
.icon-list p::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e70303' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E") no-repeat center / contain;
}
.icon-list p strong { color: var(--negro); }

/* ===============================================================
   NUESTRA OFERTA
   =============================================================== */
.oferta-hero .container h1 { max-width: 100%; }
.oferta-intro { padding: 50px 0 0; }
.oferta-intro p { max-width: 760px; margin: 0 auto; color: var(--gris-claro); font-size: 17px; line-height: 1.7; text-align: center; }
.service-block { padding: 90px 0; }
.service-block .split { padding-top: 0; padding-bottom: 0; }
.service-block h2 { font-size: 34px; margin-bottom: 14px; }
.service-block .service-tag { color: var(--rojo); font-weight: 600; font-size: 17px; margin-bottom: 16px; }
.check-list { list-style: none; margin: 18px 0 30px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--gris-claro);
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e70303' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 13 9 17 19 7'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ===============================================================
   CONTACTO (página)
   =============================================================== */
.contacto-page { padding: 90px 0; }
.contacto-intro { max-width: 640px; margin: 0 auto 50px; text-align: left; }
.contacto-intro h2 { font-size: 42px; margin: 6px 0 20px; }
.contacto-intro p { color: var(--gris-claro); margin-bottom: 14px; }
.contacto-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: #f5f5f5;
  border-radius: 6px;
  padding: 34px 30px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--negro);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #d8d8d8;
  background: var(--blanco);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--negro);
  transition: border-color .2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--rojo);
}
.form-field textarea { resize: vertical; }
.form-field input:user-invalid,
.form-field.has-error input {
  border-color: var(--rojo-btn);
  background: #fff6f6;
}
.form-field-error {
  color: var(--rojo-btn);
  font-size: 12.5px;
  margin-top: 6px;
  min-height: 16px;
  opacity: 0;
  visibility: hidden;
}
.form-field.has-error .form-field-error { opacity: 1; visibility: visible; }

.phone-input {
  display: flex;
  gap: 8px;
}
.phone-code {
  flex: none;
  width: 132px;
  border: 1px solid #d8d8d8;
  background: var(--blanco);
  border-radius: 4px;
  padding: 12px 8px;
  font-family: inherit;
  font-size: 13px;
  color: var(--negro);
  transition: border-color .2s ease;
}
.phone-code:focus { outline: none; border-color: var(--rojo); }
.phone-input input { flex: 1; min-width: 0; }

.form-field--captcha { margin-bottom: 22px; }
.form-field--captcha .g-recaptcha { display: inline-block; }

.form-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 6px;
}
.form-submit.is-loading { opacity: .7; cursor: default; }
.form-status { margin-top: 14px; font-size: 14px; min-height: 20px; }
.form-status.is-pending { color: var(--gris-claro); }
.form-status.is-success { color: #1a8a3e; font-weight: 600; }
.form-status.is-error { color: var(--rojo-btn); font-weight: 600; }

/* ===============================================================
   PÁGINA LEGAL (Políticas de Privacidad)
   =============================================================== */
.legal-page { padding: 90px 0; }
.legal-page .container { max-width: 820px; }
.legal-page h2 { font-size: 38px; margin-bottom: 24px; }
.legal-page h3 { font-size: 22px; margin: 40px 0 14px; }
.legal-page p { color: var(--gris-claro); margin-bottom: 16px; }
.legal-page p strong { color: var(--negro); }
.legal-page ul { margin: 0 0 16px 20px; color: var(--gris-claro); }
.legal-page li { margin-bottom: 8px; }
.legal-page a { color: var(--rojo); text-decoration: underline; }

/* ===============================================================
   LISTA DE CARACTERÍSTICAS (icono + título + texto)
   =============================================================== */
.feature-list {
  list-style: none;
  margin: 26px 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.feature-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(231, 3, 3, 0.08);
  color: var(--rojo);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-list li:hover .feature-icon {
  background: var(--rojo);
  color: var(--blanco);
  transform: scale(1.07);
}
.feature-list h4, .feature-list h3 {
  font-size: 17px;
  margin-bottom: 4px;
  color: var(--negro);
}
.feature-list p { color: var(--gris-claro); margin: 0; }

/* ===============================================================
   PREGUNTAS FRECUENTES (acordeón)
   =============================================================== */
.faq {
  padding: 90px 0;
  background: #fafafa;
}
.faq .container { max-width: 780px; }
.faq-header { text-align: center; margin-bottom: 44px; }
.faq-header .overline { justify-content: center; }
.faq-header h2 { font-size: 36px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid #e6e6e6;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 20px 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--negro);
}
.faq-chevron {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--rojo);
  transition: transform .25s ease;
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer p {
  margin: 0;
  padding: 0 30px 20px 4px;
  color: var(--gris-claro);
}

/* ===============================================================
   ANIMACIONES SUTILES
   =============================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.main-nav a {
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -6px;
  height: 2px;
  background: var(--rojo);
  transition: right .25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after {
  right: 0;
}

.btn-primary,
.btn-theme,
.btn-cotizar {
  position: relative;
  overflow: hidden;
}
.btn-primary::after,
.btn-theme::after,
.btn-cotizar::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
  pointer-events: none;
}
.btn-primary:hover::after,
.btn-theme:hover::after,
.btn-cotizar:hover::after {
  left: 130%;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-primary::after, .btn-theme::after, .btn-cotizar::after { display: none; }
}

/* ===============================================================
   RESPONSIVE
   =============================================================== */
@media (max-width: 992px) {
  .hero h1 { font-size: 46px; }
  .hero-image { width: 55%; opacity: .9; }
  .nosotros h2, .compromiso h2, .calidad-content h2, .split-text h2, .contacto-intro h2, .faq-header h2 { font-size: 36px; }
  .page-hero { min-height: 398px; }
  .page-hero h1 { font-size: 40px; }
  .page-hero--panel h1 { max-width: 60%; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; order: 3; margin-left: 12px; }
  .lang-switch { order: 2; margin-left: auto; }
  .lang-menu { right: -8px; }
  .btn-cotizar { display: none; }
  .main-nav {
    position: absolute; top: 80px; left: 0; right: 0;
    background: var(--negro-panel);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
    margin: 0;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px; }
  .main-nav li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }

  .hero { min-height: auto; flex-direction: column; }
  .hero-text { padding: 50px 0 30px; }
  .hero-image {
    position: relative;
    width: 100%;
    height: 260px;
  }
  .hero-image::before {
    background: linear-gradient(0deg, rgba(15,15,16,0) 60%, rgba(15,15,16,.4) 100%);
  }

  .grid-2, .split { grid-template-columns: 1fr; gap: 34px; }
  .compromiso-grid { grid-template-columns: 1fr; gap: 34px; }
  .compromiso-map { padding: 20px; }
  .split.reverse .split-media, .split .split-media { order: 2; }
  .split.reverse .split-text, .split .split-text { order: 1; }

  .calidad { grid-template-columns: 1fr; min-height: 0; }
  .calidad-image { min-height: 260px; }
  .calidad-content { text-align: center; margin: 0 auto; padding: 50px 8%; }
  .iso-badge { margin: 0 auto; }

  .page-hero--panel {
    background-size: cover, cover;
    background-position: center, center;
  }
  .page-hero--panel::before {
    content: "";
    position: absolute; inset: 0;
    background: rgba(15, 15, 16, .55);
  }
  .page-hero--panel h1 { max-width: 100%; text-align: center; }
  .page-hero .container { text-align: center; }

  .cta-band-inner { padding: 45px 8% 35px; background-image: none; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contacto-form-wrap { padding: 26px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  .nosotros h2, .compromiso h2, .calidad-content h2, .split-text h2, .contacto-intro h2, .faq-header h2 { font-size: 28px; }
  .page-hero { min-height: 443px; }
  .page-hero h1 { font-size: 32px; }
  .cta-band .cta-phone { font-size: 26px; }
  .cookie-actions { width: 100%; justify-content: space-between; }
}

/* El widget de reCAPTCHA tiene un ancho fijo de 304px que desborda
   pantallas muy angostas; se reduce de escala solo donde hace falta. */
@media (max-width: 360px) {
  .form-field--captcha .g-recaptcha { zoom: 0.86; }
}
@media (max-width: 300px) {
  .form-field--captcha .g-recaptcha { zoom: 0.7; }
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
