/* ==========================================================================
   TECHMEC INGENIERÍA S.R.L. - ESTILOS PRINCIPALES DEL SITIO WEB OFICIAL
   Combinación: Estética Panorámica Cinemática + Estructura de Abastecimiento ERP
   ========================================================================== */

:root {
  /* Paleta Base Panorámica */
  --bg-dark: #0a0c10;
  --bg-surface: #11141c;
  --bg-card: #161b26;
  --bg-card-hover: #1c2331;
  --bg-light: #f8fafc;
  
  /* Colores Institucionales TechMec */
  --navy-primary: #002b5c;
  --navy-dark: #001736;
  --navy-light: #034898;
  --navy-border: #1e2c44;
  
  /* Acentos Industriales */
  --gold-accent: #f59e0b;
  --gold-hover: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.2);
  --cyan-accent: #00bbff;
  --emerald-success: #10b981;
  --red-alert: #ef4444;
  
  /* Textos y Bordes */
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-gold: rgba(245, 158, 11, 0.35);

  /* Tipografías */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Sombras y Transiciones */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 25px rgba(245, 158, 11, 0.25);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* CONTENEDOR GENERAL */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   CABECERA DE NAVEGACIÓN FLOTANTE (PILL DESIGN UNIFICADO CON EL INICIO)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 94%;
  max-width: 1340px;
  background: rgba(11, 15, 24, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 187, 255, 0.25);
  border-radius: 999px;
  z-index: 1000;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  padding: 8px 24px;
  transition: var(--transition);
}

body {
  padding-top: 86px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 52px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  background: rgba(0, 187, 255, 0.16);
  color: var(--cyan-accent, #00bbff);
  border: 1px solid rgba(0, 187, 255, 0.35);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* NAVEGACIÓN */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* DROPDOWN IN MAIN NAVBAR */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  font-family: inherit;
}
.nav-dropdown-toggle:hover, .nav-dropdown.active .nav-dropdown-toggle {
  color: var(--cyan-accent, #00bbff);
  background: rgba(0, 187, 255, 0.08);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: #0d131f;
  border: 1px solid rgba(0, 187, 255, 0.3);
  border-radius: 10px;
  padding: 8px;
  min-width: 240px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}
.nav-dropdown-item {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-dropdown-item:hover {
  background: rgba(0, 187, 255, 0.15);
  color: var(--cyan-accent, #00bbff);
  padding-left: 15px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--cyan-accent, #00bbff);
  background: rgba(0, 187, 255, 0.12);
  border: 1px solid rgba(0, 187, 255, 0.3);
}

.nav-link-admin {
  color: var(--cyan-accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.nav-link-admin:hover {
  color: #ffffff;
  background: rgba(0, 187, 255, 0.12);
}

/* ACCIONES DE CABECERA */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-hamburger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-hamburger-btn:hover {
  background: rgba(0, 187, 255, 0.2);
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
}

.btn-header-pedido {
  background: rgba(0, 187, 255, 0.1);
  border: 1px solid rgba(0, 187, 255, 0.35);
  color: var(--cyan-accent);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-header-pedido:hover {
  background: rgba(0, 187, 255, 0.2);
  border-color: var(--cyan-accent);
  color: #ffffff;
}

.btn-header-whatsapp {
  background: #25d366;
  color: #074b1f;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-header-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-1px);
}

/* ==========================================================================
   AVISO PROMINENTE DE CANAL MAYORISTA (UPFRONT)
   ========================================================================== */
.wholesale-banner-top {
  background: linear-gradient(90deg, #0d1726 0%, #152238 100%);
  border-bottom: 1px solid rgba(0, 187, 255, 0.25);
  padding: 12px 24px;
}

.wholesale-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.wholesale-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wholesale-banner-text {
  font-size: 0.86rem;
  color: #cbd5e1;
  flex: 1;
}

.wholesale-banner-text strong {
  color: #ffffff;
}

.wholesale-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-banner-link {
  background: var(--navy-primary);
  border: 1px solid rgba(0, 187, 255, 0.4);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-banner-link:hover {
  background: var(--navy-light);
  border-color: var(--cyan-accent);
}

/* ==========================================================================
   BOTONES Y ELEMENTOS DE ACCIÓN ESTÁNDAR
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gold-accent);
  color: #000000;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
  background: var(--navy-primary);
  color: #ffffff;
  border: 1px solid rgba(0, 187, 255, 0.3);
}

.btn-secondary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  border-color: var(--cyan-accent);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.btn-whatsapp-large {
  background: #25d366;
  color: #074b1f;
  font-size: 0.95rem;
}

.btn-whatsapp-large:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   BOTÓN FLOTANTE DIRECTO DE WHATSAPP (ÚNICO)
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  background-color: #25d366;
  color: #ffffff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp-btn svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* ==========================================================================
   PIE DE PÁGINA UNIFICADO (FOOTER)
   ========================================================================== */
.site-footer {
  background: #06080c;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 16px 0 20px;
  max-width: 360px;
  line-height: 1.6;
}

.footer-fiscal-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-fiscal-badge strong {
  color: var(--text-primary);
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--gold-accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-contact-item svg {
  color: var(--gold-accent);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* ==========================================================================
   ESTRUCTURA DE CATÁLOGO TIPO MERCADO LIBRE (.ml-catalog-list / .ml-product-card)
   ========================================================================== */
.ml-catalog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ml-product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 160px 1fr 240px;
  gap: 22px;
  align-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.ml-product-card:hover {
  border-color: var(--cyan-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.ml-card-media {
  width: 100%;
  height: 145px;
  background: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
  cursor: pointer;
}

.ml-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.ml-product-card:hover .ml-card-img {
  transform: scale(1.06);
}

.ml-card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ml-card-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ml-badge-sku {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan-accent);
  background: rgba(0, 187, 255, 0.1);
  border: 1px solid rgba(0, 187, 255, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

.ml-badge-norma {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ml-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}

.ml-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.ml-spec-pill {
  font-size: 0.74rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.ml-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 2px;
}

.ml-stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald-success);
  margin-top: 4px;
}

.ml-stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-success);
  box-shadow: 0 0 8px var(--emerald-success);
}

.ml-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  border-left: 1px solid var(--border-subtle);
  padding-left: 20px;
  height: 100%;
}

.ml-price-wrap {
  text-align: right;
  width: 100%;
}

.ml-price-val {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.ml-price-tax {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.ml-price-wholesale-tag {
  font-size: 0.72rem;
  color: var(--cyan-accent);
  font-weight: 700;
  margin-top: 2px;
}

.ml-stepper-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: flex-end;
}

.ml-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.ml-stepper-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 28px;
  height: 32px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
}
.ml-stepper-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.ml-stepper-input {
  width: 38px;
  height: 32px;
  border: none;
  background: transparent;
  color: #ffffff;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  outline: none;
}

.ml-btn-sumar {
  background: var(--navy-primary);
  border: 1px solid rgba(0, 187, 255, 0.4);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}
.ml-btn-sumar:hover {
  background: #0056b3;
  border-color: var(--cyan-accent);
  box-shadow: 0 0 15px rgba(0, 187, 255, 0.3);
}

.ml-btn-wa-direct {
  background: #25d366;
  color: #074b1f;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  transition: var(--transition);
}
.ml-btn-wa-direct:hover {
  background: #20ba5a;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   ADMINISTRACIÓN: ESTRUCTURA DE CATÁLOGO TIPO MERCADO LIBRE
   ========================================================================== */
.admin-ml-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-ml-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 120px 1fr 310px;
  gap: 20px;
  align-items: center;
  transition: var(--transition);
}

.admin-ml-card:hover {
  border-color: rgba(0, 187, 255, 0.45);
}

.admin-ml-thumb {
  width: 110px;
  height: 110px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
}

.admin-ml-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.admin-ml-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-ml-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px;
}

.admin-control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.admin-control-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

/* ==========================================================================
   ADMINISTRACIÓN: GESTOR DE GALERÍA
   ========================================================================== */
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.admin-gallery-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.admin-gallery-item-card:hover {
  border-color: var(--cyan-accent);
}

.admin-gallery-thumb-wrap {
  height: 190px;
  background: #0d121c;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.admin-gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-gallery-item-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.admin-gallery-item-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.admin-gallery-item-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.admin-gallery-form-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .ml-product-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .ml-card-media {
    max-width: 220px;
    margin: 0 auto;
  }
  .ml-card-actions {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding-left: 0;
    padding-top: 16px;
    align-items: stretch;
  }
  .ml-price-wrap {
    text-align: left;
  }
  .ml-stepper-row {
    justify-content: space-between;
  }
  .admin-ml-card {
    grid-template-columns: 1fr;
  }
  .admin-ml-thumb {
    margin: 0 auto;
  }
}

/* ==========================================================================
   ESTILOS GLOBALES DE FORMULARIOS INDUSTRIALES (DARK THEME TECHMEC)
   ========================================================================== */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  background: rgba(14, 19, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  line-height: 1.5;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  display: block;
  box-sizing: border-box;
}

input::placeholder,
textarea::placeholder {
  color: rgba(203, 213, 225, 0.45);
  font-size: 14px;
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(0, 187, 255, 0.4);
  background: rgba(19, 26, 42, 0.95);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cyan-accent, #00bbff) !important;
  background: rgba(21, 30, 48, 1) !important;
  box-shadow: 0 0 0 3px rgba(0, 187, 255, 0.22), inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan-accent, #00bbff);
  margin-bottom: 6px;
}

/* BOTÓN DE FILTROS EN MÓVIL PARA EL CATÁLOGO */
.btn-mobile-filter-toggle {
  display: none;
  width: 100%;
  background: rgba(0, 187, 255, 0.12);
  border: 1px solid rgba(0, 187, 255, 0.3);
  color: var(--cyan-accent, #00bbff);
  padding: 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==============================================================================
   DRAWER DE NAVEGACIÓN MÓVIL (OFF-CANVAS)
   ============================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  background: #0d121c;
  border-left: 1px solid rgba(0, 187, 255, 0.25);
  z-index: 99999;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #090c14;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

.drawer-brand img {
  height: 32px;
}

.drawer-brand strong {
  font-size: 16px;
  font-weight: 800;
  display: block;
}

.drawer-brand small {
  font-size: 10px;
  color: var(--cyan-accent);
  font-family: var(--font-mono);
  display: block;
  text-transform: uppercase;
}

.drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.drawer-close:hover {
  color: #ffffff;
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.drawer-menu {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 10px;
  transition: all 0.2s;
}

.drawer-link i {
  width: 20px;
  text-align: center;
  color: var(--cyan-accent);
  font-size: 16px;
}

.drawer-link:hover,
.drawer-link.active {
  background: rgba(0, 187, 255, 0.12);
  color: #ffffff;
}

.drawer-sublinks {
  padding-left: 38px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 10px 0;
  border-left: 2px solid rgba(0, 187, 255, 0.2);
  margin-left: 22px;
}

.drawer-sublink {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
  transition: color 0.2s;
}

.drawer-sublink:hover {
  color: var(--cyan-accent);
}

.drawer-footer {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #080b12;
}

.drawer-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #25d366;
  color: #ffffff;
  padding: 13px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  margin-bottom: 12px;
}

.drawer-contact-info {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.5;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVO GENERAL (MÓVIL ESTILO MARIÑO, LOPEZ Y AGROGUARDATI)
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }

  .mobile-hamburger-btn {
    display: flex !important;
  }

  .site-header {
    width: 95%;
    top: 10px;
    padding: 8px 16px;
    border-radius: 16px;
  }

  .header-inner {
    height: 48px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-logo {
    height: 30px;
  }

  .brand-tagline {
    display: none;
  }

  .btn-header-pedido {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .btn-header-whatsapp span {
    display: none;
  }

  .catalog-layout {
    grid-template-columns: 1fr !important;
  }

  .btn-mobile-filter-toggle {
    display: flex !important;
  }

  .facet-sidebar {
    display: none;
    position: static;
    margin-bottom: 20px;
  }

  .facet-sidebar.active-mobile {
    display: block !important;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 76px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .gallery-grid {
    grid-template-columns: 1fr !important;
  }
}

