/* =========================================================
   RSU BOX — Estilos principales
   Secciones: Variables → Reset → Tipografía → Layout
              → Botones → Utilidades → Animaciones
              → Navbar → Hero → Productos → Nosotros
              → Adaptables → Clientes → Contacto → Footer
              → Media queries
   ========================================================= */


/* ---------------------------------------------------------
   1. VARIABLES CSS
   --------------------------------------------------------- */
:root {
  --color-primary:      #1a1a2e;
  --color-secondary:    #e63946;
  --color-accent:       #f4a261;
  --color-bg:           #f8f9fa;
  --color-bg-dark:      #16213e;
  --color-text:         #212529;
  --color-text-light:   #6c757d;
  --color-white:        #ffffff;
  --color-rsu-green:    #07e611;
  --color-ml-yellow:    #07e611;  /* verde marca RSU BOX */
  --color-ml-blue:      #3483fa;
  --border-radius:      8px;
  --shadow:             0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover:       0 8px 30px rgba(0, 0, 0, 0.15);
  --transition:         all 0.3s ease;
  --font-body:          'Inter', sans-serif;
  --font-heading:       'Poppins', sans-serif;
  --container-max:      1200px;
  --container-padding:  1rem;
  --navbar-height:      70px;
}


/* ---------------------------------------------------------
   2. RESET MODERNO
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* previene scroll horizontal por elementos absolutos */
}

img, video  { max-width: 100%; height: auto; display: block; }
a           { color: inherit; text-decoration: none; }
ul, ol      { list-style: none; }
button      { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }


/* ---------------------------------------------------------
   3. TIPOGRAFÍA BASE
   --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p { margin-bottom: 1rem; color: var(--color-text); }
p:last-child { margin-bottom: 0; }


/* ---------------------------------------------------------
   4. LAYOUT — CONTAINER
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}


/* ---------------------------------------------------------
   5. BOTONES
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--color-ml-yellow);
  outline-offset: 3px;
}

.btn-primary { background-color: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.btn-primary:hover { background-color: #0f0f1a; border-color: #0f0f1a; transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* Outline blanco — fondos oscuros */
.btn-outline { background-color: transparent; color: var(--color-white); border-color: var(--color-white); }
.btn-outline:hover { background-color: var(--color-white); color: var(--color-primary); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* Outline oscuro — fondos claros */
.btn-outline-dark { background-color: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline-dark:hover { background-color: var(--color-primary); color: var(--color-white); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-ml { background-color: var(--color-rsu-green); color: #0d1a0e; border-color: var(--color-rsu-green); font-weight: 700; }
.btn-ml:hover { background-color: #06cc0f; border-color: #06cc0f; transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-accent { background-color: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); font-weight: 700; }
.btn-accent:hover { background-color: #e08a45; border-color: #e08a45; transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-sm  { padding: 8px 18px;  font-size: 0.875rem; }
.btn-lg  { padding: 16px 36px; font-size: 1.125rem; }


/* ---------------------------------------------------------
   6. UTILIDADES GENERALES
   --------------------------------------------------------- */
.text-center { text-align: center; }
.text-light  { color: var(--color-text-light); }
.text-white  { color: var(--color-white); }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.section-label--green { color: #2e7d32; }

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3rem;
}


/* ---------------------------------------------------------
   7. ANIMACIONES DE ENTRADA (activadas por JS con .visible)
   --------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }


/* ---------------------------------------------------------
   8. NAVBAR
   --------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-primary);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  background-color: #131326;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
  gap: 1rem;
}

.navbar__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  line-height: 0;
}

.navbar__logo .logo-img {
  height: 38px;
  width: auto;
  background-color: #ffffff;
  border-radius: 6px;
  padding: 4px 10px;
}

.navbar__nav { display: none; }

.navbar__list { display: flex; align-items: center; gap: 0.125rem; }

.navbar__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
}

.navbar__link:hover,
.navbar__link:focus-visible {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.08);
  outline: none;
}

.navbar__chevron {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
}

/* Dropdown */
.navbar__item--dropdown { position: relative; }

.navbar__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  min-width: 250px;
  z-index: 200;
  overflow: hidden;
  border-top: 3px solid var(--color-secondary);
}

.navbar__item--dropdown.open .navbar__dropdown { display: block; }
.navbar__item--dropdown.open .navbar__chevron  { transform: rotate(180deg); }

.navbar__dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar__dropdown-link:last-child { border-bottom: none; }

.navbar__dropdown-link i {
  color: var(--color-secondary);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.navbar__dropdown-link:hover {
  background-color: var(--color-bg);
  color: var(--color-primary);
  padding-left: 22px;
}

.navbar__item--cta-mobile { display: none; }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.navbar__cta-desktop { display: none; }

.navbar__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--color-white);
  font-size: 1.2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.navbar__hamburger:hover { background-color: rgba(255, 255, 255, 0.1); }

/* Menú mobile abierto */
.navbar__nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-primary);
  padding: 1.5rem var(--container-padding);
  overflow-y: auto;
  z-index: 999;
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.navbar__nav.open .navbar__list  { flex-direction: column; align-items: flex-start; gap: 0.25rem; width: 100%; }
.navbar__nav.open .navbar__item  { width: 100%; }
.navbar__nav.open .navbar__link  { font-size: 1.05rem; width: 100%; padding: 13px 16px; }

.navbar__nav.open .navbar__dropdown {
  position: static;
  transform: none;
  box-shadow: none;
  border-top: none;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius);
  margin-top: 0.25rem;
}

.navbar__nav.open .navbar__dropdown-link { color: rgba(255, 255, 255, 0.75); border-bottom-color: rgba(255, 255, 255, 0.05); }
.navbar__nav.open .navbar__dropdown-link:hover { background-color: rgba(255, 255, 255, 0.08); color: var(--color-white); padding-left: 22px; }
.navbar__nav.open .navbar__dropdown-link i { color: var(--color-accent); }

.navbar__nav.open .navbar__item--cta-mobile {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar__nav.open .navbar__item--cta-mobile .btn { width: 100%; justify-content: center; }


/* ---------------------------------------------------------
   9. HERO
   --------------------------------------------------------- */

@keyframes radar-pulse {
  0%   { transform: scale(0.4);  opacity: 0.3; }
  80%  { opacity: 0.04; }
  100% { transform: scale(2.8);  opacity: 0; }
}
@keyframes hero-glow-drift {
  0%   { transform: translate(0px,   0px)  scale(1);    }
  33%  { transform: translate(40px, -25px) scale(1.06); }
  66%  { transform: translate(-25px, 15px) scale(0.95); }
  100% { transform: translate(0px,   0px)  scale(1);    }
}
@keyframes particle-rise {
  0%   { transform: translateY(0)     rotate(0deg);   opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 0.45; }
  100% { transform: translateY(-85vh) rotate(360deg); opacity: 0; }
}
@keyframes hero-line-in {
  from { clip-path: inset(0 0 100% 0); opacity: 0; transform: translateY(14px); }
  to   { clip-path: inset(0 0   0% 0); opacity: 1; transform: translateY(0); }
}
@keyframes hero-eyebrow-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero {
  position: relative;
  background-color: #060c08;
  background-image:
    linear-gradient(rgba(4, 10, 5, 0.68), rgba(4, 10, 5, 0.68)),
    url('../assets/img/fondo-hero.avif');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Dot-grid sutil */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(7, 230, 17, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Contenedor de capas animadas */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Brillo ambiental verde — esquina superior derecha */
.hero__glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(7, 230, 17, 0.08) 0%, transparent 68%);
  top: -180px;
  right: -120px;
  animation: hero-glow-drift 20s ease-in-out infinite;
}

/* Segundo brillo — inferior izquierdo (via pseudo-elemento) */
.hero__glow::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(7, 230, 17, 0.05) 0%, transparent 70%);
  top: 700px;
  left: -350px;
}

/* Anillos de radar */
.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(7, 230, 17, 0.4);
  width: 140px;
  height: 140px;
  right: 18%;
  bottom: 28%;
  animation: radar-pulse 5.5s cubic-bezier(0.1, 0.4, 0.8, 0.6) infinite;
  transform-origin: center;
}
.hero__ring--1 { animation-delay: 0s; }
.hero__ring--2 { animation-delay: 1.37s; }
.hero__ring--3 { animation-delay: 2.75s; }
.hero__ring--4 { animation-delay: 4.12s; }

/* Líneas diagonales sutiles */
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 50px,
    rgba(255, 255, 255, 0.018) 50px,
    rgba(255, 255, 255, 0.018) 51px
  );
}

/* Partículas flotantes (generadas por JS) */
.hero__particle {
  position: absolute;
  animation: particle-rise linear infinite;
}

/* Área de contenido — grid 1 col mobile-first, 2 col en desktop */
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

/* Etiqueta sobre el título */
.hero__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-rsu-green);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: hero-eyebrow-in 0.7s ease 0.2s forwards;
}

/* Título con animación por línea */
.hero__title {
  color: var(--color-white);
  font-weight: 800;
  max-width: 860px;
  margin-inline: 0;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  text-shadow: 0 4px 50px rgba(0, 0, 0, 0.5);
}

.hero__line {
  display: block;
  opacity: 0;
  animation: hero-line-in 0.85s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
.hero__line:nth-child(1) { animation-delay: 0.5s; }
.hero__line:nth-child(2) { animation-delay: 0.72s; }
.hero__line:nth-child(3) { animation-delay: 0.94s; }

/* Última línea en verde */
.hero__line--accent {
  color: var(--color-rsu-green);
  text-shadow: 0 0 60px rgba(7, 230, 17, 0.25);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 560px;
  margin-inline: 0;
  margin-bottom: 2rem;
  line-height: 1.7;
  opacity: 0;
  animation: hero-fade-up 0.8s ease 1.3s forwards;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  opacity: 0;
  animation: hero-fade-up 0.7s ease 1.65s forwards;
}

/* Compatibilidad con el antiguo decorador */
.hero__decoration { display: none; }

/* ── Hero columna izquierda ── */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Dot pulsante en el eyebrow */
.hero__eyebrow-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--color-rsu-green);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(7, 230, 17, 0.7); }
  50%       { box-shadow: 0 0 0 8px rgba(7, 230, 17, 0); }
}

/* Stats row */
.hero__stats {
  display: flex;
  align-items: center;
  margin-bottom: 1.75rem;
  margin-top: 0.25rem;
  opacity: 0;
  animation: hero-fade-up 0.8s ease 1.15s forwards;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 1.4rem;
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  color: var(--color-rsu-green);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(7, 230, 17, 0.35);
}

.hero__stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
  margin-top: 2px;
}

.hero__stat-divider {
  width: 1px;
  height: 34px;
  background: rgba(7, 230, 17, 0.2);
  margin-right: 1.4rem;
  flex-shrink: 0;
}

/* ── Hero columna derecha — HUD ── */
.hero__hud {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0;
  animation: hero-fade-up 0.9s ease 0.9s forwards;
  padding: 1.8rem 3rem;
}

.hud__frame {
  position: relative;
  width: 280px;
  height: 280px;
  background: rgba(7, 230, 17, 0.03);
  border: 1px solid rgba(7, 230, 17, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Corner brackets */
.hud__corner {
  position: absolute;
  width: 22px;
  height: 22px;
}
.hud__corner--tl { top: 0;    left: 0;  border-top:    3px solid var(--color-rsu-green); border-left:  3px solid var(--color-rsu-green); }
.hud__corner--tr { top: 0;    right: 0; border-top:    3px solid var(--color-rsu-green); border-right: 3px solid var(--color-rsu-green); }
.hud__corner--bl { bottom: 0; left: 0;  border-bottom: 3px solid var(--color-rsu-green); border-left:  3px solid var(--color-rsu-green); }
.hud__corner--br { bottom: 0; right: 0; border-bottom: 3px solid var(--color-rsu-green); border-right: 3px solid var(--color-rsu-green); }

/* Scanning line */
@keyframes hud-scan {
  0%   { top: -2px; opacity: 0.9; }
  95%  { opacity: 0.6; }
  100% { top: 100%;  opacity: 0; }
}

.hud__scan-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(7, 230, 17, 0.7) 35%,
    rgba(7, 230, 17, 1)   50%,
    rgba(7, 230, 17, 0.7) 65%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(7, 230, 17, 0.6), 0 0 22px rgba(7, 230, 17, 0.2);
  animation: hud-scan 3.2s linear infinite;
  z-index: 2;
  pointer-events: none;
}

/* Icon display — cycling slides */
.hud__icon-display {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hud__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transform: scale(0.88) translateY(10px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hud__slide--active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.hud__emoji {
  font-size: 4.5rem;
  line-height: 1;
  filter: drop-shadow(0 0 16px rgba(7, 230, 17, 0.45));
  display: block;
}

.hud__cat-name {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(7, 230, 17, 0.85);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  line-height: 1.6;
}

/* Dot indicators */
.hud__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.hud__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(7, 230, 17, 0.22);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.hud__dot--active {
  background: var(--color-rsu-green);
  box-shadow: 0 0 7px rgba(7, 230, 17, 0.7);
}

/* Monospace readout strips */
.hud__readout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6rem;
  color: rgba(7, 230, 17, 0.5);
  letter-spacing: 0.1em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hud__readout--top    { top: 0; left: 50%; transform: translateX(-50%) translateY(calc(-100% - 8px)); }
.hud__readout--bottom { bottom: 0; left: 50%; transform: translateX(-50%) translateY(calc(100% + 8px)); }
.hud__readout--left   { left: 0; top: 50%; transform: translateX(calc(-100% - 10px)) translateY(-50%) rotate(-90deg); transform-origin: right center; }
.hud__readout--right  { right: 0; top: 50%; transform: translateX(calc(100% + 10px)) translateY(-50%) rotate(90deg);  transform-origin: left center; }

.hud__readout-sep { color: rgba(7, 230, 17, 0.25); }

@keyframes hud-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.hud__readout-status { animation: hud-blink 2.2s step-end infinite; }


/* ---------------------------------------------------------
   10. PRODUCTOS
   --------------------------------------------------------- */
.productos {
  padding-block: 3rem 5rem;
  background-color: var(--color-bg);
}

.productos .section-label,
.productos .section-title,
.productos .section-subtitle { display: block; }

.productos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.producto-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.producto-card__img-wrap { position: relative; }

.producto-card__img {
  width: 100%;
  height: auto;
  display: block;
  background-color: #ffffff;
}

.producto-card__placeholder {
  width: 100%;
  min-height: 220px;
  background-color: var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--color-white);
}

.producto-card__placeholder i    { font-size: 3rem; opacity: 0.8; }
.producto-card__placeholder span  { font-weight: 600; font-size: 0.9rem; }

.producto-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.producto-card__badge--new {
  width: auto;
  height: auto;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 4px;
  background-color: var(--color-primary);
  letter-spacing: 0.5px;
}

/* Bloque de ícono/emoji para las cards de la homepage */
.producto-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  position: relative;
  overflow: hidden;
}
.producto-card__icon-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.25));
}
.producto-card__icon-wrap--seguridad    { background: linear-gradient(135deg, #e63946 0%, #9b2226 100%); }
.producto-card__icon-wrap--contenedores { background: linear-gradient(135deg, #16213e 0%, #0f3460 100%); }
.producto-card__icon-wrap--almacenamiento { background: linear-gradient(135deg, #e07a2c 0%, #b85c00 100%); }
.producto-card__icon-wrap--gastronomia  { background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%); }

.producto-card__emoji {
  font-size: 3.6rem;
  line-height: 1;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.35));
  transition: transform 0.3s ease;
}
.producto-card:hover .producto-card__emoji { transform: scale(1.12); }

.producto-card__body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.producto-card__title { font-size: 1.05rem; color: var(--color-primary); margin: 0; }

.producto-card__desc {
  color: var(--color-text-light);
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.producto-card__actions {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}


/* ---------------------------------------------------------
   11. NOSOTROS — Dark industrial
   --------------------------------------------------------- */
.nosotros {
  padding-block: 3rem 5rem;
  background-color: #0f1823;
  position: relative;
  overflow: hidden;
}

/* Gran ">" decorativo en el fondo */
.nosotros::before {
  content: '>';
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: clamp(18rem, 28vw, 32rem);
  font-weight: 800;
  color: var(--color-rsu-green);
  opacity: 0.028;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.nosotros__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.nosotros__img-col { position: relative; isolation: isolate; }

.nosotros__img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  filter: blur(3px) brightness(0.85);
  transform: scale(1.04); /* evita bordes blancos del blur */
}

/* Badge flotante sobre la imagen */
.nosotros__badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: var(--color-rsu-green);
  color: #0a1a0b;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 7px 14px;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(7, 230, 17, 0.35);
  z-index: 2;
}

/* Colores del contenido en dark */
.nosotros__label  { color: var(--color-rsu-green) !important; }
.nosotros__title  { margin-bottom: 1.25rem; text-align: left; color: var(--color-white); }
.nosotros__text   { color: rgba(255, 255, 255, 0.62); line-height: 1.8; margin-bottom: 1rem; }

/* Stats row */
.nosotros__stats {
  display: flex;
  align-items: center;
  margin-bottom: 1.75rem;
  padding-block: 1.25rem 1.5rem;
  border-top: 1px solid rgba(7, 230, 17, 0.12);
  border-bottom: 1px solid rgba(7, 230, 17, 0.12);
}

.nosotros__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 1.4rem;
}

.nosotros__stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  color: var(--color-rsu-green);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(7, 230, 17, 0.35);
}

.nosotros__stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
  margin-top: 2px;
}

.nosotros__stat-divider {
  width: 1px;
  height: 34px;
  background: rgba(7, 230, 17, 0.18);
  margin-right: 1.4rem;
  flex-shrink: 0;
}

/* Highlight box: verde en vez de rojo */
.nosotros__highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: rgba(7, 230, 17, 0.06);
  border-left: 4px solid var(--color-rsu-green);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin-bottom: 1.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.nosotros__highlight i { color: var(--color-rsu-green); margin-top: 2px; flex-shrink: 0; }

.nosotros__ctas { display: flex; gap: 0.875rem; flex-wrap: wrap; }

/* Botón WhatsApp — verde #25d366 */
.btn-wa-nosotros {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid #25d366;
  background-color: #25d366;
  color: #fff;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-wa-nosotros:hover {
  background-color: #1ebe5a;
  border-color: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}


/* ---------------------------------------------------------
   12. ADAPTABLES — Medio Ambiente
   --------------------------------------------------------- */
.adaptables {
  padding-block: 3rem 5rem;
  background-color: #e8f5e9;
}

.adaptables .section-label,
.adaptables .section-title,
.adaptables .section-subtitle { display: block; }

.adaptables__gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #a5d6a7 transparent;
}

.adaptables__gallery::-webkit-scrollbar        { height: 5px; }
.adaptables__gallery::-webkit-scrollbar-track  { background: transparent; }
.adaptables__gallery::-webkit-scrollbar-thumb  { background: #a5d6a7; border-radius: 10px; }

.adaptables__item {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 240px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: var(--color-white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.adaptables__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.adaptables__item img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.adaptables__item:hover img { transform: scale(1.05); }


/* ---------------------------------------------------------
   13. CLIENTES
   --------------------------------------------------------- */

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.clientes {
  padding-block: 3rem 3.5rem;
  background-color: var(--color-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.clientes .section-label,
.clientes .section-title,
.clientes .section-subtitle { display: block; }

/* Wrapper full-width del carrusel con fade en bordes */
.clientes__marquee-wrap {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}

/* Cada fila del carrusel */
.marquee__row {
  display: flex;
  overflow: hidden;
}

/* Track que se desplaza continuamente */
.marquee__track {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  min-width: 100%;
  animation: marquee-scroll 38s linear infinite;
}
.marquee__track--rev {
  animation-direction: reverse;
  animation-duration: 44s;
}

/* Pausa al hacer hover */
.marquee__row:hover .marquee__track {
  animation-play-state: paused;
}

/* Cada logo individual */
.cliente-logo {
  flex-shrink: 0;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  padding: 1rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  min-width: 200px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  cursor: default;
}
.cliente-logo:hover {
  border-color: rgba(7, 230, 17, 0.45);
  box-shadow: 0 4px 18px rgba(7, 230, 17, 0.1);
  transform: translateY(-2px);
}

.cliente-logo img {
  max-height: 88px;
  max-width: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.3s ease;
  display: block;
}
.cliente-logo:hover img {
  filter: grayscale(0%) opacity(1);
}


/* ---------------------------------------------------------
   14. CONTACTO
   --------------------------------------------------------- */
.contacto {
  padding-block: 3rem 5rem;
  background-color: var(--color-bg);
}

.contacto .section-label,
.contacto .section-title,
.contacto .section-subtitle { display: block; }

.contacto__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contacto__col-title {
  font-size: 1.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

/* --- Formulario --- */
.contacto__form-col {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e4e4e4;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  color: var(--color-text);
  background-color: var(--color-white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.08);
}

/* Estado de error (JS lo agrega) */
.form-input--error {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* Mensaje de éxito */
.form-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  background-color: #e8f5e9;
  border-left: 4px solid #2e7d32;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  color: #2e7d32;
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Info de contacto --- */
.contacto__info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contacto__info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contacto__info-icon {
  width: 46px;
  height: 46px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contacto__info-icon--wa { background-color: #25d366; }

.contacto__info-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 0.2rem;
}

.contacto__info-value {
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s ease;
}

.contacto__info-value:hover { color: var(--color-secondary); }

.contacto__redes-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-light);
  margin-bottom: 0.875rem;
}

.contacto__redes {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.contacto__wa-cta { width: 100%; justify-content: center; }

/* --- Íconos de redes sociales (usados en Contacto y Footer) --- */
.red-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-white);
  font-size: 1.05rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.red-social:hover { transform: translateY(-3px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22); }

.red-social--facebook  { background-color: #1877f2; }
.red-social--instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.red-social--tiktok    { background-color: #010101; }
.red-social--linktree  { background-color: #39e09b; }


/* ---------------------------------------------------------
   15. FOOTER
   --------------------------------------------------------- */
.footer {
  background-color: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* Columna 1 */
.footer__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  margin-bottom: 0.875rem;
}

.footer__logo .logo-img {
  height: 32px;
  width: auto;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  padding: 3px 8px;
}

.footer__desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.footer__redes {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

/* Íconos de redes en footer: más pequeños y con fondo semitransparente */
.footer__redes .red-social {
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
  opacity: 0.85;
}

.footer__redes .red-social:hover { opacity: 1; }

/* Columnas 2 y 3 */
.footer__col-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer__link:hover { color: var(--color-rsu-green); }

/* Link especial de ML */
.footer__link--ml {
  color: var(--color-rsu-green);
  font-weight: 600;
  margin-top: 0.5rem;
}

.footer__link--ml:hover { color: #06cc0f; }

/* Divisor y copyright */
.footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 1.5rem;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  text-align: center;
}

.footer__copyright { color: rgba(255, 255, 255, 0.35); font-size: 0.85rem; }
.footer__made-by   { color: rgba(255, 255, 255, 0.2);  font-size: 0.78rem; }


/* ---------------------------------------------------------
   16. PÁGINAS INTERNAS — HERO DE SECCIÓN
   --------------------------------------------------------- */
.hero-seccion {
  padding-block: 4rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Variante roja — Seguridad y Señalización */
.hero-seccion--seguridad {
  background-image: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
}

/* Variante azul oscuro — Contenedores */
.hero-seccion--contenedores {
  background-image: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
}

/* Variante naranja — Almacenamiento y Estiba */
.hero-seccion--almacenamiento {
  background-image: linear-gradient(135deg, #f4a261 0%, #e08a45 100%);
}

/* Variante verde — Gastronomía */
.hero-seccion--gastronomia {
  background-image: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
}

/* Decoración sutil de anillo en el fondo */
.hero-seccion::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  right: -150px;
  top: -150px;
  pointer-events: none;
}

.hero-seccion__breadcrumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.hero-seccion__breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.hero-seccion__breadcrumb a:hover { color: var(--color-white); }

.hero-seccion__breadcrumb span { color: rgba(255, 255, 255, 0.85); }

.hero-seccion__title {
  color: var(--color-white);
  font-weight: 800;
  margin-bottom: 0.875rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-seccion__desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}


/* ---------------------------------------------------------
   17. PÁGINAS INTERNAS — GALERÍA DE PRODUCTOS
   --------------------------------------------------------- */
.galeria {
  padding-block: 4rem;
  background-color: var(--color-bg);
}

.galeria__grid {
  display: grid;
  grid-template-columns: 1fr;         /* mobile: 1 columna */
  gap: 1.25rem;
}

/* Cada ítem */
.galeria__item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: var(--color-white);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.galeria__item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* Wrapper de imagen: posición relativa para el overlay */
.galeria__img-wrap {
  position: relative;
}

/* Imagen: dimensiones naturales, sin recorte ni zoom */
.galeria__img {
  width: 100%;
  height: auto;
  display: block;
  background-color: #ffffff;
}

/* Overlay con link a ML — aparece al hover */
.galeria__overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 33, 62, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.galeria__item:hover .galeria__overlay { opacity: 1; }

.galeria__overlay span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  padding: 0 1rem;
}

.galeria__overlay i {
  font-size: 2rem;
  color: var(--color-rsu-green);
}

/* Mobile: Nosotros sin bleed ni clip-path */
@media (max-width: 767px) {
  .nosotros__img-col  { margin-left: 0; }
  .nosotros__img      { height: 300px; clip-path: none; border-radius: var(--border-radius); }
  .nosotros__content  { padding-left: 0; }
  .nosotros__stats    { flex-wrap: wrap; gap: 0.75rem 0; }
  .nosotros__stat     { padding-right: 0; min-width: 80px; }
  .nosotros__stat-divider { display: none; }
  .nosotros__badge    { font-size: 0.68rem; padding: 6px 12px; bottom: 14px; left: 14px; }
  /* background-attachment: fixed no funciona bien en iOS; lo desactivamos */
  .hero { background-attachment: scroll; }

  /* Hero: columna única centrada en mobile */
  .hero__inner {
    grid-template-columns: 1fr;
    padding-block: 1.5rem 4rem;
    gap: 2.5rem;
  }
  .hero__content { align-items: center; text-align: center; }
  .hero__title    { margin-inline: auto; text-align: center; }
  .hero__subtitle { margin-inline: auto; text-align: center; }
  .hero__ctas     { justify-content: center; }
  .hero__stats    { justify-content: center; }
  .hero__stat     { align-items: center; }
  .hero__hud      { padding: 1.5rem 3.5rem; }
  .hud__frame     { width: 220px; height: 220px; }
  .hud__emoji     { font-size: 3.6rem; }
  .hud__cat-name  { font-size: 0.63rem; }
  .hud__readout--left, .hud__readout--right { display: none; }
}

/* Hero: tablet — columna única, contenido centrado */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__inner    { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 2.5rem 5rem; }
  .hero__content  { align-items: center; text-align: center; }
  .hero__title    { margin-inline: auto; text-align: center; }
  .hero__subtitle { margin-inline: auto; text-align: center; }
  .hero__ctas     { justify-content: center; }
  .hero__stats    { justify-content: center; }
  .hero__stat     { align-items: center; }
  .hud__frame     { width: 280px; height: 280px; }
}

/* Mobile: overlay siempre visible como gradiente inferior
   (en mobile no hay hover; el tap abre el link directamente) */
@media (max-width: 767px) {
  .galeria__overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(22, 33, 62, 0.88) 0%, transparent 60%);
    align-items: flex-end;
    padding-bottom: 0.875rem;
  }

  .galeria__overlay span {
    flex-direction: row;
    font-size: 0.8rem;
    gap: 0.375rem;
  }

  .galeria__overlay i { font-size: 1rem; }
}


/* ---------------------------------------------------------
   18. PÁGINAS INTERNAS — BANNER CTA MERCADO LIBRE
   --------------------------------------------------------- */
.banner-ml {
  background-color: var(--color-rsu-green);
  padding-block: 2.5rem;
}

.banner-ml__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.banner-ml__pregunta {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 0.25rem;
}

.banner-ml__respuesta {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222222;
  font-family: var(--font-heading);
  margin: 0;
}


/* ---------------------------------------------------------
   19. PÁGINAS INTERNAS — SECCIÓN COTIZACIÓN
   --------------------------------------------------------- */
.cotizacion {
  padding-block: 5rem;
  background-color: var(--color-white);
}

.cotizacion__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.cotizacion__icono {
  font-size: 3.5rem;
  color: #25d366;   /* verde WhatsApp */
  line-height: 1;
}

.cotizacion__titulo {
  font-weight: 800;
  max-width: 540px;
  margin: 0;
}

.cotizacion__desc {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 480px;
  line-height: 1.7;
  margin: 0;
}

.cotizacion__inner .btn { margin-top: 0.5rem; }

/* Link activo en el dropdown (página actual) */
.navbar__dropdown-link[aria-current="page"] {
  color: var(--color-secondary);
  font-weight: 700;
  background-color: rgba(230, 57, 70, 0.06);
}


/* ---------------------------------------------------------
   20. GASTRONOMÍA — PLACEHOLDER Y AVISO DE CATÁLOGO
   --------------------------------------------------------- */

/* Placeholder para imágenes aún no disponibles */
.galeria__placeholder {
  width: 100%;
  height: 300px;
  background-color: var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  color: var(--color-white);
}

.galeria__placeholder i {
  font-size: 3rem;
  opacity: 0.85;
}

.galeria__placeholder span {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* El overlay sobre un placeholder siempre visible en desktop también */
.galeria__overlay--placeholder {
  opacity: 1;
  background: linear-gradient(to top, rgba(22, 33, 62, 0.7) 0%, transparent 55%);
  align-items: flex-end;
  padding-bottom: 0.875rem;
}

.galeria__overlay--placeholder span {
  flex-direction: row;
  font-size: 0.85rem;
  gap: 0.4rem;
}

.galeria__overlay--placeholder i { font-size: 1rem; }

/* Aviso "catálogo en preparación" encima de la galería de gastronomía */
.gastronomia-aviso {
  background-color: #fff8e1;
  border-bottom: 2px solid var(--color-accent);
  padding-block: 1.25rem;
}

.gastronomia-aviso__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.gastronomia-aviso i {
  font-size: 1.5rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.gastronomia-aviso p {
  flex: 1;
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.5;
  min-width: 200px;
}


/* ---------------------------------------------------------
   21. MEDIA QUERIES
   --------------------------------------------------------- */

/* Tablet ≥ 768px */
@media (min-width: 768px) {
  :root { --container-padding: 1.5rem; }

  /* Productos index: 2 columnas */
  .productos__grid { grid-template-columns: repeat(2, 1fr); }

  /* Nosotros */
  .nosotros__img  { height: 440px; }

  /* Adaptables */
  .adaptables__item       { width: 280px; }
  .adaptables__item img   { width: 280px; height: 280px; }

  /* Footer: 3 columnas */
  .footer__grid   { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }

  /* Galería interna: 2 columnas en tablet */
  .galeria__grid  { grid-template-columns: repeat(2, 1fr); }

  /* Banner ML: fila en tablet+ */
  .banner-ml__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* Desktop ≥ 1024px */
@media (min-width: 1024px) {
  :root { --container-padding: 2rem; }

  /* Navbar */
  .navbar__nav          { display: flex; align-items: center; flex: 1; justify-content: center; }
  .navbar__cta-desktop  { display: inline-flex; }
  .navbar__hamburger    { display: none; }

  /* Dropdown con hover en desktop */
  .navbar__item--dropdown:hover .navbar__dropdown { display: block; }
  .navbar__item--dropdown:hover .navbar__chevron  { transform: rotate(180deg); }

  /* Hero index — two-column split */
  .hero__inner {
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    padding-block: 2.5rem 6rem;
  }

  .hud__frame {
    width: 320px;
    height: 320px;
  }

  /* Hero sección interna */
  .hero-seccion { padding-block: 5rem 4rem; }

  /* Nosotros: 2 columnas desktop con imagen diagonal */
  .nosotros__inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .nosotros__img-col { margin-left: -2rem; }
  .nosotros__img {
    height: 540px;
    border-radius: 0;
    clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
  }
  .nosotros__badge   { bottom: 28px; left: 28px; font-size: 0.75rem; padding: 8px 16px; }
  .nosotros__content { padding-left: 3.5rem; }

  /* Contacto: 2 columnas */
  .contacto__inner  { grid-template-columns: 1.1fr 0.9fr; }
  .contacto__wa-cta { width: auto; }

  /* Galería interna: 3 columnas en desktop */
  .galeria__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Wide ≥ 1280px */
@media (min-width: 1280px) {
  .galeria__grid { gap: 1.5rem; }
}
