/* ═══════════════════════════════════════════════════════════════
   DIMAPASA PALOMARES · style.css
   Paleta: Acero + Azul eléctrico
   Fuentes: Rajdhani (títulos), Barlow / Barlow Condensed (cuerpo)
════════════════════════════════════════════════════════════════ */

/* ─── VARIABLES DE COLOR Y TIPOGRAFÍA ─── */
:root {
 --azul-rey:     #1E3A8A;   /* mismo azul de marca, pero como color SÓLIDO, no de fondo */
--azul-rey-luz: #2851B5;
--blanco:       #FFFFFF;   /* fondo dominante, sin mezcla gris */
--negro:        #14171A;   /* texto principal — casi negro, no grafito suave */
--gris-texto:   #4B5563;   /* texto secundario, pero con más contraste que antes */
--borde:        #E5E7EB;   /* líneas divisorias, sutil pero visible */
--cobre:        #B5651D;   /* acento cálido, para CTAs y detalles — coherencia con el admin */

  --font-display:  'Rajdhani', sans-serif;
  --font-body:     'Barlow', sans-serif;
  --font-cond:     'Barlow Condensed', sans-serif;
}

/* ─── RESET BÁSICO ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;        /* scroll suave al hacer clic en nav links */
  scroll-padding-top: 64px;       /* deja espacio para la nav fija */
}

body {
  font-family: var(--font-body);
  background: var(--acero);
  color: var(--texto);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { text-decoration: none; }

/* ─── UTILIDADES ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Etiqueta de sección (texto pequeño azul sobre los títulos) */
.section-label {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--azul);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: var(--blanco);
  margin-bottom: 1.25rem;
}

/* ─── BOTONES ─── */
.btn-primary {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--azul);
  color: var(--acero);
  padding: 14px 28px;
  display: inline-block;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--azul-bright); }

.btn-secondary {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--borde-sutil);
  color: var(--texto-sec);
  padding: 14px 28px;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--azul);
  color: var(--azul);
}


/* ════════════════════════════════════
   NAVEGACIÓN
════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Fondo transparente por defecto — main.js lo pone opaco al hacer scroll */
  background: transparent;
  border-bottom: 0.5px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}

/* Clase que agrega main.js cuando el usuario ya scrolleó */
#navbar.scrolled {
  background: rgba(28, 36, 48, 0.92);
  border-bottom-color: var(--borde);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.12em;
  color: var(--blanco);
}

.nav-logo span { color: var(--azul); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texto-sec);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

/* Línea animada bajo el link activo */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--azul);
  transition: width 0.25s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--azul-bright);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azul);
  border: 1px solid var(--azul-dim);
  padding: 8px 18px;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: var(--azul);
  color: var(--acero);
}

/* Hamburguesa (se muestra solo en móvil) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--texto);
  transition: transform 0.25s, opacity 0.25s;
}

/* Menú móvil overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--acero);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Oculto por defecto — main.js alterna la clase .open */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--texto);
  letter-spacing: 0.05em;
}

.mobile-link:hover { color: var(--azul); }

.mobile-cta {
  color: var(--azul);
  border: 1px solid var(--azul-dim);
  padding: 12px 32px;
  font-size: 1.2rem;
}


/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.section-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 2.5rem 5rem;
  position: relative;
  overflow: hidden;
}

/* Cuadrícula de fondo */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,139,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,139,216,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Resplandor azul superior derecho */
.hero-glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(59,139,216,0.13) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero-pretitle {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-pretitle::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--azul);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--blanco);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: normal;
  color: var(--azul);
}

.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--texto-sec);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Estadísticas (esquina inferior derecha) */
.hero-stats {
  position: absolute;
  bottom: 3.5rem;
  right: 2.5rem;
  display: flex;
  gap: 2.5rem;
}

.stat {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--blanco);
  line-height: 1;
}

.stat-accent { color: var(--azul); }

.stat-label {
  font-size: 11px;
  color: var(--texto-ter);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Indicador de scroll */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--azul), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

.scroll-text {
  font-family: var(--font-cond);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--texto-ter);
  writing-mode: vertical-rl;
}


/* ════════════════════════════════════
   QUIÉNES SOMOS
════════════════════════════════════ */
.section-quienes {
  padding: 5rem 2rem;
  background: var(--acero-mid);
  border-top: 0.5px solid var(--borde-sutil);
  border-bottom: 0.5px solid var(--borde-sutil);
}

.quienes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.quienes-texto p {
  font-size: 15px;
  color: var(--texto-sec);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.quienes-texto p strong {
  color: var(--texto);
  font-weight: 500;
}

/* Línea de tiempo */
.timeline-wrap {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  padding-bottom: 2rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--azul);
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 0 3px rgba(59,139,216,0.2);
}

.timeline-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--azul);
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1;
  margin-top: 2px;
}

.timeline-line {
  width: 1px;
  flex: 1;
  background: var(--borde);
  margin-top: 4px;
  min-height: 30px;
}

.timeline-content h4 {
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 600;
  color: var(--blanco);
  margin-bottom: 6px;
  margin-top: 4px;
}

.timeline-content p {
  font-size: 13px;
  color: var(--texto-sec);
  line-height: 1.65;
}


/* ════════════════════════════════════
   MARCAS
════════════════════════════════════ */
.section-marcas {
  padding: 5rem 2rem;
  background: var(--acero);
}

.marcas-header {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 3rem;
}

.marcas-sub {
  font-size: 14px;
  color: var(--texto-sec);
  line-height: 1.7;
}

.marcas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--borde-sutil);   /* el gap se ve como líneas divisorias */
  border: 0.5px solid var(--borde-sutil);
  max-width: 960px;
  margin: 0 auto;
}

.marca-card {
  background: var(--acero-mid);
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.2s;
  cursor: default;
}

.marca-card:hover { background: var(--acero-light); }

/* Contenedor del logo */
.marca-logo-wrap {
  width: 80px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Placeholder mientras no hay logo real */
.marca-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--azul-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--azul);
}

.marca-name {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texto-sec);
  text-align: center;
}

.marca-origin {
  font-size: 11px;
  color: var(--texto-ter);
  text-align: center;
}


/* ════════════════════════════════════
   UBICACIÓN / CONTACTO
════════════════════════════════════ */
.section-ubicacion {
  padding: 5rem 2rem;
  background: var(--acero-mid);
  border-top: 0.5px solid var(--borde-sutil);
}

.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contacto-bloque {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contacto-icono {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  filter: grayscale(0.3);
}

.contacto-bloque h3 {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texto-ter);
  margin-bottom: 4px;
}

.contacto-bloque p,
.contacto-bloque a {
  font-size: 14px;
  color: var(--texto-sec);
  line-height: 1.7;
  display: block;
}

.contacto-bloque a:hover { color: var(--azul); }

/* Tabla de horarios */
.horario-tabla {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.horario-tabla tr {
  border-bottom: 0.5px solid var(--borde-sutil);
}

.horario-tabla tr:last-child { border-bottom: none; }

.horario-tabla td {
  padding: 5px 0;
  color: var(--texto-sec);
}

.horario-tabla td:last-child {
  text-align: right;
  color: var(--texto);
}

/* Mapa placeholder */
.mapa-wrap {
  position: relative;
}

.mapa-placeholder {
  background: var(--acero-light);
  border: 0.5px solid var(--borde-sutil);
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.mapa-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,139,216,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,139,216,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.mapa-pin {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--azul);
  box-shadow:
    0 0 0 5px rgba(59,139,216,0.25),
    0 0 0 10px rgba(59,139,216,0.1);
}

.pin-label {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--azul);
  background: var(--acero);
  padding: 5px 12px;
  border: 0.5px solid var(--borde);
}

.mapa-note {
  position: absolute;
  bottom: 1rem;
  font-size: 10px;
  color: var(--texto-ter);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
#footer {
  background: #111820;
  border-top: 0.5px solid var(--borde-sutil);
  padding: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--texto-ter);
}

.footer-logo span { color: var(--azul-dim); }

.footer-copy {
  font-size: 12px;
  color: var(--texto-ter);
}


/* ════════════════════════════════════
   ANIMACIONES DE SCROLL (reveal)
   main.js agrega la clase .visible
   cuando el elemento entra al viewport
════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.35s; }
.reveal-delay-4 { transition-delay: 0.48s; }


/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta  { display: none; }

  .nav-hamburger { display: flex; }

  .section-hero { padding: 5rem 1.5rem 8rem; }

  .hero-stats {
    position: static;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .stat { text-align: left; }

  .scroll-indicator { display: none; }

  .quienes-grid,
  .ubicacion-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .marcas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .marcas-grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════
   HERO · GRID DOS COLUMNAS + VIDEO
════════════════════════════════════ */

/* Grid de dos columnas dentro del hero */
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

/* Video del hero */
.hero-video-wrap {
  position: relative;
}

.hero-video {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--borde);
  background: var(--acero-light);
}

/* Detalle decorativo: esquina superior izquierda */
.video-corner-tl {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 32px;
  height: 32px;
  border-top: 2px solid var(--azul);
  border-left: 2px solid var(--azul);
  pointer-events: none;
}

/* Detalle decorativo: esquina inferior derecha */
.video-corner-br {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  border-bottom: 2px solid var(--azul);
  border-right: 2px solid var(--azul);
  pointer-events: none;
}

/* En móvil el grid se apila */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-video {
    max-height: 260px;
  }
}


/* ════════════════════════════════════
   SECCIÓN MÁQUINA ESTRELLA
════════════════════════════════════ */
.section-estrella {
  padding: 5rem 2rem;
  background: var(--acero);
  border-top: 0.5px solid var(--borde-sutil);
  border-bottom: 0.5px solid var(--borde-sutil);
}

.estrella-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Imagen / placeholder */
.estrella-imagen-wrap {
  position: relative;
}

.estrella-imagen {
  width: 100%;
  border: 1px solid var(--borde);
  display: block;
}

.estrella-placeholder {
  width: 100%;
  min-height: 380px;
  background: var(--acero-light);
  border: 1px solid var(--borde);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
}

.estrella-placeholder-icon {
  font-size: 3.5rem;
  opacity: 0.4;
}

.estrella-placeholder-text {
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texto-sec);
}

.estrella-placeholder-sub {
  font-size: 12px;
  color: var(--texto-ter);
}

/* Badge "Máquina destacada" */
.estrella-badge {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azul);
  border: 1px solid var(--azul-dim);
  padding: 4px 12px;
  margin-bottom: 1rem;
}

/* Subtítulo en em dentro del h2 */
.estrella-subtitulo {
  font-style: normal;
  color: var(--azul);
  font-size: 0.65em;
  display: block;
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.estrella-desc {
  font-size: 15px;
  color: var(--texto-sec);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

/* Especificaciones rápidas */
.estrella-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border: 0.5px solid var(--borde-sutil);
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  background: var(--acero-mid);
  border: 0.5px solid var(--borde-sutil);
}

.spec-label {
  font-size: 11px;
  font-family: var(--font-cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texto-ter);
}

.spec-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--blanco);
}

.estrella-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .estrella-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .estrella-placeholder {
    min-height: 240px;
  }
  .estrella-specs {
    grid-template-columns: 1fr;
  }
}


/* ════════════════════════════════════
   MÓDULO CATÁLOGO DE MÁQUINAS
════════════════════════════════════ */

/* Contenedor del módulo — cubre el index */
#contenedor-modulo {
  display: none; /* main.js lo muestra cuando carga el módulo */
  min-height: 100vh;
  background: var(--acero);
  padding-top: 64px; /* altura del navbar fijo */
}

/* Header del catálogo */
.catalogo-header {
  background: var(--acero-mid);
  border-bottom: 0.5px solid var(--borde-sutil);
  padding: 1.5rem 2rem;
}

.catalogo-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-volver {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texto-sec);
  background: none;
  border: 0.5px solid var(--borde-sutil);
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.btn-volver:hover {
  color: var(--azul);
  border-color: var(--azul);
}

.catalogo-titulo-wrap .section-title {
  margin-bottom: 0;
  font-size: 1.75rem;
}

.catalogo-contador {
  font-size: 13px;
  color: var(--texto-ter);
  font-family: var(--font-cond);
  letter-spacing: 0.06em;
}

/* ── FILTROS ── */
.filtros-wrap {
  background: var(--acero-mid);
  border-bottom: 0.5px solid var(--borde-sutil);
  padding: 1rem 2rem;
  overflow-x: auto;
}

.filtros-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.filtro-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1.25rem;
  background: none;
  border: 0.5px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--texto-sec);
  transition: all 0.2s;
  white-space: nowrap;
  min-width: 90px;
}

.filtro-btn:hover {
  background: var(--acero-light);
  color: var(--texto);
}

.filtro-btn.active {
  background: var(--acero-light);
  border-color: var(--azul);
  color: var(--azul);
}

.filtro-icono {
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.filtro-icono svg {
  width: 32px;
  height: 32px;
  color: currentColor;
}

/* Línea bajo el filtro activo (igual que Flexi) */
.filtro-btn.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--azul);
  border-radius: 1px;
  margin-top: -4px;
}

.filtro-label {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── GRID DE CARDS ── */
.catalogo-grid-wrap {
  padding: 2.5rem 2rem;
}

.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ── CARD ── */
.maq-card {
  background: var(--acero-mid);
  border: 0.5px solid var(--borde-sutil);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.maq-card:hover {
  transform: translateY(-4px);
  border-color: var(--borde);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Imagen del card */
.maq-card-img-wrap {
  position: relative;
  background: var(--acero-light);
  height: 220px;
  overflow: hidden;
}

.maq-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  display: block;
}

.maq-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--acero-light);
}

.maq-placeholder-icon {
  font-size: 3rem;
  opacity: 0.25;
}

/* Badge de categoría sobre la imagen */
.maq-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azul);
  background: rgba(28,36,48,0.88);
  border: 0.5px solid var(--azul-dim);
  padding: 3px 9px;
  border-radius: 3px;
}

/* Info del card */
.maq-card-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.maq-card-nombre {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.2;
}

.maq-card-desc {
  font-size: 12px;
  color: var(--texto-sec);
  line-height: 1.6;
  flex: 1;
}

/* Specs rápidas en el card */
.maq-card-specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 0.5px solid var(--borde-sutil);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.maq-card-spec {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.maq-spec-label {
  color: var(--texto-ter);
  font-family: var(--font-cond);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.maq-spec-valor {
  color: var(--texto);
  font-weight: 500;
}

/* Botón del card */
.maq-card-btn {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azul);
  background: none;
  border: 0.5px solid var(--azul-dim);
  padding: 8px 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 0.5rem;
  width: 100%;
}

.maq-card-btn:hover {
  background: var(--azul);
  color: var(--acero);
}

/* Estado vacío */
.catalogo-vacio {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  gap: 0.75rem;
}

.vacio-icono { font-size: 3rem; opacity: 0.3; }
.vacio-texto { font-size: 16px; color: var(--texto-sec); }
.vacio-sub   { font-size: 13px; color: var(--texto-ter); }


/* ════════════════════════════════════
   MODAL · FICHA TÉCNICA
════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10,14,20,0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.activo {
  opacity: 1;
  pointer-events: all;
}

.modal-ficha {
  background: var(--acero-mid);
  border: 0.5px solid var(--borde);
  border-radius: 12px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.activo .modal-ficha {
  transform: translateY(0);
}

.modal-cerrar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--acero-light);
  border: 0.5px solid var(--borde-sutil);
  color: var(--texto-sec);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  z-index: 10;
  transition: color 0.2s, border-color 0.2s;
}

.modal-cerrar:hover {
  color: var(--azul);
  border-color: var(--azul);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Imagen del modal */
.modal-imagen-wrap {
  background: var(--acero-light);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
}

.modal-imagen {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2rem;
}

.modal-imagen-placeholder {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--texto-ter);
  font-size: 13px;
}

.modal-imagen-placeholder span { font-size: 3rem; opacity: 0.3; }

/* Info del modal */
.modal-info {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-categoria {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--azul);
}

.modal-nombre {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.modal-desc {
  font-size: 13px;
  color: var(--texto-sec);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

/* Specs del modal */
.modal-specs-wrap {
  flex: 1;
}

.modal-specs-titulo {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--texto-ter);
  margin-bottom: 0.5rem;
}

.modal-spec-fila {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 0.5px solid var(--borde-sutil);
  font-size: 13px;
}

.modal-spec-fila:last-child { border-bottom: none; }

.modal-spec-label {
  color: var(--texto-sec);
  font-family: var(--font-cond);
  letter-spacing: 0.04em;
}

.modal-spec-valor {
  color: var(--blanco);
  font-weight: 500;
}

.modal-cta {
  margin-top: 1.25rem;
  text-align: center;
  display: block;
}

/* Responsive modal */
@media (max-width: 640px) {
  .modal-grid { grid-template-columns: 1fr; }
  .modal-imagen-wrap { border-radius: 12px 12px 0 0; min-height: 200px; }
  .filtros-inner { gap: 0.25rem; }
  .filtro-btn { min-width: 70px; padding: 0.5rem 0.75rem; }
  .catalogo-grid { grid-template-columns: 1fr 1fr; }
}
/* ════════════════════════════════════
   MÓDULO CATÁLOGO · PANTALLAS Y TABS
   Pegar al final de style.css
════════════════════════════════════ */

/* ── PANTALLA 1 · CATEGORÍAS ── */
.cat-wrap {
  padding: 2rem;
  font-family: var(--font-body);
  background: var(--acero);
  min-height: 100vh;
  color: var(--texto);
}

.bloque {
  margin-bottom: 3rem;
}

.encabezado {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 0.5px solid var(--borde-sutil);
  padding-bottom: 10px;
  margin-bottom: 1.25rem;
}

.encabezado h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--blanco);
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: .05em;
}

.encabezado .contador {
  font-size: 13px;
  color: var(--texto-ter);
  margin: 0;
}

.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.cat-card {
  background: var(--acero-mid);
  border: 0.5px solid var(--borde-sutil);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
  text-decoration: none;
  display: block;
}

.cat-card:hover {
  border-color: var(--azul);
  transform: translateY(-3px);
}

.cat-img {
  width: 100%;
  height: 130px;
  background: var(--acero-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cat-img-real {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .3s;
}

.cat-card:hover .cat-img-real {
  transform: scale(1.04);
}

.cat-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--texto-sec);
  width: 100%;
  height: 100%;
}

.cat-img-placeholder .ph-icon {
  font-size: 36px;
  opacity: .4;
}

.cat-img-placeholder .ph-texto {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .4;
}

.cat-card.todas .cat-img  { background: var(--acero); }
.cat-card.todas .ph-icon  { color: var(--azul); opacity: .7; }

.cat-label {
  padding: 10px 14px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--texto);
  line-height: 1.3;
}

.cat-card:hover .cat-label { color: var(--blanco); }

/* Refacciones */
.refs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.ref-item {
  background: var(--acero-mid);
  border: 0.5px solid var(--borde-sutil);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color .2s, transform .15s;
  text-decoration: none;
}

.ref-item:hover {
  border-color: var(--azul);
  transform: translateY(-2px);
}

.ref-item .ref-icon {
  font-size: 20px;
  color: var(--texto-sec);
  flex-shrink: 0;
  transition: color .2s;
}

.ref-item:hover .ref-icon { color: var(--azul); }

.ref-item .ref-nombre {
  font-size: 13px;
  font-weight: 500;
  color: var(--texto);
  line-height: 1.3;
}


/* ── PANTALLA 2 · GRID DE MÁQUINAS ── */
.grid-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.grid-header h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--blanco);
  margin: 0;
  letter-spacing: .05em;
}

.contador-grid {
  font-size: 13px;
  color: var(--texto-ter);
}

.catalogo-vacio {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  color: var(--texto-ter);
  gap: 12px;
}

.catalogo-vacio .vacio-icon { font-size: 48px; opacity: .3; }
.catalogo-vacio p { font-size: 14px; }


/* ── MODAL CON TABS VERTICALES ── */

/* Sobreescribe el modal del style.css para el nuevo diseño */
.modal-overlay {
  display: none !important;        /* oculto por defecto               */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 1;
  pointer-events: none;
}

.modal-overlay.activo {
  display: flex !important;        /* visible cuando JS agrega .activo  */
  pointer-events: all;
}

.modal-caja {
  background: var(--acero-mid);
  border: 0.5px solid var(--borde);
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-cerrar {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--acero-light);
  border: 0.5px solid var(--borde-sutil);
  color: var(--texto-sec);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  z-index: 10;
  transition: color .2s, border-color .2s;
}

.modal-cerrar:hover {
  color: var(--azul);
  border-color: var(--azul);
}

/* Imagen del modal */
.modal-img-wrap {
  width: 100%;
  height: 200px;
  background: var(--acero-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

#modal-imagen { width: 100%; height: 100%; object-fit: contain; }

#modal-imagen-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--texto-ter);
}

#modal-imagen-placeholder span { font-size: 48px; opacity: .2; }

/* Encabezado fijo */
.modal-encabezado {
  padding: 16px 24px 0;
}

#modal-categoria {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--azul);
  display: block;
  margin-bottom: 4px;
}

#modal-nombre {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--blanco);
  margin: 0;
}

/* Tabs: layout izquierda/derecha */
.modal-tabs-wrap {
  display: flex;
  padding: 16px 24px 0;
  gap: 0;
}

/* Columna izquierda: botones verticales */
.modal-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 130px;
  border-right: 0.5px solid var(--borde-sutil);
  padding-right: 10px;
  padding-bottom: 24px;
}

.modal-tab-btn {
  background: none;
  border: none;
  border-left: 2px solid transparent;
  color: var(--texto-ter);
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 10px;
  cursor: pointer;
  text-align: left;
  transition: color .2s, background .2s, border-color .2s;
  border-radius: 0 4px 4px 0;
}

.modal-tab-btn:hover {
  color: var(--texto);
  background: var(--borde-sutil);
}

.modal-tab-btn.activo {
  color: var(--azul);
  border-left-color: var(--azul);
  background: rgba(59,139,216,0.06);
}

/* Columna derecha: contenido */
.modal-tab-area {
  flex: 1;
  padding: 4px 0 24px 18px;
  min-height: 160px;
}

/* Tab Descripción */
.tab-texto {
  font-size: 13px;
  color: var(--texto-sec);
  line-height: 1.7;
  margin: 0;
}

/* Tab Especificaciones */
.modal-spec-fila {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--acero);
  border-radius: 5px;
  font-size: 13px;
  margin-bottom: 5px;
}

.modal-spec-label { color: var(--texto-sec); }
.modal-spec-valor { color: var(--blanco); font-weight: 500; }

/* Tab Beneficios */
.tab-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-lista li {
  font-size: 13px;
  color: var(--texto-sec);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.tab-lista li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--azul);
  border-radius: 50%;
}

/* Tab Precio */
.tab-precio-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.tab-precio-valor {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--blanco);
}

.tab-precio-nota {
  font-size: 12px;
  color: var(--texto-ter);
  line-height: 1.5;
  margin: 0;
}

.tab-precio-btn {
  display: inline-block;
  margin-top: 4px;
  background: var(--azul);
  color: var(--blanco);
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background .2s;
}

.tab-precio-btn:hover { background: var(--azul-bright); }

/* ════════════════════════════════════
   LOGO COMO BOTÓN · módulo catálogo
════════════════════════════════════ */
/* Botón logo en pantalla de categorías */
.btn-logo-volver img,
.logo-btn-img {
    height: 100px;
    width: auto;
    display: block;
    border-radius: 6px;
}

.btn-logo-volver:hover {
    opacity: .85;
    transform: scale(1.03);
}

/* ════════════════════════════════════
   LOGO EN EL NAVBAR DEL INDEX
   Reemplaza el texto DIMAPASA
════════════════════════════════════ */

.nav-logo-img {
  height: 70px;    /* ajusta según qué tan grande se vea */
  width: auto;
  display: block;
  border-radius: 4px;
  transition: opacity .2s;
}

.nav-logo-img:hover {
  opacity: 0.85;
}
.cat-wrap {
  padding: 20px 2rem 2rem;
}

/* ════════════════════════════════════
   SECCIÓN PRÓXIMAMENTE · REFACCIONES
   Pegar al final de style.css
════════════════════════════════════ */

.prox-banner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: var(--acero-mid);
  border: 0.5px solid var(--borde-sutil);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  overflow: hidden;
  position: relative;
}

/* Línea azul decorativa a la izquierda */
.prox-banner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--azul), transparent);
  border-radius: 12px 0 0 12px;
}

/* GIF */
.prox-gif-wrap {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--acero-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid var(--borde-sutil);
}

.prox-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  opacity: 0.85;
}

.prox-gif-fallback {
  font-size: 4rem;
  opacity: 0.3;
  align-items: center;
  justify-content: center;
}

/* Texto */
.prox-texto {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prox-badge {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--azul);
  background: rgba(59,139,216,0.08);
  border: 0.5px solid rgba(59,139,216,0.25);
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}

.prox-titulo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--blanco);
  margin: 0;
  line-height: 1.2;
}

/* Cursor parpadeante */
.prox-cursor {
  color: var(--azul);
  animation: parpadeo 1s step-end infinite;
}

@keyframes parpadeo {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.prox-desc {
  font-size: 13px;
  color: var(--texto-sec);
  line-height: 1.7;
  margin: 0;
  max-width: 480px;
}

.prox-cta {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--azul);
  border: 0.5px solid var(--azul-dim);
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none;
  width: fit-content;
  transition: background .2s, color .2s;
}
.prox-cta:hover {
  background: var(--azul);
  color: var(--acero);
}

.cat-wrap {
  padding: 1.5rem; /* o el valor que tenía antes — dime si lo recuerdas o si tienes el original */
  position: relative; /* esto ancla el botón absolute correctamente */
}

.btn-logo-volver {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 0;
}

.logo-btn-img {
  display: block;
  height: 20px;
  width: auto;
}
.mapa-leaflet {
    width: 100%;
    height: 420px;       /* ajusta esta altura a tu gusto */
    border-radius: 12px;  /* opcional, para que combine con tus tarjetas redondeadas */
    overflow: hidden;
}
.link-admin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #F5F3EE;
    background: rgba(181, 101, 29, 0.15);
    border: 1px solid rgba(181, 101, 29, 0.4);
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.link-admin::before {
    font-size: 13px;
}

.link-admin:hover {
    background: #B5671D;
    border-color: #B5651D;
    color: #FFFFFF;
}
/* ════════════════════════════════════
   REDISEÑO: PALETA CLARA "CATÁLOGO INDUSTRIAL"
   Sobreescribe las variables oscuras del inicio del archivo
════════════════════════════════════ */

:root {
  --acero:        #FFFFFF;
  --acero-mid:    #F7F8FA;
  --acero-light:  #EEF1F5;
  --azul:         #1E3A8A;
  --azul-bright:  #2851B5;
  --azul-dim:     #C7D2E8;
  --texto:        #14171A;
  --texto-sec:    #4B5563;
  --texto-ter:    #8891A0;
  --blanco:       #14171A;   /* ahora "blanco" = texto oscuro sobre fondo claro */
  --borde:        #E2E5EA;
  --borde-sutil:  #EDEFF2;
  --cobre:        #B5651D;
  --cobre-claro:  #D08348;
}

body {
  background: var(--acero);
  color: var(--texto);
}

/* Navbar: fondo blanco sólido siempre, no transparente */
#navbar {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--borde);
  backdrop-filter: blur(8px);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 12px rgba(20, 23, 26, 0.06);
}

.nav-link { color: var(--texto-sec); }
.nav-link:hover, .nav-link.active { color: var(--azul); }

/* Hero: quitamos el grid/glow de neón, dejamos algo sutil */
.hero-grid-bg {
  background-image:
    linear-gradient(rgba(30,58,138,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,58,138,0.05) 1px, transparent 1px);
}

.hero-glow { display: none; } /* el "glow" no encaja en fondo claro */

.hero-title em { color: var(--azul); }
.hero-sub { color: var(--texto-sec); }

.btn-primary {
  background: var(--cobre);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--cobre-claro); }

.btn-secondary {
  border-color: var(--borde);
  color: var(--texto-sec);
}
.btn-secondary:hover {
  border-color: var(--azul);
  color: var(--azul);
}

/* Cards de categoría y máquina: bordes definidos, sombra suave en vez de glow */
.cat-card, .maq-card, .ref-item {
  background: #FFFFFF;
  border: 1px solid var(--borde);
  box-shadow: 0 1px 3px rgba(20, 23, 26, 0.04);
}

.cat-card:hover, .maq-card:hover {
  border-color: var(--azul-dim);
  box-shadow: 0 8px 20px rgba(20, 23, 26, 0.08);
}

.cat-img, .maq-card-img-wrap, .maq-card-placeholder {
  background: var(--acero-mid);
}

/* ════════════════════════════════════
   MODAL · FICHA TÉCNICA
   Rediseño inspirado en catálogos comerciales clásicos
════════════════════════════════════ */

.modal-overlay {
  background: rgba(20, 23, 26, 0.55);
  backdrop-filter: blur(3px);
}

.modal-caja, .modal-ficha {
  background: #FFFFFF;
  border: 1px solid var(--borde);
  box-shadow: 0 20px 60px rgba(20, 23, 26, 0.2);
}

/* Título con la línea de acento debajo, como la referencia */
#modal-nombre, .modal-nombre {
  color: var(--texto);
  font-family: var(--font-display);
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 4px;
}

#modal-nombre::after, .modal-nombre::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--azul);
}

#modal-categoria, .modal-categoria {
  color: var(--cobre);
}

.modal-img-wrap, .modal-imagen-wrap {
  background: var(--acero-mid);
}

/* Tabs verticales: ahora con look de "índice de ficha técnica" */
.modal-tabs {
  border-right: 1px solid var(--borde);
}

.modal-tab-btn {
  color: var(--texto-ter);
}

.modal-tab-btn:hover {
  color: var(--texto);
  background: var(--acero-mid);
}

.modal-tab-btn.activo {
  color: var(--azul);
  border-left-color: var(--azul);
  background: rgba(30, 58, 138, 0.05);
}

/* Especificaciones como filas tipo tabla técnica, fondo gris claro */
.modal-spec-fila {
  background: var(--acero-mid);
  border-bottom: 1px solid var(--borde-sutil);
}

.modal-spec-label { color: var(--texto-sec); }
.modal-spec-valor { color: var(--texto); font-weight: 600; }

/* Lista de beneficios: el punto ahora es azul rey */
.tab-lista li::before { background: var(--azul); }

/* Precio y CTA: el botón cobre como protagonista, igual que el "Comprar en línea" naranja de la referencia */
.tab-precio-valor { color: var(--texto); }

.tab-precio-btn, .maq-card-btn {
  background: var(--cobre);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
}

.tab-precio-btn:hover, .maq-card-btn:hover {
  background: var(--cobre-claro);
  color: #FFFFFF;
}

/* Badge de categoría sobre la imagen del card */
.maq-card-badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--azul);
  border: 1px solid var(--azul-dim);
}

/* Footer: ya no oscuro-oscuro, tono grafito consistente con el admin */
#footer {
  background: #1C2321;
  border-top: none;
}

.footer-logo { color: rgba(245, 243, 238, 0.5); }
.footer-logo span { color: var(--cobre); }
.footer-copy { color: rgba(245, 243, 238, 0.4); }

/* Sección "Quiénes somos" y "Ubicación": fondo alterno gris muy claro, no oscuro */
.section-quienes, .section-ubicacion, .section-marcas {
  background: var(--acero-mid);
  border-color: var(--borde-sutil);
}

.marca-card { background: #FFFFFF; }
.marca-card:hover { background: var(--acero); }

.timeline-dot { background: var(--azul); }
.timeline-year { color: var(--azul); }
/* ════════════════════════════════════
   MODAL FICHA TÉCNICA · Layout 2 columnas (estilo Casa Díaz)
════════════════════════════════════ */

.modal-caja {
  display: grid;
  grid-template-columns: 380px 1fr;
  grid-template-rows: auto 1fr;
  max-width: 900px;
}

.modal-img-wrap {
  grid-column: 1;
  grid-row: 1 / span 2;
  height: 100%;
  min-height: 100%;
  border-radius: 12px 0 0 12px;
}

#modal-imagen {
  object-fit: contain;
  padding: 1.5rem;
}

.modal-encabezado {
  grid-column: 2;
  grid-row: 1;
  padding: 24px 28px 0;
}

.modal-tabs-wrap {
  grid-column: 2;
  grid-row: 2;
  padding: 16px 28px 24px;
}

/* En pantallas chicas, regresa al acomodo apilado (imagen arriba) */
@media (max-width: 768px) {
  .modal-caja {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .modal-img-wrap {
    grid-column: 1;
    grid-row: 1;
    height: 220px;
    border-radius: 12px 12px 0 0;
  }
  .modal-encabezado {
    grid-column: 1;
    grid-row: 2;
  }
  .modal-tabs-wrap {
    grid-column: 1;
    grid-row: 3;
  }
}
 /* CSS NUEVO VIDEO */
 .section-hero-video {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Overlay oscuro para que el texto blanco sea legible sobre el video */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(20, 23, 26, 0.85) 0%,
        rgba(20, 23, 26, 0.55) 50%,
        rgba(20, 23, 26, 0.25) 100%
    );
    z-index: 1;
}

.hero-video-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0 2.5rem;
}

.hero-video-content .hero-title,
.hero-video-content .hero-sub,
.hero-video-content .hero-pretitle {
    color: #FFFFFF;
}

.hero-video-content .hero-title em { color: var(--cobre); }

@media (max-width: 768px) {
    .hero-video-overlay {
        background: rgba(20, 23, 26, 0.7); /* overlay parejo en móvil, sin degradado */
    }
    .hero-video-content { padding: 0 1.5rem; }
}
.section-hero-video {
    min-height: 100vh;
    margin-bottom: 0; /* por si alguna regla anterior le dejó margen */
}

/* Asegura que no haya espacio raro entre el hero y lo que sigue */
.section-hero-video + section {
    margin-top: 0;
}

/* CSS SECCION VER CATALOGO */
.section-productos {
    padding: 5rem 2rem;
    background: var(--acero-mid, #F7F8FA);
}

.productos-intro {
    max-width: 560px;
    color: var(--texto-sec);
    margin-bottom: 2.5rem;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.producto-preview-card {
    background: #FFFFFF;
    border: 1px solid var(--borde);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.producto-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(20,23,26,0.1);
}

.producto-preview-img {
    height: 130px;
    background: var(--acero-mid, #F7F8FA);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.producto-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.producto-preview-nombre {
    padding: 12px 14px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--texto);
}

.productos-cta {
    text-align: center;
}

.contador-resultados {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--acero);
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--borde);
}

 /* Nuevo diseño maquinas subcateofias  */
  .bloques-proceso-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
}

.bloque-proceso-card {
    background: #FFFFFF;
    border: 1px solid var(--borde, #E2E5EA);
    border-radius: 50px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bloque-proceso-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(20,23,26,0.12);
}

.bloque-proceso-img {
    height: 260px;
    background: var(--acero-mid, #F7F8FA);
    overflow: hidden;
}

.bloque-proceso-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bloque-proceso-card:hover .bloque-proceso-img img {
    transform: scale(1.06);
}

.bloque-proceso-info {
    padding: 1.75rem;
    position: relative;
}

.bloque-proceso-numero {
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: var(--cobre, #B5651D);
    letter-spacing: 0.15em;
}

.bloque-proceso-titulo {
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 26px;
    font-weight: 700;
    margin: 8px 0 12px;
    color: var(--texto, #14171A);
}

.bloque-proceso-desc {
    font-size: 14px;
    color: var(--texto-sec, #4B5563);
    line-height: 1.6;
    margin-bottom: 14px;
}

.bloque-proceso-contador {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--azul, #1E3A8A);
    background: rgba(30,58,138,0.08);
    padding: 5px 12px;
    border-radius: 20px;
}

@media (max-width: 700px) {
    .bloques-proceso-grid { grid-template-columns: 1fr; }
}
/* Reduce el espacio entre el grid de bloques y la sección de refacciones,
   ya que ahora están más cerca en la nueva estructura de 3 pantallas */
#pantalla-bloques .bloque {
    margin-bottom: 1.5rem; /* antes probablemente heredaba un margen mayor */
}

#pantalla-bloques .bloque:last-child {
    margin-bottom: 0; /* el último bloque no necesita margen abajo */
}
/* La pantalla de bloques ya no necesita ocupar toda la altura de la ventana,
   con 2 secciones cortas (bloques + refacciones) basta con su contenido real */
#pantalla-bloques.cat-wrap {
    min-height: auto;
}
/* ════════════════════════════════════
   CARRUSEL "GIF" DE TRAYECTORIA
   Rota fotos automáticamente con año encima.
   Pegar al final de style.css
════════════════════════════════════ */

.fundador-carrusel {
  position: relative;
  width: 200%;
  max-width: 380px;
  height: 260px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.75rem;
  background: var(--acero-light);
  border: 1px solid var(--borde);
}

.carrusel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.carrusel-slide.activo {
  opacity: 1;
}

.carrusel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carrusel-anio-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: #FFFFFF;
  background: rgba(30, 58, 138, 0.85);
  padding: 4px 14px;
  border-radius: 6px;
  z-index: 2;
}

@media (max-width: 768px) {
  .fundador-carrusel {
    max-width: 100%;
    height: 220px;
  }
}
.fundador-carrusel {
  position: relative;
  width: 200%;
  max-width: 380px;
  height: 260px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.75rem;
  background: var(--acero-light);
  border: 1px solid var(--borde);
}
.quienes-carrusel-extra-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 60px auto 0;
}

.quienes-carrusel-extra-wrap .fundador-carrusel {
  width: 100%;
}

.quienes-carrusel-extra-wrap .carrusel-caption {
  margin-top: 20px;
  font-size: 1.05rem;
  font-style: italic;
  color: #555;
  line-height: 1.6;
  max-width: 480px;
}
/* ═══════════════════════════════════════
   MÁQUINA ESTRELLA — VIDEO MÁS GRANDE Y PRO
════════════════════════════════════════ */
/* ============================================
   MEJORAS VISUALES — Sección Máquina Estrella
   Agrega esto DESPUÉS de tu CSS actual
   ============================================ */

/* 1. Halo/resplandor ambiental cobre detrás del video
      (le da profundidad y "ancla" el video al fondo,
      en vez de que se vea flotando solo) */

@media (min-width: 1100px) {
  #maquinas-estrella .estrella-grid {
    grid-template-columns: 2fr 1fr; /* antes 1.6fr 1fr */
  }
}
#maquinas-estrella .hero-video-wrap {
  position: relative;
  isolation: isolate; /* para que el ::before no se pise con el contenido */
}
#maquinas-estrella .hero-video-wrap::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: radial-gradient(
    ellipse at center,
    rgba(184, 115, 51, 0.25) 0%,
    rgba(184, 115, 51, 0.08) 45%,
    transparent 70%
  );
  filter: blur(20px);
  z-index: -1;
  opacity: 0.7;
  transition: opacity 0.4s ease;
}
#maquinas-estrella .hero-video-wrap:hover::before {
  opacity: 1;
}

/* 2. Overlay gradiente sutil sobre el video
      (le quita lo "plano" a la imagen/video en sí,
      sobre todo en las orillas) */
#maquinas-estrella .hero-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    transparent 15%,
    transparent 75%,
    rgba(0, 0, 0, 0.35) 100%
  );
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}

/* 3. Borde interno más refinado (doble borde:
      uno exterior cobre tenue + uno interior brillo) */
#maquinas-estrella .hero-video-wrap {
  box-shadow:
    0 25px 60px -15px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(184, 115, 51, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06); /* filo de luz interior */
}
#maquinas-estrella .hero-video-wrap:hover {
  box-shadow:
    0 35px 70px -15px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(184, 115, 51, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* 4. Esquinas decorativas con animación de "respiración"
      sutil, para que no se sientan estáticas */
#maquinas-estrella .video-corner-tl,
#maquinas-estrella .video-corner-br {
  width: 36px;
  height: 36px;
  border-color: #b87333;
  border-width: 3px;
  z-index: 3;
  transition: width 0.4s ease, height 0.4s ease, border-color 0.4s ease;
}
#maquinas-estrella .hero-video-wrap:hover .video-corner-tl,
#maquinas-estrella .hero-video-wrap:hover .video-corner-br {
  width: 44px;
  height: 44px;
  border-color: #d68a4a; /* cobre más claro al hover */
}

/* 5. Ficha técnica "premium": línea de acento + fondo con
      leve textura de profundidad en vez de plano */
#maquinas-estrella .estrella-specs {
  gap: 1.5rem;
  padding: 1.5rem;
}
#maquinas-estrella .spec-item {
  padding: 0.75rem 1rem;
  position: relative;
  border-left: 2px solid rgba(184, 115, 51, 0.35);
  background: linear-gradient(
    90deg,
    rgba(184, 115, 51, 0.06),
    transparent 60%
  );
  border-radius: 4px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
#maquinas-estrella .spec-item:hover {
  border-left-color: #b87333;
  background: linear-gradient(
    90deg,
    rgba(184, 115, 51, 0.1),
    transparent 70%
  );
}

/* 6. (Opcional) Badge flotante tipo "En vivo" / "Destacada"
      sobre el video para reforzar que es contenido especial.
      Requiere agregar en el HTML:
      <span class="hero-video-badge">Máquina Estrella</span>
      dentro de .hero-video-wrap */
#maquinas-estrella .hero-video-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(184, 115, 51, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1100px) {
  #maquinas-estrella .estrella-grid {
    grid-template-columns: 1.6fr 1fr;
  }
}
/* ═══ MÓDULO CATÁLOGO: logo arriba, flujo normal ═══ */
#contenedor-modulo {
  padding-top: 10;
}

.cat-wrap {
  padding: 0.75rem 2rem 2rem;
}

.btn-logo-volver {
  display: block;
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 1rem 0;
  cursor: pointer;
  line-height: 0;
  transition: opacity .2s, transform .2s;
}

.btn-logo-volver img {
  height: 120px;
  width: auto;
  display: block;
}

.btn-logo-volver:hover {
  opacity: .85;
  transform: scale(1.03);
  transform-origin: left top;
}
/* ═══ LOGO DEL CATÁLOGO (gana sobre las reglas viejas) ═══ */
#contenedor-modulo {
  padding-top: 0;
}

#contenedor-modulo .cat-wrap {
  padding: 0.5rem 2rem 2rem;
}

#contenedor-modulo .btn-logo-volver {
  margin: 0 0 0.75rem 0;
  padding: 0;
  background: none;
  position: static;
  display: block;
  border: none;
  cursor: pointer;
  line-height: 0;
}

#contenedor-modulo .btn-logo-volver .logo-btn-img {
  height: 60px;      /* sube o baja este número a tu gusto */
  width: auto;
  display: block;
}
/* ═══ CONTACTO MÁS BONITO ═══ */
.contacto-bloque {
  background: #FFFFFF;
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(20, 23, 26, 0.04);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.contacto-bloque:hover {
  transform: translateY(-2px);
  border-color: var(--azul-dim);
  box-shadow: 0 8px 20px rgba(20, 23, 26, 0.08);
}

.contacto-icono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 0;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.08);
  font-size: 20px;
  filter: none;
}

.contacto-bloque h3 { color: var(--cobre); }

.mapa-leaflet {
  border: 1px solid var(--borde);
  box-shadow: 0 8px 24px rgba(20, 23, 26, 0.08);
}
/* ═══ POP-UP DE PROMOCIONES ═══ */
.promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(20, 23, 26, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.promo-overlay.activo {
  opacity: 1;
  pointer-events: all;
}

.promo-caja {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--borde);
  border-top: 4px solid var(--cobre);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 1.75rem 1.5rem;
  box-shadow: 0 20px 60px rgba(20, 23, 26, 0.25);
  transform: translateY(16px);
  transition: transform .3s;
}

.promo-overlay.activo .promo-caja { transform: translateY(0); }

.promo-cerrar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--borde);
  background: var(--acero-mid);
  color: var(--texto-sec);
  cursor: pointer;
  font-size: 14px;
}

.promo-cerrar:hover { color: var(--azul); border-color: var(--azul); }

.promo-badge {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cobre);
  margin-bottom: 6px;
}

.promo-titulo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--texto);
  line-height: 1.1;
  margin-bottom: .5rem;
}

.promo-intro {
  font-size: 14px;
  color: var(--texto-sec);
  margin-bottom: 1.25rem;
}

.promo-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.promo-item {
  background: var(--acero-mid);
  border-left: 3px solid var(--azul);
  border-radius: 6px;
  padding: 12px 14px;
}

.promo-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 2px;
}

.promo-item p {
  font-size: 13px;
  color: var(--texto-sec);
  line-height: 1.5;
  margin: 0;
}

.promo-cta {
  display: block;
  text-align: center;
  background: var(--cobre);
  color: #FFFFFF;
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px;
  border-radius: 4px;
  transition: background .2s;
}

.promo-cta:hover { background: var(--cobre-claro); }

.promo-no {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  color: var(--texto-ter);
  font-size: 12px;
  cursor: pointer;
}

.promo-no:hover { color: var(--texto); }

/* ═══ PANTALLA DE CARGA ═══ */
.cargando-wrap {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 3rem 1rem;
  color: var(--texto-sec);
  text-align: center;
}

.cargando-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--borde);
  border-top-color: var(--azul);
  border-radius: 50%;
  animation: girar .8s linear infinite;
}

@keyframes girar { to { transform: rotate(360deg); } }

/* NUEVO CSSS */
/* ═══ IDENTIDAD DIMAPASA · paleta tomada del logo ═══ */
:root {
  --azul:         #133A6E;   /* azul Dimapasa */
  --azul-bright:  #1F528B;   /* azul acero (hover) */
  --azul-noche:   #0C2548;   /* pie de página */
  --azul-dim:     #C3D1E3;   /* bordes y fondos suaves de azul */

  /* "cobre" es el nombre viejo; ahora apunta al azul de marca */
  --cobre:        #133A6E;
  --cobre-claro:  #1F528B;

  --texto:        #2D282A;   /* el negro de la máquina del logo */
  --blanco:       #2D282A;
  --texto-sec:    #55606E;
  --texto-ter:    #8793A1;

  --acero:        #FFFFFF;
  --acero-mid:    #F3F5F8;
  --acero-light:  #E9EDF2;
  --borde:        #D5DBE3;
  --borde-sutil:  #E6EAF0;
}

/* Lugares donde el cobre se usaba sobre fondo oscuro o estaba escrito a mano */
#footer { background: var(--azul-noche); }
.footer-logo span { color: #8FB0D8; }
.hero-video-content .hero-title em { color: #9DBBE3; }

.link-admin {
  color: var(--azul);
  background: transparent;
  border: 1px solid var(--azul-dim);
}
.link-admin:hover {
  background: var(--azul);
  border-color: var(--azul);
  color: #FFFFFF;
}
/* ═══ POP-UP DE COTIZACIÓN ═══ */
/* ═══ POP-UP DE COTIZACIÓN ═══ */
.cotizar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(12, 37, 72, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.cotizar-overlay.activo {
  opacity: 1;
  pointer-events: all;
}

.cotizar-caja {
  position: relative;
  display: grid;
  grid-template-columns: 260px 1fr;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 4px;
}

.cotizar-caja.sin-foto {
  grid-template-columns: 1fr;
  max-width: 460px;
}
.cotizar-caja.sin-foto .cotizar-foto { display: none; }

/* la puntada vertical entre la foto y los datos */
.cotizar-foto {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--acero-mid);
  border-right: 2px dashed var(--azul-dim);
}

.cotizar-foto img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
}

.cotizar-datos { padding: 2rem 2rem 1.5rem; }

.cotizar-maquina {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--texto);
  margin: 0 2rem .75rem 0;      /* deja lugar al botón de cerrar */
}

.cotizar-texto {
  font-size: 16px;
  color: var(--texto-sec);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cotizar-llamar {
  display: block;
  text-align: center;
  padding: 14px 16px;
  background: var(--azul);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 3px;
  transition: background .2s;
}

.cotizar-llamar:hover { background: var(--azul-bright); }

.cotizar-correo-linea {
  margin-top: 1rem;
  font-size: 15px;
  color: var(--texto-sec);
}

.cotizar-correo-linea a {
  color: var(--azul);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cotizar-horario {
  margin-top: 1.25rem;
  font-size: 14px;
  line-height: 1.6;
  color: var(--texto-ter);
}

.cotizar-ubicacion {
  display: inline-block;
  margin-top: .75rem;
  font-size: 14px;
  color: var(--texto-sec);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cotizar-ubicacion:hover { color: var(--azul); }

.cotizar-cerrar {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  color: var(--texto-sec);
  font-size: 18px;
  cursor: pointer;
}

.cotizar-cerrar:hover { color: var(--azul); }

.cotizar-llamar:focus-visible,
.cotizar-cerrar:focus-visible,
.cotizar-correo-linea a:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 2px;
}

button.tab-precio-btn { cursor: pointer; }

@media (max-width: 640px) {
  .cotizar-caja { grid-template-columns: 1fr; }
  .cotizar-foto {
    border-right: none;
    border-bottom: 2px dashed var(--azul-dim);
    padding: 1rem;
  }
  .cotizar-foto img { max-height: 160px; }
  .cotizar-datos { padding: 1.5rem 1.25rem 1.25rem; }
}

/* ═══ TIPOGRAFÍA DIMAPASA ═══ */
:root {
  --font-display: 'Archivo', sans-serif;
  --font-body:    'Source Sans 3', sans-serif;
  --font-cond:    'Source Sans 3', sans-serif;
}

body {
  font-size: 17px;
}

h1, h2, h3,
.section-title, .encabezado h3, .grid-header h2,
.cat-label, .maq-card-nombre, #modal-nombre {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0;
}

/* El título del hero es largo: lo dejamos más estrecho y contenido */
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

/* ═══ MÁQUINA ESTRELLA ═══ */
#maquinas-estrella .hero-video-wrap::before,
#maquinas-estrella .hero-video-wrap::after,
#maquinas-estrella .video-corner-tl,
#maquinas-estrella .video-corner-br { display: none; }

#maquinas-estrella .hero-video-wrap,
#maquinas-estrella .hero-video-wrap:hover {
  box-shadow: none;
  border-top: 4px solid var(--azul);
}

/* ficha técnica */
#maquinas-estrella .estrella-specs {
  display: block;
  gap: 0;
  padding: 0;
  border: none;
  border-top: 2px dashed var(--azul-dim);
  margin-bottom: 1.75rem;
}

#maquinas-estrella .spec-item,
#maquinas-estrella .spec-item:hover {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 12px 0;
  background: none;
  border: none;
  border-bottom: 2px dashed var(--azul-dim);
  border-radius: 0;
}

#maquinas-estrella .spec-label {
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--texto-sec);
}

#maquinas-estrella .spec-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--texto);
}

/* botones lado a lado */
#maquinas-estrella .estrella-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#maquinas-estrella .btn-primary,
#maquinas-estrella .btn-secondary { padding: 14px 22px; }

#maquinas-estrella .btn-secondary {
  color: var(--azul);
  border: 1px solid var(--azul);
}

#maquinas-estrella .btn-secondary:hover {
  background: var(--azul);
  color: #FFFFFF;
}

/* 1. DISEÑO DE POP UP ANPIIIIC*/
.promo-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px); /* Efecto difuminado elegante en el fondo */
}

.promo-overlay.activo {
    display: flex;
}

/* 2. La ventana flotante (le quitamos el padding general para que la imagen toque los bordes) */
.promo-modal {
    background-color: #ffffff;
    width: 90%;
    max-width: 440px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    font-family: sans-serif;
    text-align: center;
    overflow: hidden; /* Esto hace que la imagen respete los bordes redondeados del modal */
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 3. Botón de cerrar (la "X") más estilizado y con buen espacio */
.promo-cerrar {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #0b2545;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.promo-cerrar:hover {
    background: #ffffff;
}

/* 4. Encabezado de textos con su propio espacio interno */
.promo-header {
    padding: 24px 24px 10px 24px;
}

.promo-header h2 {
    color: #0b2545;
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 700;
}

.promo-header p {
    color: #64748b;
    font-size: 13.5px;
    margin: 0;
    line-height: 1.4;
}

/* 5. Imagen de ANPIC en modo Banner superior */
.promo-imagen-container {
    width: 100%;
    height: 100px;
    overflow: hidden;
    background-color: #0b2545;
    margin: 10px 0;
}

.promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.promo-img:hover {
    transform: scale(1.03);
}

/* 6. Contenedor de la lista e ítems más limpios */
.promo-lista {
    padding: 0 24px;
}

.promo-item {
    background-color: #f8fafc;
    border-left: 4px solid #004080;
    padding: 10px 14px;
    margin-bottom: 8px;
    border-radius: 6px;
    text-align: left;
    transition: background 0.2s;
}

.promo-item:hover {
    background-color: #f1f5f9;
}

.promo-item h3 {
    margin: 0 0 2px 0;
    font-size: 13.5px;
    color: #0b2545;
    font-weight: 600;
}

.promo-item p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
}

/* 7. Botones de acción abajo con espacio cómodo */
.promo-acciones {
    display: flex;
    gap: 10px;
    padding: 20px 24px 24px 24px;
    background-color: #ffffff;
}

.btn-cta {
    background-color: #004080;
    color: #fff;
    padding: 11px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    border: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 64, 128, 0.2);
}

.btn-cta:hover {
    background-color: #003366;
    box-shadow: 0 6px 15px rgba(0, 64, 128, 0.3);
}

.btn-secundario {
    background-color: #e2e8f0;
    color: #334155;
    padding: 11px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    transition: background 0.2s;
}

.btn-secundario:hover {
    background-color: #cbd5e1;
}