/*
Theme Name: AYME INDUSTRIAS PET
Theme URI: https://aymeindustriaspet.com
Author: AYME INDUSTRIAS PET
Author URI: https://aymeindustriaspet.com
Description: Tema oficial para AYME INDUSTRIAS PET - Solutions in Packaging. Portafolio industrial B2B de envases, galones, tapas y preformas en PET y PP.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: ayme
*/

:root {
  --primary: #1F2E4D;
  --primary-dark: #141E33;
  --primary-light: #EEF2F8;
  --accent: #A61C2E;
  --accent-hover: #8C1625;
  --accent-light: #FDF2F4;
  --accent-glow: rgba(166, 28, 46, 0.3);
  --bg-dark: #0a1128;
  --bg-card: #060c1d;
  --text-white: #f8fafc;
  --text-slate: #94a3b8;
  --border-light: rgba(255, 255, 255, 0.12);
  --border-focus: #A61C2E;
  --whatsapp: #25D366;
  --whatsapp-hover: #20bd5a;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hero: 'Instrument Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   CABECERA FLOTANTE CON SMART HIDE Y SCROLL SPY
   ========================================================================== */

.fixed-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 1;
}

.fixed-header-wrapper.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.top-promo-bar {
  background-color: var(--accent-hover);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 0.02em;
}

.site-header {
  background: rgba(10, 17, 40, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 17, 40, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

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

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

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

.main-navigation {
  display: none;
}

@media (min-width: 860px) {
  .main-navigation {
    display: block;
  }
}

.main-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: #e2e8f0;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.5rem 0.25rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
}

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

.btn-cart-header {
  height: 38px;
  width: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.btn-cart-header:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mobile-menu-btn {
  height: 38px;
  width: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Drawer Móvil */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.mobile-drawer-content {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 320px;
  background: #0f172a;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  z-index: 201;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-drawer-content.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.25rem;
}

.mobile-drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-drawer-nav a, .mobile-drawer-nav button {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-drawer-nav a:hover, .mobile-drawer-nav button:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* ==========================================================================
   PRODUCT TUNNEL HERO (Native CSS & Vanilla JS Port)
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  height: 100svh;
  overflow: hidden;
  background: #f7f6f4;
  color: #241c1d;
  font-family: var(--font-hero);
}

.stage {
  position: absolute;
  inset: 110px 0 155px;
  overflow: hidden;
}

.product {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(56vw, 700px);
  height: 110%;
  max-width: none;
  object-fit: contain;
  transform-origin: center;
  animation: depth 24s linear infinite;
  will-change: transform;
}

.product:nth-child(1) { --lane: -26%; animation-delay: -14s; }
.product:nth-child(2) { --lane: 28%; animation-delay: -8s; }
.product:nth-child(3) { --lane: -16%; animation-delay: -2s; }
.product:nth-child(4) { --lane: 24%; animation-delay: -20s; }

@keyframes depth {
  0% { transform: translate(calc(-50% + var(--lane) * .25), -52%) scale(.24); opacity: 0; z-index: 1; }
  3% { opacity: 1; }
  50% { transform: translate(calc(-50% + var(--lane)), -50%) scale(.85); opacity: 1; z-index: 5; }
  97% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--lane) * 2), -46%) scale(1.85); opacity: 0; z-index: 10; }
}

.hero[data-paused='true'] .product {
  animation-play-state: paused;
}

.copy {
  position: absolute;
  z-index: 20;
  inset: auto 0 0;
  padding: 95px 24px 40px;
  text-align: center;
  background: linear-gradient(transparent, rgba(247, 246, 244, .97) 38%, #f7f6f4 80%);
}

.brand {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

.copy h1 {
  margin: 0 auto;
  max-width: 1000px;
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.045em;
  color: #241c1d;
}

.lead {
  margin: 14px 0 22px;
  font-size: 16px;
  color: #62585a;
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.actions .primary {
  background: var(--accent);
  color: white;
}

.actions .primary:hover {
  background: var(--accent-hover);
}

.actions .secondary {
  color: var(--accent-hover);
  border: 1px solid var(--accent-hover);
  background: #f7f6f4;
}

.actions .secondary:hover {
  background: #eee6e6;
}

.pause {
  position: absolute;
  z-index: 21;
  top: 132px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #c9c2c2;
  border-radius: 999px;
  background: #fff;
  color: #534447;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.pause:disabled {
  cursor: default;
}

.pause:focus, .actions a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* Reduced motion composition */
.hero[data-reduced-motion='true'] .product {
  animation: none;
  opacity: 1;
  transform: translate(calc(-50% + var(--lane)), -50%) scale(.72);
}

.hero[data-reduced-motion='true'] .product:nth-child(1) { --lane: -56%; z-index: 4; }
.hero[data-reduced-motion='true'] .product:nth-child(2) { --lane: -15%; z-index: 3; }
.hero[data-reduced-motion='true'] .product:nth-child(3) { --lane: 28%; z-index: 2; }
.hero[data-reduced-motion='true'] .product:nth-child(4) { --lane: 64%; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .product {
    animation: none;
    opacity: 1;
    transform: translate(calc(-50% + var(--lane)), -50%) scale(.72);
  }
}

@keyframes mobileDepth {
  0% { transform: translate(calc(-50% + var(--lane) * .25), -50%) scale(.24); opacity: 0; z-index: 1; }
  3% { opacity: 1; }
  50% { transform: translate(calc(-50% + var(--lane) * .6), -50%) scale(.65); opacity: 1; z-index: 5; }
  97% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--lane)), -50%) scale(1.05); opacity: 0; z-index: 10; }
}

@media (max-width: 600px) {
  .hero { min-height: 740px; }
  .stage { inset: 175px 0 230px; }
  .product { width: 80vw; height: 90%; animation-name: mobileDepth; }
  .product:nth-child(1) { --lane: -8%; }
  .product:nth-child(2) { --lane: 8%; }
  .product:nth-child(3) { --lane: -4%; }
  .product:nth-child(4) { --lane: 4%; }
  .pause { top: 122px; right: 16px; }
  .copy { padding: 70px 20px 32px; }
  .copy h1 { max-width: 350px; font-size: 38px; }
  .lead { max-width: 290px; margin: 14px auto 20px; font-size: 14px; }
  .actions { gap: 10px; }
  .actions a { padding: 12px 18px; font-size: 13px; }
  .hero[data-reduced-motion='true'] .product { transform: translate(calc(-50% + var(--lane)), -50%) scale(.68); }
  .hero[data-reduced-motion='true'] .product:nth-child(1) { --lane: -28%; }
  .hero[data-reduced-motion='true'] .product:nth-child(2) { --lane: -10%; }
  .hero[data-reduced-motion='true'] .product:nth-child(3) { --lane: 10%; }
  .hero[data-reduced-motion='true'] .product:nth-child(4) { --lane: 28%; }
}

/* ==========================================================================
   SECCIÓN DE CATÁLOGO (#catalogo)
   ========================================================================== */

.catalog-section {
  scroll-margin-top: 6rem;
  padding: 4rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border-light);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-green {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.badge-yellow {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  color: #facc15;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0.75rem 0;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--text-slate);
  line-height: 1.6;
}

.catalog-controls {
  max-width: 860px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-bar-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.8rem 2.8rem 0.8rem 2.8rem;
  color: #ffffff;
  font-size: 0.82rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(166, 28, 46, 0.25);
}

.search-clear-btn {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.search-clear-btn.visible {
  display: flex;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tab-btn {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(166, 28, 46, 0.4);
  transform: scale(1.03);
}

.tab-count {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-family: monospace;
}

/* Original landing catalog geometry, isolated from other sections. */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 16px;
}
.product-card {
  min-width: 0;
  background: #060c1d;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color .15s;
}
.product-card:hover { border-color: rgba(166,28,46,.6); }
.product-thumb-wrapper {
  position: relative;
  aspect-ratio: 1;
  background: rgba(15,23,42,.8);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.product-thumb { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .3s; }
.product-card:hover .product-thumb { transform: scale(1.1); }
.product-badge-b2b {
  position: absolute; top: 6px; right: 6px; font-size: 8px;
  font-family: monospace; font-weight: 700; text-transform: uppercase;
  padding: 2px 6px; border-radius: 999px; background: rgba(0,0,0,.6);
  color: #cbd5e1; border: 1px solid rgba(255,255,255,.1);
}
.product-header-meta { display: flex; align-items: center; justify-content: space-between; font-family: monospace; font-size: 9px; margin-bottom: 2px; }
.product-category { color: #f87171; font-weight: 700; max-width: 65%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-sku { color: #64748b; }
.product-title { font-size: 12px; font-weight: 700; color: white; line-height: 1.25; margin-bottom: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card:hover .product-title { color: #fca5a5; }
.product-desc { display: none; font-size: 11px; color: #94a3b8; line-height: 1.625; padding-top: 4px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-specs { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.1); font-family: monospace; font-size: 9px; color: #94a3b8; display: flex; flex-direction: column; gap: 2px; }
.spec-row { display: flex; justify-content: space-between; }
.spec-val { color: #e2e8f0; font-weight: 600; margin-left: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.product-card-actions { margin-top: 8px; padding-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.btn-card-spec, .btn-card-quote { width: 100%; font-size: 10px; padding: 6px 8px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 4px; transition: background-color .15s; }
.btn-card-spec { background: rgba(255,255,255,.05); color: #cbd5e1; font-weight: 600; border: 1px solid rgba(255,255,255,.1); }
.btn-card-spec:hover { background: rgba(255,255,255,.1); color: white; }
.btn-card-quote { background: #A61C2E; color: white; font-weight: 700; box-shadow: 0 4px 6px -1px rgba(69,10,10,.4), 0 2px 4px -2px rgba(69,10,10,.4); }
.btn-card-quote:hover { background: #8C1625; }
.btn-card-spec svg { color: #A61C2E; }
.product-card-actions svg { width: 12px; height: 12px; flex-shrink: 0; }
.product-card-actions button span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (min-width: 640px) {
  .catalog-grid { gap: 24px; }
  .product-card { padding: 16px; border-radius: 16px; }
  .product-thumb-wrapper { padding: 16px; border-radius: 12px; margin-bottom: 12px; }
  .product-badge-b2b { top: 8px; right: 8px; font-size: 9px; padding-inline: 8px; }
  .product-header-meta { font-size: 10px; margin-bottom: 4px; }
  .product-title { font-size: 14px; line-height: 1.375; margin-bottom: 4px; }
  .product-desc { display: -webkit-box; }
  .product-specs { margin-top: 12px; padding-top: 12px; gap: 4px; font-size: 10px; }
  .product-card-actions { margin-top: 16px; padding-top: 8px; gap: 8px; }
  .btn-card-spec, .btn-card-quote { padding: 8px 12px; font-size: 12px; border-radius: 12px; gap: 6px; }
  .product-card-actions svg { width: 14px; height: 14px; }
}
@media (min-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.catalog-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 500px;
  margin: 2rem auto;
  display: none;
}

.catalog-empty.visible {
  display: block;
}

/* ==========================================================================
   MODAL B2B DE FICHA TÉCNICA
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-dialog {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.25rem;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.modal-sku-badge {
  font-size: 0.65rem;
  font-family: monospace;
  font-weight: 700;
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.modal-index-badge {
  font-size: 0.65rem;
  font-family: monospace;
  color: #94a3b8;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
}

.modal-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.modal-ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 600px) {
  .modal-body-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.modal-preview-box {
  aspect-ratio: 1 / 1;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal-specs-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-family: monospace;
  font-size: 0.75rem;
}

.modal-specs-title {
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.25rem;
}

.modal-spec-item {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-spec-label {
  color: #64748b;
}

.modal-spec-value {
  color: #ffffff;
  font-weight: 700;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 600px) {
  .modal-actions {
    flex-direction: row;
  }
}

.btn-modal-quote {
  flex: 1;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(166, 28, 46, 0.4);
}

.btn-modal-quote:hover {
  background: var(--accent-hover);
}

.btn-modal-wa {
  background: #16a34a;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-modal-wa:hover {
  background: #15803d;
}

/* Original catalog controls and technical sheet. */
#catalogo .section-header { max-width: 768px; margin-bottom: 32px; }
#catalogo .section-title { font-size: 24px; line-height: 1.333333; letter-spacing: normal; margin: 12px 0; }
#catalogo .section-subtitle { font-size: 12px; line-height: 1.625; color: #cbd5e1; }
#catalogo .section-badge { gap: 6px; }
#catalogo .catalog-controls { max-width: 896px; margin-bottom: 32px; }
#catalogo .search-icon { color: #94a3b8; }
#catalogo .search-input { border-color: rgba(255,255,255,.15); border-radius: 16px; padding: 12px 40px 12px 44px; font-size: 12px; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
#catalogo .search-input:focus { border-color: #A61C2E; }
#catalogo .search-input::placeholder { color: #64748b; }
#catalogo .category-tabs { padding-top: 4px; align-items: center; }
#catalogo .tab-btn { padding: 6px 14px; border-radius: 12px; gap: 6px; background: rgba(255,255,255,.1); }
#catalogo .tab-btn:hover { background: rgba(255,255,255,.15); }
#catalogo .tab-btn.active { background: #A61C2E; transform: scale(1.05); box-shadow: 0 10px 15px -3px rgba(69,10,10,.5), 0 4px 6px -4px rgba(69,10,10,.5); }
#catalogo .tab-count { padding: 2px 6px; font-size: 10px; }
#catalogo .catalog-empty { max-width: 512px; padding: 48px 32px; border-radius: 24px; margin: 32px auto 0; }
#catalogo .catalog-empty h4 { font-size: 14px !important; }
#catalogo .catalog-empty p { font-size: 12px !important; margin-top: 12px !important; }
#technical-modal-overlay { background: rgba(0,0,0,.85); backdrop-filter: blur(12px); }
#technical-modal-overlay .modal-dialog { max-width: 672px; border-radius: 24px; padding: 24px; }
#technical-modal-overlay .modal-header { margin-bottom: 24px; }
#technical-modal-overlay .modal-title { font-size: 20px; margin-top: 4px; }
#modal-category { color: #94a3b8; font-size: 12px; }
#technical-modal-overlay .modal-meta { margin-bottom: 0; }
#technical-modal-overlay .modal-sku-badge { font-size: 10px; text-transform: uppercase; padding: 2px 8px; background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.2); }
#technical-modal-overlay .modal-index-badge { font-size: 10px; }
#technical-modal-overlay .modal-controls { gap: 6px; }
#technical-modal-overlay .modal-ctrl-btn { border-radius: 12px; flex-shrink: 0; }
#modal-close-btn { margin-left: 4px; }
#technical-modal-overlay .modal-body-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
#technical-modal-overlay .modal-preview-box { border-radius: 16px; padding: 8px; overflow: hidden; }
#technical-modal-overlay .modal-preview-img { padding: 16px; }
#technical-modal-overlay .modal-specs-box { gap: 8px; }
#technical-modal-overlay .modal-specs-title { display: flex; align-items: center; gap: 6px; font-size: 14px; padding-bottom: 4px; margin-bottom: 4px; }
#technical-modal-overlay .modal-specs-title svg { color: #A61C2E; flex-shrink: 0; }
#technical-modal-overlay .modal-spec-item { padding-bottom: 4px; }
#technical-modal-overlay .modal-spec-item:last-child { border: 0; }
#technical-modal-overlay .modal-actions { flex-direction: column; gap: 12px; padding-top: 8px; }
#technical-modal-overlay .btn-modal-quote, #technical-modal-overlay .btn-modal-wa { width: 100%; font-size: 12px; border-radius: 12px; }
#technical-modal-overlay .btn-modal-wa { background: #059669; }
#technical-modal-overlay .btn-modal-wa:hover { background: #10b981; }
@media (min-width: 640px) {
  .catalog-section { padding-inline: 24px; }
  #catalogo .section-title { font-size: 36px; line-height: 1.111111; }
  #catalogo .section-subtitle { font-size: 14px; }
  #technical-modal-overlay .modal-dialog { padding: 32px; }
  #technical-modal-overlay .modal-title { font-size: 24px; }
  #technical-modal-overlay .modal-body-grid { grid-template-columns: 1fr 1fr; }
  #technical-modal-overlay .modal-actions { flex-direction: row; }
  #technical-modal-overlay .btn-modal-wa { width: auto; }
}

/* ==========================================================================
   SECCIÓN DE PREGUNTAS FRECUENTES (#faqs)
   ========================================================================== */

.faqs-section {
  scroll-margin-top: 6rem;
  padding: 4rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border-light);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: rgba(166, 28, 46, 0.5);
}

.faq-trigger {
  width: 100%;
  padding: 1.1rem 1.25rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background-color 0.2s ease;
}

.faq-trigger:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq-chevron {
  transition: transform 0.25s ease;
  color: #94a3b8;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-content {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item.open .faq-content {
  display: block;
}

.faq-content a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   SECCIÓN DE COTIZACIÓN Y MAPA (#cotizar)
   ========================================================================== */

.quote-section {
  scroll-margin-top: 6rem;
  padding: 4rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 960px) {
  .quote-section {
    grid-template-columns: 1fr 1fr;
  }
}

.quote-form-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.4s ease;
}

.quote-form-card.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(166, 28, 46, 0.35);
  transform: scale(1.01);
}

.form-feedback-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
  font-size: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  display: none;
}

.form-feedback-banner.visible {
  display: block;
  animation: pulse 2s infinite;
}

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

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

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-input, .form-select {
  width: 100%;
  background-color: #0a1128;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: #ffffff;
  font-size: 0.8rem;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 500px) {
  .form-row-2col {
    grid-template-columns: 1fr 1fr;
  }
}

.btn-form-submit {
  width: 100%;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(166, 28, 46, 0.4);
  transition: background-color 0.2s ease;
  margin-top: 0.5rem;
}

.btn-form-submit:hover {
  background: var(--accent-hover);
}

.map-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.map-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.btn-gps-route {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(239, 68, 68, 0.3);
  transition: all 0.2s ease;
}

.btn-gps-route:hover {
  background: rgba(239, 68, 68, 0.2);
}

.google-maps-container {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.google-maps-container iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}

.contact-channels-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.channel-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(166, 28, 46, 0.15);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-text-box h5 {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.1rem;
}

.channel-text-box span, .channel-text-box a {
  font-size: 0.78rem;
  color: #cbd5e1;
}

.urgent-dispatch-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.urgent-dispatch-box h5 {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.urgent-dispatch-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  margin-bottom: 0.65rem;
}

.btn-urgent-wa {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

/* ==========================================================================
   WIDGET FLOTANTE DE WHATSAPP
   ========================================================================== */

.floating-whatsapp-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.whatsapp-tooltip {
  display: none;
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.floating-whatsapp-widget:hover .whatsapp-tooltip {
  display: inline-flex;
}

.floating-whatsapp-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

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

.ping-badge-pulse {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #86efac;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-badge-solid {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid #ffffff;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ==========================================================================
   FOOTER CORPORATIVO
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 1rem;
  background: #060c1d;
  font-size: 0.78rem;
}

.footer-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom-row {
    flex-direction: row;
    align-items: center;
  }
}

.copyright-text {
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.footer-channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.footer-channel-link {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

.footer-channel-link:hover {
  color: #ffffff;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  color: #94a3b8;
}

.footer-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
