/* ==========================================================================
   DISTRIBUIDORA CIPRESES S.A. DE C.V. - HOJA DE ESTILOS PÚBLICA OFICIAL
   Estética Técnica Industrial, Retículas Asimétricas y Precisión Operativa
   ========================================================================== */

:root {
  --bg-technical: #F4F4F0;
  --bg-surface: #FFFFFF;
  --text-primary: #171717;
  --text-secondary: #5A5A5A;
  --text-muted: #737373;
  --color-separator: #E4E4E1;
  --color-blue: #233E99;
  --color-red: #E3222A;
  --color-gray-icon: #737373;
  --color-gray-icon-hover: #171717;
  
  --font-title: 'Plus Jakarta Sans', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', 'SFMono-Regular', Consolas, Menlo, monospace;
}

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

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

body {
  background-color: var(--bg-technical);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--color-red);
  color: #FFFFFF;
}

/* Custom technical scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-technical);
}
::-webkit-scrollbar-thumb {
  background: var(--color-separator);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-blue);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

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

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Container constraints */
.max-width-container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 768px) {
  .max-width-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Technical Blueprint Grid Pattern */
.tech-grid-bg {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(23, 23, 23, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 23, 23, 0.03) 1px, transparent 1px);
}

.tech-divider {
  height: 1px;
  background-color: var(--color-separator);
  width: 100%;
}

/* Technical Buttons */
.btn-technical {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--color-separator);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-technical:hover {
  border-color: var(--text-primary);
  background-color: var(--bg-technical);
}

.btn-action-red {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-red);
  color: #FFFFFF;
  border: 1px solid var(--color-red);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-action-red:hover {
  background-color: #c41c22;
  border-color: #c41c22;
}

.btn-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-blue);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8125rem;
  transition: color 0.2s ease;
}

.btn-text-link:hover {
  color: #1a307a;
  text-decoration: underline;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-separator);
  transition: height 0.3s ease;
  height: 96px;
}

.site-header.shrunk {
  height: 64px;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header-logo {
  display: flex;
  align-items: center;
  height: 40px;
}

.header-logo img {
  height: 40px;
  width: auto;
  object-contain: contain;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quote-btn-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--color-separator);
  background: #F7F7F5;
  padding: 0.625rem 1rem;
  transition: all 0.2s ease;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.quote-btn-trigger:hover {
  border-color: var(--text-primary);
  background: #FFFFFF;
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  color: var(--text-primary);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mega Menu Desktop */
.mega-menu-overlay {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-separator);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
  z-index: 50;
  padding: 2.5rem 0;
}

.mega-menu-overlay.open {
  display: block;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

/* Header Spacer */
.header-spacer {
  height: 96px;
  transition: height 0.3s ease;
}

.site-header.shrunk + .header-spacer {
  height: 64px;
}

/* Mobile Drawer Nav */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  top: 64px;
  background: #FFFFFF;
  z-index: 35;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  display: block;
}

/* ==========================================================================
   HERO SHOWCASE (CAROUSEL CON FONDO DE VIDEO Y TEXTURA DE CARBONO)
   ========================================================================== */
.hero-showcase {
  background: #0D0E12;
  position: relative;
  overflow: hidden;
  padding: 5rem 0 3.5rem;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.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;
  opacity: 0.28;
}

.hero-carbon-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.hero-vignette-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 50%, rgba(13, 14, 18, 0.2) 0%, rgba(13, 14, 18, 0.85) 75%, #0D0E12 100%),
              linear-gradient(to bottom, rgba(13, 14, 18, 0.8) 0%, transparent 25%, transparent 70%, #0D0E12 100%);
}

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

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 5fr 6.5fr;
  }
}

/* Columna Izquierda */
.hero-left-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
}

.hero-content-slider {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text-slide {
  display: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-text-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.hero-tag {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #60A5FA;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-family: var(--font-title);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-family: var(--font-title);
  font-weight: 600;
  color: #E4E4E7;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: #A1A1AA;
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.btn-technical-hero {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(4px);
}

.btn-technical-hero:hover {
  background: #FFFFFF;
  color: #171717;
  border-color: #FFFFFF;
}

/* Columna Derecha: Tarjeta Blanca Hero */
.hero-image-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 380px;
}

@media (max-width: 1023px) {
  .hero-image-slider {
    order: -1;
    min-height: 290px;
    aspect-ratio: 16 / 11;
  }
}

.hero-image-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95) translateY(12px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.7s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

/* Tarjeta Blanca de Producto (Hero Card) sin recuadro doble */
.hero-image-box {
  position: relative;
  width: 100%;
  height: 100%;
  background: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 2rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #2563EB;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 5;
}

.hero-card-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
}

.hero-card-img-wrap img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
}

.hero-image-box:hover .hero-card-img-wrap img {
  transform: scale(1.04) translateY(-3px);
}

.hero-card-meta {
  position: absolute;
  bottom: 1.25rem;
  left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: #71717A;
  text-transform: uppercase;
  line-height: 1.4;
  z-index: 5;
  text-align: left;
}

.hero-meta-brand {
  display: block;
  font-weight: 700;
  color: #52525B;
}

.hero-meta-model {
  display: block;
  color: #71717A;
}

/* ==========================================================================
   CONTROLES DEL CARRUSEL (Flechas Grandes, Circulares y Fáciles de Ubicar)
   ========================================================================== */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1rem;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.carousel-arrow svg {
  color: currentColor;
  transition: transform 0.2s ease;
}

.carousel-arrow.prev:hover svg {
  transform: translateX(-3px);
}

.carousel-arrow.next:hover svg {
  transform: translateX(3px);
}

.carousel-arrow:hover {
  border-color: #FFFFFF;
  background: #FFFFFF;
  color: #171717;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.carousel-arrow:active {
  transform: scale(0.94);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
}

.carousel-dot {
  position: relative;
  width: 28px;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.2s ease;
}

.carousel-dot.active {
  width: 52px;
  background: rgba(255, 255, 255, 0.25);
}

.carousel-dot-progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: #2563EB;
  border-radius: 2px;
}

.carousel-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   HOME SEARCH BAR (BARRA FLOTANTE ELEGANTE SOBRE TEXTURA OSCURA)
   ========================================================================== */
.home-search-section {
  background: #0D0E12;
  border-bottom: 1px solid var(--color-separator);
  padding: 1.5rem 0 3.5rem;
  position: relative;
  z-index: 20;
}

.search-box-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.search-floating-bar {
  display: flex;
  background: #FFFFFF;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.search-floating-bar:focus-within {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 0 2px #2563EB;
  transform: translateY(-2px);
}

.search-floating-bar input {
  flex-grow: 1;
  border: none;
  padding: 1.15rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: #18181B;
  outline: none;
  background: #FFFFFF;
}

.search-floating-bar input::placeholder {
  color: #71717A;
  font-size: 0.875rem;
}

.search-floating-bar button {
  background: #E3222A;
  color: #FFFFFF;
  border: none;
  padding: 0 2.25rem;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.search-floating-bar button:hover {
  background: #C4181F;
}

@media (max-width: 640px) {
  .search-floating-bar {
    flex-direction: column;
  }
  .search-floating-bar button {
    padding: 0.875rem;
    justify-content: center;
  }
}

/* ==========================================================================
   EXPLORA POR PROCESO (RETÍCULA EDITORIAL ASIMÉTRICA)
   ========================================================================== */
.processes-section {
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-separator);
  padding: 5rem 0;
}

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

@media (min-width: 768px) {
  .processes-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.process-card {
  position: relative;
  background: #171717;
  color: #FFFFFF;
  border: 1px solid var(--color-separator);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-height: 260px;
  transition: all 0.3s ease;
}

.process-card:hover {
  border-color: var(--text-primary);
}

.process-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.process-card:hover .process-card-bg {
  transform: scale(1.04);
  opacity: 0.6;
}

.process-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 23, 23, 0.95) 0%, rgba(23, 23, 23, 0.3) 100%);
}

.process-card-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Asymmetrical spans */
@media (min-width: 768px) {
  .proc-span-8 { grid-column: span 8; height: 260px; }
  .proc-span-4-row-2 { grid-column: span 4; grid-row: span 2; height: 544px; }
  .proc-span-4 { grid-column: span 4; height: 260px; }
}

/* ==========================================================================
   EXPLORA POR PRODUCTO (RETÍCULA BENTO DINÁMICA CON FOTO A 1/3 Y DEGRADADO)
   ========================================================================== */
.categories-section {
  background: var(--bg-technical);
  border-bottom: 1px solid var(--color-separator);
  padding: 4.5rem 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.cat-span-6 { grid-column: span 6; min-height: 200px; }
.cat-span-4 { grid-column: span 4; min-height: 185px; }
.cat-span-3 { grid-column: span 3; min-height: 185px; }

@media (max-width: 1024px) {
  .cat-span-6, .cat-span-4, .cat-span-3 {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .cat-span-6, .cat-span-4, .cat-span-3 {
    grid-column: span 12;
    min-height: 160px;
  }
}

.category-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.category-card:hover {
  border-color: var(--color-blue);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.category-card-content {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  z-index: 5;
  background: transparent;
}

.category-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.4rem;
}

.category-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #171717;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.category-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-red);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  transition: transform 0.2s ease;
}

.category-card:hover .category-link {
  transform: translateX(4px);
}

/* Foto asignada ocupando máximo 1/3 con degradado a blanco en lateral izquierdo */
.category-card-media {
  width: 32%;
  max-width: 33.33%;
  min-width: 120px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: #FFFFFF;
  flex-shrink: 0;
}

.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center right;
  padding: 0.75rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover .category-card-media img {
  transform: scale(1.08);
}

.category-fade-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #FFFFFF 0%, rgba(255, 255, 255, 0.85) 20%, transparent 65%);
  pointer-events: none;
}

/* ==========================================================================
   MARCAS ALIADAS (LOGOS 200x200 PIXELES)
   ========================================================================== */
.brands-section {
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-separator);
  padding: 4.5rem 0;
}

.brands-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--color-separator);
  border-left: 1px solid var(--color-separator);
}

@media (min-width: 540px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.brand-box {
  border-right: 1px solid var(--color-separator);
  border-bottom: 1px solid var(--color-separator);
  padding: 2rem 1.25rem;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  min-height: 320px;
  transition: all 0.25s ease;
}

.brand-box:hover {
  background: #FAFAF8;
  box-shadow: inset 0 0 0 1px var(--color-blue);
}

.brand-logo-area {
  width: 200px;
  height: 200px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  padding: 0.75rem;
}

.brand-logo-area img {
  width: 200px;
  height: 200px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-box:hover .brand-logo-area img {
  transform: scale(1.06);
}

.brand-logo-text {
  font-size: 1.5rem;
  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #171717;
  text-align: center;
  line-height: 1.1;
}

/* ==========================================================================
   CÓMO FUNCIONA (WORKFLOW)
   ========================================================================== */
.how-it-works-section {
  background: #F7F7F5;
  border-bottom: 1px solid var(--color-separator);
  padding: 5rem 0;
}

.workflow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
}

@media (min-width: 768px) {
  .workflow-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.workflow-step-num {
  width: 64px;
  height: 64px;
  background: #FFFFFF;
  border: 1px solid var(--color-separator);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-blue);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ==========================================================================
   CTA FINAL DE CONVERSIÓN
   ========================================================================== */
.cta-conversion-section {
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-separator);
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

/* ==========================================================================
   CATÁLOGO DE PRODUCTOS (productos.php)
   ========================================================================== */
.catalog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 280px 1fr;
  }
}

.filter-sidebar {
  background: #FFFFFF;
  border: 1px solid var(--color-separator);
  padding: 1.5rem;
  height: fit-content;
}

.filter-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-separator);
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-group-title {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: block;
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  cursor: pointer;
}

.filter-option:hover, .filter-option.active {
  color: var(--color-blue);
  font-weight: 600;
}

/* Product Card */
.product-card {
  background: #FFFFFF;
  border: 1px solid var(--color-separator);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
}

.product-card:hover {
  border-color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--color-separator);
}

.product-card-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.03);
}

.product-card-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #F7F7F5;
}

.btn-add-quote {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--color-red);
  color: #FFFFFF;
  border: 1px solid var(--color-red);
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.btn-add-quote:hover {
  background: #c41c22;
}

.btn-add-quote.added {
  background: #059669;
  border-color: #059669;
}

.btn-view-details {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.btn-view-details:hover {
  color: var(--text-primary);
  border-color: var(--color-separator);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   OFFCANVAS QUOTE DRAWER (CARRITO DE COTIZACIÓN)
   ========================================================================== */
.quote-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 23, 0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.quote-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.quote-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-technical);
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.1);
  z-index: 101;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--color-separator);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote-drawer-panel.open {
  transform: translateX(0);
}

.quote-drawer-header {
  padding: 1.25rem 1.5rem;
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-separator);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quote-drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.quote-item-card {
  background: #FFFFFF;
  border: 1px solid var(--color-separator);
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-separator);
  background: #F7F7F5;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  background: transparent;
  color: var(--text-primary);
}

.quantity-btn:hover {
  background: #FFFFFF;
}

.quantity-display {
  width: 40px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
}

.quote-drawer-footer {
  padding: 1.25rem 1.5rem;
  background: #FFFFFF;
  border-top: 1px solid var(--color-separator);
}

/* Estilos de Formulario de Cotización (Paso 2 - Idéntico a referencia) */
.quote-form-card {
  background: #FFFFFF;
  border: 1px solid var(--color-separator);
  padding: 1.25rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.form-group-field {
  margin-bottom: 1rem;
}

.quote-form-label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #171717;
  margin-bottom: 0.35rem;
}

.quote-form-input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--color-separator);
  padding: 0.6875rem 0.8125rem;
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  color: #171717;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-form-input:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 1px var(--color-blue);
}

.quote-form-input::placeholder {
  color: #9CA3AF;
  opacity: 0.9;
}

.quote-form-summary-box {
  padding-top: 0.25rem;
}

.btn-confirm-quote {
  width: 100%;
  background: var(--color-red);
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.875rem 1.5rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
  letter-spacing: 0.01em;
}

.btn-confirm-quote:hover {
  background-color: #C81E25;
}

.btn-confirm-quote:active {
  transform: translateY(1px);
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  background-color: #059669;
  color: #FFFFFF;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.whatsapp-floating-btn:hover {
  background-color: #047857;
  transform: scale(1.08);
}

/* ==========================================================================
   FOOTER CORPORATIVO
   ========================================================================== */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--color-separator);
  color: var(--text-secondary);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--color-separator);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ==========================================================================
   MODAL DE FICHA TÉCNICA
   ========================================================================== */
.product-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 23, 0.5);
  backdrop-filter: blur(4px);
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-modal-backdrop.open {
  display: flex;
}

.product-modal-content {
  background: #FFFFFF;
  border: 1px solid var(--color-separator);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   MODAL DE AVISOS LEGALES Y TÉRMINOS (POPUP INTERACTIVO)
   ========================================================================== */
.footer-legal-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-legal-btn:hover {
  color: var(--text-primary);
}

.legal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.legal-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.legal-modal-container {
  background: #FFFFFF;
  width: 100%;
  max-width: 840px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal-overlay.open .legal-modal-container {
  transform: scale(1) translateY(0);
}

.legal-modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--color-separator);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAFAF8;
}

.legal-modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.legal-modal-close:hover {
  color: #171717;
  background: #E4E4E1;
}

.legal-modal-body {
  padding: 2.25rem 2.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.legal-modal-title {
  font-size: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #171717;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-blue);
  line-height: 1.2;
}

.legal-modal-content-area {
  font-size: 0.9375rem;
  color: #3F3F46;
  line-height: 1.75;
}

.legal-modal-content-area h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: #18181B;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.legal-modal-content-area p {
  margin-bottom: 1rem;
}

.legal-modal-content-area ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-modal-content-area li {
  margin-bottom: 0.4rem;
}

.legal-modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--color-separator);
  background: #FAFAF8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
