/* ============================================================
   EKONO LETREROS — Capa de diseño v2
   Mejoras visuales, hero animado y micro-interacciones.
   Se carga DESPUÉS de los estilos inline de cada página.
   ============================================================ */

/* ---------- VARIABLES / BASE ---------- */
:root {
  --azul-marca: #0D3B8C;
  --azul-oscuro: #0A2A66;
  --azul-noche: #081C45;
  --acento: #F5A623;
  --acento-claro: #FFD98A;
  --blanco: #FFFFFF;
  --texto-principal: #1e293b;
  --texto-secundario: #5A6A8A;
  --borde-suave: #e2e8f0;
  --radius: 12px;
  --transition: 0.25s ease;
  --font-titulos: 'Montserrat', sans-serif;
  --font-cuerpo: 'Open Sans', sans-serif;
}

html { scroll-padding-top: 84px; }

body {
  text-align: left; /* legibilidad: nada de texto justificado */
  overflow-x: hidden;
}

::selection { background: var(--acento); color: #1e293b; }

/* Scrollbar sutil */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--azul-marca); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--azul-oscuro); }

/* ---------- BASE COMPARTIDA ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-cuerpo);
  color: var(--texto-principal);
  background: var(--blanco);
  line-height: 1.6;
  padding-top: 72px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titulos);
  font-weight: 800;
  line-height: 1.2;
  color: var(--azul-marca);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--texto-secundario);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* Botones completos (base + variantes + brillo) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-titulos);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::after { left: 135%; }

.btn-acento {
  background: var(--acento);
  color: #1e293b;
  box-shadow: 0 6px 18px rgba(245,166,35,0.35);
}
.btn-acento:hover {
  background: #e0951a;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(245,166,35,0.45);
}

.btn-azul {
  background: var(--azul-marca);
  color: var(--blanco);
}
.btn-azul:hover {
  background: var(--azul-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,59,140,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--blanco);
  border: 2px solid rgba(255,255,255,0.75);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--blanco);
  transform: translateY(-2px);
}

.btn-wsp {
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-titulos);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-wsp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

/* ---------- SCROLL REVEAL (solo si hay JS) ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
html.js [data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- NAVBAR ---------- */
.navbar {
  height: 72px;
  background: linear-gradient(90deg, var(--azul-noche) 0%, var(--azul-marca) 60%, #1248a8 100%);
  border-bottom: 2px solid rgba(245, 166, 35, 0.35);
}
.navbar::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(255,255,255,0.02) 30px, rgba(255,255,255,0.02) 32px),
    repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(255,255,255,0.015) 30px, rgba(255,255,255,0.015) 32px);
  animation: barrido 26s linear infinite;
  pointer-events: none; z-index: 0;
}
@keyframes barrido {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}
.navbar .nav-logo { position: relative; z-index: 1; }
.navbar .nav-logo img { transition: transform 0.3s ease; }
.navbar .nav-logo:hover img { transform: scale(1.06) rotate(-2deg); }
.nav-menu { position: relative; z-index: 1; }

/* ---------- BOTONES: brillo + elevación ---------- */


/* ============================================================
   HERO ANIMADO (home)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--azul-noche) 0%, var(--azul-oscuro) 48%, var(--azul-marca) 100%);
  color: var(--blanco);
  padding: 96px 0 0;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 2;
}

/* --- Fondo vivo: blobs de color --- */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  will-change: transform;
}
.hero-blob.b1 {
  width: 480px; height: 480px;
  top: -140px; left: -120px;
  background: radial-gradient(circle, #1d4ed8 0%, transparent 70%);
  animation: blob-a 22s ease-in-out infinite alternate;
}
.hero-blob.b2 {
  width: 420px; height: 420px;
  bottom: -160px; right: -100px;
  background: radial-gradient(circle, #F5A623 0%, transparent 70%);
  opacity: 0.28;
  animation: blob-b 26s ease-in-out infinite alternate;
}
.hero-blob.b3 {
  width: 300px; height: 300px;
  top: 30%; left: 45%;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  opacity: 0.22;
  animation: blob-a 30s ease-in-out infinite alternate-reverse;
}
@keyframes blob-a {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(90px, 60px) scale(1.25); }
}
@keyframes blob-b {
  0%   { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-80px, -50px) scale(0.9); }
}

/* --- Iconos flotantes de imprenta --- */
.hero-icon {
  position: absolute; z-index: 1;
  color: rgba(255,255,255,0.14);
  animation: float-icon 9s ease-in-out infinite;
  pointer-events: none;
}
.hero-icon.i1 { top: 18%; left: 6%; font-size: 2.6rem; animation-delay: 0s; }
.hero-icon.i2 { top: 12%; right: 12%; font-size: 2rem; animation-delay: 1.4s; }
.hero-icon.i3 { bottom: 22%; left: 12%; font-size: 2.2rem; animation-delay: 2.6s; }
.hero-icon.i4 { bottom: 14%; right: 6%; font-size: 2.8rem; animation-delay: 3.8s; }
.hero-icon.i5 { top: 42%; right: 38%; font-size: 1.5rem; animation-delay: 5s; }
@keyframes float-icon {
  0%, 100% { transform: translateY(0) rotate(-4deg); opacity: 0.12; }
  50%      { transform: translateY(-18px) rotate(6deg); opacity: 0.22; }
}

/* --- Contenido --- */
.hero-content { flex: 1.1; position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center; gap: 8px;
  background: var(--acento);
  color: #1e293b;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font-titulos);
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(245,166,35,0.45);
  animation: pulse-badge 2.2s ease-in-out infinite;
}
.hero-badge i { font-size: 0.9rem; }
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(245,166,35,0.45); }
  50%      { transform: scale(1.045); box-shadow: 0 6px 26px rgba(245,166,35,0.6); }
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 900;
  color: var(--blanco);
  line-height: 1.12;
  margin-bottom: 18px;
  text-shadow: 0 3px 30px rgba(0,0,0,0.25);
}
.hero-grad {
  background: linear-gradient(90deg, #FFB84D, var(--acento), var(--acento-claro), var(--acento));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
  display: inline-block;
}
@keyframes shimmer {
  to { background-position: 220% center; }
}

/* Rotador de palabras */
.hero-rotator {
  font-family: var(--font-titulos);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(255,255,255,0.95);
  margin-bottom: 16px;
  min-height: 1.9em;
}
.rotator {
  display: inline-grid;
  grid-template-columns: min-content min-content;
  vertical-align: baseline;
  position: relative;
  height: 1.25em;
  overflow: hidden;
  color: var(--acento);
}
.rotator span {
  grid-area: 1 / 1;
  line-height: 1.25em;
  transform: translateY(100%);
  opacity: 0;
  animation: rotate-words 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-fill-mode: both;
  will-change: transform, opacity;
}
.rotator span:nth-child(1) { animation-delay: 0s; }
.rotator span:nth-child(2) { animation-delay: 2s; }
.rotator span:nth-child(3) { animation-delay: 4s; }
.rotator span:nth-child(4) { animation-delay: 6s; }
@keyframes rotate-words {
  0%   { transform: translateY(100%); opacity: 0; }
  4%   { transform: translateY(0); opacity: 1; }
  21%  { transform: translateY(0); opacity: 1; }
  25%  { transform: translateY(-100%); opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0; }
}
.rotator::after {
  content: "|";
  grid-area: 1 / 2;
  align-self: center;
  margin-left: 3px;
  color: var(--acento);
  animation: caret 1s steps(1) infinite;
  font-weight: 400;
}
@keyframes caret { 50% { opacity: 0; } }

.hero-sub {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

/* Mini-stats del hero */
.hero-mini-stats {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-mini-stat { display: flex; align-items: center; gap: 10px; }
.hero-mini-stat i {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,166,35,0.18);
  border: 1px solid rgba(245,166,35,0.4);
  border-radius: 10px;
  color: var(--acento);
  font-size: 1rem;
}
.hero-mini-stat strong { display: block; font-family: var(--font-titulos); font-size: 0.92rem; }
.hero-mini-stat small { font-size: 0.74rem; color: rgba(255,255,255,0.65); }

/* --- Visual: imagen con vida --- */
.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 2;
  will-change: transform;
}
.img-wrapper {
  position: relative;
  width: 100%;
  max-width: 470px;
  animation: float-y 6s ease-in-out infinite;
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.hero-glow {
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle, rgba(245,166,35,0.28) 0%, transparent 60%);
  border-radius: 50%;
  z-index: -1;
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.12); opacity: 1; }
}

/* Pizarra de horario (blackboard) colgada de la pared */
.chalk-board {
  position: absolute;
  top: -132px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 8px 20px 10px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.07), transparent 55%),
    linear-gradient(150deg, #10151d 0%, #161d27 55%, #0d1117 100%);
  border: 5px solid #8b5a2b;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(0,0,0,0.55);
  color: #fff;
  text-align: center;
  font-family: var(--font-titulos);
  white-space: nowrap;
  animation: board-float 5s ease-in-out infinite;
}
/* Argolla en el borde superior */
.chalk-hook {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 8px;
  border: 3px solid #a16207;
  border-bottom: none;
  border-radius: 9px 9px 0 0;
  background: transparent;
  box-shadow: inset 0 2px 2px rgba(0,0,0,0.35);
}
/* Cuerda que cuelga del clavo */
.chalk-board::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  width: 3px;
  height: 28px;
  background: linear-gradient(180deg, #b9c2d0 0%, #8b95a5 100%);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
/* Clavo en la pared */
.chalk-board::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 26px);
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f8fafc, #9ca3af 55%, #4b5563 100%);
  box-shadow: 0 2px 5px rgba(0,0,0,0.45), inset 0 -2px 3px rgba(0,0,0,0.3);
}
.chalk-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--acento);
  margin-bottom: 2px;
}
.chalk-days {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #fff;
  margin-bottom: 1px;
}
.chalk-hours {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(255,255,255,0.95);
  border-top: 1px dashed rgba(255,255,255,0.25);
  padding-top: 2px;
  margin-top: 2px;
}
@keyframes board-float {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-1deg); }
  50%      { transform: translateX(-50%) translateY(-9px) rotate(0.6deg); }
}
.img-wrapper img {
  width: 100%;
  border-radius: 22px;
  border: 3px solid rgba(255,255,255,0.18);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}

/* Sello circular giratorio */
.hero-stamp {
  position: absolute;
  top: -28px; right: -28px;
  width: 112px; height: 112px;
  z-index: 3;
  animation: stamp-float 5s ease-in-out infinite;
}
.hero-stamp svg { width: 100%; height: 100%; animation: spin 16s linear infinite; }
.hero-stamp .stamp-bg { fill: var(--acento); }
.hero-stamp .stamp-text {
  font-family: var(--font-titulos);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  fill: #1e293b;
}
.hero-stamp .stamp-star {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #1e293b; font-size: 1.6rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes stamp-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}

/* Tarjetas flotantes sobre la imagen */
.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.96);
  color: var(--texto-principal);
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.28);
  font-family: var(--font-titulos);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.float-card i {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  font-size: 0.95rem;
}
.float-card small { display: block; font-weight: 400; font-size: 0.68rem; color: var(--texto-secundario); }
.fc-1 { top: 12%; left: -34px; animation: fc-float 5.5s ease-in-out infinite; }
.fc-1 i { background: #dcfce7; color: #16a34a; }
.fc-2 { bottom: 10%; right: -26px; animation: fc-float 6.5s ease-in-out 0.8s infinite; }
.fc-2 i { background: #fef3c7; color: #d97706; }
@keyframes fc-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Indicador de scroll */
.hero-scroll {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 54px auto 0;
  width: fit-content;
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem;
  font-family: var(--font-titulos);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.hero-scroll .wheel {
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 14px;
  position: relative;
}
.hero-scroll .wheel::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--acento);
  animation: wheel-dot 1.8s ease-in-out infinite;
}
@keyframes wheel-dot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- MARQUEE ---------- */
.marquee {
  position: relative;
  z-index: 3;
  margin-top: 56px;
  background: var(--acento);
  color: #1e293b;
  padding: 12px 0;
  overflow: hidden;
  transform: rotate(-1.2deg) scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 22s linear infinite;
}
.marquee-track span {
  font-family: var(--font-titulos);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 2px;
  white-space: nowrap;
  display: flex; align-items: center; gap: 34px;
  padding-right: 34px; /* cierre del loop sin saltos */
}
.marquee-track i { font-size: 0.7rem; }
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   BANDA DE ESTADÍSTICAS (contadores)
   ============================================================ */
.stats-band {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  padding: 70px 0;
  border-bottom: 1px solid var(--borde-suave);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { padding: 10px; }
.stat-item i {
  font-size: 2rem;
  color: var(--acento);
  margin-bottom: 12px;
  display: inline-block;
}
.stat-item .stat-number {
  font-family: var(--font-titulos);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 900;
  color: var(--azul-marca);
  line-height: 1;
}
.stat-item .stat-number .suffix { color: var(--acento); }
.stat-item p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--texto-secundario);
  font-weight: 600;
}

/* ============================================================
   TARJETAS DE PRODUCTO — pulido
   ============================================================ */
.producto-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.producto-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--acento), var(--azul-marca));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}
.producto-card:hover::before { transform: scaleX(1); }
.producto-card .icono { overflow: hidden; }
.producto-card .icono img { transition: transform 0.55s ease; }
.producto-card:hover .icono img { transform: scale(1.08); }
.producto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 46px rgba(13,59,140,0.14);
}
.producto-card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.producto-card .card-link:hover { border-bottom-color: var(--acento); }

/* Por qué Ekono */
.pq-item { position: relative; transition: var(--transition); }
.pq-item i {
  width: 74px; height: 74px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 20px;
  background: rgba(245,166,35,0.12);
  font-size: 1.9rem;
  transition: var(--transition);
  position: relative;
}
.pq-item:hover i {
  background: var(--acento);
  color: #1e293b;
  transform: translateY(-4px) rotate(-4deg);
  box-shadow: 0 12px 26px rgba(245,166,35,0.4);
}

/* Clientes: las tarjetas ya animan solas (marquee) */

/* ============================================================
   BANNERS DE PÁGINAS INTERNAS (vivos)
   ============================================================ */
.product-page-header,
.page-banner {
  position: relative;
  text-align: center;
  padding: 118px 20px 78px;
  background: linear-gradient(160deg, var(--azul-noche) 0%, var(--azul-oscuro) 50%, var(--azul-marca) 100%);
  color: var(--blanco);
  overflow: hidden;
}
.product-page-header::before,
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 32px, rgba(255,255,255,0.035) 32px, rgba(255,255,255,0.035) 34px),
    radial-gradient(circle at 15% 20%, rgba(29,78,216,0.5) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(245,166,35,0.25) 0%, transparent 45%);
  animation: banner-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes banner-drift {
  0%   { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 0 34px, 30px -20px, -30px 20px; }
}
.product-page-header .container,
.page-banner .container { position: relative; z-index: 1; }
.product-page-header h1,
.page-banner h1 {
  color: var(--blanco);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 10px;
  position: relative;
  text-shadow: 0 3px 24px rgba(0,0,0,0.3);
  display: inline-block;
}
.product-page-header h1::after,
.page-banner h1::after {
  content: "";
  display: block;
  width: 90px; height: 5px;
  margin: 14px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--acento), var(--acento-claro));
  animation: underline-grow 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes underline-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.product-page-header p,
.page-banner p {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  max-width: 660px;
  margin: 16px auto 0;
  position: relative;
}

/* Proyectos hero */
.proyectos-hero {
  position: relative;
  padding: 118px 20px 84px;
  background: linear-gradient(160deg, var(--azul-noche) 0%, var(--azul-oscuro) 50%, var(--azul-marca) 100%);
  overflow: hidden;
}
.proyectos-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 32px, rgba(255,255,255,0.035) 32px, rgba(255,255,255,0.035) 34px),
    radial-gradient(circle at 80% 15%, rgba(245,166,35,0.22) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(29,78,216,0.5) 0%, transparent 45%);
  animation: banner-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
.proyectos-hero h1 {
  position: relative;
  z-index: 1;
  text-shadow: 0 3px 24px rgba(0,0,0,0.3);
}
.proyectos-hero h1::after {
  content: "";
  display: block;
  width: 90px; height: 5px;
  margin: 14px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--acento), var(--acento-claro));
  animation: underline-grow 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.proyectos-hero p { position: relative; z-index: 1; }

/* Galería: zoom + sombra */
.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.galeria-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(13,59,140,0.18);
}
.galeria-item img { transition: transform 0.6s ease; }
.galeria-item:hover img { transform: scale(1.07); }

.img-grid-item {
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.img-grid-item:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(13,59,140,0.16); }
.img-grid-item img { transition: transform 0.6s ease; }
.img-grid-item:hover img { transform: scale(1.07); }

/* Detalle de producto */
.detalle-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.detalle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(13,59,140,0.14);
  border-color: rgba(13,59,140,0.35);
}

/* Contacto */
.contact-info h1, .contact-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  position: relative;
  display: inline-block;
}
.contact-info h1::after, .contact-info h2::after {
  content: "";
  display: block;
  width: 80px; height: 4px;
  margin-top: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--acento), var(--acento-claro));
}

/* ============================================================
   CTA FINAL (home)
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--azul-noche) 0%, var(--azul-oscuro) 55%, var(--azul-marca) 100%);
  color: var(--blanco);
  text-align: center;
  padding: 90px 20px;
}
.cta-section::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245,166,35,0.22) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(29,78,216,0.55) 0%, transparent 50%);
  animation: banner-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  color: var(--blanco);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin-bottom: 14px;
}
.cta-section h2 span { color: var(--acento); }
.cta-section p {
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER — pulido
   ============================================================ */
.footer { position: relative; }
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--acento), var(--acento-claro), var(--acento));
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}
.footer h4 { position: relative; display: inline-block; }
.footer h4::after {
  content: "";
  display: block;
  width: 28px; height: 3px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--acento);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   BURBUJA DE CHAT (home)
   ============================================================ */
.chat-bubble {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #3b82f6;
  color: var(--blanco);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
  z-index: 999;
  cursor: pointer;
  transition: var(--transition);
  animation: float-bubble 2.5s ease-in-out infinite;
}
.chat-bubble:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(59,130,246,0.55); animation: none; }
.chat-bubble.active { opacity: 0; pointer-events: none; }
@keyframes float-bubble {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.chat-popup {
  position: fixed;
  bottom: 90px; right: 24px;
  width: 340px;
  max-width: calc(100vw - 48px);
  z-index: 998;
  opacity: 0; visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.chat-popup.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chat-popup-inner {
  background: var(--blanco);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  overflow: hidden;
}
.chat-header {
  background: linear-gradient(90deg, var(--azul-noche), var(--azul-marca));
  color: var(--blanco);
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 0.95rem;
}
.chat-header button { background: none; border: none; color: var(--blanco); font-size: 1.4rem; cursor: pointer; padding: 0 4px; line-height: 1; opacity: 0.8; }
.chat-header button:hover { opacity: 1; }
.chat-body { padding: 20px; }
.chat-body p { font-size: 0.88rem; color: #64748b; margin-bottom: 14px; }
.chat-body input,
.chat-body textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  margin-bottom: 10px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.chat-body input:focus, .chat-body textarea:focus { border-color: #25D366; outline: none; box-shadow: 0 0 0 3px rgba(37,211,102,0.15); }
.chat-body textarea { resize: vertical; min-height: 60px; }
.chat-body .btn-chat {
  width: 100%; padding: 12px;
  background: #25D366; color: #fff;
  border: none; border-radius: 50px;
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.chat-body .btn-chat:hover { background: #1da851; }
.chat-body .btn-chat i { font-size: 1.1rem; }

/* ============================================================
   VOLVER ARRIBA
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 46px; height: 46px;
  border: none; cursor: pointer;
  border-radius: 14px;
  background: var(--azul-marca);
  color: var(--blanco);
  font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(13,59,140,0.4);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.3s;
  z-index: 998;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--acento); color: #1e293b; transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero .container { gap: 36px; }
  .fc-1 { left: -8px; }
  .fc-2 { right: -8px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}

@media (max-width: 920px) {
  .hero { padding-top: 180px; }
  .hero .container { flex-direction: column; text-align: center; gap: 44px; }
  .hero-content { order: 1; }
  .hero-visual { order: 0; }
  .hero-visual .img-wrapper { max-width: 340px; }
  .hero-buttons, .hero-mini-stats { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-mini-stats { flex-direction: column; gap: 12px; align-items: center; }
  /* Pizarra visible en móvil: tamaño original legible, flotando sobre la foto */
  .chalk-board { top: -166px; padding: 8px 20px 10px; border-width: 5px; gap: 1px; animation: board-float-s 5s ease-in-out infinite; }
  .chalk-board::before, .chalk-board::after { display: none; }
  .chalk-title { font-size: 0.55rem; letter-spacing: 2.5px; margin-bottom: 2px; }
  .chalk-days { font-size: 0.75rem; margin-bottom: 1px; }
  .chalk-hours { font-size: 0.88rem; line-height: 1.35; padding-top: 2px; margin-top: 2px; }
  @keyframes board-float-s {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-0.8deg); }
    50%      { transform: translateX(-50%) translateY(-2px) rotate(0.5deg); }
  }
  /* Mini-stats: mismo ancho para alinear los iconos */
  .hero-mini-stat { width: 100%; max-width: 280px; }
  .hero-scroll { display: none; }
  .hero-stamp { width: 92px; height: 92px; top: -20px; right: -10px; }
  .fc-1 { top: 8%; left: 0; }
  .fc-2 { bottom: 6%; right: 0; }
  .product-page-header, .page-banner, .proyectos-hero { padding: 96px 20px 60px; }
}

@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-icon { display: none; }
  .marquee { transform: rotate(-1.2deg) scale(1.06); }
  .float-card { font-size: 0.7rem; padding: 8px 12px; }
}

/* ============================================================
   ACCESIBILIDAD: preferencias de movimiento reducido
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .rotator span { animation: none; transform: none; opacity: 1; }
  .rotator span:not(:first-child) { display: none; }
}

/* ============================================================
   ESTRUCTURA DE SECCIONES — base compartida v2.1
   (navbar, productos, por-qué, footer)
   ============================================================ */
:root {
  --radius-sm: 8px;
  --sombra-suave: rgba(0,0,0,0.08);
  --sombra-media: rgba(0,0,0,0.15);
}

/* ---------- NAVBAR (estructura) ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.32); }
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  position: relative;
  z-index: 1;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-titulos);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--blanco);
  letter-spacing: -0.5px;
}
.nav-logo small { font-weight: 300; font-size: 0.65rem; opacity: 0.8; display: block; margin-top: -4px; }
.nav-logo img { height: 50px; width: auto; display: block; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: 100%;
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-titulos);
  white-space: nowrap;
  transition: var(--transition);
  position: relative;
}
.nav-item > a:hover, .nav-item > a:focus-visible { color: var(--blanco); background: rgba(255,255,255,0.1); }
.nav-item > a i { font-size: 0.7rem; margin-left: 2px; }
.nav-item.has-submenu::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0;
  width: 100%; height: 12px;
  background: transparent;
  z-index: 2;
}
.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 220px;
  background: var(--blanco);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 30px var(--sombra-media);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
  pointer-events: none;
}
.nav-item.has-submenu:hover .submenu,
.nav-item.has-submenu .submenu.open,
.submenu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.submenu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  color: var(--texto-principal);
  font-size: 0.88rem;
  font-weight: 400;
  transition: var(--transition);
}
.submenu a i { width: 16px; text-align: center; font-size: 0.9rem; }
.submenu a:hover, .submenu a:focus-visible {
  background: #f0f4ff;
  color: var(--azul-marca);
  padding-left: 26px;
}
.has-submenu > a .fa-chevron-down { transition: transform 0.2s; }
.has-submenu:hover > a .fa-chevron-down { transform: rotate(180deg); }
.nav-item.cta-item > a {
  background: var(--acento);
  color: #1e293b;
  border-radius: 50px;
  padding: 8px 20px;
  margin: 0 6px;
  height: auto;
  font-weight: 800;
}
.nav-item.cta-item > a:hover { background: #e0951a; box-shadow: 0 4px 14px rgba(245,166,35,0.4); }
.nav-item.nav-contact-item > a {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  padding: 0 10px;
  gap: 5px;
}
.nav-item.nav-contact-item > a:hover { color: #fff; background: transparent; }
.nav-item.nav-contact-item > a i { font-size: 0.85rem; }
.nav-item.wsp-item > a {
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 8px 20px;
  margin: 0 6px;
  height: auto;
  font-weight: 700;
}
.nav-item.wsp-item > a i { font-size: 1.2rem; }
.nav-item.wsp-item > a:hover { background: #1da851; box-shadow: 0 4px 14px rgba(37,211,102,0.4); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}
.nav-toggle span { display: block; width: 100%; height: 3px; background: var(--blanco); border-radius: 3px; transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- PRODUCTOS ---------- */
.productos { padding: 80px 0; background: var(--blanco); }
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.producto-card {
  background: var(--blanco);
  border: 1px solid var(--borde-suave);
  padding: 36px 28px 28px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}
.producto-card .icono {
  width: 100%;
  height: 220px;
  margin: 0 auto 16px;
  background: #f5f7fb;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.producto-card:hover .icono { background: #eef2ff; }
.producto-card .icono img { width: 100%; height: 100%; object-fit: contain; display: block; }
.producto-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.producto-card p { font-size: 0.85rem; color: var(--texto-secundario); margin-bottom: 16px; }
.producto-card .card-link { color: var(--azul-marca); font-weight: 600; font-size: 0.88rem; }
.producto-card .card-link i { font-size: 0.7rem; transition: var(--transition); }
.producto-card .card-link:hover i { transform: translateX(4px); }

/* ---------- POR QUÉ EKONO ---------- */
.por-que { padding: 80px 0; background: #f8faff; }
.por-que-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.pq-item { text-align: center; padding: 32px 20px; }
.pq-item h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--azul-marca); }
.pq-item p { font-size: 0.9rem; color: var(--texto-secundario); }

/* ---------- FOOTER ---------- */
.footer { background: var(--azul-oscuro); color: #fff; padding: 60px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; opacity: 0.8; line-height: 1.6; }
.footer h4 { color: var(--blanco); font-size: 1rem; margin-bottom: 16px; font-weight: 700; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { font-size: 0.88rem; opacity: 0.8; transition: var(--transition); }
.footer ul li a:hover { opacity: 1; color: var(--acento); padding-left: 4px; }
.footer-contacto li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; opacity: 0.85; }
.footer-contacto li i { color: var(--acento); margin-top: 3px; min-width: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.6;
}

/* Detalle: alineación izquierda en párrafos */
.detalle-body p, .detalle-card-text p, .detalle-card p { text-align: left; }

/* ---------- RESPONSIVE (nav + secciones) ---------- */
@media (max-width: 920px) {
  body { padding-top: 64px; }
  .navbar { height: 64px; }
  .nav-logo { font-size: 1.2rem; }
  .nav-logo small { display: none; }
  .nav-logo img { height: 42px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--azul-marca);
    padding: 0 20px;
    height: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    box-shadow: 0 8px 30px var(--sombra-media);
  }
  .nav-menu.open { max-height: 1200px; padding: 12px 20px 24px; }
  .nav-item { height: auto; flex-direction: column; align-items: stretch; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-item > a { padding: 12px 8px; height: auto; justify-content: space-between; }
  .nav-item.has-submenu::after { display: none; }
  .nav-item.has-submenu { border-bottom: none; }
  .submenu {
    position: static;
    transform: none;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 0 8px;
    transition: max-height 0.3s ease;
  }
  .submenu.open { max-height: 500px; padding: 6px 8px 10px; }
  .nav-item.has-submenu .submenu.open { transform: none; }
  .submenu a { display: flex; align-items: center; gap: 8px; color: #fff; padding: 8px 12px; font-size: 0.85rem; min-height: 36px; }
  .submenu a:hover { background: rgba(255,255,255,0.18); color: var(--blanco); padding-left: 18px; }
  .nav-item.cta-item { border-bottom: none; margin-top: 6px; }
  .nav-item.cta-item > a { justify-content: center; padding: 10px; }
  .nav-item.nav-contact-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-item.nav-contact-item > a { justify-content: center; padding: 10px 8px; font-size: 0.82rem; color: rgba(255,255,255,0.75); }
  .nav-item.wsp-item > a { justify-content: center; padding: 10px; }
  .nav-item.wsp-item > a i { font-size: 1.4rem; }
}

@media (max-width: 420px) {
  .section-title { font-size: 1.5rem; }
  .hero-buttons .btn, .cta-buttons .btn { width: 100%; justify-content: center; }
}
