/* ============================================================
 *  Empresa: PEPI
 *  Última actualización: mayo 2026
 *  Descripción: Estilos globales, componentes y páginas del
 *               sitio web (index, calidad, productos, contacto)
 * ============================================================ */

/* ============================================================
 *  TABLA DE CONTENIDOS
 *
 *  1.  Variables CSS (tokens de diseño)
 *  2.  Reset y estilos base
 *  3.   Menú principal
 *       3a. Logo
 *       3b. Lista de navegación
 *       3c. Submenú
 *       3d. Botón de contacto del menú
 *       3e. Botón hamburguesa (móvil)
 *  4.  Página Index
 *       4a. Sección hero (inicio)
 *       4b. Marquee animado
 *       4c. Sección "Acerca de PEPI"
 *       4d. Sección "Valores"
 *       4e. Sección "Servicios sociales"
 *       4f. Tarjetas de apoyos
 *       4g. Sección de ubicaciones / mapas
 *  5.  Página Calidad
 *       5a. Hero de calidad
 *       5b. Sección política de calidad
 *       5c. Sección laboratorio / ensayos
 *       5d. Strip de cotización
 *  6.  Página Productos
 *       6a. Hero de productos
 *       6b. Sección de calidad del producto
 *       6c. Sección concretos
 *       6d. Carrusel de block
 *       6e. Tabla de productos / tabs
 *  7.  Página Contacto
 *       7a. Sección WhatsApp
 *       7b. Formulario de cotización
 *       7c. Panel de resumen del pedido
 *       7d. Overlay de éxito / toast
 *  8.  Pie de página (footer)
 *  9.  Utilidades y helpers
 * 10.  Responsive — pantallas ≤ 900px
 * 11.  Responsive — pantallas ≤ 1024px y ≤ 640px
 *  12. Scrollbar personalizado
 * ============================================================ */


/* ============================================================
 *  1. VARIABLES CSS — Tokens de diseño globales
 * ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700&family=Barlow:wght@400;600&family=Oswald:wght@600;700&family=Source+Sans+3:wght@400;600&family=Bebas+Neue&family=Nunito+Sans:wght@400;600&display=swap');

:root {
  /* ── Paleta de colores corporativos ── */
  --cafe:         rgb(70, 46, 46);
  --cafe-alpha:   rgba(70, 46, 46, 0.95);

  --blue:         #083488;   /* Azul principal */
  --blue-l:       #1a4fc4;   /* Azul claro */
  --blue-d:       #041f52;   /* Azul oscuro */
  --blue-pale:    #dce6fb;   /* Azul pálido (fondos) */
  --blue-mid:     #1435c8;   /* Azul intermedio */

  --red:          #e23044;   /* Rojo principal */
  --red-d:        #a81f30;   /* Rojo oscuro (hover) */

  --sand-l:       #ebebeb;   /* Arena claro */
  --sand-d:       #c4c4c4;   /* Arena oscuro */

  --white:        #ffffff;
  --colordefondo: #dedede;   /* Gris de fondo general */

  /* Aliases legacy (mantener compatibilidad) */
  --colorazul1:   #083488;
  --colorrojo1:   #e23044;

  --accent:       #2563eb;
  --accent-2:     #1d4ed8;
  --navy:         #041f52;

  --surface:      rgba(255, 255, 255, 0.08);
  --surface2:     #f3f4f6;

  /* ── Tipografía ── */
  --font-tittle: 'Oswald', sans-serif;        /* Títulos — peso 700 */
  --font-body:   'Source Sans 3', sans-serif; /* Cuerpo — peso 300  */
  --font-mono:   'Oswald', sans-serif;        /* Monoespaciado/UI — peso 600 */

  /* ── Escala tipográfica responsiva (clamp) ── */
  --fs-base:    clamp(1.1rem,  1.4vw, 1.45rem); /* Texto base: 18–23px   */
  --fs-sm:      clamp(0.875rem, 0.9vw, 1rem);   /* Texto pequeño: 14–16px */
  --fs-h1:      clamp(2rem,    4vw,   3rem);     /* Título H1: 32–48px    */
  --fs-h2:      clamp(1.75rem, 3vw,   2.5rem);   /* Título H2: 28–40px    */
  --fs-h3:      clamp(1.5rem,  2.5vw, 2rem);     /* Título H3: 24–32px    */
  --fs-h4:      clamp(1.25rem, 2vw,   1.5rem);   /* Título H4: 20–24px    */
  --fs-button:  clamp(0.9rem,  1vw,   1rem);     /* Texto de botones      */
  --fs-caption: clamp(0.8rem,  0.8vw, 0.9rem);   /* Textos auxiliares     */

  /* ── Escala de espaciado responsiva ── */
  --space-xs:  clamp(0.25rem, 0.5vw, 0.5rem);
  --space-sm:  clamp(0.5rem,  1vw,   1rem);
  --space-md:  clamp(1rem,    2vw,   1.5rem);
  --space-lg:  clamp(1.5rem,  3vw,   2.5rem);
  --space-xl:  clamp(2rem,    4vw,   4rem);
  --space-2xl: clamp(3rem,    6vw,   6rem);
  --space-3xl: clamp(4rem,    8vw,   8rem);

  /* ── Colores de texto ── */
  --text:       #000000;
  --text-dark:  #111827;
  --text-mid:   #374151;
  --muted:      #6b7280;
  --muted-w:    rgba(255, 255, 255, 0.6); /* Texto atenuado sobre fondo oscuro */
  --border:     #e5e7eb;
  --border-w:   rgba(255, 255, 255, 0.12);

  /* ── Estados ── */
  --error:   #e53535;
  --success: #22c55e;

  /* ── Radios de borde ── */
  --radius:    0.75rem;
  --radius-sm: 0.375rem;
}

/* ============================================================
 *  2. RESET Y ESTILOS BASE
 * ============================================================ */
*,
::before,
::after {
  margin:     0;
  padding:    0;
  box-sizing: border-box;
  list-style: none;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  color:            var(--text);
  font-family:      var(--font-body);
  font-size:        var(--fs-base);
  font-weight:      300;
  line-height:      1.5;
  background-color: var(--colordefondo);
  overflow-x:       hidden;
}
img {
  display:   block;
  width:     100%;
  height:    auto;
  max-width: 100%;
}
a  { text-decoration: none; }
p  { font-weight: 300; }

/* ============================================================
 *  3. MENÚ PRINCIPAL
 * ============================================================ */
.menu {
  position:          fixed;
  inset-block-start: 0;
  inset-inline:      0;
  height:            5rem; /* 80px */
  background:        var(--white);
  border-bottom:     3px solid var(--blue);
  z-index:           9999;
  display:           flex;
  align-items:       center;
}

.menu-contenedor {
  width:           100%;
  height:          100%;
  padding-inline:  clamp(1rem, 3vw, 1.75rem);
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             1rem;
}

/* 3a. Logo ------------------------------------------------- */
.menu-logo {
  display:     flex;
  align-items: center;
  gap:         0.625rem;
  flex-shrink: 0;
  height:      4.5rem;
}

.menu-logo img {
  width:  auto;
  height: clamp(2.5rem, 4vw, 2.875rem);
}

.nombre-logo {
  font-family:    var(--font-tittle);
  font-size:      18px;
  letter-spacing: 0.1rem;
  color:          var(--text-dark);
  text-transform: uppercase;
  margin:         0 0 8px;
  line-height:    1.1;
  white-space:    nowrap;
}

/* 3b. Lista de navegación ---------------------------------- */
.listado {
  display:         flex;
  align-items:     center;
  height:          100%;
  flex:            1;
  justify-content: center;
}

.nav-item {
  position:    relative;
  height:      100%;
  display:     flex;
  align-items: center;
}

.nav-link {
  display:        flex;
  align-items:    center;
  height:         100%;
  padding-inline: 0.875rem;
  font-family:    var(--font-body);
  font-size:      clamp(1rem, 1vw, 1.3rem);
  color:          var(--text-mid);
  white-space:    nowrap;
  letter-spacing: 0.02em;
  position:       relative;
  transition:     color 0.2s;
}

/* Línea animada inferior al hacer hover */
.nav-link::after {
  content:          '';
  position:         absolute;
  inset-block-end:  0;
  inset-inline:     0.875rem;
  height:           3px;
  background:       var(--red);
  transform:        scaleX(0);
  transform-origin: left;
  transition:       transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover .nav-link        { color: var(--blue); }
.nav-item:hover .nav-link::after { transform: scaleX(1); }

/* Flecha indicadora de submenú */
.nav-link.has-sub::before {
  content:     '▾';
  font-size:   1.25rem;
  margin-left: 0.3125rem;
  color:       #9ca3af;
  display:     inline-block;
  transition:  transform 0.2s;
}

.nav-item:hover .nav-link.has-sub::before {
  transform: rotate(180deg);
  color:     var(--blue);
}

/* 3c. Submenú ----------------------------------- */
.nav-sub {
  display:           none;
  position:          absolute;
  inset-block-start: 4.5rem;
  inset-inline-start: 0;
  min-width:         11.875rem;
  background:        var(--white);
  border-top:        3px solid var(--blue);
  border-bottom:     1px solid var(--border);
  box-shadow:        0 0.5rem 1.5rem rgba(8, 52, 136, 0.12);
  z-index:           9999;
}

.nav-item:hover .nav-sub {
  display:   block;
  animation: subIn 0.18s ease;
}

@keyframes subIn {
  from { opacity: 0; transform: translateY(-0.375rem); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-sub li            { border-bottom: 1px solid var(--surface2); }
.nav-sub li:last-child { border-bottom: none; }

.nav-sub a {
  display:     block;
  padding:     0.6875rem 1.125rem;
  font-family: var(--font-body);
  font-size:   clamp(1rem, 1vw, 1.3rem);
  color:       var(--text-mid);
  white-space: nowrap;
  transition:  background 0.15s, padding-left 0.15s;
}

.nav-sub a:hover {
  background:   #f0f4ff;
  padding-left: 1.5rem;
  color:        var(--blue);
}

/* 3d. Botón contacto del menú ----------------------------------- */
.nav-cta {
  display:        inline-flex;
  align-items:    center;
  gap:            0.5rem;
  flex-shrink:    0;
  margin-left:    1rem;
  background:     var(--red);
  color:          var(--white);
  font-family:    var(--font-body);
  font-size:      var(--fs-button);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space:    nowrap;
  padding:        0 1.25rem;
  height:         2.5rem;
  border-radius:  0.25rem;
  border:         2px solid var(--red);
  position:       relative;
  overflow:       hidden;
  transition:     border-color 0.2s;
}

/* Animación de llenado azul al hacer hover */
.nav-cta::before {
  content:          '';
  position:         absolute;
  inset:            0;
  background:       var(--blue);
  transform:        scaleX(0);
  transform-origin: right;
  transition:       transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index:          0;
}

.nav-cta:hover::before { transform: scaleX(1); }
.nav-cta:hover         { border-color: var(--blue); }

.nav-cta span,
.nav-cta img { position: relative; z-index: 1; }

.nav-cta img {
  width:  auto;
  height: 0.9375rem;
  filter: brightness(0) invert(1);
}

/* 3e. Botón hamburguesa (móvil) ---------------------------- */
.nav-toggle {
  display:         none;
  flex-direction:  column;
  justify-content: center;
  gap:             0.3125rem;
  cursor:          pointer;
  padding:         0.5rem;
  flex-shrink:     0;
  border:          none;
  background:      none;
}

.nav-toggle span {
  display:          block;
  width:            1.375rem;
  height:           2px;
  background:       var(--text-dark);
  transition:       all 0.25s;
  transform-origin: center;
}

/* Estado abierto: convierte las 3 líneas en "X" */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
 *  4. PÁGINA INDEX
 * ============================================================ */

/* 4a. Sección hero (inicio) -------------------------------- */
.inicio-rps { display: none; } /* Solo visible en móvil */

.inicio {
  position:        relative;
  width:           100%;
  height:          100vh;
  overflow:        hidden;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  background:      var(--blue-d);
  font-family:     var(--font-body);
}

/* Fondo animado estilo concreto (cuando no hay vídeo) */
.video-fallback {
  position: absolute;
  inset:    0;
  z-index:  0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 80px),
    linear-gradient(155deg, #041f52 0%, #062470 40%, #041f52 70%, #030f2a 100%);
}

/* Vídeo de fondo */
.video-bg {
  position:   absolute;
  inset:      0;
  width:      100%;
  height:     100%;
  object-fit: cover;
  opacity:    0.38;
  z-index:    0;
  scale:      1.1;
}

/* Degradado que une el hero con la siguiente sección */
.overlay-inicio {
  position:   absolute;
  inset:      0;
  background: linear-gradient(
    to bottom,
    rgba(4,31,82,0.45)  0%,
    rgba(4,31,82,0.15) 45%,
    rgba(4,31,82,0.82) 100%
  );
  z-index: 1;
}

/* Contenido central del hero */
.inicio-content {
  font-family:    var(--font-mono);
  position:       relative;
  text-transform: uppercase;
  margin-bottom:  1.6rem;
  opacity:        0;
  z-index:        2;
  width:          100%;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  padding-bottom: 5.5rem;
  animation:      fadeIn 1s ease forwards 0.3s;
}

.tagline {
  font-family:    var(--font-body);
  font-size:      var(--fs-h3);
  font-weight:    600;
  letter-spacing: 5px;
  color:          var(--muted-w);
}

/* 4b. Marquee animado -------------------------------------- */
.marquee-track {
  width:    100%;
  overflow: hidden;
  padding:  0.3rem 0;
  /* Efecto de desvanecimiento en los extremos */
  mask-image:         linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}

.marquee-inner {
  display:   flex;
  white-space: nowrap;
  animation: marqueeScroll 16s linear infinite;
}

.marquee-inner:hover { animation-play-state: paused; }

.marquee-item {
  font-family:    var(--font-tittle);
  font-weight:    700;
  font-size:      clamp(50px, 8.5vw, 96px);
  letter-spacing: 4px;
  text-transform: uppercase;
  color:          var(--white);
  padding:        0 2.5rem;
  flex-shrink:    0;
  display:        flex;
  align-items:    center;
  gap:            1rem;
}

.marquee-item .highlight { color: var(--red); }

/* Separador vertical rojo entre ítems del marquee */
.sep {
  display:      inline-block;
  width:        3px;
  height:       0.75em;
  background:   var(--red);
  border-radius: 2px;
  flex-shrink:  0;
  margin:       0 0.6rem;
  position:     relative;
  top:          -2px;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Línea divisora decorativa */
.divider {
  width:         70px;
  height:        5px;
  background:    var(--red);
  margin:        1.4rem auto 0;
  border-radius: 2px;
  opacity:       0;
  animation:     fadeIn 0.7s ease forwards 0.6s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Banda de indicadores en la parte inferior del hero */
.cards-inicio {
  position:        absolute;
  bottom:          0;
  left:            0;
  right:           0;
  z-index:         3;
  display:         flex;
  justify-content: center;
  background:      #083588f3;
  border-top:      2px solid var(--red);
  backdrop-filter: blur(8px);
}

.indicator {
  flex:       1;
  max-width:  230px;
  padding:    1rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border-w);
}

.indicator:last-child { border-right: none; }

.ind-number {
  font-family:    var(--font-tittle);
  font-weight:    700;
  font-size:      var(--fs-h2);
  color:          var(--red);
  line-height:    1;
  display:        block;
  letter-spacing: 2px;
}

.ind-label {
  font-family:    var(--font-body);
  font-size:      var(--fs-sm);
  letter-spacing: 2.5px;
  color:          var(--muted-w);
  text-transform: uppercase;
  display:        block;
  margin-top:     5px;
  line-height:    1.4;
}

/* 4c. Sección "Acerca de PEPI" ----------------------------- */
.seccion1 {
  width:                 100%;
  min-height:            100svh;
  display:               grid;
  grid-template-columns: 60% 40%;
  grid-template-rows:    auto auto 1fr;
  background-color:      var(--blue);
}

.texto-sobrepepi {
  margin-top:       3rem;
  grid-column:      1 / 3;
  grid-row:         2;
  display:          flex;
  flex-direction:   column;
  justify-content:  center;
  padding:          var(--space-md) var(--space-md) var(--space-md) clamp(1rem, 2vw, 1.25rem);
  background-color: var(--blue);
  color:            var(--white);
}

.texto-sobrepepi h2 {
  font-size:     var(--fs-h2);
  margin-bottom: var(--space-md);
  font-family:   var(--font-tittle);
}

.texto-sobrepepi p { text-align: justify; }

.texto-sobrepepi2 {
  grid-row:         3;
  grid-column:      1 / 3;
  min-height:       50vh;
  color:            var(--text);
  padding:          var(--space-md);
  text-align:       center;
  background-color: var(--colordefondo);
}

.texto-sobrepepi2 h2 {
  font-size:     var(--fs-h2);
  margin-bottom: var(--space-md);
  margin-right:  40vw;
  text-align:    center;
  font-family:   var(--font-tittle);
}

.texto-sobrepepi2 p {
  font-family:  var(--font-body);
  margin-right: 40vw;
  text-align:   left;
}

/* Imagen recortada con clip-path diagonal */
.imagen-sobrepepi {
  width:               100%;
  min-height:          50vh;
  grid-row:            3;
  grid-column:         2;
  background-image:    url('../img/CAR4.png');
  background-size:     cover;
  background-position: center;
  position:            relative;
  overflow:            hidden;
  clip-path:           polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.imagen-sobrepepi::before {
  content:            '';
  position:           absolute;
  inset-block:        0;
  inset-inline-start: 0;
  width:              10px;
  background:         #0a3d91;
}

/* Degradado de transición entre imagen y texto */
.imagen-sobrepepi::after {
  content:    '';
  position:   absolute;
  inset:      0;
  width:      30%;
  background: linear-gradient(to right, var(--blue), transparent);
}

/* 4d. Sección "Valores" ------------------------------------ */
.valores-pepi {
  padding:    var(--space-2xl) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--blue);
  text-align: center;
}

.valores-pepi h1 {
  color:          var(--white);
  margin-bottom:  var(--space-xl);
  font-size:      var(--fs-h1);
  text-transform: uppercase;
  font-family:    var(--font-tittle);
}

.valores {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(9.375rem, 1fr));
  gap:                   clamp(1rem, 3vw, 1.875rem);
}

.item__valores {
  padding:    clamp(1rem, 3vw, 1.875rem) 1.25rem;
  position:   relative;
  overflow:   hidden;
  transition: transform 0.3s ease;
}

/* Overlay de brillo al hacer hover */
.item__valores::before {
  content:       '';
  position:      absolute;
  inset:         0;
  background:    rgba(255, 255, 255, 0.12);
  opacity:       0;
  border-radius: 0.9375rem;
  transition:    opacity 0.3s ease;
}

.item__valores:hover::before { opacity: 1; }
.item__valores:hover         { transform: translateY(-0.375rem); }

.item__valores img {
  width:      30%;
  height:     auto;
  margin:     0 auto var(--space-sm);
  transition: transform 0.3s ease;
}

.item__valores:hover img { transform: scale(1.08); }

.item__valores h1 {
  color:         var(--white);
  font-size:     var(--fs-h1);
  margin-bottom: 0.625rem;
}

.item__valores p {
  color:     var(--white);
  font-size: var(--fs-base);
}

/* 4e. Sección "Servicios sociales" (intro) ----------------- */
.intro {
  padding:    var(--space-2xl) clamp(1.25rem, 4vw, 2.5rem);
  max-width:  51.25rem;
  margin:     0 auto;
  text-align: center;
}

.intro h1 {
  font-family:    var(--font-tittle);
  font-size:      var(--fs-h1);
  letter-spacing: 0.0625rem;
  color:          var(--blue);
  margin-bottom:  0.875rem;
}

.intro p {
  line-height: 1.8;
  color:       var(--text-mid);
  max-width:   37.5rem;
  margin:      0 auto;
}

/* 4f. Tarjetas de apoyos ----------------------------------- */
.apoyos-section {
  padding:   0 clamp(0.75rem, 2vw, 1.25rem) var(--space-2xl);
  max-width: 61.25rem;
  margin:    0 auto;
}

/* Etiqueta de sección con líneas decorativas */
.section-apoyo {
  font-family:    var(--font-mono);
  font-size:      var(--fs-h4);
  letter-spacing: 0.1875rem;
  text-transform: uppercase;
  color:          var(--muted);
  text-align:     center;
  margin-bottom:  1.75rem;
  display:        flex;
  align-items:    center;
  gap:            0.75rem;
}

.section-apoyo::before,
.section-apoyo::after {
  content:    '';
  flex:       1;
  height:     1px;
  background: var(--sand-d);
}

.cards-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(13.75rem, 1fr));
  gap:                   3px;
}

.apoyo-card {
  background:  var(--white);
  padding:     clamp(1.25rem, 3vw, 2rem) 1.5rem clamp(1rem, 2.5vw, 1.75rem);
  min-width:   19.10rem;
  position:    relative;
  overflow:    hidden;
  cursor:      default;
  transition:  transform 0.18s ease, box-shadow 0.18s ease;
}

/* Línea azul inferior al hacer hover */
.apoyo-card::after {
  content:          '';
  position:         absolute;
  inset-block-end:  0;
  inset-inline:     0;
  height:           3px;
  background:       var(--blue);
  transform:        scaleX(0);
  transform-origin: left;
  transition:       transform 0.22s ease;
}

.apoyo-card:hover        { transform: translateY(-0.25rem); box-shadow: 0 0.5rem 1.5rem rgba(8, 52, 136, 0.1); }
.apoyo-card:hover::after { transform: scaleX(1); }

.card-num {
  font-family:    var(--font-tittle);
  font-size:      3rem;
  color:          var(--colordefondo);
  line-height:    1;
  letter-spacing: 0.0625rem;
}

.card-icon-bar {
  width:         3rem;
  height:        5px;
  margin-bottom: 1rem;
  margin-top:    -2rem;
}

.card-icon-bar.red  { background: var(--red); }
.card-icon-bar.blue { background: var(--blue); }

.apoyo-card h3 {
  font-family:    var(--font-tittle);
  font-size:      var(--fs-h3);
  letter-spacing: 0.03125rem;
  color:          var(--blue-d);
  margin-bottom:  0.625rem;
}

.apoyo-card p {
  font-size:   var(--fs-base);
  line-height: 1.75;
  color:       var(--text-mid);
}

.card-tag {
  display:        inline-block;
  margin-top:     1rem;
  background:     var(--blue-pale);
  color:          var(--blue-d);
  font-family:    var(--font-mono);
  letter-spacing: 0.09375rem;
  text-transform: uppercase;
  padding:        0.25rem 0.625rem;
}

.apoyo-card.red-accent .card-tag {
  background: #fde8eb;
  color:      var(--red-d);
}

.apoyo-logo {
  width:           100%;
  margin-bottom:   1.25rem;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  height:          clamp(4rem, 6vw, 5rem);
}

.apoyo-logo img {
  display:    block;
  width:      auto;
  max-width:  100%;
  height:     100%;
  object-fit: contain;
}

/* 4g. Sección de ubicaciones / mapas ----------------------- */
.seccion2 {
  background:      var(--colordefondo);
  width:           100%;
  display:         flex;
  justify-content: center;
  position:        relative;
  z-index:         6;
}

.plantaslw {
  display:               grid;
  grid-template-columns: 55% 45%;
  grid-template-rows:    auto 1fr;
  width:                 100%;
}

.tit {
  grid-row:        1;
  grid-column:     1 / 3;
  margin-top:      12vh;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             0.3125rem;
  font-family:     var(--font-tittle);
  font-size:       var(--fs-h3);
  letter-spacing:  0.0625rem;
  color:           var(--blue);
  margin-bottom:   0.875rem;
}

.lado-izq {
  grid-column:    1;
  grid-row:       2;
  display:        flex;
  justify-content: center;
  align-items:    flex-start;
  min-height:     60vh;
  position:       relative;
}

.lado-der {
  grid-column:    2;
  grid-row:       2;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            clamp(1rem, 3vw, 1.875rem);
}

/* Texto de ayuda cuando no hay mapa seleccionado */
.lado-izq::before {
  content:  'Selecciona una ubicación para abrir el mapa';
  color:    #888;
  position: absolute;
}

/* Acomodo de cuadros de información */
.cuadro1,
.cuadro4,
.cuadro5 {
  display:        flex;
  flex-direction: column;
  align-items:    center;
}

.cuadro1 { grid-row: 2; grid-column: 2; }
.cuadro4 { grid-row: 3; grid-column: 2; }
.cuadro5 { grid-row: 5; grid-column: 2; }

.cuadro1 h2,
.cuadro4 h2,
.cuadro5 h2 { font-size: var(--fs-h1); margin-bottom: 0.3125rem; text-align: center; }

.cuadro1 h3,
.cuadro4 h3,
.cuadro5 h3 { font-size: var(--fs-sm); margin-bottom: 0.3125rem; text-align: center; }

.cuadro1 p,
.cuadro4 p,
.cuadro5 p  { font-size: var(--fs-base); text-align: center; padding: 10px; }

/* Iframe del mapa */
iframe {
  width:   100%;
  height:  60vh;
  margin:  0;
  border:  none;
  display: block;
}

.mapa { display: none; width: 100%; }

/* Animación de contorno en botones de selección de ubicación */
.draw-border {
  box-shadow: inset 0 0 0 4px var(--blue);
  color:      var(--text);
  transition: color 0.25s 0.083s;
  position:   relative;
}

.draw-border::before,
.draw-border::after {
  border:         0 solid transparent;
  box-sizing:     border-box;
  content:        '';
  pointer-events: none;
  position:       absolute;
  width:          0;
  height:         0;
  bottom:         0;
  right:          0;
}

.draw-border::before { border-bottom-width: 4px; border-left-width: 4px; }
.draw-border::after  { border-top-width: 4px; border-right-width: 4px; }
.draw-border:hover   { color: #727272; }

.draw-border:hover::before,
.draw-border:hover::after {
  border-color: var(--red);
  transition:   border-color 0s, width 0.25s, height 0.25s;
  width:        100%;
  height:       100%;
}

.draw-border:hover::before { transition-delay: 0s, 0s, 0.25s; }
.draw-border:hover::after  { transition-delay: 0s, 0.25s, 0s; }

.btn {
  width:       35vw;
  height:      19vh;
  background:  none;
  border:      none;
  cursor:      pointer;
  line-height: 1;
}


/* ============================================================
 *  5. PÁGINA CALIDAD
 * ============================================================ */

/* 5a. Hero de calidad -------------------------------------- */
.hero__calidad {
  position:   absolute;
  width:      100%;
  height:     100%;
  object-fit: cover;
  filter:     brightness(0.7);
  scale:      1.2;
}

/* Overlay radial oscuro sobre el vídeo */
.overlay-calidad {
  position:   absolute;
  inset:      0;
  background: radial-gradient(circle, rgba(0,0,0,0.4) 64%, rgba(0,0,0,0.6) 78%, #000 98%);
}

.calidad1 {
  width:                 100%;
  height:                100svh;
  display:               grid;
  grid-template-columns: 1fr 1fr;
  align-items:           center;
  padding:               clamp(4rem, 8vw, 6.875rem) clamp(1.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4.375rem);
  position:              relative;
  overflow:              hidden;
}

/* Texto principal del hero */
.hero-text h1 {
  font-family:    var(--font-mono);
  font-size:      clamp(4rem, 8vw, 5rem);
  line-height:    0.92;
  letter-spacing: 0.05em;
  color:          var(--white);
  margin-bottom:  var(--space-md);
  text-transform: uppercase;
}

.hero-text em { color: #e63946; }

.hero-text,
.hero-right { position: relative; z-index: 2; }

/* Eyebrow (etiqueta pequeña sobre el título) */
.hero-eyebrow {
  display:        inline-flex;
  align-items:    center;
  gap:            0.625rem;
  font-family:    var(--font-mono);
  font-size:      var(--fs-base);
  color:          var(--white);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom:  1.25rem;
}

.hero-eyebrow::before {
  content:     '';
  width:       1.75rem;
  height:      5px;
  background:  var(--red);
  flex-shrink: 0;
}

/* Botón de llamada a la acción del hero */
.hero-cta {
  display:        inline-flex;
  align-items:    center;
  gap:            0.625rem;
  background:     var(--red);
  color:          var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding:        0.875rem clamp(1rem, 2.5vw, 1.875rem);
  transition:     background 0.2s, transform 0.15s;
}

.hero-cta:hover { background: var(--red-d); transform: translateY(-2px); }

/* Panel derecho con tarjetas de normas y estadísticas */
.hero-right {
  position:        absolute;
  right:           5%;
  top:             50%;
  transform:       translateY(-50%);
  display:         flex;
  flex-direction:  column;
  align-items:     flex-end;
  gap:             20px;
  z-index:         2;
  min-width:       40svw;
}

.norma-card {
  background:      rgba(10, 35, 66, 0.527);
  backdrop-filter: blur(10px);
  color:           #fff;
  padding:         20px 25px;
  border-radius:   12px;
  min-width:       20svw;
  box-shadow:      0 10px 30px rgba(0,0,0,0.3);
  border:          1px solid rgba(255,255,255,0.1);
  border-left:     5px var(--white) solid;
  transition:      all 0.3s ease;
}

.cardpd:hover,
.stat-box:hover,
.norma-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.4); }

.norma-card h4 { font-size: var(--fs-h4); margin-bottom: 5px; }
.norma-card h3 { font-size: var(--fs-base); opacity: 0.8; }

.stat-row {
  display:        flex;
  flex-direction: column;
  gap:            12px;
}

.stat-box {
  flex:             1;
  background-color: #e2304578;
  padding:          1.125rem 0.75rem;
  text-align:       center;
  min-width:        20svw;
}

.stat-box.blue-box { background: var(--blue); border: 1px solid var(--border-w); }

.stat-box h1 { font-size: var(--fs-h4); color: var(--white); line-height: 1; margin-bottom: 0.25rem; }
.stat-box h2 { font-size: var(--fs-base); color: var(--white); letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.3; }

/* 5b. Sección política de calidad -------------------------- */
#politica {
  width:      var(--w);
  height:     auto;
  background: var(--blue);
  padding:    clamp(4rem, 8vw, 6.875rem) clamp(1.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4.375rem);
}

/* Etiqueta de sección con línea decorativa */
.section-label {
  display:        inline-flex;
  align-items:    center;
  gap:            0.5rem;
  font-family:    var(--font-mono);
  font-size:      var(--fs-base);
  color:          var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom:  0.875rem;
  width:          100%;
}

.section-label::before {
  content:     '';
  width:       1.125rem;
  height:      1px;
  background:  var(--muted);
  flex-shrink: 0;
}

/* Variante blanca para fondos oscuros */
.section-label.w         { color: var(--muted-w); font-size: var(--fs-base); }
.section-label.w::before { background: var(--muted-w); }

.section-title {
  font-family:    var(--font-tittle);
  font-size:      var(--fs-h1);
  letter-spacing: 0.03em;
  line-height:    1;
  margin-bottom:  var(--space-xl);
  color:          var(--white);
}

.section-title.dark { color: var(--text-dark); }

.politica-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   clamp(2rem, 5vw, 4rem);
  align-items:           start;
}

/* Bloque de declaración de política con borde izquierdo rojo */
.politica-statement {
  border-left:   3px solid var(--red);
  padding-left:  1.5rem;
  margin-bottom: var(--space-xl);
}

.politica-statement p {
  font-size:   var(--fs-base);
  line-height: 1.9;
  color:       rgba(255, 255, 255, 0.82);
}

/* Lista de pilares de calidad */
.pilares {
  display:        flex;
  flex-direction: column;
  gap:            2px;
}

.pilar {
  background:  var(--blue-d);
  border:      1px solid var(--border-w);
  padding:     1.125rem 1.375rem;
  display:     flex;
  align-items: flex-start;
  gap:         1rem;
  cursor:      default;
  transition:  border-color 0.2s, transform 0.2s;
}

.pilar:hover { border-color: rgba(226, 48, 68, 0.5); transform: translateX(5px); }

.pilar-num {
  font-family:    var(--font-mono);
  font-size:      var(--fs-base);
  color:          var(--red);
  letter-spacing: 0.1em;
  min-width:      1.75rem;
  padding-top:    3px;
}

.pilar-body h4 { font-size: var(--fs-base); color: var(--white); margin-bottom: 0.25rem; }
.pilar-body p  { font-size: var(--fs-base); color: var(--muted-w); line-height: 1.6; }

/* 5c. Sección laboratorio / ensayos ------------------------ */
#laboratorio {
  padding: clamp(3rem, 7vw, 6.25rem) clamp(1.5rem, 6vw, 5rem);
}

.tit-ensayos { color: var(--white); font-size: var(--fs-h4); }

.ensayos-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap:                   2px;
}

.ensayo-card {
  background:  var(--blue-d);
  border:      1px solid var(--border-w);
  padding:     1.5rem 1.25rem;
  min-width:   15rem;
  position:    relative;
  overflow:    hidden;
  transition:  border-color 0.2s;
}

/* Línea gris inferior al hacer hover */
.ensayo-card::after {
  content:          '';
  position:         absolute;
  inset-block-end:  0;
  inset-inline:     0;
  height:           2px;
  background:       var(--colordefondo);
  transform:        scaleX(0);
  transform-origin: left;
  transition:       transform 0.3s;
}

.ensayo-card:hover        { border-color: rgba(222, 222, 222, 0.3); }
.ensayo-card:hover::after { transform: scaleX(1); }

.ensayo-icon  { width: 2rem; height: 2rem; margin-bottom: 0.875rem; opacity: 0.75; }
.ensayo-card h4 { font-size: var(--fs-sm); color: var(--white); margin-bottom: 0.375rem; }
.ensayo-card p  { font-size: var(--fs-base); color: var(--muted-w); line-height: 1.6; }

.ensayo-norma {
  display:        inline-block;
  margin-top:     0.75rem;
  font-family:    var(--font-mono);
  font-size:      var(--fs-sm);
  color:          var(--colordefondo);
  letter-spacing: 0.1em;
  opacity:        0.7;
}

/* 5d. Strip de cotización ---------------------------------- */
.strip {
  background:      var(--red);
  padding:         clamp(2rem, 5vw, 4rem) clamp(1.5rem, 6vw, 5rem);
  display:         flex;
  flex-wrap:       wrap;
  align-items:     center;
  justify-content: space-between;
  gap:             var(--space-xl);
  width:           100%;
}

.strip-text h2 {
  font-family:    var(--font-tittle);
  font-size:      var(--fs-h1);
  letter-spacing: 0.04em;
  line-height:    1;
  color:          var(--white);
  margin-bottom:  0.625rem;
}

.strip-text p {
  font-size:  var(--fs-base);
  color:      rgba(255, 255, 255, 0.75);
  max-width:  31.25rem;
}

.strip-link {
  font-family:    var(--font-mono);
  flex-shrink:    0;
  display:        inline-flex;
  align-items:    center;
  gap:            0.625rem;
  background:     var(--white);
  color:          var(--red);
  font-size:      var(--fs-base);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding:        0.875rem 1.75rem;
  border:         2px solid var(--white);
  white-space:    nowrap;
  font-weight:    500;
  transition:     background 0.2s, color 0.2s;
}

.strip-link:hover { background: transparent; color: var(--white); }


/* ============================================================
 *  6. PÁGINA PRODUCTOS
 * ============================================================ */

/* 6a. Hero de productos ------------------------------------ */
.hero-productos {
  position: relative;
  height:   100svh;
  overflow: hidden;
  color:    var(--white);
  padding:  clamp(4rem, 8vw, 6.875rem) clamp(1.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4.375rem);
}

/* Vídeo de fondo */
.hero__videopd {
  position:   absolute;
  width:      100%;
  height:     100%;
  object-fit: cover;
  filter:     brightness(0.7);
  scale:      1.4;
}

/* Overlay degradado lateral */
.hero__overlaypd {
  position:   absolute;
  inset:      0;
  background: linear-gradient(
    90deg,
    rgba(0, 10, 154, 0.887)  0%,
    rgba(0, 37, 131, 0.199) 40%,
    rgba(0, 0, 0, 0.2)      100%
  );
}

/* Contenido animado */
.hero__contentpd {
  position:  relative;
  z-index:   2;
  max-width: 600px;
  padding:   var(--space-2xl);
  animation: fadeUp 1s ease;
  height:    100svh;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Título del hero */
.hero__titlepd {
  font-family:    var(--font-mono);
  font-size:      clamp(4rem, 8vw, 5rem);
  line-height:    0.92;
  letter-spacing: 0.05em;
  color:          var(--white);
  margin-bottom:  var(--space-md);
  text-transform: uppercase;
}

.hero__titlepd em { color: #e63946; }

.hero__descpd {
  font-size:     var(--fs-base);
  opacity:       0.85;
  line-height:   1.6;
  margin-bottom: 2rem;
}

/* Botón de cotización */
.hero__actionspd {
  flex-shrink:    0;
  display:        inline-flex;
  align-items:    center;
  gap:            0.625rem;
  background:     var(--red);
  color:          var(--white);
  font-size:      var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding:        0.875rem 1.75rem;
  border:         2px solid var(--white);
  white-space:    nowrap;
  font-weight:    500;
  transition:     background 0.2s, color 0.2s;
}

.hero__actionspd:hover { background: transparent; color: var(--white); }
.hero__actionspd a     { color: white; }

/* Panel de tarjetas flotantes a la derecha */
.hero__cardspd {
  position:        absolute;
  right:           5%;
  top:             50%;
  transform:       translateY(-50%);
  display:         flex;
  flex-direction:  column;
  align-items:     flex-end;
  gap:             20px;
  z-index:         2;
  min-width:       35svw;
  scale:           1.2;
}

/* 6b. Sección de calidad del producto ---------------------- */
.calidad-inicio { display: none; } /* Solo visible en móvil */

.quality {
  background:            var(--sand-l);
  display:               grid;
  grid-template-columns: 1fr 1fr;
  width:                 100%;
}

.quality-img {
  grid-column: 1;
  grid-row:    1;
  overflow:    hidden;
}

.quality-img img { width: 100%; height: 100%; object-fit: cover; }

.quality-text {
  padding:         clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  display:         flex;
  flex-direction:  column;
  justify-content: center;
  background:      var(--sand-l);
}

.quality-text h2 {
  font-family:    var(--font-tittle);
  font-size:      var(--fs-h2);
  letter-spacing: 0.05em;
  line-height:    1.05;
  color:          var(--blue-d);
  margin-bottom:  1.25rem;
}

.quality-text h2 span { color: var(--red); }

.quality-text p { font-size: var(--fs-h4); color: var(--text-mid); line-height: 1.8; }

.quality-pills { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.75rem; }

.pill {
  background:     var(--white);
  border:         1px solid var(--sand-d);
  font-family:    var(--font-mono);
  font-size:      var(--fs-base);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--blue);
  padding:        0.5rem 1rem;
  border-radius:  1.25rem;
  white-space:    nowrap;
}

/* 6c. Sección de concretos --------------------------------- */
.concreto-section {
  background: var(--blue-d);
  width:      100%;
  padding:    var(--space-xl) clamp(1rem, 3vw, 3rem);
}

.cp-header {
  height:     10svh;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.cp-header p {
  font-size:      var(--fs-base);
  letter-spacing: 3px;
  text-transform: uppercase;
  color:          var(--sand-d);
  margin-bottom:  4px;
}

.cp-header h1 {
  font-size:      var(--fs-h2);
  text-transform: uppercase;
  letter-spacing: 1px;
  color:          var(--white);
  line-height:    1;
}

.cp-header h1 span { color: var(--colorrojo1); }

.cp-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   12px;
  margin-bottom:         12px;
}

.cp-card {
  background:    var(--colordefondo);
  border:        0.5px solid #ddd;
  border-radius: 12px;
  overflow:      hidden;
}

.cp-card-header {
  padding:       var(--space-md);
  border-bottom: 10px solid var(--blue-d);
  display:       flex;
  align-items:   center;
  gap:           10px;
}

.cp-card-icon {
  width:         50px;
  height:        50px;
  border-radius: 6px;
  color:         var(--colordefondo);
  display:       flex;
  align-items:   center;
  justify-content: center;
  flex-shrink:   0;
}

.cp-icon-blue { background: var(--blue-d); }
.cp-icon-red  { background: var(--colorrojo1); }

.cp-card-title {
  font-size:      var(--fs-h3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color:          var(--text);
  line-height:    1.2;
}

.cp-card-body { padding: var(--space-lg); }

.cp-tag-row  { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.cp-tag {
  font-size:  var(--fs-button);
  padding:    3px 8px;
  border-radius: 4px;
}

.cp-tag-fc { background: #EBF0FA; color: #0A2463; }

.cp-divider { height: 0.5px; margin: 6px 0; }

.cp-row {
  display:     flex;
  align-items: flex-start;
  gap:         6px;
  margin-bottom: 6px;
}

.cp-dot {
  width:         10px;
  height:        10px;
  border-radius: 50%;
  background:    var(--colorrojo1);
  margin-top:    6px;
  flex-shrink:   0;
}

.cp-row-text { font-size: var(--fs-base); color: var(--text); line-height: 1.5; }

/* Tarjeta especial de concretos */
.cp-special-card {
  background:    var(--colordefondo);
  border-radius: 12px;
  overflow:      hidden;
  margin-bottom: 12px;
}

.cp-special-header {
  background: var(--colorrojo1);
  padding:    var(--space-lg);
}

.cp-special-header h1 {
  font-size:      var(--fs-h3);
  text-transform: uppercase;
  letter-spacing: 2px;
  color:          var(--white);
}

.cp-special-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   8px;
  padding:               10px;
}

/* Ítems de la grilla especial con efecto hover de overlay */
.cp-special-item {
  display:    flex;
  align-items: center;
  border-radius: 6px;
  border:     0.5px solid #eee;
  background: #fafafa;
  width:      auto;
  padding:    var(--space-sm);
  position:   relative;
  overflow:   hidden;
  cursor:     pointer;
  min-height: 64px;
  height:     10svh;
  will-change: transform;
}

.cp-special-item::after {
  content:    '';
  position:   absolute;
  inset:      0;
  background: var(--blue-d);
  opacity:    0;
  transition: opacity 0.35s ease;
}

.cp-special-item:hover::after { opacity: 1; }

.cp-item-inner {
  position:   relative;
  z-index:    2;
  display:    flex;
  align-items: flex-start;
  gap:        8px;
  padding:    12px 12px 14px;
  transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
}

.cp-special-item:hover .cp-item-inner { transform: translateY(-6px); }

.cp-check {
  width:         20px;
  height:        20px;
  border-radius: 3px;
  background:    var(--colorrojo1);
  display:       flex;
  align-items:   center;
  justify-content: center;
  flex-shrink:   0;
  margin-right:  2rem;
}

.cp-special-label { font-size: var(--fs-button); color: var(--text); }

/* Descripción emergente al hacer hover */
.cp-special-desc {
  position:   absolute;
  bottom:     0;
  left:       0;
  right:      0;
  z-index:    3;
  padding:    8px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
  transform:  translateY(100%);
  opacity:    0;
  transition: transform 0.35s cubic-bezier(.4, 0, .2, 1), opacity 0.35s ease;
}

.cp-special-item:hover .cp-special-desc { transform: translateY(0); opacity: 1; }

.cp-special-desc p {
  font-size:   var(--fs-sm);
  color:       rgba(255, 255, 255, 0.7);
  line-height: 1.45;
  font-weight: 500;
}

/* Sección de aditivos */
.cp-aditivos-card {
  background:    var(--colordefondo);
  border:        0.5px solid #ddd;
  border-radius: 12px;
  overflow:      hidden;
}

.cp-aditivos-header { background: var(--accent); padding: 12px 16px; }

.cp-aditivos-title {
  font-size:      var(--fs-h3);
  text-transform: uppercase;
  letter-spacing: 2px;
  color:          #fff;
}

.cp-aditivos-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   10px;
  padding:               var(--space-sm);
}

.cp-aditivo-item {
  display:     flex;
  align-items: center;
  gap:         8px;
  padding:     8px 10px;
  border-radius: 6px;
  border:      0.5px solid #eee;
  background:  #fafafa;
}

.cp-check-blue {
  width:         20px;
  height:        20px;
  border-radius: 3px;
  background:    var(--blue-d);
  display:       flex;
  align-items:   center;
  justify-content: center;
  flex-shrink:   0;
}

.cp-aditivo-label { font-size: var(--fs-base); color: #1a1a1a; }

.demo-note {
  margin-top:     1.25rem;
  font-size:      var(--fs-button);
  color:          var(--text);
  text-align:     center;
  letter-spacing: 0.05em;
}

/* 6d. Carrusel de block ------------------------------------ */
.principal,
.contenedor-principal,
.slide {
  width:  100%;
  height: 100svh;
}

.contenedor-principal {
  position:   relative;
  overflow:   hidden;
  background: #0a0a0a;
}

/* Pista del carrusel con transición fluida */
.track {
  display:    flex;
  height:     100%;
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.18, 1);
}

.slide {
  min-width:   100%;
  position:    relative;
  overflow:    hidden;
  font-family: var(--font-body);
}

.slide-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.82); }

.overlay-index {
  position:   absolute;
  inset:      0;
  background: linear-gradient(180deg, transparent 70%, var(--blue) 100%);
}

.slide-content {
  position:        absolute;
  inset-block-end: 0;
  inset-inline:    0;
  padding:         clamp(1rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem);
  color:           var(--white);
}

/* Badge rojo sobre el título del slide */
.badge {
  display:        inline-flex;
  align-items:    center;
  gap:            0;
  background:     var(--red);
  color:          var(--white);
  letter-spacing: 0.5rem;
  border-radius:  0.25rem;
  margin-bottom:  0.625rem;
  padding:        5px 10px;
  text-transform: uppercase;
  font-family:    var(--font-mono);
  font-size:      var(--fs-sm);
}

.slide-title { font-size: var(--fs-h1); line-height: 1.2; margin-bottom: 0.375rem; color: var(--white); }
.slide-sub   { font-size: var(--fs-h3); color: rgba(255, 255, 255, 0.72); line-height: 1.5; }

/* Botones de control anterior / siguiente */
.ctrl {
  position:        absolute;
  top:             50%;
  transform:       translateY(-50%);
  background:      rgba(255, 255, 255, 0.18);
  border:          1.5px solid var(--colordefondo);
  color:           var(--white);
  width:           2.875rem;
  height:          2.875rem;
  border-radius:   50%;
  cursor:          pointer;
  display:         flex;
  align-items:     center;
  justify-content: center;
  z-index:         8;
  font-size:       1.8rem;
  font-weight:     700;
  line-height:     1;
  transition:      background 0.2s;
}

.ctrl:hover { background: rgba(255, 255, 255, 0.32); }
.ctrl-prev  { left: 1.125rem; }
.ctrl-next  { right: 1.125rem; }

/* Indicadores de posición (puntos) */
.dots {
  position:  absolute;
  bottom:    1.75rem;
  left:      50%;
  transform: translateX(-50%);
  display:   flex;
  gap:       0.875rem;
  z-index:   8;
}

.dot {
  width:         0.875rem;
  height:        0.875rem;
  border-radius: 50%;
  background:    rgba(255, 255, 255, 0.35);
  border:        2px solid rgba(255, 255, 255, 0.7);
  cursor:        pointer;
  padding:       0;
  transition:    all 0.3s ease;
}

.dot:hover  { background: rgba(255, 255, 255, 0.65); transform: scale(1.2); }

.dot.active {
  background:   var(--red);
  border-color: var(--red);
  transform:    scale(1.35);
  box-shadow:   0 0 0 3px rgba(226, 48, 68, 0.35);
}

/* Contador de slides */
.counter {
  position:       absolute;
  top:            20%;
  right:          1.25rem;
  background:     var(--blue);
  color:          var(--white);
  font-size:      var(--fs-base);
  padding:        0.25rem 0.625rem;
  border-radius:  1.25rem;
  z-index:        8;
  letter-spacing: 0.05em;
}

/* Barra de progreso roja en la parte inferior */
.progress {
  position:   absolute;
  bottom:     0;
  left:       0;
  height:     3px;
  background: var(--red);
  transition: width 0.65s ease;
  z-index:    8;
}

/* 6e. Tabla de productos / tabs ---------------------------- */
.block-section {
  background: var(--white);
  padding:    clamp(1.5rem, 4vw, 3rem);
  width:      100%;
}

.container-block { width: 90svw; height: auto; }

/* Pestañas de navegación de productos */
.tabs {
  display:       flex;
  gap:           0;
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--colordefondo);
  overflow-x:    auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  font-family:    var(--font-tittle);
  font-size:      var(--fs-base);
  letter-spacing: 0.06em;
  padding:        1rem clamp(1rem, 3vw, 2.25rem);
  background:     none;
  border:         none;
  color:          var(--muted);
  cursor:         pointer;
  position:       relative;
  white-space:    nowrap;
  transition:     color 0.2s;
}

.tab-btn::after {
  content:          '';
  position:         absolute;
  bottom:           -2px;
  inset-inline:     0;
  height:           3px;
  background:       var(--red);
  transform:        scaleX(0);
  transition:       transform 0.25s;
}

.tab-btn.active        { color: var(--blue-d); }
.tab-btn.active::after { transform: scaleX(1); }

.tab-content        { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* Tabla de especificaciones de productos */
.product-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }

.product-table th {
  font-family:    var(--font-mono);
  font-size:      var(--fs-base);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--muted);
  padding:        0.875rem 1.5rem;
  text-align:     left;
  border-bottom:  2px solid var(--colordefondo);
  background:     var(--sand-l);
}

.product-table td {
  padding:        1.125rem 1.5rem;
  border-bottom:  1px solid var(--colordefondo);
  color:          var(--text-mid);
  vertical-align: middle;
  font-size:      var(--fs-base);
}

.product-table tr:last-child td { border-bottom: none; }
.product-table tr:hover td      { background: var(--blue-pale); }

.product-table .medida {
  font-family:    var(--font-tittle);
  font-size:      var(--fs-h3);
  letter-spacing: 0.04em;
  color:          var(--blue);
}

/* Badges de tipo de block */
.badge-hueco  { background: var(--blue-pale); color: var(--blue-d); }
.badge-mitad  { background: rgba(64, 212, 245, 0.726); color: var(--blue-d); }
.badge-solido { background: #fde8ea; color: var(--red-d); }

/* Etiquetas de resistencia */
.resist-tag {
  display:        inline-flex;
  align-items:    center;
  gap:            0.375rem;
  background:     var(--sand-l);
  padding:        0.3125rem 0.75rem;
  border-radius:  1.25rem;
  font-size:      var(--fs-sm);
  color:          var(--text-mid);
  font-family:    var(--font-mono);
  margin:         2px;
}

.resist-dot {
  width:         7px;
  height:        7px;
  border-radius: 50%;
  flex-shrink:   0;
  background:    var(--muted);
}


/* ============================================================
 *  7. PÁGINA CONTACTO
 * ============================================================ */

/* 7a. Sección WhatsApp ------------------------------------- */
.wa-section {
  padding:     2rem 0;
  font-family: var(--font-body);
}

.wa-header {
  text-align:   center;
  margin-bottom: 2.5rem;
  margin-top:    4rem;
}

.wa-header h2 {
  font-size:   var(--fs-h3);
  font-weight: 600;
  color:       var(--text);
  margin:      0 0 6px;
}

.wa-header p { font-size: var(--fs-base); color: var(--muted); margin: 0; }

/* Badge de estado activo */
.wa-badge {
  display:       inline-flex;
  align-items:   center;
  gap:           6px;
  background:    #e7f7ee;
  color:         #1a7a3e;
  font-size:     var(--fs-base);
  font-weight:   800;
  padding:       4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.wa-badge-dot {
  width:         7px;
  height:        7px;
  border-radius: 50%;
  background:    #25d366;
  animation:     pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.wa-cities {
  display:         flex;
  justify-content: center;
  gap:             20px;
}

.wa-city-block {
  background:    var(--muted-w);
  border:        0.5px solid var(--border);
  overflow:      hidden;
  border-radius: 5%;
  width:         30vw;
}

.wa-city-header {
  display:      flex;
  align-items:  center;
  gap:          10px;
  padding:      14px 18px;
  border-bottom: 0.5px solid var(--border);
}

.wa-city-icon {
  width:           34px;
  height:          34px;
  border-radius:   50%;
  background:      #25d366;
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}

.wa-city-icon svg { width: 18px; height: 18px; fill: #fff; }

.wa-city-name  { font-size: var(--fs-button); font-weight: 500; color: var(--text); margin: 0; }
.wa-city-count { font-size: var(--fs-button); color: var(--muted); margin: 0; }

.wa-list {
  padding:        10px 12px;
  display:        flex;
  flex-direction: column;
  gap:            6px;
}

.wa-card {
  display:     flex;
  align-items: center;
  gap:         12px;
  padding:     10px 12px;
  border-radius: var(--border-radius-md);
  border:      0.5px solid var(--border);
  text-decoration: none;
  transition:  background 0.15s, border-color 0.15s;
  background:  var(--white);
}

.wa-card:hover { background: #f0faf4; border-color: #a3ddb9; }

.wa-avatar {
  width:         36px;
  height:        36px;
  border-radius: 50%;
  background:    #e7f7ee;
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-size:     12px;
  font-weight:   500;
  color:         #1a7a3e;
  flex-shrink:   0;
}

.wa-info   { flex: 1; }
.wa-name   { font-size: var(--fs-button); font-weight: 500; color: var(--text); margin: 0 0 1px; }
.wa-number { font-size: var(--fs-sm); color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }

.wa-arrow  { width: 20px; height: 20px; color: #25d366; flex-shrink: 0; }

.wa-footer { text-align: center; margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--text); }

/* 7b. Formulario de cotización ----------------------------- */
.main-cotizacion {
  max-width:      var(--w);
  margin:         0 auto;
  padding:        var(--space-lg) var(--space-md) var(--space-3xl);
  display:        flex;
  flex-direction: column;
  gap:            var(--space-md);
}

/* Tarjeta base del formulario */
.card {
  background:    var(--white);
  border-radius: var(--radius);
  border:        1px solid var(--sand-d);
  overflow:      hidden;
  box-shadow:    0 2px 12px rgba(8,52,136,.07);
}

/* Cabecera de tarjeta */
.card-hd {
  background: var(--blue);
  padding:    var(--space-sm) var(--space-md);
  display:    flex;
  align-items: center;
  gap:        var(--space-sm);
}

.card-hd-ico {
  width:           32px;
  height:          32px;
  background:      rgba(255,255,255,.12);
  border-radius:   var(--radius-sm);
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}

.card-hd-title { font-family: var(--font-tittle); font-size: var(--fs-base); color: var(--white); letter-spacing: 1px; line-height: 1; }
.card-hd-sub   { font-size: var(--fs-sm); color: var(--muted-w); margin-top: 2px; font-weight: 400; }

.card-body { padding: var(--space-md); border-bottom: 5px solid var(--accent); }

/* Grid de campos del formulario */
.quote-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   var(--space-sm) var(--space-md);
}

.qfield { display: flex; flex-direction: column; gap: 5px; }

.qlabel {
  font-size:      var(--fs-sm);
  font-weight:    600;
  color:          var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display:        flex;
  align-items:    center;
  gap:            4px;
}

.req { color: var(--red); } /* Indicador de campo requerido */

.qinput {
  height:        70px;
  padding:       0 12px;
  border:        1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family:   var(--font-body);
  font-size:     var(--fs-sm);
  color:         var(--text-dark);
  background:    var(--white);
  outline:       none;
  width:         100%;
  transition:    border-color 0.2s, box-shadow 0.2s;
}

.qinput:focus { border-color: var(--blue-l); box-shadow: 0 0 0 3px rgba(26,79,196,.12); }
.qinput.err   { border-color: var(--error); box-shadow: 0 0 0 3px rgba(229,53,53,.1); }
.qinput.ok    { border-color: var(--success); }

/* Selector de ciudades tipo radio visual */
.city-row { display: flex; gap: 8px; height: 44px; }

.city-opt { flex: 1; position: relative; }

.city-opt input { position: absolute; opacity: 0; width: 0; height: 0; }

.city-opt label {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             7px;
  height:          100%;
  border:          1.5px solid var(--border);
  border-radius:   var(--radius-sm);
  background:      var(--surface2);
  cursor:          pointer;
  font-weight:     600;
  font-size:       var(--fs-sm);
  color:           var(--muted);
  transition:      all 0.2s;
  user-select:     none;
}

.city-opt input:checked + label {
  border-color: var(--blue);
  background:   var(--blue-pale);
  color:        var(--blue);
  box-shadow:   0 0 0 3px rgba(8,52,136,.12);
}

.city-opt label:hover { border-color: var(--blue-l); background: var(--blue-pale); }

.cdot {
  width:         8px;
  height:        8px;
  border-radius: 50%;
  background:    var(--border);
  transition:    background 0.2s;
}

.city-opt input:checked + label .cdot { background: var(--blue); }

.qerr {
  font-size:   var(--fs-sm);
  color:       var(--error);
  min-height:  14px;
  font-weight: 500;
  font-family: var(--font-mono);
}

/* Layout de la calculadora */
.calc-layout {
  display:               grid;
  grid-template-columns: 1fr 340px;
  gap:                   var(--space-md);
  align-items:           start;
}

.calc-left { display: flex; flex-direction: column; gap: var(--space-sm); }

/* Tarjeta de forma geométrica */
.form-card {
  background:    var(--white);
  border-radius: var(--radius);
  border:        1px solid var(--sand-d);
  overflow:      hidden;
  box-shadow:    0 2px 12px rgba(8,52,136,.06);
  animation:     slideUp 0.3s ease both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-card-hd {
  display:     flex;
  align-items: center;
  gap:         10px;
  padding:     12px var(--space-md);
  border-bottom: 1px solid var(--sand-l);
  cursor:      pointer;
  user-select: none;
  background:  var(--surface2);
}

.fbadge {
  font-family:     var(--font-tittle);
  font-size:       var(--fs-sm);
  background:      var(--blue);
  color:           var(--white);
  width:           28px;
  height:          28px;
  border-radius:   var(--radius-sm);
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
  letter-spacing:  0.5px;
}

.ftitle { font-size: var(--fs-base); color: var(--blue-d); flex: 1; letter-spacing: 1px; }

/* Badge de forma seleccionada */
.fshape-badge {
  display:       inline-flex;
  align-items:   center;
  gap:           4px;
  background:    var(--blue-pale);
  color:         var(--blue);
  border:        1px solid rgba(8,52,136,.2);
  border-radius: 20px;
  font-family:   var(--font-body);
  font-size:     var(--fs-button);
  font-weight:   600;
  padding:       2px 9px;
  margin-left:   6px;
}

.fshape-badge::before {
  content:       '';
  width:         5px;
  height:        5px;
  border-radius: 50%;
  background:    var(--blue-l);
}

/* Botón de eliminar elemento */
.rem-btn {
  background:    none;
  border:        1.5px solid var(--border);
  color:         var(--muted);
  cursor:        pointer;
  width:         26px;
  height:        26px;
  border-radius: var(--radius-sm);
  display:       flex;
  align-items:   center;
  justify-content: center;
  transition:    all 0.2s;
}

.rem-btn:hover { background: #FEF2F2; border-color: var(--error); color: var(--error); }

/* Botón de colapsar/expandir */
.tgl-btn {
  background:    none;
  border:        none;
  cursor:        pointer;
  color:         var(--muted);
  width:         26px;
  height:        26px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition:    all 0.2s;
}

.tgl-btn svg                   { transition: transform 0.3s; }
.form-card.collapsed .tgl-btn svg { transform: rotate(180deg); }
.form-card-body                { padding: var(--space-md); }
.form-card.collapsed .form-card-body { display: none; }

/* Selector de forma geométrica */
.shape-scroll {
  overflow-x:    auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--sand-d) transparent;
}

.shape-list { display: flex; gap: 8px; width: max-content; }

.shape-btn {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            6px;
  padding:        10px 13px;
  border:         1.5px solid var(--border);
  background:     var(--surface2);
  border-radius:  var(--radius-sm);
  cursor:         pointer;
  transition:     all 0.2s;
  min-width:      90px;
  outline:        none;
  margin-top:     1vh;
}

.shape-btn:hover,
.shape-btn.active { border-color: var(--blue); background: var(--blue-pale); transform: translateY(-2px); }

.shape-btn.active { box-shadow: 0 0 0 3px rgba(8,52,136,.14); }

.s-icon { width: 44px; height: 36px; display: flex; align-items: center; justify-content: center; }
.s-icon svg { width: 100%; height: 100%; }

.s-label {
  font-size:   var(--fs-sm);
  font-weight: 600;
  color:       var(--muted);
  text-align:  center;
  line-height: 1.2;
}

.shape-btn.active .s-label { color: var(--blue); }

/* Separadores de sección dentro del formulario */
.sec-div {
  font-family:    var(--font-tittle);
  font-size:      var(--fs-sm);
  color:          var(--muted);
  letter-spacing: 2px;
  display:        flex;
  align-items:    center;
  gap:            10px;
  margin:         var(--space-md) 0 var(--space-sm);
}

.sec-div::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Grid de campos de dimensiones */
.fields-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   var(--space-sm);
  animation:             fadeUp 0.25s ease;
}

.field-group { display: flex; flex-direction: column; gap: 5px; }

.field-label {
  font-size:      var(--fs-button);
  font-weight:    600;
  color:          var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display:        flex;
  align-items:    center;
  gap:            5px;
}

/* Ícono de tooltip */
.tip-ico {
  width:         13px;
  height:        13px;
  background:    var(--sand-d);
  border-radius: 50%;
  color:         var(--muted);
  font-size:     0.55rem;
  display:       flex;
  align-items:   center;
  justify-content: center;
  cursor:        help;
  position:      relative;
  font-family:   var(--font-body);
}

.tip-ico:hover::after {
  content:       attr(data-tip);
  position:      absolute;
  bottom:        calc(100% + 5px);
  left:          50%;
  transform:     translateX(-50%);
  background:    var(--blue-d);
  color:         var(--white);
  font-size:     0.68rem;
  font-weight:   400;
  padding:       4px 9px;
  border-radius: var(--radius-sm);
  white-space:   nowrap;
  z-index:       20;
  pointer-events: none;
  font-family:   var(--font-body);
}

.inp-row { display: flex; gap: 6px; }

/* Input de dimensión */
.f-input {
  flex:          1;
  height:        42px;
  padding:       0 11px;
  border:        1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family:   var(--font-mono);
  font-size:     var(--fs-sm);
  color:         var(--text-dark);
  background:    var(--white);
  outline:       none;
  transition:    all 0.2s;
}

.f-input:focus { border-color: var(--blue-l); box-shadow: 0 0 0 3px rgba(26,79,196,.12); }
.f-input.err   { border-color: var(--error); box-shadow: 0 0 0 3px rgba(229,53,53,.1); }
.f-input.ok    { border-color: var(--success); }

/* Selector de unidades */
.u-sel {
  height:              42px;
  padding:             0 8px;
  min-width:           64px;
  border:              1.5px solid var(--border);
  border-radius:       var(--radius-sm);
  font-family:         var(--font-mono);
  font-size:           var(--fs-sm);
  color:               var(--blue);
  font-weight:         500;
  background:          var(--surface2);
  outline:             none;
  cursor:              pointer;
  appearance:          none;
  background-image:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%23083488' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:   no-repeat;
  background-position: right 7px center;
  padding-right:       22px;
  transition:          border-color 0.2s;
}

.u-sel:focus { border-color: var(--blue-l); }

.f-err { font-size: var(--fs-sm); color: var(--error); min-height: 13px; font-weight: 500; font-family: var(--font-mono); }

/* Píldora de volumen calculado */
.vol-pill {
  display:     flex;
  align-items: center;
  gap:         10px;
  background:  var(--blue-pale);
  border:      1px solid rgba(8,52,136,.15);
  border-radius: var(--radius-sm);
  padding:     8px 13px;
  margin-top:  4px;
}

.vp-lbl { font-size: var(--fs-sm); color: var(--blue); font-weight: 500; }

.vp-val {
  font-family:    var(--font-body);
  font-size:      var(--fs-base);
  color:          var(--blue-d);
  margin-left:    auto;
  letter-spacing: 0.5px;
  font-weight: 800;
}

/* Selector de tipo de roca */
.rock-wrap { margin-top: var(--space-md); }

.rock-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.rock-opt { position: relative; cursor: pointer; }

.rock-opt input { position: absolute; opacity: 0; width: 0; height: 0; }

.rock-opt-body {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            7px;
  padding:        11px 9px;
  border:         1.5px solid var(--border);
  border-radius:  var(--radius-sm);
  background:     var(--surface2);
  cursor:         pointer;
  transition:     all 0.2s;
  user-select:    none;
}

.rock-opt input:checked ~ .rock-opt-body {
  border-color: var(--blue);
  background:   var(--blue-pale);
  box-shadow:   0 0 0 3px rgba(8,52,136,.12);
}

.rock-opt-body:hover { border-color: var(--blue-l); background: var(--blue-pale); }

.rock-diag  { width: 100%; height: 42px; }

.rock-title { font-family: var(--font-tittle); font-size: var(--fs-sm); color: var(--blue-d); letter-spacing: 0.5px; }

.rock-desc  { font-size: var(--fs-sm); color: var(--muted); }

.rock-opt input:checked ~ .rock-opt-body .rock-title { color: var(--blue); }

/* Radio visual de selección */
.rcheck {
  width:         15px;
  height:        15px;
  border-radius: 50%;
  border:        2px solid var(--sand-d);
  background:    var(--white);
  display:       flex;
  align-items:   center;
  justify-content: center;
  transition:    all 0.2s;
}

.rock-opt input:checked ~ .rock-opt-body .rcheck { border-color: var(--blue); background: var(--blue); }

.rcheck::after {
  content:       '';
  width:         5px;
  height:        5px;
  border-radius: 50%;
  background:    var(--white);
  opacity:       0;
  transition:    opacity 0.2s;
}

.rock-opt input:checked ~ .rock-opt-body .rcheck::after { opacity: 1; }

/* Barra de composición de roca */
.rock-bar {
  display:       flex;
  height:        22px;
  border-radius: var(--radius-sm);
  overflow:      hidden;
  margin-top:    10px;
  background:    var(--sand-d);
}

.rb-c {
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       var(--fs-sm);
  font-weight:     600;
  color:           var(--white);
  background:      var(--blue);
  transition:      width 0.4s ease;
  white-space:     nowrap;
  gap:             3px;
  font-family:     var(--font-mono);
}

.rb-r {
  flex:            1;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       var(--fs-sm);
  font-weight:     600;
  color:           var(--muted);
  white-space:     nowrap;
  gap:             3px;
  font-family:     var(--font-mono);
}

/* Botón para agregar nueva forma */
.add-btn {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  background:      none;
  border:          2px dashed var(--sand-d);
  border-radius:   var(--radius);
  padding:         14px;
  width:           100%;
  color:           var(--red);
  font-family:     var(--font-tittle);
  font-size:       var(--fs-base);
  letter-spacing:  1.5px;
  cursor:          pointer;
  transition:      all 0.2s;
}

.add-btn:hover { background: rgba(226,48,68,.05); border-color: var(--red); transform: scale(1.005); }

/* 7c. Panel de resumen del pedido -------------------------- */
.right-panel { position: sticky; top: 76px; }

.order-card {
  background:    var(--blue-d);
  border-radius: var(--radius);
  overflow:      hidden;
  box-shadow:    0 8px 36px rgba(4,31,82,.35);
}

.order-hd {
  padding:      var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border-w);
  display:      flex;
  align-items:  center;
  gap:          10px;
}

.order-t { font-size: var(--fs-base); color: var(--white); letter-spacing: 1.5px; line-height: 1; flex: 1; }
.order-s { font-size: var(--fs-sm); color: var(--muted-w); margin-top: 2px; }

.order-body { padding: var(--space-sm) var(--space-md); }

.order-row {
  display:     flex;
  align-items: center;
  gap:         9px;
  padding:     9px 0;
  border-bottom: 1px solid var(--border-w);
}

.order-row:last-child { border-bottom: none; }

.o-ico {
  width:           30px;
  height:          30px;
  background:      rgba(255,255,255,.1);
  border-radius:   var(--radius-sm);
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}

.o-info   { flex: 1; }
.o-name   { font-size: var(--fs-sm); font-weight: 600; color: rgba(255,255,255,.9); }
.o-detail { font-size: var(--fs-sm); color: var(--muted-w); margin-top: 1px; font-family: var(--font-mono); }
.o-vol    { font-size: var(--fs-sm); color: var(--white); white-space: nowrap; letter-spacing: 0.5px; }
.o-sep    { height: 1px; background: var(--border-w); margin: 2px 0; }

/* Fila de resistencia */
.res-row { display: flex; align-items: center; gap: 9px; padding: 11px 0 7px; }

.res-lbl { font-size: var(--fs-base); color: var(--muted-w); flex: 1; }

.res-wrap {
  display:       flex;
  align-items:   center;
  background:    rgba(255,255,255,.08);
  border:        1.5px solid var(--border-w);
  border-radius: var(--radius-sm);
  overflow:      hidden;
  width:         80px;
}

.res-inp {
  width:       46px;
  height:      30px;
  background:  transparent;
  border:      none;
  outline:     none;
  color:       var(--white);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size:   var(--fs-sm);
  padding:     0 5px;
  text-align:  right;
}

.res-inp::-webkit-inner-spin-button { opacity: 0; }

.res-pct { color: var(--muted-w); font-size: var(--fs-sm); font-weight: 600; padding-right: 6px; }
.res-vol { font-weight: 600; font-size: var(--fs-sm); color: var(--colordefondo); white-space: nowrap; }

/* Fila de total */
.tot-row {
  display:         flex;
  align-items:     flex-end;
  justify-content: space-between;
  padding:         12px 0 2px;
}

.tot-lbl  { font-size: var(--fs-sm); color: var(--muted-w); font-weight: 500; }
.tot-num  { font-family: var(--font-body); font-size: var(--fs-base); color: var(--white); letter-spacing: -1px; line-height: 1; }
.tot-unit { font-size: var(--fs-sm); color: var(--muted-w); }

/* Estado vacío del pedido */
.empty-st { text-align: center; padding: 16px 0; color: rgba(255,255,255,.25); font-size: var(--fs-sm); }
.empty-st svg { opacity: .25; display: block; margin: 0 auto 6px; }

/* Fila de envío rápido */
.quick-send-row {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             var(--space-md);
  margin-top:      var(--space-md);
  padding-top:     var(--space-md);
  border-top:      4px solid var(--colordefondo);
}

.quick-send-hint { font-size: var(--fs-button); color: var(--muted); line-height: 1.4; flex: 1; }
.quick-send-hint strong { color: var(--blue); }

.btn-quick {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  height:          44px;
  padding:         0 var(--space-md);
  background:      var(--blue);
  color:           var(--white);
  border:          none;
  border-radius:   var(--radius-sm);
  font-family:     var(--font-tittle);
  font-size:       var(--fs-base);
  letter-spacing:  1.5px;
  cursor:          pointer;
  white-space:     nowrap;
  transition:      all 0.22s;
  flex-shrink:     0;
}

.btn-quick:hover:not(:disabled) { background: var(--blue-l); transform: translateY(-1px); box-shadow: 0 5px 18px rgba(8,52,136,.3); }
.btn-quick:disabled              { background: var(--sand-d); color: var(--muted); cursor: not-allowed; }

/* Mensaje de error en envío rápido */
.quick-err {
  display:       none;
  align-items:   center;
  gap:           7px;
  background:    #FEF2F2;
  border:        1px solid #FECACA;
  border-radius: var(--radius-sm);
  padding:       8px 12px;
  font-size:     var(--fs-base);
  color:         var(--error);
  margin-top:    8px;
  font-family:   var(--font-mono);
}

.quick-err.show { display: flex; }

/* Píldora de modo en el overlay de éxito */
.suc-mode {
  display:       inline-flex;
  align-items:   center;
  gap:           5px;
  background:    var(--blue-pale);
  color:         var(--blue);
  border:        1px solid rgba(8,52,136,.18);
  border-radius: 20px;
  font-family:   var(--font-mono);
  font-size:     var(--fs-sm);
  font-weight:   500;
  padding:       3px 12px;
  margin-bottom: var(--space-xs);
}

.suc-mode::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* Botón principal de enviar cotización */
.send-btn {
  width:           100%;
  height:          50px;
  margin-top:      var(--space-sm);
  background:      var(--red);
  color:           var(--white);
  border:          none;
  border-radius:   var(--radius-sm);
  font-family:     var(--font-tittle);
  font-size:       var(--fs-base);
  letter-spacing:  2px;
  cursor:          pointer;
  transition:      all 0.25s;
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             9px;
}

.send-btn:hover:not(:disabled) { background: var(--red-d); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(226,48,68,.4); }
.send-btn:disabled              { background: rgba(255,255,255,.15); color: rgba(255,255,255,.3); cursor: not-allowed; }

/* Spinner de carga */
.spin {
  width:        16px;
  height:       16px;
  border:       2px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation:    spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Mensaje de error en envío */
.send-err {
  display:       none;
  align-items:   center;
  gap:           8px;
  background:    #FEF2F2;
  border:        1px solid #FECACA;
  border-radius: var(--radius-sm);
  padding:       9px 13px;
  font-size:     var(--fs-base);
  color:         var(--error);
  margin-top:    9px;
  font-family:   var(--font-mono);
}

.send-err.show { display: flex; }

/* 7d. Overlay de éxito y toast ---------------------------- */
.overlay {
  display:         none;
  position:        fixed;
  inset:           0;
  background:      rgba(4,31,82,.88);
  backdrop-filter: blur(6px);
  z-index:         200;
  align-items:     center;
  justify-content: center;
}

.overlay.show { display: flex; animation: fadeIn 0.3s ease; }

/* Cuadro de confirmación */
.success-box {
  background:    var(--white);
  border-radius: var(--radius);
  padding:       var(--space-xl) var(--space-lg);
  max-width:     420px;
  width:         90%;
  text-align:    center;
  box-shadow:    0 24px 80px rgba(4,31,82,.5);
  animation:     scaleIn 0.35s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes scaleIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.suc-icon {
  width:         66px;
  height:        66px;
  background:    var(--blue);
  border-radius: 50%;
  margin:        0 auto var(--space-sm);
  display:       flex;
  align-items:   center;
  justify-content: center;
  box-shadow:    0 8px 24px rgba(8,52,136,.35);
}

.suc-folio {
  display:       inline-block;
  background:    var(--blue-pale);
  color:         var(--blue);
  font-family:   var(--font-mono);
  font-weight:   500;
  font-size:     var(--fs-sm);
  padding:       4px 13px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
  border:        1px solid rgba(8,52,136,.2);
}

.suc-title { font-family: var(--font-tittle); font-size: var(--fs-sm); color: var(--blue-d); margin-bottom: 8px; letter-spacing: 1px; }
.suc-desc  { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; margin-bottom: var(--space-md); }

.suc-new {
  background:    var(--blue);
  color:         var(--white);
  border:        none;
  border-radius: var(--radius-sm);
  padding:       13px 24px;
  font-family:   var(--font-tittle);
  font-size:     var(--fs-sm);
  letter-spacing: 1.5px;
  cursor:        pointer;
  width:         100%;
  transition:    background 0.2s;
}

.suc-new:hover { background: var(--blue-l); }

/* Toast de notificación temporal */
.toast {
  position:    fixed;
  bottom:      20px;
  right:       20px;
  background:  var(--blue-d);
  color:       var(--white);
  padding:     10px 17px;
  border-radius: var(--radius-sm);
  font-size:   var(--fs-sm);
  font-weight: 500;
  box-shadow:  0 8px 32px rgba(4,31,82,.4);
  border-left: 4px solid var(--colordefondo);
  animation:   toastIn 0.3s ease, toastOut 0.3s ease 2.3s both;
  pointer-events: none;
  z-index:     300;
  font-family: var(--font-body);
}

@keyframes toastIn  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; } }


/* ============================================================
 *  8. PIE DE PÁGINA (FOOTER)
 * ============================================================ */
.footer {
  width:      100%;
  background: var(--colordefondo);
  border-top: 3px solid rgba(0,0,0,0.1);
}

.footer-inner {
  max-width:   1200px;
  margin:      0 auto;
  padding:     0 24px;
  display:     grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap:         0 40px;
  padding-top: 40px;
  padding-bottom: 40px;
  align-items: start;
}

.footer-brand-wrap { display: flex; flex-direction: column; gap: 10px; }

.footer-logo { width: 150px; height: auto; display: block; }

.footer-brand-wrap h3 { font-size: var(--fs-base); font-weight: 700; color: var(--text); line-height: 1.3; }
.footer-brand-wrap p  { font-size: var(--fs-sm); color: #606060; line-height: 1.5; }

.footer-col    { display: flex; flex-direction: column; }

.footer-col h4 { font-size: var(--fs-h4); font-weight: 700; color: #111; margin-bottom: 14px; }

.footer-col a { text-decoration: none; color: #606060; font-size: var(--fs-sm); padding: 5px 0; transition: color 0.2s; }

.footer-col a:hover { color: #c8111a; }

/* Versión móvil del footer (oculta en desktop) */
.footer-mobile { display: none; }


/* ============================================================
 *  9. UTILIDADES Y HELPERS
 * ============================================================ */

/* Clases de delay para transiciones escalonadas */
.delay-1  { transition-delay: 0.1s; }
.delay-2  { transition-delay: 0.2s; }
.delay-12 { transition-delay: 0.12s; }
.delay-15 { transition-delay: 0.15s; }
.delay-18 { transition-delay: 0.18s; }


/* ============================================================
 * 10. RESPONSIVE — PANTALLAS ≤ 900px (móvil / tablet)
 * ============================================================ */
@media (min-width: 0px) and (max-width: 900px) {

  /* ── Redefinición de variables para móvil ── */
  :root {
    --fs-base:    clamp(1.1rem,  1.4vw, 1.45rem);
    --fs-sm:      clamp(0.875rem, 0.9vw, 1rem);
    --fs-h1:      clamp(2rem,    4vw,   3rem);
    --fs-h2:      clamp(1.75rem, 3vw,   2.5rem);
    --fs-h3:      clamp(1.5rem,  2.5vw, 2rem);
    --fs-h4:      clamp(1.25rem, 2vw,   1.5rem);
    --fs-button:  clamp(0.9rem,  1vw,   1rem);
    --fs-caption: clamp(0.8rem,  0.8vw, 0.9rem);
    --space-xs:   clamp(0.25rem, 0.5vw, 0.5rem);
    --space-sm:   clamp(0.5rem,  1vw,   1rem);
    --space-md:   clamp(1rem,    2vw,   1.5rem);
    --space-lg:   clamp(1.5rem,  3vw,   2.5rem);
    --space-xl:   clamp(2rem,    4vw,   4rem);
    --space-2xl:  clamp(3rem,    6vw,   6rem);
    --space-3xl:  clamp(4rem,    8vw,   8rem);
  }

  /* ── Menú móvil ── */
  .nav-item:hover .nav-sub,
  .nav-link::after,
  .nombre-logo { display: none; }

  .menu { height: 60px; }

  .menu-contenedor { height: 60px; padding: 0 18px; }

  .menu-logo { height: 60px; }

  .menu-logo img { height: 38px; display: flex; justify-content: center; align-content: center; }

  /* Mostrar botón hamburguesa */
  .nav-toggle { display: flex; }

  /* Menú desplegable vertical */
  .listado {
    display:        none;
    position:       absolute;
    top:            60px;
    left:           0;
    width:          100%;
    height:         auto;
    flex-direction: column;
    align-items:    stretch;
    background:     #ffffff;
    border-bottom:  3px solid #083488;
    box-shadow:     0 8px 24px rgba(8,52,136,.1);
    z-index:        9998;
    justify-content: flex-start;
  }

  .listado.open { display: flex; animation: mobileIn 0.1s ease; }

  @keyframes mobileIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-item { height: auto; flex-direction: column; align-items: stretch; border-bottom: 1px solid #f3f4f6; }

  .nav-link { height: auto; padding: 14px 20px; font-size: var(--fs-base); justify-content: space-between; }

  .nav-sub { position: static; box-shadow: none; border-top: none; display: none; background: #f8faff; animation: none; }

  .nav-item.open .nav-sub                  { display: block; }
  .nav-item.open .nav-link.has-sub::before { transform: rotate(180deg); }

  .nav-sub a       { padding: 10px 32px; }
  .nav-sub a:hover { padding-left: 38px; }

  .nav-cta { margin: 14px 20px; justify-content: center; height: 44px; font-size: var(--fs-base); }

  /* En desktop el hover sigue activo */
  @media (min-width: 901px) {
    .nav-item:hover .nav-sub { display: block; }
    .nav-item.open  .nav-sub { display: none; }
  }

  /* ── INDEX ── */
  .imagen-sobrepepi::after,
  .imagen-sobrepepi::before,
  .marquee-inner,
  .video-fallback,
  .overlay-inicio,
  .cards-inicio,
  .tagline { display: none; }

  .divider { animation: none; }

  /* Título alternativo para móvil */
  .inicio-rps {
    margin-top:     20vh;
    font-family:    var(--font-mono);
    color:          var(--white);
    display:        flex;
    flex-direction: column;
    justify-content: space-between;
    font-size:      clamp(2rem, 3vw, 3rem);
    line-height:    0.82;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .inicio-rps em { color: var(--colorrojo1); }

  .video-bg { height: 50vh; }

  .inicio { height: 50vh; border-bottom: 5px solid var(--colorrojo1); }

  /* Sección "Acerca de PEPI" */
  .seccion1 {
    width:                 100%;
    height:                100vh;
    display:               grid;
    grid-template-columns: 100%;
    grid-template-rows:    30% 40% 20%;
    background-color:      var(--colordefondo);
  }

  .texto-sobrepepi {
    margin-top:       0;
    grid-column:      1;
    grid-row:         1;
    padding-bottom:   0;
    background-color: var(--colordefondo);
    color:            var(--text);
    position:         absolute;
    height:           auto;
  }

  .texto-sobrepepi h2 { font-size: var(--fs-h4); text-align: center; color: var(--blue); }
  .texto-sobrepepi p  { font-size: var(--fs-caption); text-align: center; }

  .texto-sobrepepi2 { width: 100%; height: 55vh; grid-row: 2; grid-column: 1; text-align: center; margin-top: 10px; }

  .texto-sobrepepi2 h2 { font-size: var(--fs-h3); text-align: center; margin-bottom: 1vh; margin-right: 0; color: var(--blue); }
  .texto-sobrepepi2 p  { font-size: var(--fs-caption); margin-right: 0; text-align: center; }

  .imagen-sobrepepi { height: 25vh; grid-row: 3; grid-column: 1; display: flex; justify-self: center; object-fit: cover; clip-path: none; min-height: 25vh; }

  /* Valores */
  .valores { display: flex; flex-direction: column; align-content: center; height: 100%; width: 100%; }
  .valores-pepi li { width: 100%; }
  .item__valores   { margin: 0; }
  .item__valores p   { font-size: var(--fs-caption); }
  .item__valores h1  { font-size: var(--fs-h1); }
  .item__valores img { width: 70px; }

  /* Intro de servicios */
  .intro h2 { font-size: var(--fs-h1); }
  .intro p  { font-size: var(--fs-caption); }

  /* Ubicaciones */
  .seccion2    { height: 120vh; }
  .seccion2 h2,
  .tit h1      { font-size: var(--fs-base); }
  .seccion2 p  { font-size: var(--fs-base); }

  .plantaslw { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 0; position: relative; }

  .tit  { grid-column: 1; grid-row: 1; margin-top: 5vh; text-align: center; }

  .lado-der { grid-column: 1; grid-row: 2; width: 100%; }

  .lado-izq { grid-column: 1; grid-row: 3; width: 100%; justify-content: center; }

  .btn    { width: 80vw; height: 20vh; }

  iframe  { width: 100%; height: 40vh; border-radius: 10px; margin-bottom: 2vh; }

  /* ── CALIDAD ── */
  .hero-right,
  .hero-text,
  .hero-desc,
  .norma-card,
  .stat-row { display: none; }

  video { height: 50vh; }

  .calidad1 {
    display:               grid;
    grid-template-columns: 1fr;
    grid-template-rows:    1fr;
    padding:               0;
    min-height:            auto;
    height:                50vh;
    width:                 100vw;
  }

  #politica,
  #laboratorio { padding: 70px 24px; }

  /* Título alternativo para móvil en calidad */
  .calidad-inicio {
    font-family:    var(--font-mono);
    color:          rgba(255,255,255,.63);
    display:        flex;
    flex-direction: column;
    justify-content: space-between;
    font-size:      clamp(2rem, 3vw, 3rem);
    line-height:    0.82;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index:        9;
    margin-left:    10vw;
  }

  .calidad-inicio em { color: rgba(255,0,0,.51); }

  .politica-grid { grid-template-columns: 1fr; gap: 40px; }
  .ensayos-grid  { grid-template-columns: 1fr; }
  .barra-item    { grid-template-columns: 110px 1fr 60px; }
  .strip         { flex-direction: column; padding: 50px 24px; }

  /* ── PRODUCTOS ── */
  .section-label,
  .hero__actionspd,
  .hero__descpd,
  .quality-img,
  .overlay-index,
  .badge,
  .slide-sub,
  .counter,
  .hero__cardspd { display: none; }

  .principal           { height: auto; }
  .contenedor-principal { height: 50vh; }

  .slide-title { font-size: var(--fs-base); text-align: center; background-color: rgba(198,198,198,.4); }

  .slide-content { padding: 20px 20px 70px; }

  .ctrl      { width: 38px; height: 38px; font-size: var(--fs-h3); }
  .ctrl-prev { left: 10px; }
  .ctrl-next { right: 10px; }

  .slide { height: 100%; }

  .hero-productos {
    display:               grid;
    grid-template-columns: 1fr;
    grid-template-rows:    repeat(3, 1fr);
    padding:               100px 24px 60px;
    min-height:            auto;
    height:                50vh;
    width:                 100vw;
  }

  .hero__overlaypd { background: none; scale: 1; }
  .hero__titlepd   { font-size: var(--fs-h1); }

  /* Sección de calidad del producto */
  .concreto-grid,
  .quality,
  .special-grid  { grid-template-columns: 1fr; }

  .quality       { height: auto; width: 100vw; padding-right: 40px; }

  .quality-text  { width: 100%; display: flex; justify-content: center; text-align: justify; }

  .quality-text p  { font-size: var(--fs-button); }
  .quality-text h2 { font-size: var(--fs-h1); }
  .pill            { font-size: var(--fs-sm); }
  .quality-text br { display: none; }

  /* Concretos y block */
  .concreto-section { width: 100%; }
  .card-blue,
  .card-red,
  .card-white       { width: 100%; }

  .block-section { padding: 0; }

  .cp-grid { grid-template-columns: 1fr; }

  .cp-aditivos-grid,
  .cp-special-grid { display: grid; grid-template-columns: 1fr; height: auto; }

  .cp-special-item { width: 100vw; height: 15svh; }

  .cp-special-header h1 { font-size: var(--fs-button); }

  .product-table th      { font-size: var(--fs-button); }
  .product-table .medida { font-size: var(--fs-button); }

  /* ── CONTACTO ── */
  .wa-cities      { display: grid; grid-template-columns: 1fr; }
  .wa-city-block  { width: 100%; }
  .form-card      { width: 100%; }
  .card-body      { width: 90%; }
  .calc-layout    { grid-template-columns: 1fr; }
  .calc-left      { width: 100%; }

  .right-panel  { position: static; width: 100%; margin-top: var(--space-md); }
  .order-card   { width: 100%; box-shadow: 0 4px 20px rgba(4,31,82,.2); }
  .send-btn     { width: 100%; }

  /* Selector de formas en grid 2 columnas */
  .shape-scroll { overflow: visible; }

  .shape-list {
    display:               grid;
    grid-template-columns: repeat(2, 1fr);
    gap:                   8px;
    width:                 100%;
  }

  .shape-btn { min-width: unset; width: 100%; }

  /* ── PIE DE PÁGINA ── */
  .footer-brand-wrap,
  .footer-col { display: none; }

  /* Versión simplificada del footer para móvil */
  .footer-mobile {
    display:        flex;
    flex-direction: column;
  }

  .footer-inner { display: grid; grid-template-columns: 1fr; }

  .fm-brand {
    display:        flex;
    align-items:    center;
    flex-direction: column;
    gap:            10px;
    padding:        12px 0 10px;
    border-bottom:  4px solid rgba(0,0,0,0.08);
  }

  .fm-logo { width: 30vw; height: auto; flex-shrink: 0; }

  .fm-brand-text h3 { font-size: var(--fs-base); font-weight: 700; color: var(--text); line-height: 1.2; }

  .fm-brand-text p { font-size: var(--fs-h4); color: #888; line-height: 1.3; margin-top: 2px; text-align: center; }

  .fm-bottom {
    display:         flex;
    align-items:     center;
    flex-direction:  column;
    justify-content: center;
    padding:         8px 0 12px;
    flex-wrap:       wrap;
    gap:             6px;
  }

  .fm-social { display: flex; gap: 8px; }

  .fm-social a {
    display:     flex;
    align-items: center;
    gap:         5px;
    text-decoration: none;
    font-size:   var(--fs-h4);
    font-weight: 600;
    color:       #444;
    padding:     4px 9px;
    border:      1px solid rgba(0,0,0,0.12);
    border-radius: 4px;
    background:  rgba(0,0,0,0.03);
    transition:  background 0.2s;
  }

  .fm-social a:hover { background: rgba(0,0,0,.21); }

  .fm-social .fb { color: #1877f2; }
  .fm-social .ig { color: #c13584; }
  .fm-social .wh { color: #13883e; }

  .fm-copy { display: flex; font-size: var(--fs-base); color: #aaa; text-align: center; line-height: 1.4; }

} /* fin @media ≤ 900px */


/* ============================================================
 * 11. RESPONSIVE — PANTALLAS ≤ 1024px y ≤ 640px
 * ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .quote-grid  { grid-template-columns: 1fr 1fr; }
  .calc-layout { grid-template-columns: 1fr; }
  .right-panel { position: static; }
}

/* Móvil pequeño */
@media (max-width: 640px) {
  .quote-grid    { grid-template-columns: 1fr; }
  .card-body,
  .form-card-body { padding: var(--space-sm); }
  .fields-grid   { grid-template-columns: 1fr; }
}


/* ============================================================
 * 12. SCROLLBAR PERSONALIZADO
 * ============================================================ */
::-webkit-scrollbar { width: 10px; }

::-webkit-scrollbar-thumb {
  background:    linear-gradient(180deg, #2563eb, #3b82f6);
  border-radius: 10px;
  border:        2px solid rgba(255, 255, 255, 0.08);
}