:root {
  --rojo: #ba1a2a;
  --rojo-oscuro: #8f0f0f;
  --tinta: #1c1c1e;
  --gris: #5f6368;
  --gris-claro: #eef0f3;
  --fondo: #ffffff;
  --fondo-alt: #f6f7f9;
  --borde: #e2e5ea;
  --radio: 14px;
  --ancho: 1160px;
  --sombra: 0 10px 30px rgba(20, 20, 30, .08);
  --fuente: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--fuente);
  color: var(--tinta);
  background: var(--fondo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; }

.contenedor { width: min(var(--ancho), 100% - 32px); margin-inline: auto; }

/* ---------- Encabezado ---------- */
.encabezado {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}
.encabezado .contenedor { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.marca img { height: 40px; width: auto; }
.menu { display: flex; gap: 28px; align-items: center; }
.menu a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--tinta); }
.menu a:hover { color: var(--rojo); }
.menu .boton { color: #fff; }
.menu .boton:hover { color: #fff; }
.abrir-menu { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.abrir-menu span { display: block; width: 24px; height: 2px; background: var(--tinta); margin: 5px 0; transition: .2s; }

.boton {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--rojo); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: background .2s, transform .2s;
}
.boton:hover { background: var(--rojo-oscuro); transform: translateY(-1px); }
.boton.claro { background: #fff; color: var(--rojo); }
.boton.claro:hover { background: var(--gris-claro); }
.boton svg { width: 20px; height: 20px; flex: none; }

/* ---------- Portada ---------- */
.portada { position: relative; color: #fff; overflow: hidden; background: #111; }
.portada video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .55;
}
.portada::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(120, 8, 20, .88) 0%, rgba(30, 10, 12, .55) 55%, rgba(0, 0, 0, .2) 100%);
}
.portada .contenedor { position: relative; z-index: 1; padding: 120px 0 110px; }
.portada .etiqueta { display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .9; margin-bottom: 18px; }
.portada h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 700; max-width: 760px; letter-spacing: -.01em; }
.portada p { font-size: clamp(16px, 1.6vw, 19px); max-width: 560px; margin: 22px 0 34px; opacity: .92; }

.cifras { background: var(--rojo); color: #fff; }
.cifras .contenedor { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 34px 0; gap: 16px; }
.cifra strong { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1.1; }
.cifra span { font-size: 14px; opacity: .9; }

/* ---------- Secciones ---------- */
.seccion { padding: 96px 0; }
.seccion.alt { background: var(--fondo-alt); }
.titulo { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.titulo .etiqueta { color: var(--rojo); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.titulo h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 10px; font-weight: 700; }
.titulo p { color: var(--gris); margin: 14px 0 0; font-size: 17px; }

.nosotros { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.nosotros h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
.nosotros h2 em { font-style: normal; color: var(--rojo); }
.nosotros p { color: var(--gris); font-size: 17px; }
.nosotros .lista { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.nosotros .lista li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.nosotros img { max-height: 420px; margin-inline: auto; object-fit: contain; }
.nosotros .lista li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--rojo); margin-top: 8px; }

/* ---------- Formatos ---------- */
.formatos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.formato {
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.formato:hover { box-shadow: var(--sombra); transform: translateY(-3px); }
.formato .fotos { position: relative; aspect-ratio: 736 / 473; background: linear-gradient(180deg, #fff, var(--gris-claro)); }
.formato .fotos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s; }
.formato .fotos img.visible { opacity: 1; }
.formato .texto { padding: 18px 20px 22px; }
.formato h3 { font-size: 19px; font-weight: 600; }
.formato p { margin: 6px 0 0; color: var(--gris); font-size: 14.5px; }
.formato .medida { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--rojo); background: #fbeaec; padding: 4px 10px; border-radius: 999px; }

.banda-3d {
  margin-top: 40px; border-radius: var(--radio);
  background: var(--tinta); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 34px;
}
.banda-3d strong { font-size: 22px; }
.banda-3d span { display: block; opacity: .75; font-size: 15px; }

/* ---------- Provincias ---------- */
.provincias { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.provincia {
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 22px 18px 20px; display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: box-shadow .25s, border-color .25s;
}
.provincia:hover { box-shadow: var(--sombra); border-color: #f0c9ce; }
.provincia .silueta {
  width: 100%; height: 130px;
  background: var(--rojo);
  -webkit-mask: var(--mapa) center / contain no-repeat;
          mask: var(--mapa) center / contain no-repeat;
  transition: transform .3s;
}
.provincia:hover .silueta { transform: scale(1.05); }
.provincia h3 { font-size: 17px; font-weight: 600; margin-top: 16px; }
.provincia .total { font-size: 34px; font-weight: 700; color: var(--rojo); line-height: 1.1; margin-top: 6px; }
.provincia .total small { display: block; font-size: 13px; font-weight: 500; color: var(--gris); }
.provincia ul { list-style: none; padding: 0; margin: 16px 0 0; width: 100%; border-top: 1px solid var(--borde); }
.provincia li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; line-height: 1.35; padding: 8px 2px; border-bottom: 1px dashed var(--borde); text-align: left; }
.provincia li:last-child { border-bottom: 0; }
.provincia li b { font-weight: 600; }
.provincia .consultar { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 600; color: var(--rojo); text-decoration: none; }
.provincia .consultar:hover { text-decoration: underline; }

/* ---------- Clientes ---------- */
.cinta { overflow: hidden; mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cinta .pista { display: flex; gap: 64px; width: max-content; animation: desplazar 45s linear infinite; align-items: center; }
.cinta:hover .pista { animation-play-state: paused; }
.cinta img { height: 48px; width: auto; opacity: .75; transition: opacity .2s; }
.cinta img:hover { opacity: 1; }
@keyframes desplazar { to { transform: translateX(-50%); } }

/* ---------- Grupo ---------- */
.grupo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grupo > * {
  display: flex; align-items: center; justify-content: center; height: 110px;
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 20px 26px;
  transition: box-shadow .25s;
}
.grupo a:hover { box-shadow: var(--sombra); }
.grupo img { max-height: 54px; width: auto; object-fit: contain; }

/* ---------- Contacto ---------- */
.contacto { background: linear-gradient(120deg, var(--rojo-oscuro), var(--rojo)); color: #fff; }
.contacto .contenedor { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.contacto h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.contacto .cita { font-size: 18px; opacity: .9; margin: 14px 0 0; }
.personas { display: grid; gap: 14px; }
.persona {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radio); padding: 18px 20px; text-decoration: none;
  transition: background .2s;
}
.persona:hover { background: rgba(255, 255, 255, .18); }
.persona strong { display: block; font-size: 17px; }
.persona span { opacity: .85; font-size: 15px; }
.persona .wa { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #25d366; display: grid; place-items: center; }
.persona .wa svg { width: 24px; height: 24px; color: #fff; }
.datos { margin-top: 26px; display: grid; gap: 10px; font-size: 15px; }
.datos a, .datos div { display: flex; align-items: center; gap: 10px; text-decoration: none; opacity: .92; }
.datos a:hover { opacity: 1; text-decoration: underline; }
.datos svg { width: 20px; height: 20px; flex: none; }

.pie { background: #141416; color: #b9bcc2; font-size: 14px; }
.pie .contenedor { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 0; flex-wrap: wrap; }
.pie img { height: 34px; width: auto; }

/* ---------- WhatsApp flotante ---------- */
.flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.flotante:hover { transform: scale(1.07); }
.flotante svg { width: 32px; height: 32px; color: #fff; }

/* ---------- Aparición suave ---------- */
.aparece { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.aparece.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .aparece { opacity: 1; transform: none; transition: none; }
  .cinta .pista { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  html { scroll-behavior: auto; }
}

/* ---------- Celular y tablet ---------- */
@media (max-width: 1080px) {
  .formatos { grid-template-columns: repeat(2, 1fr); }
  .provincias { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .abrir-menu { display: block; }
  .menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--borde);
    padding: 8px 16px 18px; display: none;
  }
  .menu.abierto { display: flex; }
  .menu a { padding: 12px 4px; border-bottom: 1px solid var(--gris-claro); }
  .menu .boton { margin-top: 12px; justify-content: center; border-bottom: 0; }
  .nosotros, .contacto .contenedor { grid-template-columns: 1fr; gap: 36px; }
  .grupo { grid-template-columns: repeat(2, 1fr); }
  .seccion { padding: 72px 0; }
  .portada .contenedor { padding: 88px 0 80px; }
  .banda-3d { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .provincias { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .provincia { padding: 18px 12px; }
  .provincia .silueta { height: 96px; }
  .cifras .contenedor { grid-template-columns: repeat(3, 1fr); padding: 26px 0; }
  .cifra span { font-size: 12px; }
}
@media (max-width: 480px) {
  .formatos { grid-template-columns: 1fr; }
  .marca img { height: 34px; }
  .grupo > * { height: 90px; padding: 14px; }
}
