/* ============================================================
   DESIGN TOKENS — CIP FLUID brand palette
============================================================ */
:root {
  --navy:        #07102b;
  --navy-mid:    #0b1e48;
  --navy-light:  #132960;
  --blue-accent: #1a5cdc;
  --blue-bright: #3b82f6;
  --white:       #ffffff;
  --off-white:   #f0f4fc;
  --muted:       #8ea4c8;
  --footer-bg:   #060e22;

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

  --nav-h: 72px;
  --radius: 12px;
  --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

section { scroll-margin-top: var(--nav-h); }

/* ============================================================
   NAVBAR
============================================================ */
#navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  transition: background var(--transition), box-shadow var(--transition), border-bottom var(--transition);
}

/* transparent state (on hero) */
#navbar.transparent {
  background: linear-gradient(to bottom, rgba(7,16,43,0.88) 0%, transparent 100%);
  box-shadow: none;
  border-bottom: 1px solid transparent;
}

/* solid state (scrolled) */
#navbar.solid {
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(0,0,0,0.45);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Logo — always visible, on a crisp white pill so it never blends */
.nav-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border-radius: 8px;
  padding: 5px 12px 5px 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
}
.nav-logo-wrap:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}
.nav-logo-wrap img {
  height: 42px;
  width: auto;
  object-fit: contain;
}
.nav-brand-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  line-height: 1;
  text-transform: uppercase;
}
.nav-brand-label span {
  display: block;
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--blue-accent);
  margin-top: 1px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.nav-links a:hover,
.nav-links a:focus {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.18);
  outline: none;
}
.nav-links .nav-back {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}
.nav-links .nav-back:hover {
  background: var(--blue-accent);
  border-color: var(--blue-accent);
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  width: 80%;
  text-align: center;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--blue-bright); }
.nav-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}


    :root{--navy:#07102b;--blue-accent:#1a5cdc;--blue-bright:#3b82f6;--white:#ffffff;--nav-h:72px;--font-display:'Barlow Condensed',sans-serif;--font-body:'Barlow',sans-serif;}
    *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
    body{font-family:var(--font-body);background:#fff;color:var(--navy);overflow-x:hidden}
    #navbar{position:fixed;inset-block-start:0;inset-inline:0;height:var(--nav-h);z-index:1000;display:flex;align-items:center;justify-content:space-between;padding-inline:clamp(1.25rem,4vw,3rem);background:linear-gradient(to bottom,rgba(7,16,43,.88) 0%,transparent 100%)}
    #inicio{position:relative;width:100%;height:100vh;display:flex;align-items:center;overflow:hidden;background:var(--navy)}
    /* Skeleton placeholder para las tarjetas de producto */
    .prod-card{background:#0b1e48}
    .prod-card-img img{opacity:0;transition:opacity .4s ease}
    .prod-card-img img.img-loaded{opacity:1}

/* ============================================================
   HERO — Full-viewport video background
============================================================ */
#inicio {
  position: relative;
  width: 100%;
  height: 100vh; 
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: var(--nav-h) clamp(1.5rem, 6vw, 5rem) 2rem; 
}


.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dual-layer overlay: dark base + diagonal brand stripe */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(7,16,43,0.92) 0%,
      rgba(7,16,43,0.78) 45%,
      rgba(7,16,43,0.35) 100%);
  z-index: 1;
}

/* Decorative diagonal stripe */
.hero-stripe {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 55%,
    rgba(26, 92, 220, 0.12) 55%,
    transparent 80%
  );
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(26,92,220,0.18);
  border: 1px solid rgba(59,130,246,0.35);
  border-radius: 100px;
  padding: 0.35rem 1rem 0.35rem 0.6rem;
  margin-bottom: 1.5rem;
}
.hero-tag-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-bright);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.6; }
}
.hero-tag span {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--blue-bright);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 1rem;
}
.hero-title em {
  font-style: normal;
  color: var(--blue-bright);
  display: block;
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-accent);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  border: 2px solid var(--blue-accent);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-display);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   SECTION HEADINGS (shared)
============================================================ */
.section-header {
  margin-bottom: 1.5rem;
  text-align: center;

}
.section-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 0.75rem;
  position: relative;
  padding: 0 1.5rem;
}
.section-kicker::before,
.section-kicker::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--blue-accent);
}
.section-kicker::before { right: 100%; margin-right: -1.4rem; }
.section-kicker::after  { left: 100%;  margin-left: -1.4rem; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1;
}

/* ============================================================
   NOSOTROS
============================================================ */
#nosotros {
  /* Eliminamos el padding aquí porque .section-wrapper ya tiene el suyo */
  padding: 0; 
  background: var(--off-white);
  position: relative;
}

/* Control manual del espacio superior para subir la sección */
#nosotros .section-wrapper {
  padding-top: 2rem; /* Subimos la sección drásticamente */
  padding-bottom: 2rem;
}

/* Círculo decorativo de fondo */
#nosotros::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,92,220,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

/* --- ESTILOS DE TEXTO --- */
.nosotros-text-block h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.nosotros-text-block h3 em {
  font-style: normal;
  color: var(--blue-accent);
}
.nosotros-text-block p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  margin-bottom: 1rem;
  color: #4a5a7a;
  line-height: 1.8;
}

/* --- ESTADÍSTICAS --- */
.nosotros-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid rgba(11,30,72,0.08);
  border-radius: var(--radius);
  padding: 0.8rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.stat-card .stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-accent);
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- CONTROL DE LA IMAGEN ÚNICA --- */
.nosotros-image-wrapper {
  max-width: 420px; /* ESTO EVITA QUE LA IMAGEN SEA GIGANTE */
  margin: 0 auto; /* Centra la imagen en su lado derecho */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Sombra ligera */
}

.nosotros-single-img {
  width: 100%;
  height: auto; /* Mantiene la proporción natural de la foto */
  display: block;
}

/* --- AJUSTE PARA MÓVILES --- */
@media (max-width: 900px) {
  .nosotros-grid {
    grid-template-columns: 1fr;
  }
  .nosotros-image-wrapper {
    max-width: 350px; /* Un poco más pequeña en teléfonos */
  }
}

/* ============================================================
   PRODUCTOS
============================================================ */
#productos {
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Product card — hover reveal */
.prod-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/3.6;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  cursor: default;
  background: var(--navy-mid);
}
.prod-card-img {
  position: absolute;
  inset: 0;
}
.prod-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--transition), filter 0.55s var(--transition);
}
.prod-card:hover .prod-card-img img {
  transform: scale(1.06);
  filter: brightness(0.45);
}

.prod-card-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(7,16,43,0.95) 0%, transparent 60%);
  transition: background 0.55s ease;
}
.prod-card:hover .prod-card-info {
  background: linear-gradient(to top, rgba(7,16,43,0.98) 0%, rgba(7,16,43,0.6) 100%);
}

.prod-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.prod-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  opacity: 0;
}
.prod-card:hover .prod-desc {
  max-height: 120px;
  opacity: 1;
}

.prod-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--blue-accent);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
}

.prod-material {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--blue-bright);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s 0.1s ease, transform 0.4s 0.1s ease;
}
.prod-material::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
}
.prod-card:hover .prod-material {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   WHATSAPP FLOAT
============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37,211,102,0.55);
}
.whatsapp-float img { width: 32px; height: 32px; object-fit: contain; }

/* ============================================================
   SCROLL-TO-TOP
============================================================ */
#scrollTopBtn {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  transition: background 0.3s ease, transform 0.3s ease;
}
#scrollTopBtn:hover { background: var(--blue-accent); transform: translateY(-2px); }
#scrollTopBtn svg { width: 18px; height: 18px; }

/* ============================================================
   FOOTER — Arquitectura UI Moderna
============================================================ */
#footer {
  /* Gris "Cool Grey" elegante. Resalta el azul sin oscurecer la página */
  background: #e2e6eb; 
  color: var(--navy);
  padding: clamp(4rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem) 2rem;
  border-top: 1px solid rgba(11, 30, 72, 0.08);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  /* Grid asimétrico para darle más aire a la descripción de la marca */
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(11, 30, 72, 0.1);
  margin-bottom: 2rem;
}

/* --- MARCA Y LOGO --- */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  object-position: left;
  /* Eliminamos el fondo blanco. El logo ahora es libre. */
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #435270; /* Un gris azulado muy legible */
  max-width: 380px;
}

/* --- TÍTULOS DE COLUMNA --- */
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Pequeño acento decorativo antes del título */
.footer-col h4::before {
  content: '';
  display: block;
  width: 12px;
  height: 3px;
  background: var(--blue-accent);
  border-radius: 2px;
}

/* --- NAVEGACIÓN --- */
.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0;
}

.footer-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #435270;
  transition: all 0.3s ease;
  display: inline-flex;
}

/* Micro-interacción: el enlace se mueve ligeramente a la derecha al hacer hover */
.footer-nav a:hover {
  color: var(--blue-accent);
  transform: translateX(5px); 
}

.footer-back-link {
  margin-top: 0.5rem;
  font-weight: 700 !important;
  color: var(--blue-accent) !important;
}

/* --- LISTA DE CONTACTO --- */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #435270;
  transition: color 0.3s ease;
}

.contact-item:hover {
  color: var(--blue-accent);
}

/* Contenedor elegante para los emojis/iconos */
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--white);
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(7, 16, 43, 0.06);
  transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
}

/* --- BADGES SOCIALES --- */
.footer-socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.social-badge {
  background: var(--white);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 100px; /* Forma de píldora moderna */
  box-shadow: 0 4px 12px rgba(7, 16, 43, 0.05);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.social-badge:hover {
  background: var(--blue-accent);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(26, 92, 220, 0.2);
}

/* --- BARRA INFERIOR --- */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.back-to-top-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  transition: color 0.3s;
}

.back-to-top-link:hover {
  color: var(--blue-accent);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: unset; }
  .footer-bottom { justify-content: center; text-align: center; }
}
/* ============================================================
   RESPONSIVE — fluid, no rigid breakpoints
============================================================ */
@media (max-width: 900px) {
  .nosotros-grid { grid-template-columns: 1fr; }
  .nosotros-mosaic { grid-template-columns: repeat(3, 1fr); }
  .mosaic-img.tall, .mosaic-img.wide { grid-column: unset; grid-row: unset; }
  .mosaic-img.h-tall { height: 160px; }
  .mosaic-logo-badge { grid-column: span 3; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 580px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: unset; }
  .nosotros-stats { grid-template-columns: 1fr 1fr; }
  .nosotros-mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic-logo-badge { grid-column: span 2; }
}

/* ============================================================
   ANIMATIONS — entrance on scroll (via IntersectionObserver)
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   SECTION WRAPPER — padding compartido entre secciones
============================================================ */
.section-wrapper {
  padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 6vw, 5rem);
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

#productos .section-wrapper {
  padding-top: 2rem; 
  padding-bottom: 4rem;
  background: var(--white);
}

/* ============================================================
   PRODUCT CARD — click-to-zoom icon hint
============================================================ */
.prod-card {
  cursor: pointer; /* indicate it's clickable */
}

/* Zoom icon that appears on hover, bottom-right of card */
.prod-card-zoom {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 2;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.prod-card-zoom svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
}
.prod-card:hover .prod-card-zoom {
  opacity: 1;
  transform: scale(1);
}

/* ============================================================
   LIGHTBOX
============================================================ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;

  /* start hidden */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

/* Backdrop */
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 30, 0.92);
  backdrop-filter: blur(12px);
  cursor: zoom-out;
}

/* Inner container */
.lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: min(860px, 95vw);
  width: 100%;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
#lightbox.open .lightbox-inner {
  transform: scale(1) translateY(0);
}

/* The image itself */
.lightbox-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  display: block;
}

/* Caption row */
.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0.25rem;
}
.lightbox-caption-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}
.lightbox-caption-material {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 100px;
  padding: 0.2rem 0.75rem;
}

/* Close button */
.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.22);
  transform: rotate(90deg);
}

/* Prev / Next arrows */
.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.lightbox-arrow:hover {
  background: rgba(255,255,255,0.2);
}
.lightbox-arrow.prev { left: 1rem; }
.lightbox-arrow.prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox-arrow.next { right: 1rem; }
.lightbox-arrow.next:hover { transform: translateY(-50%) translateX(2px); }
.lightbox-arrow svg { width: 20px; height: 20px; stroke: #fff; }

@media (max-width: 600px) {
  .lightbox-arrow { display: none; }
}