/* Labee Chile */

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colores del manual de normas gráficas LAB EElectronics */
  --red: #D22126;          /* Pantone 485 C */
  --gris-claro: #A8A9AE;   /* Pantone 421 C */
  --gris-oscuro: #595B5C;  /* Pantone 425 C */
  --negro: #242223;        /* Neutral Black C */
  /* Tinte del 485 C para texto rojo sobre negro (contraste AA) */
  --red-light: #EB5F63;
  /* Negro de la portada: debe ser igual al fondo del video, no cambiar */
  --black: #080808;
  --white: #ffffff;
  --gray: var(--gris-claro);
}

html { scroll-behavior: smooth; }
#nosotros, #servicios, #contacto, #laboratorio, #preguntas { scroll-margin-top: 60px; }

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; }

.red-strip { height: 12px; background: var(--red); }
/* En la portada el pie viene después de Hablemos en rojo: la franja sobra */
.home .red-strip--pie { display: none; }

/* 404 */
.error404 { min-height: 100vh; display: flex; flex-direction: column; }
.error-404 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 1rem 4rem;
}
.error-404 img { width: 220px; max-width: 70%; height: auto; margin-bottom: 2rem; }
.error-404 h1 { font-family: 'Raleway', sans-serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; }
.error-404 p { color: var(--gray); max-width: 460px; line-height: 1.6; margin-bottom: 2rem; }
.error-404__acciones { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.error-404__acciones a {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  border: 1px solid var(--red);
  color: var(--white);
  transition: background 0.2s;
}
.error-404__acciones a.principal { background: var(--red); }
.error-404__acciones a:hover { background: var(--red-light); border-color: var(--red-light); }

/* Utilidades */
.contenedor { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
/* Panel técnico: fondo negro con grilla de puntos, como una pantalla de monitoreo */
.seccion--panel {
  background: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1.2px) 0 0 / 22px 22px, var(--black);
  color: var(--white);
}

/* Sección clara: gris suave con la misma grilla de puntos, para dar luz entre las oscuras */
.seccion--clara {
  background: radial-gradient(rgba(0,0,0,0.09) 1px, transparent 1.2px) 0 0 / 22px 22px, #EEEEEF;
  color: #1a1a1a;
}
.seccion--clara .codigo { color: var(--red); }
.seccion--clara .panel { background: var(--white); color: #1a1a1a; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.seccion--clara .section-header h2 { color: #111; }
.seccion--clara .section-header h2 span { color: var(--red); }
.seccion--clara .section-header p { color: var(--gris-oscuro); }

/* Palabra gigante calada de fondo */
.agua {
  position: absolute;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.agua::before { content: attr(data-texto); }
.seccion--clara .agua { -webkit-text-stroke: 1.5px rgba(0,0,0,0.07); }

/* Etiquetas y números en letra tipo código */
.codigo {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--red-light);
}

/* Panel con esquinas rojas */
.panel {
  position: relative;
  display: block;
  background: rgba(36,34,35,0.72);
  color: var(--white);
  overflow: hidden;
}
.panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--red);
  pointer-events: none;
}
.panel::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.panel::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
/* Línea que recorre el panel al pasar el mouse, como un escáner */
.panel--escaner { background-image: linear-gradient(90deg, transparent, var(--red-light), transparent); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 -2px; }
.panel--escaner:hover { animation: escanear 1.6s linear infinite; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.7rem;
  border-radius: 4px;
  border: 1px solid var(--red);
  color: var(--white);
  transition: background 0.2s, border-color 0.2s;
}
.btn--rojo { background: var(--red); }
.btn--rojo:hover { background: var(--red-light); border-color: var(--red-light); }
.btn--borde { background: transparent; }
.btn--borde:hover { background: rgba(192,57,43,0.18); }

/* Menú */
.menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 68px;
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* Tramo rojo corto bajo la barra */
.menu::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 18%; height: 2px; background: var(--red); }
.menu__fila { height: 100%; display: flex; align-items: center; gap: 2rem; }
.menu__logo { margin-right: auto; display: flex; align-items: center; transition: opacity 0.3s, transform 0.3s; }
.menu__logo img { height: 30px; width: auto; display: block; }
/* En la portada el logo ya está en grande: el de la barra aparece al bajar */
.js.home .menu:not(.menu--bajado) .menu__logo { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.nav-inner { display: flex; align-items: center; gap: 1.9rem; }
.nav-inner a {
  position: relative;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.4rem 0;
  transition: color 0.2s;
}
.nav-inner a small { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.66rem; color: var(--red-light); margin-right: 0.4rem; letter-spacing: 0; }
.nav-inner a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.nav-inner a:hover { color: var(--white); }
.nav-inner a:hover::after, .nav-inner a.activo::after { transform: scaleX(1); }
.nav-inner a.activo { color: var(--white); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

/* Portada */
.hero {
  min-height: min(82vh, 720px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  position: relative;
  overflow: hidden;
}
.hero-left {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--black);
  padding: 110px 60px 70px max(60px, calc((100vw - var(--sb, 0px) - 1200px) / 2 + 2rem));
}
.hero-red {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  pointer-events: none;
  animation: red-flota 26s ease-in-out infinite alternate;
}
.hero-red__lineas line {
  stroke: rgba(255,255,255,0.08);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: linea-dibuja 1.6s ease-out forwards;
  animation-delay: calc(0.25s + var(--i) * 0.07s);
}
.hero-red__nodos circle {
  fill: rgba(255,255,255,0.16);
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: nodo-aparece 0.6s ease-out forwards, nodo-late 4.5s ease-in-out infinite;
  animation-delay: calc(0.8s + var(--i) * 0.09s), calc(2s + var(--i) * 0.37s);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
}
.hero-content img.logo { width: 300px; max-width: 80%; height: auto; margin-bottom: 0.4rem; }
.hero-etiqueta {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris-claro);
}
.hero-titulo {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.15;
}
.hero-titulo span { color: var(--red-light); }
.hero-botones { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.4rem; }

/* Video con el mismo negro del fondo (#080808): se funde por sus bordes en vez de verse como recuadro */
.hero-right {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--black);
}
.hero-video {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 92%, transparent), linear-gradient(transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 92%, transparent), linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect;
  mix-blend-mode: lighten; /* negros del video más oscuros que el fondo toman el negro exacto de la portada */
}

/* Franja de servicios */
.franja { padding: 3rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.franja__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.franja__item { text-decoration: none; padding: 2rem 1.9rem 2.1rem; background-color: rgba(52,50,51,0.85); border: 1px solid rgba(255,255,255,0.08); transition: background-color 0.2s, transform 0.2s; }
.franja__item::before, .franja__item::after { width: 22px; height: 22px; }
.franja__item:hover { background-color: rgba(210,33,38,0.12); transform: translateY(-2px); }
.franja__item .codigo { display: block; font-size: 0.8rem; margin-bottom: 0.8rem; }
.franja__item strong { display: block; font-family: 'Raleway', sans-serif; font-size: 1.3rem; margin-bottom: 0.45rem; }
.franja__item span:last-child { font-size: 0.95rem; color: var(--gris-claro); }

/* Secciones */
.historia, .servicios, .preguntas { position: relative; overflow: clip; padding: 96px 0; }
.historia > .contenedor, .servicios > .contenedor { position: relative; }
.agua--historia { font-size: clamp(9rem, 22vw, 19rem); right: -2rem; top: 2rem; }
.agua--servicios { font-size: clamp(6rem, 15vw, 14rem); left: -1rem; top: 1rem; }
.section-header { margin-bottom: 2.5rem; }
.section-header h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.section-header h2 span { color: var(--red-light); }
.section-divider { width: 50px; height: 3px; background: var(--red); border: none; margin-bottom: 1rem; }
.section-header p { font-size: 0.95rem; max-width: 600px; line-height: 1.7; color: var(--gray); }
.section-header--linea { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.section-header--linea h2 { margin-bottom: 0; }
.section-header--linea p.codigo { color: var(--gris-claro); font-size: 0.75rem; }
.section-header h2 { color: var(--white); }

/* Historia */
.historia__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.nosotros-text p { color: #4a4a4a; font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.1rem; }
.nosotros-text strong { color: #111; }
.mvv-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.mvv-card { padding: 1.4rem 1.6rem; }
.mvv-card h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.mvv-card p { font-size: 0.92rem; color: var(--gris-oscuro); line-height: 1.65; margin: 0; }

/* Banda de foto entre Historia y Servicios */
.banda { position: relative; height: 340px; overflow: hidden; background: var(--black); display: flex; align-items: center; }
.banda__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.banda::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,8,0.96) 0%, rgba(8,8,8,0.9) 44%, rgba(8,8,8,0.2) 76%, rgba(8,8,8,0.65) 100%), linear-gradient(rgba(8,8,8,0.6), transparent 22%, transparent 78%, rgba(8,8,8,0.6)); }
.banda__texto { position: relative; z-index: 1; }
.banda__texto p { font-family: 'Raleway', sans-serif; font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.25; max-width: 15em; text-wrap: balance; }
.banda__texto strong { font-weight: 700; color: var(--red-light); }

/* Servicios */
.servicios-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.servicio-item { padding: 1.8rem 1.6rem 2rem; }
.servicio-item__icono { display: block; width: 44px; height: 44px; margin: 0.4rem 0 1.2rem; fill: none; stroke: var(--red-light); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.servicio-item:hover { background-color: rgba(210,33,38,0.12); }
.servicio-item .codigo { display: block; margin-bottom: 0.8rem; }
.servicio-item h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.servicio-item p { color: var(--gray); font-size: 0.9rem; line-height: 1.75; }

/* Preguntas frecuentes */
.preguntas__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
.preguntas__intro { position: sticky; top: 110px; }
.preguntas__ayuda { padding: 1.6rem 1.7rem 1.8rem; }
.preguntas__ayuda strong { display: block; font-family: 'Raleway', sans-serif; font-size: 1.05rem; margin-bottom: 0.4rem; }
.preguntas__ayuda p { color: var(--gris-claro); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.3rem; }
.preguntas__lista { border-top: 1px solid rgba(255,255,255,0.12); }
.pregunta { border-bottom: 1px solid rgba(255,255,255,0.12); }
.pregunta summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.15rem 0;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary .codigo { flex-shrink: 0; width: 2rem; }
.pregunta summary h3 { flex: 1; font-family: 'Raleway', sans-serif; font-size: 1rem; font-weight: 600; color: var(--white); transition: color 0.2s; }
.pregunta summary::after { content: "+"; flex-shrink: 0; color: var(--red-light); font-size: 1.4rem; line-height: 1; transition: transform 0.2s; }
.pregunta[open] summary::after { transform: rotate(45deg); }
.pregunta summary:hover h3 { color: var(--red-light); }
.pregunta summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.pregunta p { color: var(--gris-claro); font-size: 0.95rem; line-height: 1.75; padding: 0 2.5rem 1.3rem 3.2rem; }

/* Certificaciones */
.certificaciones { padding: 80px 0; }
.certificaciones__cab { margin-bottom: 2rem; }
.certificaciones__pie { margin-top: 1.8rem; }
/* En escritorio las 10 marcas van en una sola línea, repartidas a lo ancho */
.certificaciones__pie .marcas-list { flex-wrap: nowrap; justify-content: space-between; }
.partners__titulo { font-family: 'Raleway', sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: #111; margin-top: 0.6rem; }
.partners__titulo span { color: var(--red); }
.certificaciones__titulo {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gris-oscuro);
  margin-bottom: 0.9rem;
}
.seccion--clara .partners { background: #000; padding: 2.4rem 3rem; }
.partners img { width: 100%; height: auto; display: block; }
.marcas-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.marca-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  border: 1px solid rgba(0,0,0,0.16);
  background: var(--white);
  color: #222;
  padding: 0.4rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.marca-tag::before { content: "\25CF"; color: var(--red); font-size: 0.55rem; margin-right: 0.45rem; vertical-align: 0.15em; }

@media (max-width: 1000px) {
  .servicios-grid { grid-template-columns: 1fr 1fr; }
  .certificaciones__pie .marcas-list { flex-wrap: wrap; justify-content: flex-start; }
}
@media (max-width: 800px) {
  .historia, .servicios, .preguntas { padding: 60px 0; }
  .preguntas__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .seccion--clara .partners { padding: 1.2rem 1rem; }
  .preguntas__intro { position: static; }
  .banda::after { background: linear-gradient(rgba(8,8,8,0.55), rgba(8,8,8,0.85)); }
  .historia__grid, .servicios-grid { grid-template-columns: 1fr; gap: 2rem; }
  .banda { height: 260px; }
  .pregunta p { padding: 0 0 1.3rem 3.2rem; }
}

/* Hablemos */
.hablemos {
  position: relative;
  overflow: hidden;
  padding: 130px 0 100px;
  background: var(--red);
  clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%);
}
.hablemos > .contenedor { position: relative; }
.agua--hablemos { font-size: clamp(6rem, 17vw, 15rem); right: -1rem; bottom: -1.5rem; -webkit-text-stroke: 1.5px rgba(255,255,255,0.2); }
.hablemos .section-header h2 { font-size: clamp(2rem, 4vw, 3rem); }
.hablemos .section-header p { color: rgba(255,255,255,0.92); }
.hablemos .section-divider { background: var(--white); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  text-decoration: none;
  color: var(--white);
  transition: color 0.2s;
}
.contact-item:hover { color: var(--black); }
.contact-item .icon svg { color: var(--white); }
.contact-item .icon {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item .info .label { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.7rem; color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 0.1em; display: block; }
.contact-item .info .value { font-size: 0.95rem; font-weight: 600; }
.hablemos__tarjeta { padding: 2.4rem; background: var(--black); }
/* Sobre el fondo rojo de Hablemos, las esquinas rojas del panel se fundían con el fondo y la caja se veía mordida */
.hablemos__tarjeta::before, .hablemos__tarjeta::after { border-color: var(--white); }
.hablemos__tarjeta h3 { font-family: 'Raleway', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.7rem; }
.hablemos__tarjeta p { color: var(--gris-claro); line-height: 1.6; margin-bottom: 1.6rem; }

/* Pie */
.pie { position: relative; overflow: hidden; background: #000; color: var(--gris-claro); }
.pie > :not(.red-pie) { position: relative; z-index: 1; }
.red-pie { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.red-pie__lineas line { stroke: rgba(255,255,255,0.11); stroke-width: 1; }
.red-pie__nodos circle { fill: rgba(255,255,255,0.22); transform-box: fill-box; transform-origin: center; }
.red-pie__pulsos line { stroke: var(--red-light); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 0.07 0.93; stroke-dashoffset: 1; opacity: 0; }
/* Con JavaScript la red se dibuja al llegar al pie; sin él se ve completa y quieta */
.js .red-pie__lineas line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .red-pie__nodos circle { opacity: 0; }
.pie--visible .red-pie__lineas line { animation: linea-dibuja 1.4s ease-out forwards; animation-delay: calc(var(--i) * 0.025s); }
.pie--visible .red-pie__nodos circle { animation: nodo-aparece 0.5s ease-out forwards, nodo-late 4.5s ease-in-out infinite; animation-delay: calc(0.6s + var(--i) * 0.04s), calc(2.2s + var(--i) * 0.41s); }
.pie--visible .red-pie__pulsos line { opacity: 1; animation: pulso 3.6s linear infinite; animation-delay: calc(2s + var(--i) * 0.9s); }
.pie__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3rem; }
.pie__marca img { width: 170px; height: auto; display: block; margin-bottom: 1rem; }
.pie__marca p { font-size: 0.88rem; }
.pie__titulo { font-family: 'Raleway', sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 1rem; }
.pie ul { list-style: none; display: grid; gap: 0.55rem; font-size: 0.88rem; }
.pie a { color: var(--gris-claro); text-decoration: none; transition: color 0.2s; }
.pie a:hover { color: var(--red-light); }
.pie__legal { border-top: 1px solid rgba(255,255,255,0.08); text-align: center; padding: 1.2rem 1.25rem; }
.pie__legal p { font-size: 0.78rem; color: var(--gris-claro); }

@media (max-width: 800px) {
  .hablemos { padding: 90px 0 60px; clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%); }
  .contacto-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hablemos__tarjeta { padding: 1.8rem; }
  .pie__grid { grid-template-columns: 1fr; gap: 1.8rem; padding-top: 2.5rem; padding-bottom: 2rem; }
}

/* WhatsApp flotante */
.whatsapp-flotante {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  transition: background 0.2s, transform 0.2s;
  animation: subir 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 1.6s backwards;
}
.whatsapp-flotante:hover { background: var(--red-light); transform: scale(1.06); }
@media (max-width: 800px) { .whatsapp-flotante { right: 16px; bottom: 16px; width: 54px; height: 54px; } }

/* Animaciones */
@keyframes subir { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes entrar-derecha { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: none; } }
@keyframes linea-dibuja { to { stroke-dashoffset: 0; } }
@keyframes nodo-aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes nodo-late { 0%, 100% { transform: scale(1); fill: rgba(255,255,255,0.16); } 50% { transform: scale(1.8); fill: rgba(231,76,60,0.55); } }
@keyframes red-flota { from { transform: translate(0, 0) scale(1); } to { transform: translate(-2%, 1.5%) scale(1.04); } }
@keyframes pulso { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes escanear { from { background-position: 0 0; } to { background-position: 0 100%; } }
@keyframes brillo { 0%, 100% { box-shadow: 0 0 0 0 rgba(231,76,60,0.45); } 50% { box-shadow: 0 0 0 10px rgba(231,76,60,0); } }

.hero-content > * { animation: subir 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-content > :nth-child(1) { animation-delay: 0.1s; }
.hero-content > :nth-child(2) { animation-delay: 0.3s; }
.hero-content > :nth-child(3) { animation-delay: 0.45s; }
.hero-content > :nth-child(4) { animation-delay: 0.7s; }
.hero-right { animation: entrar-derecha 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }
.franja__item { animation: subir 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(0.85s + var(--d, 0) * 0.12s); }
.hero-botones .btn--rojo { animation: brillo 2.6s ease-in-out 1.8s 3; }
.btn { transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.btn:hover { transform: translateY(-2px); }

.js [data-revelar] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 0.12s);
}
.js [data-revelar].visible { opacity: 1; transform: none; }
.servicio-item { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s; }
.servicio-item.visible:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.45); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-red__lineas line { stroke-dashoffset: 0; }
  .hero-red__nodos circle { opacity: 1; }
  .js [data-revelar] { opacity: 1; transform: none; }
  .js .red-pie__lineas line { stroke-dashoffset: 0; }
  .js .red-pie__nodos circle { opacity: 1; }
  .red-pie__pulsos { display: none; }
}

@media (max-width: 800px) {
  .menu__fila { gap: 1rem; }
  .nav-inner { display: none; flex-direction: column; gap: 0; position: absolute; top: 68px; left: 0; right: 0; background: var(--black); padding: 0.6rem 0 1rem; border-bottom: 2px solid var(--red); }
  .nav-inner.open { display: flex; }
  .nav-inner a { height: 52px; display: flex; align-items: center; justify-content: center; }
  .nav-inner a::after { display: none; }
  .nav-inner a.activo { color: var(--red-light); }
  .nav-toggle { display: flex; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 100px 1.25rem 56px; }
  .hero-right { padding: 0 0 1.5rem; }
  .contenedor { padding: 0 1.25rem; }
  .franja__grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}

@media (max-width: 340px) {
  .franja__grid { grid-template-columns: 1fr; }
}
