/* ==========================================================================
   CENTRO TORNILLERO ACAPULCO - COMPONENTS & UI ELEMENTS
   ESTILO CORPORATIVO EXACTO (TEMA CLARO + AZUL MARINO + VERDE LIMA)
   ========================================================================== */

/* --- TOPBAR --- */
.topbar {
  background-color: var(--navy-brand);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.825rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.topbar-highlight {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
}

/* --- NAVBAR PRINCIPAL (FONDO BLANCO COMO CAPTURA 1) --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-normal);
}

.navbar-scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  height: 72px;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--primary);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy-brand);
}

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

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Botón Ubicación / WhatsApp verde lima como en la Captura 1 */
.btn-nav-location {
  background-color: var(--primary);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 8px var(--primary-glow);
  transition: all var(--transition-fast);
}

.btn-nav-location:hover {
  background-color: var(--primary-hover);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(134, 196, 51, 0.4);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--navy-brand);
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

@media (max-width: 991px) {
  .navbar-nav, .navbar-actions .btn-nav-location {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}

/* --- MOBILE DRAWER --- */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #ffffff;
  z-index: 1060;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}

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

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.drawer-logo {
  height: 42px;
}

.drawer-close {
  font-size: 1.5rem;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.drawer-link {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-brand);
  transition: all var(--transition-fast);
}

.drawer-link:hover, .drawer-link.active {
  background: var(--primary-light);
  color: #3f6212;
  transform: translateX(4px);
}

.drawer-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --- MOBILE STICKY QUICK-ACTION BAR (TEMA CLARO) --- */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-bar-height);
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  z-index: 1040;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

@media (max-width: 991px) {
  .mobile-action-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
  }
}

.mobile-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  transition: color var(--transition-fast);
}

.mobile-action-btn svg {
  width: 20px;
  height: 20px;
}

.mobile-action-btn:hover,
.mobile-action-btn:active {
  color: var(--navy-brand);
}

.mobile-action-btn.btn-action-whatsapp {
  color: var(--accent-whatsapp);
}

.mobile-action-btn.btn-action-whatsapp .action-icon-wrap {
  background: var(--accent-whatsapp);
  color: #ffffff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -14px;
  box-shadow: 0 4px 14px var(--whatsapp-glow);
}

.mobile-action-btn.btn-action-whatsapp .action-icon-wrap svg {
  width: 22px;
  height: 22px;
}

/* --- HERO BANNER (AZUL MARINO PROFUNDO COMO CAPTURA 1) --- */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  background-color: var(--navy-brand);
  background-image: 
    linear-gradient(135deg, rgba(27, 30, 69, 0.88) 0%, rgba(44, 50, 110, 0.78) 100%),
    url('assets/img/FINAL-111.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(134, 196, 51, 0.2);
  border: 1px solid rgba(134, 196, 51, 0.4);
  color: #bef264;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  width: fit-content;
}

.hero-tag-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.hero-title {
  color: #ffffff;
  line-height: 1.15;
  text-transform: uppercase;
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 580px;
  line-height: 1.6;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-number span {
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  background: #ffffff;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.03);
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-visual {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* --- CATEGORÍAS (COMO CAPTURA 2: TARJETAS BLANCAS Y BORDES LIMPIOS) --- */
.categories-section {
  background-color: #ffffff;
}

.category-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-normal);
  position: relative;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  box-shadow: 0 12px 28px rgba(32, 131, 253, 0.12);
}

.category-img-wrap {
  width: 110px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: transform var(--transition-fast);
}

.category-card:hover .category-img-wrap {
  transform: scale(1.12);
}

.category-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.category-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  font-family: var(--font-heading);
}

/* --- SECCIÓN MID AZUL MARINO "¿TE FALTA UN TORNILLO?" (CAPTURA 3) --- */
.mid-banner-section {
  background-color: var(--navy-brand);
  background-image: 
    linear-gradient(135deg, rgba(27, 30, 69, 0.94) 0%, rgba(40, 44, 104, 0.92) 100%),
    url('assets/img/FINAL-111.png');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 5rem 0;
  position: relative;
}

.mid-banner-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.mid-banner-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mid-banner-content h2,
.mid-banner-content h5,
.mid-banner-content p {
  text-align: center;
}

.mid-banner-content p {
  max-width: 680px;
  margin: 0 auto 1.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.65;
}

.mid-banner-content .btn {
  margin: 0 auto;
}

@media (max-width: 768px) {
  .mid-banner-section {
    padding: 3.5rem 0;
  }
}

.mid-banner-content h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.mid-banner-content h5 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.mid-banner-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* --- OVERLAP CARD & PHONE MOCKUP (CAPTURA 4) --- */
.overlap-section {
  background-color: var(--navy-brand);
  padding-bottom: 0;
  position: relative;
}

.overlap-card {
  background-color: #ffffff;
  border-radius: 36px 36px 0 0;
  padding: 4.5rem 3.5rem 3rem;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
}

.overlap-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3.5rem;
}

@media (max-width: 991px) {
  .overlap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .overlap-card {
    padding: 2.5rem 1.25rem 2rem;
    border-radius: 24px 24px 0 0;
    text-align: center;
  }

  .overlap-grid {
    gap: 2.5rem;
  }

  .overlap-grid > div:first-child {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .overlap-grid > div:first-child h2,
  .overlap-grid > div:first-child p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .overlap-grid > div:first-child div[style*="display: flex"] {
    justify-content: center;
    width: 100%;
  }

  .overlap-grid > div:first-child .btn {
    width: 100%;
    max-width: 290px;
    justify-content: center;
  }
}

.phone-mockup-frame {
  background: #ffffff;
  border: 10px solid #e2e8f0;
  border-radius: 40px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}

.phone-mockup-frame img {
  max-height: 240px;
  margin: 0 auto;
}

/* --- SECCIÓN VARIEDAD, CALIDAD Y CONFIANZA (CAPTURA 5) --- */
.confidence-section {
  background-color: #ffffff;
  padding: 4rem 0 5rem;
}

.stat-box-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-box-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(32, 131, 253, 0.12);
  border-color: var(--secondary);
}

.stat-number-box {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e40af 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px var(--secondary-glow);
}

.stat-number-box.navy {
  background: linear-gradient(135deg, var(--navy-brand) 0%, #0f172a 100%);
}

@media (max-width: 768px) {
  .confidence-section {
    padding: 3rem 0;
  }
  .stat-box-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.25rem;
  }
  .stat-number-box {
    margin: 0 auto 1.25rem;
  }
  .stat-box-card h3,
  .stat-box-card p {
    text-align: center;
  }
}

/* --- COTIZADOR EXPRESS WHATSAPP --- */
.quote-box {
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .quote-form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-brand);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  color: #0f172a;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(32, 131, 253, 0.15);
}

.quote-preview-wrap {
  margin-top: 1.5rem;
  background: var(--bg-surface);
  border: 1.5px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.quote-preview-text {
  font-family: monospace;
  color: #166534;
  font-weight: 600;
  word-break: break-all;
}

@media (max-width: 768px) {
  .quote-box {
    padding: 2rem 1.25rem;
    text-align: center;
  }
  .quote-box h2,
  .quote-box p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .quote-preview-wrap {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1.25rem;
  }
  .quote-preview-wrap div {
    text-align: center;
    width: 100%;
  }
  .quote-preview-wrap .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- MARCAS CERTIFICADAS --- */
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
}

.brand-badge {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 1.25rem 2.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-fast);
}

.brand-badge img {
  max-height: 42px;
  width: auto;
  transition: transform var(--transition-fast);
}

.brand-badge:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.brand-badge:hover img {
  transform: scale(1.08);
}

/* --- MAPA Y CONTACTO --- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (max-width: 991px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  min-height: 380px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: border-color var(--transition-fast);
}

.contact-info-item:hover {
  border-color: var(--primary);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: #4d7c0f;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .location-grid {
    gap: 2rem;
  }
  .contact-info-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1.5rem 1rem;
  }
  .contact-icon {
    margin: 0 auto 0.5rem;
  }
  .contact-info-item h5,
  .contact-info-item p {
    text-align: center;
  }
}


/* --- FOOTER AZUL MARINO CORPORATIVO --- */
.footer {
  background-color: var(--navy-brand);
  color: #ffffff;
  border-top: 3px solid var(--primary);
  padding: 4.5rem 0 2rem;
  font-size: 0.95rem;
  margin-top: auto;
}

.footer p,
.footer-col p {
  color: #ffffff !important;
  line-height: 1.6;
}

.footer-col strong {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-logo {
  height: auto;
  max-height: 82px;
  width: auto;
  max-width: 270px;
  margin-bottom: 1.5rem;
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: inline-block;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.footer-col h5 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary) !important;
  transform: translateX(4px);
}

.footer-bottom {
  color: #ffffff;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-bottom div {
  color: #ffffff;
}

.developer-tag a {
  color: var(--primary);
  font-weight: 700;
}

/* Footer Responsive Queries */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    text-align: center;
    margin-bottom: 2.5rem;
  }

  .footer-grid > div,
  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 1.5rem;
    display: block;
    max-height: 74px;
    max-width: 240px;
  }

  .footer-col h5 {
    text-align: center;
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-col h5::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-links a {
    text-align: center;
    display: inline-block;
    padding: 0.25rem 0;
  }

  .footer-links a:hover {
    transform: translateY(-2px);
    color: var(--primary);
  }

  .footer-col p,
  .footer-grid > div p {
    text-align: center;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 0.75rem;
  }

  .footer-bottom div {
    text-align: center;
  }
}



/* --- CATÁLOGO DE PRODUCTOS (TEMA CLARO) --- */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.catalog-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  flex-grow: 1;
  max-width: 440px;
}

.catalog-search input {
  background: none;
  border: none;
  color: #0f172a;
  width: 100%;
  font-size: 0.95rem;
}

.catalog-search input:focus {
  outline: none;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.filter-chip {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  color: var(--navy-brand);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--navy-brand);
  background: var(--bg-surface);
}

.filter-chip.active {
  background: var(--navy-brand);
  color: #ffffff;
  border-color: var(--navy-brand);
  box-shadow: 0 4px 12px rgba(36, 40, 91, 0.25);
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary);
  box-shadow: 0 12px 28px rgba(32, 131, 253, 0.12);
}

.product-thumb-wrap {
  height: 150px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 1px solid var(--border-light);
}

.product-thumb {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-info h4 {
  font-size: 1.15rem;
  color: var(--navy-brand);
  margin-bottom: 0.35rem;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.spec-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  color: #334155;
  border: 1px solid var(--border-light);
  font-weight: 500;
}

.product-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
}

/* --- ESTILOS DE LAS 8 LÍNEAS OFICIALES DE PRODUCTOS --- */
.official-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 991px) {
  .official-products-grid {
    grid-template-columns: 1fr;
  }
}

.official-product-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-normal);
}

.official-product-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 12px 28px rgba(32, 131, 253, 0.1);
  transform: translateY(-3px);
}

.off-prod-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.off-prod-img-box {
  width: 90px;
  height: 90px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  flex-shrink: 0;
}

.off-prod-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.off-prod-title-group h3 {
  font-size: 1.45rem;
  color: var(--navy-heading);
  margin: 0.25rem 0;
  font-weight: 800;
}

.off-prod-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.off-prod-desc {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.off-prod-varieties-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.off-prod-varieties-box h6 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.off-prod-varieties-box ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.off-prod-varieties-box li {
  font-size: 0.875rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.off-prod-varieties-box li svg {
  color: var(--primary);
  flex-shrink: 0;
}

.off-prod-materials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mat-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: #edf0f8;
  color: var(--navy-brand);
  font-weight: 600;
}

.off-prod-footer {
  margin-top: auto;
}

@media (max-width: 768px) {
  .catalog-toolbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.25rem 1rem;
  }

  .catalog-search {
    width: 100%;
    max-width: 100%;
  }

  #totalProductsCount {
    text-align: center;
  }
}

@media (max-width: 580px) {
  .off-prod-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1rem;
  }

  .off-prod-img-box {
    margin: 0 auto;
  }

  .off-prod-title-group {
    text-align: center;
  }

  .off-prod-desc {
    text-align: center;
  }

  .off-prod-materials {
    justify-content: center;
  }

  .off-prod-footer a {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   PÁGINA NOSOTROS / ACERCA DE (ESTILO CORPORATIVO PREMIUM)
   ========================================================================== */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (max-width: 540px) {
  .about-stats-grid {
    grid-template-columns: 1fr;
  }
}

.about-stat-box {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
}

.about-stat-box:hover {
  border-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(32, 131, 253, 0.1);
}

.about-stat-num {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.about-stat-lbl {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
  font-weight: 500;
}

.about-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.about-visual-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}

.about-badge-floating {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-badge-floating svg {
  color: var(--navy-brand);
  flex-shrink: 0;
}

.about-badge-floating span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-brand);
}

/* Tarjetas de Misión, Visión, Valores */
.pillar-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--navy-brand);
  transition: height var(--transition-fast);
}

.pillar-card.pillar-blue::before {
  background: var(--secondary);
}

.pillar-card.pillar-lime::before {
  background: var(--primary);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(36, 40, 91, 0.2);
}

.pillar-card:hover::before {
  height: 6px;
}

.pillar-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pillar-icon-box.navy {
  background: rgba(36, 40, 91, 0.1);
  color: var(--navy-brand);
}

.pillar-icon-box.blue {
  background: rgba(32, 131, 253, 0.12);
  color: var(--secondary);
}

.pillar-icon-box.lime {
  background: rgba(134, 196, 51, 0.2);
  color: #3f6212;
}

.pillar-title {
  font-size: 1.5rem;
  color: var(--navy-heading);
  margin-bottom: 0.85rem;
  font-weight: 800;
}

.pillar-text {
  color: #334155;
  line-height: 1.65;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.pillar-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.pillar-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-brand);
}

.pillar-feature-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Cuadrícula de Fortalezas */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 991px) {
  .strengths-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .strengths-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.strength-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.strength-item:hover {
  border-color: var(--secondary);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(32, 131, 253, 0.08);
}

.strength-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-brand);
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .strength-icon {
    margin: 0 auto 1.25rem;
  }
}

.strength-title {
  font-size: 1.15rem;
  color: var(--navy-heading);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.strength-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- PAGE & CATALOG HEADER BANNER WITH REAL BACKGROUND --- */
.catalog-header-banner,
.page-header-banner {
  position: relative;
  background-color: #0c1220;
  background-image: url('../img/hero-screws.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 5rem 1rem 4.5rem;
  overflow: hidden;
  text-align: center;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.catalog-header-banner::before,
.page-header-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(12, 18, 32, 0.82) 0%, rgba(10, 15, 28, 0.94) 100%);
  z-index: 1;
}

.catalog-header-banner .container,
.page-header-banner .container {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

.catalog-header-chips {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem auto 1.25rem;
  max-width: 900px;
}

.catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  color: var(--navy-heading);
  border: 1px solid #e2e8f0;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.catalog-chip:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(32, 131, 253, 0.12);
}

.catalog-chip-icon {
  font-size: 1rem;
}
