/* ==========================================================================
   INGIVIL — HOJA DE ESTILOS
   Índice:
     1. Variables de marca (colores, tipografías, medidas)
     2. Base y utilidades
     3. Botones y etiquetas
     4. Marcadores [[DATO: ...]]
     5. Barra de navegación
     6. Intro animada
     7. Hero
     8. Secciones y encabezados
     9. Servicios
    10. Franja "Así trabajamos"
    11. Proyectos
    12. Equipo
    13. INGIVIL IA (chat)
    14. Contacto y formulario
    15. Pie de página y botón flotante
    16. Aparición al hacer scroll y movimiento reducido
   ========================================================================== */

/* 0. TIPOGRAFÍAS (alojadas en el propio sitio: cargan rápido y no dependen de terceros) */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fuentes/sora-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fuentes/sora-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fuentes/sora-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fuentes/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fuentes/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fuentes/inter-latin-600-normal.woff2') format('woff2'); }

/* 1. VARIABLES DE MARCA ---------------------------------------------------
   Idea de diseño: acero y precisión. Fondos negro acero y blanco, líneas
   finas color plata y el rojo INGIVIL solo como acento. */
:root {
  --rojo: #C8102E;          /* Rojo INGIVIL: color principal */
  --rojo-vivo: #E4202F;     /* Acentos, botones, hover */
  --negro: #141416;         /* Negro acero: textos y fondos oscuros */
  --gris: #5B6068;          /* Gris acero: texto secundario */
  --plata: #B9BDC3;         /* Líneas y detalles */
  --blanco: #FFFFFF;
  /* Tonos derivados de los anteriores (misma familia, sin colores ajenos) */
  --negro-2: #1C1D20;       /* superficies sobre fondo oscuro */
  --negro-3: #26282C;
  --niebla: #F3F4F5;        /* fondo de secciones grises */
  --linea: #E1E3E6;         /* bordes sobre blanco */
  --linea-oscura: rgba(185, 189, 195, .16);

  --fuente-titulo: 'Sora', 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --fuente-texto: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;

  --ancho: 1200px;
  --margen: clamp(20px, 5vw, 48px);
  --nav-alto: 78px;
  --radio: 14px;
  --suave: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-alto); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--negro);
  font-family: var(--fuente-texto);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.intro-activa, html.intro-activa body { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--fuente-titulo); font-weight: 700; margin: 0; line-height: 1.12; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .88em; background: rgba(20, 20, 22, .06); padding: .1em .4em; border-radius: 5px; }

:focus-visible { outline: 3px solid var(--rojo-vivo); outline-offset: 3px; border-radius: 4px; }

.contenedor { width: 100%; max-width: calc(var(--ancho) + var(--margen) * 2); margin-inline: auto; padding-inline: var(--margen); }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar-contenido { position: fixed; left: 16px; top: -80px; z-index: 300; background: var(--blanco); color: var(--negro); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.saltar-contenido:focus { top: 16px; }

/* 3. BOTONES Y ETIQUETAS --------------------------------------------------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--fuente-titulo); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--suave), background-color .25s, border-color .25s, box-shadow .25s, color .25s;
}
.boton svg { width: 20px; height: 20px; flex: none; }
.boton-grande { min-height: 54px; padding: 14px 30px; font-size: 16px; }
.boton-rojo { background: var(--rojo); color: var(--blanco); box-shadow: 0 8px 24px -10px rgba(200, 16, 46, .7); }
.boton-rojo:hover { background: var(--rojo-vivo); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(228, 32, 47, .75); }
.boton-linea { border-color: rgba(185, 189, 195, .45); color: var(--blanco); }
.boton-linea:hover { border-color: var(--blanco); background: rgba(255, 255, 255, .06); transform: translateY(-2px); }
.boton-whatsapp { background: var(--negro); color: var(--blanco); }
.boton-whatsapp:hover { background: var(--rojo); transform: translateY(-2px); }
.boton:active { transform: translateY(0); }

/* Etiqueta de sección: una pequeña "viga" roja y el nombre en mayúsculas */
.etiqueta {
  display: inline-flex; align-items: baseline; gap: 12px; line-height: 1.6;
  font-family: var(--fuente-titulo); font-size: 12.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--rojo);
}
.etiqueta::before { content: ''; flex: none; align-self: flex-start; margin-top: .68em; width: 34px; height: 3px; background: currentColor; border-radius: 2px; }
.etiqueta-clara { color: var(--rojo-vivo); }

/* 4. MARCADORES [[DATO: ...]] ----------------------------------------------
   Todo dato pendiente se muestra así para que sea imposible no verlo. */
.dato {
  display: inline-block; max-width: 100%;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .8em; font-weight: 500;
  letter-spacing: 0; text-transform: none; line-height: 1.35;
  color: var(--rojo); background: rgba(200, 16, 46, .07);
  border: 1px dashed rgba(200, 16, 46, .55); border-radius: 6px;
  padding: 2px 7px; overflow-wrap: anywhere; white-space: normal;
}
.seccion-oscura .dato, .pie .dato, .proyecto .dato { color: #FF8A93; background: rgba(228, 32, 47, .12); border-color: rgba(255, 138, 147, .5); }

/* 5. BARRA DE NAVEGACIÓN --------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-alto);
  background: rgba(20, 20, 22, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s, backdrop-filter .4s, opacity .6s;
}
.nav.con-fondo { background: rgba(20, 20, 22, .86); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--linea-oscura); }
.nav-interior { height: 100%; max-width: calc(var(--ancho) + var(--margen) * 2); margin-inline: auto; padding-inline: var(--margen); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: block; flex: none; border-radius: 6px; }
.nav-logo img { height: 56px; width: auto; filter: drop-shadow(0 0 .8px rgba(255, 255, 255, .9)); transition: transform .3s var(--suave); }
.nav-logo:hover img { transform: scale(1.04); }
.nav-enlaces { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav-enlaces a:not(.boton) {
  position: relative; padding: 8px 0; color: rgba(255, 255, 255, .78);
  font-family: var(--fuente-titulo); font-size: 14px; font-weight: 600; letter-spacing: .02em;
  transition: color .25s;
}
.nav-enlaces a:not(.boton)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rojo-vivo); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--suave); }
.nav-enlaces a:not(.boton):hover, .nav-enlaces a.activo { color: var(--blanco); }
.nav-enlaces a:not(.boton):hover::after, .nav-enlaces a.activo::after { transform: scaleX(1); }
.nav-cotizar { margin-left: 6px; }
.nav-menu { display: none; width: 46px; height: 46px; border: 1px solid var(--linea-oscura); border-radius: 12px; background: transparent; cursor: pointer; padding: 0; position: relative; }
.nav-menu span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--blanco); border-radius: 2px; transition: transform .3s var(--suave), opacity .2s; }
.nav-menu span:nth-child(1) { top: 15px; }
.nav-menu span:nth-child(2) { top: 21px; }
.nav-menu span:nth-child(3) { top: 27px; }
.nav-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-menu { display: block; }
  .nav-enlaces {
    position: fixed; inset: var(--nav-alto) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(20, 20, 22, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    padding: 8px var(--margen) 28px; border-bottom: 1px solid var(--linea-oscura);
    max-height: calc(100vh - var(--nav-alto)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s, transform .3s var(--suave), visibility .3s;
  }
  .nav-enlaces.abierto { opacity: 1; visibility: visible; transform: none; }
  .nav-enlaces a:not(.boton) { padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--linea-oscura); }
  .nav-enlaces a:not(.boton)::after { display: none; }
  .nav-enlaces a.activo { color: var(--rojo-vivo); }
  .nav-cotizar { margin: 20px 0 0; min-height: 52px; }
  .nav.menu-abierto { background: rgba(20, 20, 22, .97); }
}

/* 6. INTRO ANIMADA ----------------------------------------------------------
   La secuencia la controla js/intro.js. Mientras <html> tiene la clase
   "intro-activa", la barra y el contenido del hero esperan ocultos. */
.intro { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; overflow: hidden; pointer-events: none; }
html.intro-activa .intro { display: flex; pointer-events: auto; }
.intro-frase {
  display: flex; align-items: baseline; justify-content: center; white-space: nowrap;
  font-family: var(--fuente-titulo); font-weight: 800; line-height: 1;
  font-size: clamp(24px, 6.6vw, 104px); letter-spacing: .01em;
  opacity: 0;
}
.intro-frase .letra { display: inline-block; overflow: hidden; text-align: center; will-change: width, opacity; padding-block: .12em; }
/* Las letras llevan desde el primer instante los mismos tonos del logo, sin
   ningún borde añadido: INGENIERÍA en negro metalizado y CIVIL en rojo
   metalizado. La capa "mixta" es la I central del logo (negra arriba, roja
   abajo) y aparece sobre la I roja de CIVIL cuando se forma INGIVIL. */
.intro::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 42% at 50% 50%, rgba(176, 182, 196, .34) 0%, rgba(110, 114, 126, .13) 55%, rgba(20, 20, 22, 0) 100%); pointer-events: none; opacity: var(--foco, 1); }
.intro-frase .letra { position: relative; }
.intro-frase .capa { display: block; font-style: normal; -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-frase .capa + .capa { position: absolute; left: 0; right: 0; top: .12em; opacity: 0; }
.intro-frase .negro { background-image: linear-gradient(180deg, #2A2A2C 0%, #4A4B4E 13%, #0D0D0E 25%, #040405 40%, #5C5E62 52%, #1C1C1E 61%, #050506 100%); }
.intro-frase .rojo { background-image: linear-gradient(180deg, #8A0A16 0%, #B5101F 16%, #86091A 36%, #FF3A40 52%, #C4101F 63%, #7A0812 100%); }
.intro-frase .mixta { background-image: linear-gradient(180deg, #2A2A2C 0%, #0D0D0E 18%, #4E0710 31%, #FF3A40 52%, #C4101F 63%, #7A0812 100%); }
.intro-logo { position: absolute; left: 50%; top: 50%; width: min(86vw, 640px); height: auto; max-width: none; transform: translate(-50%, -50%); transform-origin: center; opacity: 0; will-change: transform, opacity; }
.intro-saltar {
  position: absolute; right: var(--margen); bottom: max(26px, env(safe-area-inset-bottom));
  background: transparent; border: 1px solid rgba(185, 189, 195, .3); border-radius: 999px;
  color: rgba(255, 255, 255, .62); font-size: 13px; font-weight: 500; letter-spacing: .04em;
  padding: 9px 16px; cursor: pointer; transition: color .25s, border-color .25s, background-color .25s;
}
.intro-saltar:hover { color: var(--blanco); border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); }

html.intro-activa .nav { opacity: 0; pointer-events: none; }
html.intro-activa .hero-contenido, html.intro-activa .hero-bajar { opacity: 0; }
html.intro-activa .flotante-whatsapp { opacity: 0; pointer-events: none; }
html.intro-activa #navLogo { visibility: hidden; }

/* 7. HERO ------------------------------------------------------------------ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; background: var(--negro); color: var(--blanco); overflow: hidden; isolation: isolate; }
.hero-fondo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
/* Velo: oscurece el lado del texto para que siempre se lea bien */
.hero-velo { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(20, 20, 22, .92) 0%, rgba(20, 20, 22, .62) 42%, rgba(20, 20, 22, 0) 72%),
  linear-gradient(0deg, rgba(20, 20, 22, .9) 0%, rgba(20, 20, 22, 0) 26%); transition: opacity 1s; }
html.intro-activa .hero-velo { opacity: 0; }
.hero-contenido { padding-block: calc(var(--nav-alto) + 40px) 96px; transition: opacity .9s var(--suave) .15s; }
.hero-contenido > * { max-width: 640px; }
.hero-titulo { font-size: clamp(38px, 6.2vw, 78px); font-weight: 800; line-height: 1.03; letter-spacing: -.035em; margin-top: 22px; }
.hero-palabra { display: block; color: var(--rojo-vivo); will-change: transform, opacity; }
.hero-lema { margin-top: 22px; font-family: var(--fuente-titulo); font-size: clamp(18px, 1.900vw, 24px); font-weight: 600; letter-spacing: -.01em; color: var(--blanco); }
.hero-texto { margin-top: 12px; font-size: clamp(17px, 1.5vw, 19px); color: rgba(255, 255, 255, .74); max-width: 540px; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-contenido > .hero-datos, .hero-contenido > .etiqueta { max-width: 860px; }
.hero-datos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--linea-oscura); font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.hero-datos li { line-height: 1.45; }
.hero-datos span { display: block; font-family: var(--fuente-titulo); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--blanco); margin-bottom: 4px; }
.hero-bajar { position: absolute; left: 50%; bottom: 26px; width: 28px; height: 46px; margin-left: -14px; border: 1px solid rgba(185, 189, 195, .45); border-radius: 16px; transition: opacity .9s .4s, border-color .25s; }
.hero-bajar:hover { border-color: var(--blanco); }
.hero-bajar span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; background: var(--rojo-vivo); border-radius: 2px; animation: bajar 2s var(--suave) infinite; }
@keyframes bajar { 0% { transform: translateY(0); opacity: 1; } 70%, 100% { transform: translateY(16px); opacity: 0; } }

@media (max-width: 760px) {
  .hero-velo { background: linear-gradient(0deg, rgba(20, 20, 22, .98) 0%, rgba(20, 20, 22, .9) 46%, rgba(20, 20, 22, .3) 68%, rgba(20, 20, 22, .2) 100%); }
  .nav-logo img { height: 46px; }
  .hero { align-items: flex-end; }
  .hero-contenido { padding-block: calc(var(--nav-alto) + 150px) 92px; }
  .hero-acciones .boton { flex: 1 1 100%; }
  .hero-datos { margin-top: 36px; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
}

/* 8. SECCIONES Y ENCABEZADOS ----------------------------------------------- */
.seccion { padding-block: clamp(72px, 10vw, 132px); background: var(--blanco); }
.seccion-gris { background: var(--niebla); }
.seccion-oscura { background: var(--negro); color: var(--blanco); position: relative; overflow: hidden; }
.encabezado { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.encabezado h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; margin-top: 18px; }
.encabezado-texto { margin-top: 18px; font-size: clamp(17px, 1.4vw, 19px); color: var(--gris); max-width: 62ch; }
.seccion-oscura .encabezado-texto { color: rgba(255, 255, 255, .7); }

/* 9. SERVICIOS --------------------------------------------------------------
   Índice editorial: a la izquierda la lista de servicios por área (solo el
   nombre, cada fila abre su subpágina); a la derecha, fijo mientras se baja,
   un panel de acero con el dibujo técnico del servicio señalado. */
.indice { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 76px); align-items: start; }
.grupo + .grupo { margin-top: 46px; }
.grupo-titulo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-bottom: 14px; border-bottom: 2px solid var(--negro); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rojo); }
.grupo-titulo span { font-family: var(--fuente-texto); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--gris); }
.fila { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 19px 6px; border-bottom: 1px solid var(--linea); font-family: var(--fuente-titulo); font-size: clamp(19px, 2.200vw, 27px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--negro); transition: padding .45s var(--suave), color .3s, background-color .3s; }
.fila::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--rojo); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--suave); }
.fila-num { font-size: 12.500px; font-weight: 700; letter-spacing: .14em; color: var(--plata); transition: color .3s; }
.fila-nombre b { color: var(--rojo); font-weight: inherit; }
.fila-flecha { font-family: var(--fuente-texto); font-size: 22px; font-weight: 400; color: var(--plata); transition: transform .45s var(--suave), color .3s; }
.fila:hover, .fila:focus-visible, .fila.activa { color: var(--rojo); padding-left: 18px; }
.fila:hover::after, .fila:focus-visible::after, .fila.activa::after { transform: scaleX(1); }
.fila:hover .fila-num, .fila.activa .fila-num { color: var(--rojo); }
.fila:hover .fila-flecha, .fila.activa .fila-flecha { color: var(--rojo); transform: translateX(6px); }
/* El diseño estructural pesa más: misma lista, letra mayor */
.fila-principal { font-size: clamp(30px, 4.200vw, 54px); font-weight: 800; letter-spacing: -.035em; padding-block: 26px; }

/* Panel de vista previa (solo escritorio) */
.indice-vista { position: sticky; top: calc(var(--nav-alto) + 28px); display: flex; flex-direction: column; gap: 8px; padding: 0 30px 32px; background: var(--negro); color: var(--blanco); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(20, 20, 22, .55); }
.indice-dibujo { margin: 0 -30px 14px; aspect-ratio: 400 / 270; border-bottom: 1px solid var(--linea-oscura); animation: entrar .5s var(--suave) both; }
.dibujo { width: 100%; height: 100%; }
.lienzo3d { display: block; width: 100%; height: 100%; }
.indice-grupo { font-family: var(--fuente-titulo); font-size: 11.500px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rojo-vivo); }
.indice-nombre { font-family: var(--fuente-titulo); font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.indice-texto { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .7); min-height: 6.4em; }
@media (max-width: 900px) {
  .indice { grid-template-columns: 1fr; }
  .indice-vista { display: none; }
  .fila.activa { color: var(--negro); padding-left: 6px; }
  .fila.activa::after { transform: scaleX(0); }
  .fila.activa .fila-num, .fila.activa .fila-flecha { color: var(--plata); transform: none; }
  .fila { grid-template-columns: 38px minmax(0, 1fr) auto; }
}

/* Subpágina de un servicio */
.portada-servicio { min-height: 440px; display: flex; align-items: flex-end; }
.portada-servicio > .contenedor { width: 100%; }
.portada-dibujo { position: absolute; inset: 0 0 0 38%; opacity: .95; }
.portada-servicio::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 20, 22, 1) 0%, rgba(20, 20, 22, .94) 40%, rgba(20, 20, 22, .35) 72%, rgba(20, 20, 22, .1) 100%); }
.portada-servicio .contenedor { z-index: 1; }
.detalle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 320px); gap: clamp(28px, 4vw, 56px); align-items: start; }
.detalle-bloque h2 { font-size: clamp(22px, 2.400vw, 30px); font-weight: 800; padding-bottom: 16px; border-bottom: 2px solid var(--negro); }
.detalle-lista li { display: flex; gap: 14px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--linea); font-size: 16.500px; line-height: 1.5; }
.detalle-lista li::before { content: ''; flex: none; width: 16px; height: 2px; background: var(--rojo); transform: translateY(-5px); }
.detalle-accion { display: grid; gap: 14px; padding: 28px; background: var(--negro); color: var(--blanco); border-radius: 22px; }
.detalle-accion h3 { font-size: 22px; font-weight: 700; }
.detalle-accion p { font-size: 15px; color: rgba(255, 255, 255, .72); }
.detalle-accion .boton { white-space: normal; text-align: center; padding-inline: 18px; }
.detalle-enlace { font-size: 14.500px; color: rgba(255, 255, 255, .7); text-decoration: underline; text-underline-offset: 4px; }
.detalle-enlace:hover { color: var(--blanco); }
.otros { display: flex; flex-wrap: wrap; gap: 10px; }
.otros a { padding: 11px 18px; background: var(--blanco); border: 1px solid var(--linea); border-radius: 999px; font-family: var(--fuente-titulo); font-size: 14.500px; font-weight: 600; transition: border-color .25s, color .25s, transform .3s var(--suave); }
.otros a:hover { border-color: var(--rojo); color: var(--rojo); transform: translateY(-2px); }
.seccion-gris .encabezado:has(+ .otros) { margin-bottom: 24px; }
@media (max-width: 1020px) { .detalle { grid-template-columns: 1fr 1fr; } .detalle-accion { grid-column: 1 / -1; } }
@media (max-width: 640px) { .detalle { grid-template-columns: 1fr; } .portada-dibujo { inset: var(--nav-alto) 0 auto 0; height: 300px; opacity: 1; } .portada-servicio::after { background: linear-gradient(0deg, rgba(20, 20, 22, 1) 0%, rgba(20, 20, 22, .96) 48%, rgba(20, 20, 22, .1) 66%, rgba(20, 20, 22, 0) 100%); } .portada.portada-servicio { min-height: 0; padding-top: calc(var(--nav-alto) + 270px); } }

/* 10. FRANJA "ASÍ TRABAJAMOS" ---------------------------------------------- */
.franja { background: var(--negro); color: var(--blanco); padding-block: clamp(56px, 7vw, 88px); position: relative; }
.franja::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--linea-oscura) 1px, transparent 1px), linear-gradient(90deg, var(--linea-oscura) 1px, transparent 1px); background-size: 56px 56px; opacity: .35; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.franja .contenedor { position: relative; }
.franja-titulo { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; margin-bottom: 38px; }
.proceso { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(185, 189, 195, .3); }
.proceso li { position: relative; padding: 28px 26px 6px 0; }
.proceso li::before { content: ''; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; background: var(--rojo-vivo); border-radius: 50%; box-shadow: 0 0 0 5px rgba(228, 32, 47, .18); }
.proceso-num { font-family: var(--fuente-titulo); font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--plata); }
.proceso h3 { font-size: 21px; font-weight: 700; margin: 10px 0 8px; }
.proceso p { font-size: 15px; color: rgba(255, 255, 255, .66); max-width: 30ch; }
@media (max-width: 860px) { .proceso { grid-template-columns: repeat(2, 1fr); row-gap: 26px; border-top: 0; } .proceso li { border-top: 1px solid rgba(185, 189, 195, .3); } }
@media (max-width: 480px) { .proceso { grid-template-columns: 1fr; } }

/* 11. PROYECTOS ------------------------------------------------------------- */
.aviso-ejemplo { margin-top: 22px; padding: 12px 16px; border: 1px dashed rgba(200, 16, 46, .55); border-radius: 10px; background: rgba(200, 16, 46, .05); color: var(--negro); font-size: 14.5px; }
.aviso-ejemplo strong { color: var(--rojo); }
.proyectos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proyecto { position: relative; display: block; aspect-ratio: 4 / 3.3; border-radius: var(--radio); overflow: hidden; background: var(--negro); color: var(--blanco); isolation: isolate; }
.proyecto-imagen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--suave), opacity .5s; }
.proyecto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 20, 22, .96) 0%, rgba(20, 20, 22, .55) 42%, rgba(20, 20, 22, 0) 70%); transition: opacity .5s; z-index: 0; }
.proyecto-ejemplo { position: absolute; top: 14px; right: 14px; z-index: 2; font-family: var(--fuente-titulo); font-size: 10.5px; font-weight: 700; letter-spacing: .18em; color: var(--blanco); background: var(--rojo); padding: 5px 10px; border-radius: 999px; }
.proyecto-texto { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 6px; }
.proyecto-categoria { font-family: var(--fuente-titulo); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rojo-vivo); }
.proyecto h3 { font-size: 21px; font-weight: 700; }
/* El detalle se despliega al pasar el mouse (en pantallas táctiles queda visible) */
.proyecto-detalle { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--suave), opacity .45s; opacity: 0; }
.proyecto-detalle > div { overflow: hidden; }
.proyecto-detalle p { font-size: 14.5px; color: rgba(255, 255, 255, .78); line-height: 1.55; padding-top: 6px; }
.proyecto-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.proyecto:hover .proyecto-imagen, .proyecto:focus-within .proyecto-imagen { transform: scale(1.07); }
.proyecto:hover .proyecto-detalle, .proyecto:focus-within .proyecto-detalle { grid-template-rows: 1fr; opacity: 1; }
.proyecto::before { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--rojo-vivo); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--suave); z-index: 3; }
.proyecto:hover::before { transform: scaleX(1); }
@media (hover: none) { .proyecto-detalle { grid-template-rows: 1fr; opacity: 1; } .proyecto { aspect-ratio: auto; min-height: 360px; } }
@media (max-width: 1020px) { .proyectos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .proyectos { grid-template-columns: 1fr; } }

/* 12. EQUIPO ---------------------------------------------------------------- */
.equipo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.persona { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 30px 16px 26px; border: 1px solid var(--linea); border-radius: var(--radio); background: var(--blanco); transition: transform .45s var(--suave), border-color .3s, box-shadow .45s var(--suave); }
.persona:hover { transform: translateY(-6px); border-color: var(--plata); box-shadow: 0 26px 50px -30px rgba(20, 20, 22, .35); }
.persona-foto { position: relative; width: 116px; height: 116px; border-radius: 50%; margin-bottom: 16px; background: var(--niebla); color: var(--plata); overflow: hidden; box-shadow: 0 0 0 1px var(--linea), 0 0 0 6px var(--blanco), 0 0 0 7px var(--linea); transition: box-shadow .35s; }
.persona:hover .persona-foto { box-shadow: 0 0 0 1px var(--rojo), 0 0 0 6px var(--blanco), 0 0 0 8px var(--rojo); }
.persona-foto img, .persona-foto svg { width: 100%; height: 100%; object-fit: cover; }
.persona h3 { font-size: 15px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; }
.persona-profesion { font-size: 14.5px; font-weight: 600; color: var(--rojo); margin-top: 4px; }
.persona-posgrado { font-size: 13.5px; color: var(--gris); line-height: 1.45; }
.persona-vacia { border-style: dashed; background: transparent; }
.persona-vacia .dato { font-size: 11.5px; margin-top: 3px; }
@media (max-width: 1100px) { .equipo { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .equipo { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .equipo { grid-template-columns: repeat(2, 1fr); gap: 12px; } .persona { padding: 22px 10px 20px; } .persona-foto { width: 92px; height: 92px; } }

/* 13. INGIVIL IA (CHAT) ----------------------------------------------------- */
.seccion-oscura::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--linea-oscura) 1px, transparent 1px), linear-gradient(90deg, var(--linea-oscura) 1px, transparent 1px); background-size: 64px 64px; opacity: .3; -webkit-mask-image: radial-gradient(ellipse at 20% 40%, #000 0%, transparent 62%); mask-image: radial-gradient(ellipse at 20% 40%, #000 0%, transparent 62%); pointer-events: none; }
.ia { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.ia-encabezado { margin-bottom: 0; }
.ia-encabezado h2 { font-size: clamp(40px, 5.6vw, 72px); letter-spacing: -.03em; }
.ia-ventajas { margin-top: 30px; display: grid; gap: 14px; font-size: 16px; color: rgba(255, 255, 255, .86); }
.ia-ventajas li { display: flex; gap: 14px; align-items: baseline; }
.ia-ventajas li::before { content: ''; flex: none; width: 18px; height: 2px; background: var(--rojo-vivo); transform: translateY(-5px); }
.ia-nota { margin-top: 30px; font-size: 13.5px; color: rgba(255, 255, 255, .5); max-width: 46ch; }

.chat { display: flex; flex-direction: column; height: min(640px, 78vh); min-height: 460px; background: var(--negro-2); border: 1px solid var(--linea-oscura); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset; }
.chat-cabecera { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--linea-oscura); background: linear-gradient(180deg, var(--negro-3), var(--negro-2)); }
.chat-cabecera strong { display: block; font-family: var(--fuente-titulo); font-size: 16px; letter-spacing: .04em; }
.chat-avatar { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--negro); border: 1px solid rgba(185, 189, 195, .28); }
.chat-avatar img { height: 28px; width: auto; }
.chat-estado { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.chat-estado i { width: 7px; height: 7px; border-radius: 50%; background: var(--rojo-vivo); box-shadow: 0 0 0 0 rgba(228, 32, 47, .6); animation: pulso 2.2s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(228, 32, 47, .6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(228, 32, 47, 0); } }
.chat-mensajes { flex: 1; overflow-y: auto; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: var(--negro-3) transparent; overscroll-behavior: contain; }
.mensaje { display: flex; gap: 10px; align-items: flex-end; max-width: 88%; animation: entrar .45s var(--suave) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } }
.mensaje .chat-avatar { width: 30px; height: 30px; border-radius: 9px; }
.mensaje .chat-avatar img { height: 19px; }
.burbuja { padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.burbuja p + p { margin-top: 10px; }
.burbuja strong { font-weight: 600; color: var(--blanco); }
.burbuja a { color: #FF8A93; text-decoration: underline; text-underline-offset: 3px; }
.mensaje-ia .burbuja { background: var(--negro-3); color: rgba(255, 255, 255, .88); border-bottom-left-radius: 6px; }
.mensaje-usuario { align-self: flex-end; }
.mensaje-usuario .burbuja { background: var(--rojo); color: var(--blanco); border-bottom-right-radius: 6px; }
/* Indicador "escribiendo…" */
.escribiendo { display: inline-flex; align-items: center; gap: 5px; }
.escribiendo i { width: 7px; height: 7px; border-radius: 50%; background: var(--plata); animation: punto 1.2s infinite ease-in-out; }
.escribiendo i:nth-child(2) { animation-delay: .15s; }
.escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-sugerencias { display: flex; gap: 8px; padding: 0 20px 14px; overflow-x: auto; scrollbar-width: none; }
.chat-sugerencias::-webkit-scrollbar { display: none; }
.chat-sugerencias button { flex: none; background: transparent; border: 1px solid rgba(185, 189, 195, .3); color: rgba(255, 255, 255, .82); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; cursor: pointer; transition: border-color .25s, color .25s, background-color .25s; }
.chat-sugerencias button:hover { border-color: var(--rojo-vivo); color: var(--blanco); background: rgba(228, 32, 47, .12); }
.chat-formulario { display: flex; gap: 10px; padding: 14px 16px 16px; border-top: 1px solid var(--linea-oscura); background: var(--negro-2); }
.chat-formulario input { flex: 1; min-width: 0; height: 50px; padding: 0 18px; background: var(--negro); border: 1px solid rgba(185, 189, 195, .22); border-radius: 999px; color: var(--blanco); font-size: 16px; transition: border-color .25s; }
.chat-formulario input::placeholder { color: rgba(255, 255, 255, .42); }
.chat-formulario input:focus { outline: none; border-color: var(--rojo-vivo); }
.chat-formulario button { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--rojo); color: var(--blanco); cursor: pointer; transition: background-color .25s, transform .25s var(--suave); }
.chat-formulario button:hover { background: var(--rojo-vivo); transform: scale(1.06); }
.chat-formulario button svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .ia { grid-template-columns: 1fr; } .chat { height: min(600px, 74vh); } }

/* 14. CONTACTO Y FORMULARIO ------------------------------------------------- */
.contacto { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 84px); align-items: start; }
.contacto-info h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; margin-top: 18px; }
.contacto-info .boton-whatsapp { margin-top: 30px; white-space: normal; text-align: center; }
.contacto-datos { margin: 38px 0 0; display: grid; }
.contacto-datos > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-top: 1px solid var(--linea); }
.contacto-datos > div:last-child { border-bottom: 1px solid var(--linea); }
.contacto-datos dt { font-family: var(--fuente-titulo); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); padding-top: 4px; }
.contacto-datos dd { margin: 0; font-size: 16px; font-weight: 500; }
.contacto-datos dd .dato + br + .dato { margin-top: 6px; }

.cotizar { background: var(--niebla); border: 1px solid var(--linea); border-radius: 22px; padding: clamp(24px, 4vw, 42px); display: grid; gap: 18px; }
.cotizar h3 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.campo { display: grid; gap: 7px; min-width: 0; }
.campo-doble { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.campo label { font-size: 13.5px; font-weight: 600; color: var(--negro); }
.opcional { font-weight: 400; color: var(--gris); }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 50px; padding: 12px 15px; background: var(--blanco); border: 1px solid var(--plata); border-radius: 10px; font-size: 16px; transition: border-color .25s, box-shadow .25s; }
.campo textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--rojo); box-shadow: 0 0 0 4px rgba(200, 16, 46, .14); }
.campo .invalido { border-color: var(--rojo); background: #FFF6F7; }
.cotizar-error { font-size: 14.5px; font-weight: 500; color: var(--rojo); }
.cotizar-enviar { width: 100%; margin-top: 4px; white-space: normal; text-align: center; }
.cotizar-nota { font-size: 13.5px; color: var(--gris); text-align: center; }
@media (max-width: 900px) { .contacto { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .campo-doble { grid-template-columns: 1fr; } .contacto-datos > div { grid-template-columns: 1fr; gap: 4px; } }

/* 14b. SUBPÁGINA NOSOTROS (misión, visión, valores) ------------------------- */
.vista[hidden] { display: none; }
.portada { position: relative; background: var(--negro); color: var(--blanco); padding-block: calc(var(--nav-alto) + clamp(48px, 8vw, 96px)) clamp(56px, 8vw, 104px); overflow: hidden; }
.portada::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--linea-oscura) 1px, transparent 1px), linear-gradient(90deg, var(--linea-oscura) 1px, transparent 1px); background-size: 64px 64px; opacity: .4; -webkit-mask-image: radial-gradient(ellipse at 80% 30%, #000 0%, transparent 65%); mask-image: radial-gradient(ellipse at 80% 30%, #000 0%, transparent 65%); }
.portada .contenedor { position: relative; }
.portada-volver { display: block; width: fit-content; margin-bottom: 34px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .62); transition: color .25s; }
.portada-volver:hover { color: var(--blanco); }
.portada h1 { font-size: clamp(36px, 6vw, 72px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin-top: 20px; max-width: 16ch; }
.portada-texto { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .74); max-width: 56ch; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mv-bloque { position: relative; padding: clamp(28px, 4.5vw, 56px); border: 1px solid var(--linea); border-radius: 22px; background: var(--blanco); overflow: hidden; }
.mv-bloque::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--rojo); }
.mv-marca { display: block; font-family: var(--fuente-titulo); font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 24px; }
.mv-bloque p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; color: var(--gris); max-width: 46ch; }
.mv-oscuro { background: var(--negro); border-color: var(--negro); color: var(--blanco); }
.mv-oscuro .mv-marca { color: var(--rojo-vivo); }
.mv-oscuro p { color: rgba(255, 255, 255, .8); }
.valores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.valor { padding: 28px 24px 30px; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); transition: transform .45s var(--suave), border-color .3s, box-shadow .45s var(--suave); }
.valor:hover { transform: translateY(-6px); border-color: var(--plata); box-shadow: 0 26px 50px -30px rgba(20, 20, 22, .35); }
.valor-num { font-family: var(--fuente-titulo); font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--rojo); }
.valor h3 { font-size: 20px; font-weight: 700; margin: 12px 0 10px; }
.valor p { font-size: 15.500px; color: var(--gris); line-height: 1.6; }
.valores-pie { margin-top: 40px; }
@media (max-width: 960px) { .valores { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .valores { grid-template-columns: 1fr; } }
/* En la subpágina la barra siempre lleva fondo */
.en-subpagina .nav { background: rgba(20, 20, 22, .9); border-bottom-color: var(--linea-oscura); }

/* 15. PIE DE PÁGINA Y BOTÓN FLOTANTE ---------------------------------------- */
.pie { background: var(--negro); color: rgba(255, 255, 255, .72); padding-top: clamp(56px, 7vw, 88px); border-top: 3px solid var(--rojo); font-size: 15px; }
.pie-interior { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 56px); padding-bottom: 52px; }
.pie-marca img { width: min(280px, 100%); filter: drop-shadow(0 0 .6px rgba(255, 255, 255, .45)); }
.pie-marca p { margin-top: 18px; max-width: 30ch; color: rgba(255, 255, 255, .56); }
.pie-columna { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; min-width: 0; }
.pie-columna h4 { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blanco); margin-bottom: 8px; }
.pie-columna a { transition: color .25s; }
.pie-columna a:hover { color: var(--blanco); }
.redes { display: flex; flex-wrap: wrap; gap: 10px; }
.redes a { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(185, 189, 195, .3); border-radius: 50%; color: var(--blanco); transition: background-color .3s, border-color .3s, transform .3s var(--suave); }
.redes a:hover { background: var(--rojo); border-color: var(--rojo); transform: translateY(-3px); }
.redes svg { width: 21px; height: 21px; }
.redes-pendientes { display: grid; gap: 6px; margin-top: 4px; }
.pie-intro { margin-top: 10px; background: none; border: 0; padding: 0; color: rgba(255, 255, 255, .5); font-size: 13.5px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.pie-intro:hover { color: var(--blanco); }
.pie-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px; border-top: 1px solid var(--linea-oscura); font-size: 13.5px; color: rgba(255, 255, 255, .5); }
.pie-legal a:hover { color: var(--blanco); }
@media (max-width: 900px) { .pie-interior { grid-template-columns: 1fr 1fr; } .pie-marca { grid-column: 1 / -1; } }
@media (max-width: 480px) { .pie-interior { grid-template-columns: 1fr; } }

.flotante-whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--rojo); color: var(--blanco); box-shadow: 0 14px 34px -10px rgba(200, 16, 46, .8); transition: transform .3s var(--suave), background-color .25s, opacity .5s; }
.flotante-whatsapp:hover { transform: scale(1.08); background: var(--rojo-vivo); }
.flotante-whatsapp svg { width: 30px; height: 30px; }

/* 16. APARICIÓN AL HACER SCROLL ---------------------------------------------
   Solo se oculta si el JavaScript está activo (clase "con-js" en <html>),
   así el contenido nunca queda invisible por un fallo de carga. */
.con-js .aparecer { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--suave), transform .8s var(--suave); transition-delay: var(--retraso, 0s); }
.con-js .aparecer.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .con-js .aparecer { opacity: 1; transform: none; }
}
