/* ═══════════════════════════════════════════════════════════════════════════
   GRUPPO SOLUZIONI — hoja de estilos principal
   Paleta tomada del logo: rojo #e20613 · gris #606062
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  --rojo:        #e20613;
  --rojo-osc:    #b8040f;
  --rojo-claro:  #ff2233;
  --gris:        #606062;
  --gris-claro:  #8b8b8d;
  --negro:       #141416;
  --carbon:      #1e1e21;
  --texto:       #4a4a4d;
  --linea:       #e6e6e8;
  --fondo:       #ffffff;
  --fondo-alt:   #f7f7f8;

  --header-h:    92px;
  --header-h-sm: 72px;

  /* Ritmo vertical: separación entre bloques. Tocar acá y cambian todos. */
  --sec-gap:     clamp(56px, 6.5vw, 92px);
  /* Alto interno de las bandas de color (números) */
  --band-pad:    clamp(46px, 5.5vw, 74px);

  --radio:       4px;
  --radio-lg:    8px;

  --contenedor:  1240px;
  --ease:        cubic-bezier(.22, .61, .36, 1);
  --sombra:      0 18px 50px rgba(20, 20, 22, .09);
  --sombra-sm:   0 6px 20px rgba(20, 20, 22, .07);
}

/* ── Base ────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h-sm);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--texto);
  background: var(--fondo);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  color: var(--negro);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.025em;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--rojo); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--rojo-osc); }

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

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

::selection { background: var(--rojo); color: #fff; }

.container { max-width: var(--contenedor); padding-inline: 24px; }

/* ── Tipografía de sección ───────────────────────────────────────────────── */
/* Cada bloque lleva su separación arriba y nada abajo.
   Así el hueco entre dos bloques es siempre el mismo y nunca se suman
   el padding de uno con el del siguiente. */
.section { padding: var(--sec-gap) 0 0; }

.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .volanta { justify-content: center; }

.volanta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--rojo);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.volanta .line { width: 34px; height: 2px; background: var(--rojo); }

.section-title { font-size: clamp(1.85rem, 3.4vw, 2.85rem); }
.section-text  { font-size: 1.0625rem; color: var(--texto); }

/* ── Botones ─────────────────────────────────────────────────────────────── */
.btn-brand,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 2px solid transparent;
  border-radius: var(--radio);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: all .3s var(--ease);
}

.btn-brand {
  background: var(--rojo);
  border-color: var(--rojo);
  color: #fff;
}
.btn-brand:hover {
  background: var(--rojo-osc);
  border-color: var(--rojo-osc);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(226, 6, 19, .3);
}
.btn-brand i { font-size: .85em; transition: transform .3s var(--ease); }
.btn-brand:hover i.fa-arrow-right { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--negro);
  transform: translateY(-2px);
}

.btn-lg { padding: 17px 38px; font-size: .9rem; }

/* ═══ HEADER ═════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}

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

.brand { display: block; flex-shrink: 0; }
.brand img {
  height: 40px;
  width: auto;
  transition: height .35s var(--ease), opacity .3s var(--ease);
}
.brand-dark  { display: none; }
.brand-light { display: block; }

/* Estado intermedio: apenas se empieza a scrollear y todavía estamos sobre
   el hero, el header toma un fondo negro translúcido. Sirve para que el
   logo y el menú se lean sobre cualquier cuadro del video, y para que el
   pase a blanco no sea un salto seco. */
.site-header.oscuro {
  background: rgba(15, 15, 17, .72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07);
}
.site-header.oscuro .header-inner { height: var(--header-h-sm); }
.site-header.oscuro .brand img    { height: 34px; }

/* Header con fondo (scrolleado o fuera del hero) */
.site-header.solid {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--linea), 0 10px 30px rgba(20, 20, 22, .06);
}
.site-header.solid .header-inner { height: var(--header-h-sm); }
.site-header.solid .brand-dark  { display: block; }
.site-header.solid .brand-light { display: none; }
.site-header.solid .brand img   { height: 34px; }

/* Nav desktop */
.nav-desktop { margin-left: auto; }
.nav-desktop ul { display: flex; align-items: center; gap: 6px; }

.nav-desktop a {
  position: relative;
  display: block;
  padding: 10px 15px;
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .25s var(--ease);
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 2px;
  height: 2px;
  background: var(--rojo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--ease);
}
.nav-desktop a:hover::after,
.nav-desktop a.active::after { transform: scaleX(1); }

.site-header.solid .nav-desktop a { color: var(--negro); }
.nav-desktop a:hover,
.nav-desktop a.active { color: var(--rojo); }

.btn-header { padding: 12px 22px; font-size: .75rem; }

/* ── Hamburguesa ─────────────────────────────────────────────────────────── */
.burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 11px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: width .3s var(--ease), background .3s var(--ease);
}
.burger span:nth-child(1) { top: 15px; width: 24px; }
.burger span:nth-child(2) { top: 22px; width: 16px; }
.burger span:nth-child(3) { top: 29px; width: 24px; }
.burger:hover span { width: 24px; }

.site-header.solid .burger span { background: var(--negro); }

/* ═══ MENÚ MOBILE — pantalla completa ════════════════════════════════════ */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 0 24px calc(28px + env(safe-area-inset-bottom));
  background: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .38s var(--ease), transform .38s var(--ease), visibility .38s;
}
.nav-mobile.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h-sm);
  flex-shrink: 0;
  border-bottom: 1px solid var(--linea);
}
.nav-mobile-logo { height: 32px; width: auto; }

.nav-close {
  position: relative;
  width: 46px;
  height: 46px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-close span {
  position: absolute;
  top: 22px;
  left: 11px;
  width: 24px;
  height: 2px;
  background: var(--negro);
  border-radius: 2px;
  transition: background .25s var(--ease);
}
.nav-close span:nth-child(1) { transform: rotate(45deg); }
.nav-close span:nth-child(2) { transform: rotate(-45deg); }
.nav-close:hover span { background: var(--rojo); }

.nav-mobile-body {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  padding: 40px 0;
}
.nav-mobile-body ul { width: 100%; }

.nav-mobile-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  color: var(--negro);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(18px);
}
.nav-mobile.open .nav-mobile-link {
  animation: navIn .5s var(--ease) forwards;
  animation-delay: calc(.12s + var(--i) * .06s);
}
.nav-mobile-link:hover,
.nav-mobile-link.active { color: var(--rojo); }

.nav-mobile-num {
  color: var(--rojo);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
}

@keyframes navIn {
  to { opacity: 1; transform: translateY(0); }
}

.nav-mobile-foot {
  flex-shrink: 0;
  padding-top: 24px;
  border-top: 1px solid var(--linea);
}
.nav-mobile-contact {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 0;
  color: var(--texto);
  font-size: .95rem;
  font-weight: 500;
}
.nav-mobile-contact i { width: 18px; color: var(--rojo); }
.nav-mobile-contact:hover { color: var(--rojo); }

.nav-mobile-social { display: flex; gap: 10px; margin-top: 18px; }
.nav-mobile-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--linea);
  border-radius: 50%;
  color: var(--negro);
  transition: all .28s var(--ease);
}
.nav-mobile-social a:hover {
  background: var(--rojo);
  border-color: var(--rojo);
  color: #fff;
}

/* ═══ HERO ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 120px;
  overflow: hidden;
  background: var(--negro);
}

.hero-media { position: absolute; inset: 0; }

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 15, 17, .9) 0%, rgba(15, 15, 17, .72) 45%, rgba(15, 15, 17, .5) 100%),
    linear-gradient(to top, rgba(15, 15, 17, .85) 0%, transparent 45%);
}

.hero-content { position: relative; z-index: 2; }

.hero-volanta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero-volanta .line { width: 40px; height: 2px; background: var(--rojo); }

.hero-title {
  /* medida y cuerpo pensados para un título de ~50 caracteres:
     entra en 2-3 renglones sin comerse el alto del hero */
  max-width: 20ch;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(2.15rem, 5.4vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.03;
}

.hero-lead {
  max-width: 54ch;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 2;
  display: block;
  width: 1px;
  height: 56px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
}
.hero-scroll-line {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 40%;
  background: var(--rojo);
  animation: scrollDot 2.1s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ═══ PILARES ════════════════════════════════════════════════════════════ */
.pilares {
  position: relative;
  z-index: 3;
  margin-top: -80px;
  padding-bottom: 0;
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.pilar {
  padding: 42px 32px;
  border-right: 1px solid var(--linea);
  transition: background .35s var(--ease);
}
.pilar:last-child { border-right: 0; }
.pilar:hover { background: var(--fondo-alt); }

.pilar i {
  display: block;
  margin-bottom: 18px;
  color: var(--rojo);
  font-size: 1.7rem;
}
.pilar h3 {
  margin-bottom: 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.pilar p { font-size: .9rem; line-height: 1.6; color: var(--gris-claro); }

/* ═══ NOSOTROS ═══════════════════════════════════════════════════════════ */
.nosotros-media { position: relative; padding: 0 0 60px 0; }

/* Las dos fotos son links: abren en el lightbox al hacer clic */
.nosotros-img-main,
.nosotros-img-sec {
  display: block;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.nosotros-img-main img,
.nosotros-img-sec img {
  width: 100%;
  display: block;
  transition: transform .6s var(--ease);
}
.nosotros-img-main:hover img,
.nosotros-img-sec:hover img { transform: scale(1.04); }

.nosotros-img-main {
  width: 88%;
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra);
}
.nosotros-img-sec {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  border: 8px solid #fff;
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra);
}

.nosotros-badge {
  position: absolute;
  top: 26px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: var(--rojo);
  border-radius: var(--radio-lg);
  color: #fff;
  box-shadow: 0 16px 40px rgba(226, 6, 19, .3);
}
.nosotros-badge strong {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
}
.nosotros-badge strong span { font-size: 1.3rem; vertical-align: super; }
.nosotros-badge > span {
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.vmv { margin-top: 36px; display: grid; gap: 22px; }

.vmv-item { display: flex; gap: 18px; }
.vmv-item i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(226, 6, 19, .08);
  border-radius: var(--radio);
  color: var(--rojo);
  font-size: 1.05rem;
}
.vmv-item h4 { margin-bottom: 4px; font-size: 1rem; font-weight: 700; }
.vmv-item p  { font-size: .94rem; line-height: 1.62; }

/* ═══ NÚMEROS ════════════════════════════════════════════════════════════ */
.numeros {
  margin: var(--sec-gap) 0 0;
  padding: var(--band-pad) 0;
  background: var(--carbon);
}

.numeros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.numero strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
}
.numero span {
  color: rgba(255, 255, 255, .55);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* ═══ SERVICIOS ══════════════════════════════════════════════════════════ */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.servicio {
  position: relative;
  padding: 42px 38px;
  background: var(--fondo-alt);
  border-radius: var(--radio-lg);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
.servicio::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--rojo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.servicio:hover {
  background: #fff;
  transform: translateY(-6px);
  box-shadow: var(--sombra);
}
.servicio:hover::before { transform: scaleX(1); }

.servicio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.servicio-top i {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: #fff;
  border-radius: var(--radio);
  color: var(--rojo);
  font-size: 1.4rem;
  box-shadow: var(--sombra-sm);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.servicio:hover .servicio-top i { background: var(--rojo); color: #fff; }

.servicio-num {
  color: var(--linea);
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  transition: color .35s var(--ease);
}
.servicio:hover .servicio-num { color: rgba(226, 6, 19, .16); }

.servicio h3 { font-size: 1.3rem; }
.servicio > p { font-size: .96rem; line-height: 1.68; }

.servicio-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--linea);
}
.servicio-items li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--gris);
}
.servicio-items i { color: var(--rojo); font-size: .7rem; }

/* ═══ PRESENCIA ══════════════════════════════════════════════════════════ */
.presencia-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pais {
  padding: 38px 30px;
  text-align: center;
  border: 1px solid var(--linea);
  border-radius: var(--radio-lg);
  transition: all .38s var(--ease);
}
.pais:hover {
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: var(--sombra);
}
.pais i {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  background: rgba(226, 6, 19, .08);
  border-radius: 50%;
  color: var(--rojo);
  font-size: 1.15rem;
  transition: all .38s var(--ease);
}
.pais:hover i { background: var(--rojo); color: #fff; }

.pais h3 { margin-bottom: 3px; font-size: 1.15rem; }
.pais-ciudad { margin-bottom: 12px; font-size: .92rem; color: var(--gris-claro); }
.pais-rol {
  display: inline-block;
  padding: 5px 14px;
  background: var(--fondo-alt);
  border-radius: 100px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gris);
}

/* ═══ CTA ════════════════════════════════════════════════════════════════ */
.cta { padding: var(--sec-gap) 0 0; }

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(44px, 5vw, 64px);
  background: var(--rojo);
  border-radius: var(--radio-lg);
  overflow: hidden;
  position: relative;
}
.cta-inner::after {
  content: '';
  position: absolute;
  top: -60%;
  right: -6%;
  width: 420px;
  height: 420px;
  border: 60px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  pointer-events: none;
}
.cta-inner > div { position: relative; z-index: 1; }
.cta-inner h2 {
  margin-bottom: 6px;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}
.cta-inner p { color: rgba(255, 255, 255, .88); font-size: 1.05rem; }

.cta-inner .btn-brand {
  position: relative;
  z-index: 1;
  background: #fff;
  border-color: #fff;
  color: var(--rojo);
}
.cta-inner .btn-brand:hover {
  background: var(--negro);
  border-color: var(--negro);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}

/* ═══ GALERÍA ════════════════════════════════════════════════════════════ */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.galeria-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radio-lg);
  overflow: hidden;
  background: var(--fondo-alt);
}
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.galeria-item:hover img { transform: scale(1.07); }

.galeria-hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: rgba(226, 6, 19, .88);
  color: #fff;
  text-align: center;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.galeria-item:hover .galeria-hover { opacity: 1; }
.galeria-hover i { font-size: 1.35rem; }
.galeria-hover em {
  font-style: normal;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ═══ CONTACTO ═══════════════════════════════════════════════════════════ */
.contacto-card {
  background: #fff;
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.contacto-info {
  height: 100%;
  padding: clamp(36px, 4vw, 52px);
  background: var(--carbon);
  color: rgba(255, 255, 255, .7);
}
.contacto-info h3 { margin-bottom: 28px; color: #fff; font-size: 1.3rem; }

.contacto-info ul { display: grid; gap: 22px; }
.contacto-info li { display: flex; gap: 16px; font-size: .94rem; line-height: 1.6; }
.contacto-info li i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .07);
  border-radius: var(--radio);
  color: var(--rojo-claro);
  font-size: .95rem;
}
.contacto-info strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contacto-info a { color: rgba(255, 255, 255, .7); }
.contacto-info a:hover { color: #fff; }

.contacto-social { display: flex; gap: 10px; margin-top: 34px; }
.contacto-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: #fff;
  transition: all .28s var(--ease);
}
.contacto-social a:hover { background: var(--rojo); border-color: var(--rojo); }

.contacto-form-wrap { padding: clamp(36px, 4vw, 52px); }

.contacto-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--negro);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.contacto-form label span { color: var(--rojo); }

.contacto-form input[type="text"],
.contacto-form input[type="email"],
.contacto-form input[type="tel"],
.contacto-form select,
.contacto-form textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--fondo-alt);
  border: 1px solid transparent;
  border-radius: var(--radio);
  color: var(--negro);
  font-family: inherit;
  font-size: .96rem;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.contacto-form textarea { resize: vertical; min-height: 120px; }

.contacto-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23606062'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  padding-right: 40px;
}

.contacto-form :is(input, select, textarea):focus {
  outline: 0;
  background: #fff;
  border-color: var(--rojo);
  box-shadow: 0 0 0 3px rgba(226, 6, 19, .1);
}
.contacto-form :is(input, select, textarea).is-error {
  border-color: var(--rojo);
  background: rgba(226, 6, 19, .04);
}

.check { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--rojo);
  cursor: pointer;
}
.check span {
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--texto);
  line-height: 1.55;
}
.check .req { color: var(--rojo); }
.check.is-error span { color: var(--rojo); }

/* honeypot */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note { font-size: .8rem; color: var(--gris-claro); }
.form-note span { color: var(--rojo); }

#btnEnviar { position: relative; }
#btnEnviar .btn-spin { display: none; }
#btnEnviar.loading { pointer-events: none; opacity: .8; }
#btnEnviar.loading .fa-paper-plane { display: none; }
#btnEnviar.loading .btn-spin { display: inline-block; }

.form-msg {
  display: none;
  padding: 15px 18px;
  border-radius: var(--radio);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.55;
}
.form-msg.show { display: block; }
.form-msg.ok {
  background: rgba(22, 163, 74, .09);
  border-left: 3px solid #16a34a;
  color: #15803d;
}
.form-msg.error {
  background: rgba(226, 6, 19, .07);
  border-left: 3px solid var(--rojo);
  color: var(--rojo-osc);
}

.mapa {
  margin-top: 24px;
  border-radius: var(--radio-lg);
  overflow: hidden;
  box-shadow: var(--sombra-sm);
  filter: grayscale(1);
  transition: filter .5s var(--ease);
}
.mapa:hover { filter: grayscale(0); }
.mapa iframe { display: block; }

/* ═══ FOOTER ═════════════════════════════════════════════════════════════ */
.site-footer {
  margin-top: var(--sec-gap);
  padding: clamp(56px, 6.5vw, 84px) 0 0;
  background: var(--negro);
  color: rgba(255, 255, 255, .58);
  font-size: .92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr;
  gap: 46px;
  padding-bottom: 54px;
}

.footer-brand img { height: 38px; margin-bottom: 22px; }
.footer-brand p { max-width: 34ch; line-height: 1.7; }

.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  color: #fff;
  transition: all .28s var(--ease);
}
.footer-social a:hover { background: var(--rojo); border-color: var(--rojo); }

.footer-col h4 {
  margin-bottom: 20px;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-links li + li { margin-top: 11px; }
.footer-links a {
  position: relative;
  color: rgba(255, 255, 255, .58);
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.footer-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--rojo);
  transition: width .28s var(--ease);
}
.footer-links a:hover { color: #fff; padding-left: 16px; }
.footer-links a:hover::before { width: 10px; }

.footer-contact { display: grid; gap: 15px; }
.footer-contact li { display: flex; gap: 13px; line-height: 1.6; }
.footer-contact i { flex-shrink: 0; margin-top: 5px; color: var(--rojo); font-size: .88rem; }
.footer-contact a { color: rgba(255, 255, 255, .58); }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.copyright { margin: 0; font-size: .875rem; }
.copyright strong { color: #fff; font-weight: 700; }

.fiscal {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .36);
  font-size: .78rem;
  letter-spacing: .02em;
}
.fiscal:empty { display: none; }

/* En una línea, con "·" entre cada dato */
.copyright span + span::before,
.fiscal span + span::before {
  content: '\00B7';
  margin: 0 .5em;
  opacity: .55;
}
.copyright span + span::before { content: ''; margin: 0 .25em; }

.credits { display: flex; align-items: center; gap: 20px; }
.credits img {
  height: auto;
  opacity: .55;
  transition: opacity .3s var(--ease);
}
.credits a:first-child img { width: 59px; }
.credits a:last-child img  { width: 130px; }
.credits a:hover img { opacity: 1; }

/* ═══ FLOTANTES ══════════════════════════════════════════════════════════ */

/* Los dos flotantes viven abajo a la derecha, apilados:
   volver arriba arriba de todo y WhatsApp abajo. */
:root {
  --fab-lado:   26px;   /* separación al borde derecho */
  --fab-piso:   26px;   /* separación al borde inferior */
  --fab-wa:     58px;   /* alto del botón de WhatsApp */
  --fab-gap:    12px;   /* aire entre los dos botones */
}

/* ── Volver arriba ───────────────────────────────────────────────────────── */
.to-top {
  position: fixed;
  right: var(--fab-lado);
  bottom: var(--fab-piso);
  /* por delante del WhatsApp: si no, la onda del pulso lo tapa */
  z-index: 960;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--negro);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .32s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--rojo); color: #fff; }

/* Si además hay WhatsApp, se corre para arriba y queda encima de él */
.to-top.sobre-wa {
  bottom: calc(var(--fab-piso) + var(--fab-wa) + var(--fab-gap));
}

/* Mientras el panel de WhatsApp está abierto, este botón se aparta */
.wa-wrap.open ~ .to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}

/* ── WhatsApp flotante ───────────────────────────────────────────────────── */
.wa-wrap {
  position: fixed;
  right: var(--fab-lado);
  bottom: var(--fab-piso);
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.wa-fab {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.72rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .38);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.wa-fab:hover { color: #fff; transform: scale(1.07); }
.wa-fab:focus-visible { outline: 3px solid rgba(37, 211, 102, .45); outline-offset: 4px; }

/* Cuando hay un solo número el FAB es un <a> posicionado por sí mismo */
.wa-fab.wa-solo {
  position: fixed;
  right: var(--fab-lado);
  bottom: var(--fab-piso);
  z-index: 950;
}

/* Pulso */
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: .65;
  z-index: -1;
  animation: waPulse 2.2s var(--ease) infinite;
}
.wa-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: .5;
  animation: waPulse 2.2s var(--ease) infinite .7s;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .6; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Ícono X cuando el panel está abierto */
.wa-icon-close { display: none; }
.wa-wrap.open .wa-fab            { background: var(--negro); box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.wa-wrap.open .wa-icon-open      { display: none; }
.wa-wrap.open .wa-icon-close     { display: block; font-size: 1.5rem; }
.wa-wrap.open .wa-pulse          { display: none; }
.wa-wrap.open .wa-badge          { opacity: 0; transform: scale(.4); }

/* Contador de contactos */
.wa-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 2px solid #fff;
  border-radius: 100px;
  background: var(--rojo);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
  transition: all .3s var(--ease);
}

/* Tooltip del botón único (aparece a la izquierda del FAB) */
.wa-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  padding: 8px 14px;
  border-radius: var(--radio);
  background: var(--negro);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(6px, -50%);
  transition: all .28s var(--ease);
  pointer-events: none;
}
.wa-tooltip::before {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  border: 6px solid transparent;
  border-left-color: var(--negro);
  transform: translateY(-50%);
}
.wa-fab:hover .wa-tooltip { opacity: 1; visibility: visible; transform: translate(0, -50%); }

/* Panel con la lista de números */
.wa-panel {
  /* el margen extra evita que roce el borde cuando hay barra de scroll */
  width: min(330px, calc(100vw - 60px));
  background: #fff;
  border-radius: var(--radio-lg);
  box-shadow: 0 22px 60px rgba(20, 20, 22, .22);
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(14px) scale(.94);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.wa-wrap.open .wa-panel { opacity: 1; transform: translateY(0) scale(1); }

.wa-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 16px;
  background: #128c7e;
  color: #fff;
}
.wa-panel-head strong { display: block; font-size: .98rem; font-weight: 700; line-height: 1.3; }
.wa-panel-head span   { display: block; margin-top: 3px; font-size: .78rem; opacity: .8; line-height: 1.4; }

.wa-panel-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: .85rem;
  cursor: pointer;
  transition: background .25s var(--ease);
}
.wa-panel-close:hover { background: rgba(255, 255, 255, .3); }

.wa-list { padding: 8px; max-height: min(52vh, 380px); overflow-y: auto; }

.wa-list a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  border-radius: var(--radio);
  color: var(--negro);
  transition: background .25s var(--ease);
}
.wa-list a:hover { background: var(--fondo-alt); color: var(--negro); }

.wa-list-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(37, 211, 102, .13);
  color: #128c7e;
  font-size: 1.15rem;
}
.wa-list-txt { flex: 1; min-width: 0; line-height: 1.35; }
.wa-list-txt strong { display: block; font-size: .92rem; font-weight: 700; }
.wa-list-txt em {
  display: block;
  font-style: normal;
  font-size: .78rem;
  color: var(--gris-claro);
}
.wa-list-arrow {
  flex-shrink: 0;
  color: var(--linea);
  font-size: .72rem;
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.wa-list a:hover .wa-list-arrow { color: var(--rojo); transform: translateX(3px); }

.wa-wrap.open .wa-list li {
  animation: waItemIn .38s var(--ease) backwards;
  animation-delay: calc(.08s + var(--i) * .05s);
}
@keyframes waItemIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}

/* ═══ ANIMACIÓN DE ENTRADA ═══════════════════════════════════════════════ */
/* Se oculta sólo si hay JS (la clase .js la agrega un script en el <head>).
   Sin JS el contenido se ve siempre: nunca queda una sección en blanco. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── ≤1199px: aparece la hamburguesa ─────────────────────────────────────── */
@media (max-width: 1199.98px) {
  :root { --header-h: 78px; }

  .nav-desktop { display: none; }
  .burger      { display: block; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── ≤991px ──────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .pilares-grid    { grid-template-columns: repeat(2, 1fr); }
  .pilar           { border-bottom: 1px solid var(--linea); }
  .pilar:nth-child(2n)   { border-right: 0; }
  .pilar:nth-last-child(-n+2) { border-bottom: 0; }

  .servicios-grid  { grid-template-columns: 1fr; }
  .presencia-grid  { grid-template-columns: repeat(2, 1fr); }
  .numeros-grid    { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }

  .nosotros-media  { max-width: 560px; margin-inline: auto; }

  .cta-inner       { text-align: center; justify-content: center; }
  .cta-inner > div { flex: 1 1 100%; }
  .cta-inner::after { display: none; }

  .contacto-info   { border-radius: 0; }
}

/* ── ≤767px ──────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  :root { --header-h: 68px; --header-h-sm: 62px; }

  .container { padding-inline: 20px; }

  .hero { padding: calc(var(--header-h) + 30px) 0 100px; }
  .hero-title { max-width: none; }
  .hero-lead  { margin-bottom: 30px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { width: 100%; }

  .brand img { height: 32px; }
  .site-header.solid .brand img { height: 30px; }

  .pilares { margin-top: -60px; }
  .pilares-grid { grid-template-columns: 1fr; }
  .pilar { border-right: 0; border-bottom: 1px solid var(--linea); padding: 32px 26px; }
  .pilar:last-child { border-bottom: 0; }

  .galeria-grid   { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .presencia-grid { grid-template-columns: 1fr; }

  .servicio { padding: 32px 26px; }
  .servicio-items { grid-template-columns: 1fr; }

  /* La chapa va arriba a la izquierda para no pisar la foto secundaria */
  .nosotros-media { padding-bottom: 40px; }
  .nosotros-badge { top: 16px; right: auto; left: 16px; padding: 13px 17px; gap: 10px; }
  .nosotros-badge strong { font-size: 1.7rem; }
  .nosotros-badge strong span { font-size: 1rem; }
  .nosotros-badge > span { font-size: .68rem; }

  .footer-grid   { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .credits       { justify-content: center; }

  /* Cada dato del copyright y de los datos fiscales, en su propio renglón */
  .copyright span,
  .fiscal span { display: block; }
  .copyright span + span::before,
  .fiscal span + span::before { content: none; margin: 0; }
  .fiscal span + span { margin-top: 2px; }

  :root { --fab-lado: 16px; --fab-piso: 16px; --fab-wa: 52px; --fab-gap: 10px; }

  .to-top     { width: 44px; height: 44px; }
  .wa-fab     { width: 52px; height: 52px; font-size: 1.55rem; }
  .wa-tooltip { display: none; }

  .mapa iframe { height: 320px; }
}

/* ── ≤575px ──────────────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
  .numeros-grid  { grid-template-columns: 1fr 1fr; }
  .galeria-grid  { grid-template-columns: 1fr; }
  .contacto-form-wrap,
  .contacto-info { padding: 30px 24px; }
}

/* ── Preferencias de movimiento reducido ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .wa-pulse { display: none; }
}
