/* ==========================================================
   INSPECTPRO — styles.css
   CSS puro (sin frameworks).

   ÍNDICE
   1.  VARIABLES (colores, medidas: edita aquí)
   2.  BASE
   3.  UTILIDADES (contenedor, secciones, títulos)
   4.  BOTONES Y ENLACES
   5.  ÍCONOS
   6.  HEADER / MENÚ
   7.  HERO
   8.  ¿QUIÉNES SOMOS?
   9.  SERVICIOS PRINCIPALES (tarjetas)
   10. BLOQUES DE DOS COLUMNAS Y FOTOGRAFÍAS
   11. LISTAS (check, métodos END, normas)
   12. NOM-020
   13. ENSAYOS NO DESTRUCTIVOS
   14. VÁLVULAS DE SEGURIDAD
   15. HIGIENE Y SEGURIDAD INDUSTRIAL (normas)
   16. CONSULTORÍA AMBIENTAL
   17. CAPACITACIÓN
   18. COBERTURA
   19. CONTACTO Y FORMULARIO
   20. FOOTER
   21. BOTÓN FLOTANTE DE WHATSAPP
   22. ANIMACIONES
   23. RESPONSIVE (tablet y celular)
   ========================================================== */


/* =========================
   1. VARIABLES
   ========================= */
:root {
  /* Colores de marca */
  --navy: #021E41;
  --red: #D51A36;
  --wine: #69031B;
  --white: #FFFFFF;
  --light-gray: #F5F6F8;
  --text: #20242A;

  /* Colores de apoyo */
  --navy-suave: #0B2D5A;      /* azul marino un tono más claro (fondos sobre navy) */
  --red-claro: #FF5A72;       /* rojo legible sobre fondo azul marino */
  --gris-linea: #DFE3EA;      /* líneas divisorias */
  --gris-texto: #5A6472;      /* texto secundario */
  --green: #2E7D4F;           /* SOLO sección ambiental */
  --whatsapp: #25D366;

  /* Medidas generales */
  --max-width: 1200px;
  --section-spacing: clamp(64px, 9vw, 120px);
  --border-radius: 14px;
  --shadow: 0 12px 32px rgba(2, 30, 65, 0.10);

  /* Otras medidas */
  --margen-lateral: clamp(20px, 4vw, 40px);
  --alto-header: 84px;
  --fuente: 'Montserrat', Arial, Helvetica, sans-serif;
}


/* =========================
   2. BASE
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--alto-header);   /* para que el header no tape los títulos */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

h1, h2, h3, p, ul, figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* Enlace "Saltar al contenido" (accesibilidad, solo aparece con teclado) */
.saltar {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
}
.saltar:focus {
  left: 8px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}


/* =========================
   3. UTILIDADES
   ========================= */
.contenedor {
  width: 100%;
  max-width: calc(var(--max-width) + var(--margen-lateral) * 2);
  margin-inline: auto;
  padding-inline: var(--margen-lateral);
}

.seccion {
  padding-block: var(--section-spacing);
}

.seccion--gris {
  background: var(--light-gray);
}

/* Títulos de sección */
.titulo {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--navy);
  text-wrap: balance;
  padding-bottom: 22px;
  margin-bottom: 26px;
  position: relative;
}

/* Línea roja con remate, como en el catálogo */
.titulo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 96px;
  height: 4px;
  border-radius: 4px;
  background: var(--red);
}

.titulo span {
  display: block;       /* cada <span> ocupa su propia línea */
}

.titulo--grande {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}

.titulo--blanco {
  color: var(--white);
}

.rojo { color: var(--red); }
.rojo-claro { color: var(--red-claro); }
.verde { color: var(--green); }

.titulo-chico {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin: 32px 0 14px;
}

.subtitulo {
  font-weight: 700;
  color: var(--red);
  margin-bottom: 14px;
}

.texto-grande {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  max-width: 62ch;
}

.encabezado {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}


/* =========================
   4. BOTONES Y ENLACES
   ========================= */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.boton:hover {
  transform: translateY(-2px);
}

.boton--rojo {
  background: var(--red);
  color: var(--white);
}
.boton--rojo:hover {
  background: var(--wine);
}

.boton--linea {
  border-color: var(--navy);
  color: var(--navy);
}
.boton--linea:hover {
  background: var(--navy);
  color: var(--white);
}

.boton--blanco {
  background: var(--white);
  color: var(--navy);
}
.boton--blanco:hover {
  background: var(--light-gray);
}

.boton--whatsapp {
  background: var(--whatsapp);
  color: var(--navy);
}
.boton--whatsapp:hover {
  background: #1FBF5B;
}

.boton--chico {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.78rem;
}

.boton .icono {
  width: 20px;
  height: 20px;
}

/* Enlace "Conocer más" */
.enlace {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}
.enlace .icono {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}
.enlace:hover .icono {
  transform: translateX(4px);
}


/* =========================
   5. ÍCONOS
   ========================= */
.icono {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}


/* =========================
   6. HEADER / MENÚ
   ========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Estado al hacer scroll (lo activa js/script.js) */
.header--compacto {
  border-bottom-color: var(--gris-linea);
  box-shadow: 0 6px 24px rgba(2, 30, 65, 0.08);
}

.header__barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--alto-header);
  transition: height 0.25s ease;
}

.header--compacto .header__barra {
  height: 68px;
}

/* Logo: cambia aquí el tamaño. El archivo se reemplaza sin tocar el código. */
.header__logo {
  display: block;
  flex-shrink: 0;
}
.header__logo img {
  width: auto;
  height: 64px;
  object-fit: contain;
  transition: height 0.25s ease;
}
.header--compacto .header__logo img {
  height: 52px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.menu__lista {
  display: flex;
  align-items: center;
  gap: 26px;
}

.menu__lista a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

/* Subrayado rojo al pasar el cursor y en la sección activa */
.menu__lista a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.menu__lista a:hover::after,
.menu__lista a.activo::after {
  transform: scaleX(1);
}

.menu__acciones {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu__whatsapp {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  color: var(--navy);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.menu__whatsapp:hover {
  background: var(--navy);
  color: var(--white);
}

/* Botón hamburguesa (oculto en escritorio) */
.header__hamburguesa {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.header__hamburguesa span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px auto;
  border-radius: 3px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.header__hamburguesa--abierta span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header__hamburguesa--abierta span:nth-child(2) { opacity: 0; }
.header__hamburguesa--abierta span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* =========================
   7. HERO
   ========================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;      /* 50% información / 50% fotografía */
  min-height: min(760px, calc(100vh - var(--alto-header)));
  background: var(--white);
}

.hero__texto {
  align-self: center;
  /* alinea el texto con el resto del sitio aunque la foto llegue al borde */
  padding: 56px 24px 56px max(var(--margen-lateral), calc((100vw - var(--max-width)) / 2));
  position: relative;
  z-index: 2;
}

.hero__titulo {
  font-size: clamp(2.4rem, 5.2vw, 4.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--navy);
}
.hero__titulo span {
  display: block;
}

.hero__bajada {
  max-width: 38ch;
  margin-top: 24px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 500;
}

/* Distintivo "Más de 9 años" (también se usa en Capacitación) */
.distintivo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  max-width: 340px;
  margin-top: 28px;
  padding: 10px 24px 10px 10px;
  border-radius: 40px 14px 14px 40px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
}
.distintivo strong {
  font-weight: 800;
}
.distintivo__icono {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--red);
}

.hero__botones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Los cuatro conceptos: Inspección / Integridad / Cumplimiento / Seguridad */
.conceptos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 44px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.conceptos li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.conceptos__icono {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  color: var(--navy);
}
/* se alternan azul y rojo, como en el catálogo */
.conceptos li:nth-child(even) .conceptos__icono {
  border-color: var(--red);
  color: var(--red);
}

/* Fotografía del hero */
.hero__foto {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}
.hero__foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;        /* recorta sin deformar */
  object-position: center;
}

/* Onda decorativa sobre el borde izquierdo de la foto */
.hero__onda {
  position: absolute;
  top: 0;
  left: -1px;
  width: clamp(110px, 15vw, 210px);
  height: 100%;
  max-width: none;
  z-index: 1;
}
.hero__onda path {
  fill: none;
  vector-effect: non-scaling-stroke;   /* el grosor no se deforma al estirar */
}
.hero__onda .onda__blanco { fill: var(--white); }
.hero__onda .onda__marino { stroke: var(--navy); stroke-width: 16px; }
.hero__onda .onda__rojo   { stroke: var(--red);  stroke-width: 7px; }
.hero__onda .onda__vino   { stroke: var(--wine); stroke-width: 4px; }


/* =========================
   8. ¿QUIÉNES SOMOS?
   ========================= */
.nosotros {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.conceptos--claros {
  margin-top: 40px;
}

/* Bloque "Nuestro enfoque" */
.enfoque {
  position: relative;
  padding: 44px 36px 40px;
  border-radius: var(--border-radius) var(--border-radius) var(--border-radius) 72px;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}
.enfoque__icono {
  position: absolute;
  top: -28px;
  left: 36px;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--red);
  border: 4px solid var(--light-gray);
}
.enfoque h3 {
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
}
.enfoque p {
  font-size: 1.05rem;
}


/* =========================
   9. SERVICIOS PRINCIPALES
   ========================= */
.tarjetas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tarjeta {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border: 1px solid var(--gris-linea);
  border-top: 4px solid var(--navy);
  border-radius: var(--border-radius);
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tarjeta:hover {
  transform: translateY(-6px);
  border-top-color: var(--red);
  box-shadow: var(--shadow);
}

.tarjeta__icono {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--light-gray);
  color: var(--navy);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.tarjeta:hover .tarjeta__icono {
  background: var(--red);
  color: var(--white);
}

.tarjeta h3 {
  margin-bottom: 10px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--navy);
}

.tarjeta p {
  flex-grow: 1;              /* empuja "Conocer más" al fondo de la tarjeta */
  margin-bottom: 20px;
  font-size: 0.92rem;
  color: var(--gris-texto);
}


/* =========================
   10. BLOQUES DE DOS COLUMNAS Y FOTOGRAFÍAS
   ========================= */
.dos-columnas {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;      /* texto / foto */
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.dos-columnas--invertida {
  grid-template-columns: 0.9fr 1.1fr;      /* foto / texto */
}

/* Fotografía de sección */
.foto {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 520px;
  justify-self: center;
  border-radius: var(--border-radius) var(--border-radius) var(--border-radius) 110px;
  background: var(--gris-linea);      /* color de fondo mientras carga la foto */
}
.dos-columnas--invertida .foto {
  border-radius: var(--border-radius) var(--border-radius) 110px var(--border-radius);
}

.foto img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* recorta sin deformar */
  border-radius: inherit;
}

/* Arcos roja y azul detrás de la foto (inspirados en el logo) */
.foto::before,
.foto::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.foto::before {
  border: 6px solid var(--red);
  transform: translate(-16px, 16px);
}
.foto::after {
  border: 3px solid var(--navy);
  transform: translate(-30px, 30px);
}
.dos-columnas--invertida .foto::before { transform: translate(16px, 16px); }
.dos-columnas--invertida .foto::after  { transform: translate(30px, 30px); }

/* ---- Fotografía pendiente ----
   Se muestra mientras el archivo todavía no existe en /images/. */
.foto-marco--pendiente {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.foto-marco--pendiente img {
  display: none;
}
.foto-marco--pendiente::after {
  content: "Fotografía pendiente\A" attr(data-archivo);
  white-space: pre-line;
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 0;
  transform: none !important;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.8;
  text-align: center;
}


/* =========================
   11. LISTAS
   ========================= */

/* Lista con palomita roja */
.lista-check {
  display: grid;
  gap: 12px;
}
.lista-check li {
  position: relative;
  padding-left: 36px;
  font-weight: 500;
}
.lista-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Variante: texto blanco (sobre azul marino) */
.lista-check--blanca {
  margin-top: 28px;
  gap: 14px;
  font-size: 1.05rem;
}

/* Variante: con líneas divisorias */
.lista-check--lineas {
  gap: 0;
}
.lista-check--lineas li {
  padding-block: 13px;
  border-bottom: 1px solid var(--gris-linea);
}
.lista-check--lineas li::before {
  top: 14px;
}

/* Variante: dos columnas */
.lista-check--doble {
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  font-size: 0.95rem;
}

/* Normas (código + descripción) */
.normas {
  display: grid;
  margin-top: 32px;
}
.normas strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy);
}
.normas span {
  display: block;
  font-size: 0.92rem;
  color: var(--gris-texto);
}


/* =========================
   12. NOM-020
   ========================= */
.nom020 {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

/* Arcos decorativos (eco del logo) en la esquina superior derecha */
.nom020::before {
  content: "";
  position: absolute;
  top: -340px;
  right: -340px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 0 0 46px var(--navy),
    0 0 0 48px rgba(255, 255, 255, 0.07),
    0 0 0 94px var(--navy),
    0 0 0 96px rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.nom020 .contenedor {
  position: relative;
}

.nom020 .titulo::after {
  background: var(--red);
}

.nom020 .foto::after {
  border-color: rgba(255, 255, 255, 0.55);
}
.nom020 .foto,
.nom020 .foto-marco--pendiente {
  background-color: var(--navy-suave);
}
.nom020 .foto-marco--pendiente::after {
  border: 0;
}

/* Bloque "Dictaminación con END previos" */
.dictaminacion {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(64px, 8vw, 104px);
  padding: clamp(28px, 4vw, 48px);
  border-left: 6px solid var(--red);
  border-radius: var(--border-radius);
  background: var(--white);
  color: var(--text);
  scroll-margin-top: calc(var(--alto-header) + 16px);
}
.dictaminacion h3 {
  margin-bottom: 14px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--navy);
}
.dictaminacion__frase {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
}
.dictaminacion__frase .icono {
  width: 48px;
  height: 48px;
  color: var(--red);
}


/* =========================
   13. ENSAYOS NO DESTRUCTIVOS
   ========================= */
.metodos {
  margin-top: 32px;
  border-top: 1px solid var(--gris-linea);
}
.metodos li {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--gris-linea);
}
.metodos abbr {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
  text-decoration: none;
}
.metodos span {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

.bloque-gris {
  margin-top: 32px;
  padding: 28px;
  border-radius: var(--border-radius);
  background: var(--light-gray);
}
.bloque-gris h3 {
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Frase de cierre con escudo */
.frase {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 1.1rem;
  font-weight: 800;
  font-style: italic;
  color: var(--navy);
}
.frase .icono {
  width: 30px;
  height: 30px;
  color: var(--red);
}


/* =========================
   14. VÁLVULAS DE SEGURIDAD
   ========================= */
.aplicaciones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
.aplicaciones li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  border-radius: var(--border-radius);
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--navy);
}
.aplicaciones .icono {
  width: 34px;
  height: 34px;
  color: var(--red);
}


/* =========================
   15. HIGIENE Y SEGURIDAD INDUSTRIAL
   ========================= */

/* Higiene: tarjetas pequeñas */
.normas--tarjetas {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.normas--tarjetas li {
  padding: 16px 18px;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: var(--white);
}

/* Seguridad: cuadrícula con líneas */
.normas--cuadricula {
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  border-top: 2px solid var(--navy);
}
.normas--cuadricula li {
  padding: 14px 0;
  border-bottom: 1px solid var(--gris-linea);
}
.normas--cuadricula strong {
  color: var(--red);
}
.normas--cuadricula span {
  color: var(--text);
}


/* =========================
   16. CONSULTORÍA AMBIENTAL
   Los detalles verdes solo aplican dentro de esta sección.
   ========================= */
.ambiental .titulo::after {
  background: var(--green);
}
.ambiental .lista-check li::before {
  background-color: var(--green);
}
.ambiental .foto::before {
  border-color: var(--green);
}


/* =========================
   17. CAPACITACIÓN
   ========================= */
.distintivo--frase {
  margin-top: 36px;
  font-size: 1.05rem;
}


/* =========================
   18. COBERTURA
   ========================= */
.cobertura__contenido {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.cobertura .texto-grande {
  margin-bottom: 28px;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: var(--navy);
}
.cobertura__mapa {
  width: 100%;
  height: auto;
}
.cobertura__mapa path {
  fill: var(--navy);
  stroke: var(--navy);
  stroke-width: 10;
  stroke-linejoin: round;
}


/* =========================
   19. CONTACTO Y FORMULARIO
   ========================= */
.contacto {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

/* Panel azul con los datos */
.contacto__datos {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--border-radius) var(--border-radius) var(--border-radius) 72px;
  background: var(--navy);
  color: var(--white);
}

.datos {
  display: grid;
  gap: 22px;
}
.datos li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.datos__icono {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 2px solid var(--red-claro);
  border-radius: 50%;
  color: var(--white);
}
.datos strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
/* Solo el texto de cada dato (no el círculo del ícono) */
.datos div a,
.datos div span {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.datos a:hover {
  text-decoration: underline;
}

.contacto__botones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.contacto__botones .boton {
  min-height: 46px;
  padding: 10px 18px;
  font-size: 0.78rem;
}

/* Redes sociales (dentro del panel azul de contacto) */
.redes {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.redes strong {
  display: block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.redes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.redes a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.redes a:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

/* Formulario */
.formulario {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--gris-linea);
  border-radius: var(--border-radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.campo--ancho {
  grid-column: 1 / -1;
}

.campo label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #C3CAD5;
  border-radius: 8px;
  background: var(--white);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.campo textarea {
  resize: vertical;
  min-height: 120px;
}
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(2, 30, 65, 0.15);
}
.campo ::placeholder {
  color: #7B8594;
}

/* Campo con error (lo marca js/script.js) */
.campo .campo-invalido {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(213, 26, 54, 0.15);
}

.formulario__pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.formulario__aviso {
  flex: 1 1 220px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.formulario__aviso--error {
  color: var(--red);
}


/* =========================
   20. FOOTER
   ========================= */
.footer {
  background: var(--navy);
  color: var(--white);
  border-top: 6px solid var(--red);
}

.footer__columnas {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-block: 64px 44px;
}

.footer__marca img {
  width: auto;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}
.footer__marca p {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.footer h3 {
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-claro);
}
.footer ul {
  display: grid;
  gap: 4px;
}
.footer li a {
  display: inline-block;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.footer li a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer__legal {
  padding-block: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}


/* =========================
   21. BOTÓN FLOTANTE DE WHATSAPP
   ========================= */
.whatsapp-flotante {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(2, 30, 65, 0.28);
  transition: transform 0.2s ease;
}
.whatsapp-flotante:hover {
  transform: scale(1.08);
}
.whatsapp-flotante .icono {
  width: 32px;
  height: 32px;
  stroke-width: 1.6;
}


/* =========================
   22. ANIMACIONES
   Aparición suave al hacer scroll. La clase "con-animacion" la agrega
   js/script.js; si JavaScript no carga, todo se ve normal.
   ========================= */
.con-animacion .revelar {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.con-animacion .revelar.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}


/* =========================
   23. RESPONSIVE
   ========================= */

/* ---------- Laptop chica y tablet horizontal (hasta 1180px) ---------- */
@media (max-width: 1180px) {

  /* El menú pasa a hamburguesa */
  .header__hamburguesa {
    display: block;
  }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    max-height: calc(100vh - 68px);
    padding: 12px var(--margen-lateral) 28px;
    overflow-y: auto;
    background: var(--white);
    border-top: 1px solid var(--gris-linea);
    box-shadow: 0 18px 32px rgba(2, 30, 65, 0.12);
    display: none;
  }
  .menu--abierto {
    display: flex;
  }

  .menu__lista {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .menu__lista a {
    padding: 15px 0;
    border-bottom: 1px solid var(--gris-linea);
    font-size: 1rem;
  }
  .menu__lista a::after {
    display: none;
  }
  .menu__lista a.activo {
    color: var(--red);
  }

  .menu__acciones .boton {
    flex: 1;
  }

  .tarjetas {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Tablet vertical (hasta 900px) ---------- */
@media (max-width: 900px) {

  :root {
    --alto-header: 72px;
  }

  .header__logo img {
    height: 54px;
  }

  /* Hero: texto arriba, foto abajo */
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero__texto {
    padding: 40px var(--margen-lateral) 48px;
  }
  .hero__foto {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .hero__onda {
    display: none;
  }
  /* franjas horizontales en lugar de la onda */
  .hero__foto::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    height: 22px;
    background: linear-gradient(var(--navy) 0 10px, var(--white) 10px 13px, var(--red) 13px 18px, var(--white) 18px 20px, var(--wine) 20px 22px);
  }

  .nosotros,
  .dos-columnas,
  .dos-columnas--invertida,
  .dictaminacion,
  .cobertura__contenido,
  .contacto {
    grid-template-columns: 1fr;
  }

  .enfoque {
    margin-top: 28px;
  }

  /* En una sola columna el texto va primero y la foto después */
  .dos-columnas--invertida .foto {
    order: 2;
  }

  .foto {
    aspect-ratio: 4 / 3;
    max-width: 640px;
    margin-bottom: 30px;
  }
  .foto,
  .dos-columnas--invertida .foto {
    justify-self: start;
    width: calc(100% - 30px);
    margin-left: 30px;
    border-radius: var(--border-radius) var(--border-radius) var(--border-radius) 80px;
  }
  .dos-columnas--invertida .foto::before { transform: translate(-16px, 16px); }
  .dos-columnas--invertida .foto::after  { transform: translate(-30px, 30px); }

  .footer__columnas {
    grid-template-columns: 1fr 1fr;
  }
  .footer__marca {
    grid-column: 1 / -1;
  }
}

/* ---------- Celular (hasta 600px) ---------- */
@media (max-width: 600px) {

  .hero__botones .boton {
    width: 100%;
  }

  .conceptos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    font-size: 0.6rem;
    letter-spacing: 0.02em;
  }
  .conceptos__icono {
    width: 48px;
    height: 48px;
  }

  .tarjetas,
  .lista-check--doble,
  .normas--tarjetas,
  .normas--cuadricula,
  .formulario {
    grid-template-columns: 1fr;
  }

  .aplicaciones {
    grid-template-columns: 1fr;
  }
  .aplicaciones li {
    flex-direction: row;
    justify-content: flex-start;
    padding: 14px 18px;
    text-align: left;
  }

  .dictaminacion__frase .icono {
    width: 40px;
    height: 40px;
  }

  .contacto__botones .boton,
  .formulario__pie .boton,
  #valvulas .boton,
  .cobertura .boton {
    width: 100%;
  }

  .footer__columnas {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 48px 32px;
  }

  .whatsapp-flotante {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }
}
