/* ===================================================
   INTERXPORT — CSS Principal · Mobile First
   Paleta: Azul marca #0266a1 | Naranja #e67e22 | Gris #f5f7fa
   Breakpoints: 480 | 640 | 768 | 1024 | 1200
   =================================================== */

:root {
  --navy:        #0266a1;   /* Azul de marca (logo exacto) */
  --navy-light:  #0378bb;   /* Azul claro para hover */
  --navy-dark:   #012d4e;   /* Azul oscuro para fondos de secciones */
  --orange:      #e67e22;
  --orange-d:    #c0620f;
  --white:       #ffffff;
  --gray-bg:     #f5f7fa;
  --gray-light:  #e8ecf0;
  --gray-text:   #6c7a8d;
  --dark-text:   #01324f;
  --success:     #27ae60;
  --danger:      #e74c3c;
  --shadow:      0 4px 20px rgba(2,102,161,.12);
  --shadow-lg:   0 8px 40px rgba(2,102,161,.20);
  --radius:      10px;
  --radius-lg:   16px;
  --tr:          all .28s ease;
  --font:        'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-h:       80px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body   { font-family: var(--font); color: var(--dark-text); background: var(--white); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
img    { max-width: 100%; height: auto; display: block; }
a      { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── TIPOGRAFÍA FLUID ── */
h1 { font-size: clamp(1.7rem, 6vw, 3.4rem); font-weight: 800; line-height: 1.13; }
h2 { font-size: clamp(1.35rem, 4vw, 2.3rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { font-size: clamp(.9rem, 2vw, 1rem); }

/* ── CONTENEDORES ── */
.container      { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container, .container-wide { padding: 0 24px; } }

/* ================================================================
   BOTONES
================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px;
  border-radius: 50px;
  font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: var(--tr);
  border: 2px solid transparent;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary  { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover  { background: var(--orange-d); border-color: var(--orange-d); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,126,34,.35); }
.btn-outline  { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover  { background: var(--navy); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(2,102,161,.25); }
.btn-outline-white  { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: #fff; color: var(--orange); transform: translateY(-2px); }
.btn-navy     { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover     { background: var(--navy-light); border-color: var(--navy-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(2,102,161,.35); }
.btn-whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn-whatsapp:hover { background: #128c7e; border-color: #128c7e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.35); }
.btn-sm { padding: 8px 16px; font-size: .8rem; }
.btn-lg { padding: 14px 34px; font-size: 1rem; }

/* ================================================================
   NAVBAR — Mobile First · Fondo blanco
================================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: #fff;
  transition: var(--tr);
  border-bottom: 3px solid var(--navy);
  box-shadow: 0 2px 16px rgba(2,102,161,.10);
}
.navbar.scrolled { box-shadow: 0 6px 28px rgba(2,102,161,.18); }

.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 800; color: var(--navy);
  letter-spacing: -.02em; flex-shrink: 0;
}
.navbar-logo img { height: 58px; width: auto; object-fit: contain; }
.navbar-logo em   { color: var(--orange); font-style: normal; }

/* Menú desktop — oculto en mobile */
.navbar-nav {
  display: none;
  align-items: center; gap: 28px;
}
.navbar-nav a {
  color: var(--dark-text); font-weight: 600; font-size: .95rem;
  transition: var(--tr); position: relative; padding-bottom: 3px;
}
.navbar-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--navy); transition: var(--tr);
}
.navbar-nav a:hover { color: var(--navy); }
.navbar-nav a:hover::after { width: 100%; }

.navbar-cta { display: none; align-items: center; gap: 10px; }

/* Burger */
.burger {
  display: flex; flex-direction: column; gap: 6px;
  cursor: pointer; padding: 8px; border: none; background: none;
  -webkit-tap-highlight-color: transparent;
}
.burger span {
  display: block; width: 26px; height: 2.5px;
  background: var(--dark-text); border-radius: 2px; transition: var(--tr);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil (drawer) */
.mobile-menu {
  position: fixed; inset: 0; top: var(--nav-h); z-index: 999;
  background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-menu.open { transform: none; }
.mobile-menu a {
  display: block; color: var(--dark-text);
  font-size: 1.25rem; font-weight: 600;
  padding: 18px 32px; width: 100%; text-align: center;
  border-bottom: 1px solid var(--gray-light);
  transition: var(--tr);
}
.mobile-menu a:hover { color: var(--navy); background: var(--gray-bg); }
.mobile-menu .btn { margin: 20px auto; width: calc(100% - 48px); justify-content: center; }

@media (min-width: 768px) {
  .navbar        { height: 108px; }
  :root          { --nav-h: 108px; }
  .navbar-logo img { height: 80px; }
  .navbar-nav    { display: flex; }
  .navbar-cta    { display: flex; }
  .burger        { display: none; }
  .mobile-menu   { display: none !important; }
}

/* ================================================================
   HERO — Mobile First · Fondo blanco / claro
================================================================ */
.hero {
  min-height: calc(100svh - var(--nav-h));
  background: linear-gradient(160deg, #f0f7ff 0%, #ffffff 50%, #fef9f5 100%);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 64px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 100% 0%, rgba(2,102,161,.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 0% 100%, rgba(230,126,34,.06) 0%, transparent 55%);
}
/* Línea decorativa de acento */
.hero::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 50%, var(--orange) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 40px; align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(2,102,161,.08); border: 1px solid rgba(2,102,161,.20);
  color: var(--navy); padding: 5px 14px; border-radius: 50px;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 16px;
}
.hero h1         { color: var(--dark-text); margin-bottom: 16px; }
.hero h1 span    { color: var(--navy); }
.hero p          { color: var(--gray-text); font-size: clamp(.95rem,2.5vw,1.12rem); margin-bottom: 32px; max-width: 520px; }
.hero-btns       { display: flex; flex-direction: column; gap: 12px; }
.hero-btns .btn  { width: 100%; justify-content: center; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px;
  margin-top: 40px; padding-top: 28px;
  border-top: 2px solid var(--gray-light);
}
.hero-stat-num   { font-size: clamp(1.4rem,4vw,2rem); font-weight: 800; color: var(--navy); display: block; }
.hero-stat-label { font-size: .75rem; color: var(--gray-text); }

.hero-visual { display: none; }
.hero-img-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 60px rgba(2,102,161,.18), 0 4px 16px rgba(0,0,0,.08);
  border: 4px solid #fff;
}
.hero-img-wrap img { width: 100%; height: 440px; object-fit: cover; }
.hero-img-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: #fff; border-radius: var(--radius); padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(2,102,161,.18); display: flex; align-items: center; gap: 10px;
  border-left: 4px solid var(--navy);
}
.hero-img-badge-icon {
  width: 40px; height: 40px; background: var(--navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.hero-img-badge strong { display: block; font-size: .85rem; color: var(--dark-text); }
.hero-img-badge span   { font-size: .72rem; color: var(--gray-text); }

@media (min-width: 640px) {
  .hero-btns            { flex-direction: row; flex-wrap: wrap; }
  .hero-btns .btn       { width: auto; }
}
@media (min-width: 1024px) {
  .hero-grid  { grid-template-columns: 1fr 1fr; gap: 64px; }
  .hero-visual { display: flex; justify-content: center; position: relative; }
}

/* ================================================================
   SECCIONES
================================================================ */
.section       { padding: 56px 0; }
.section-light { background: var(--gray-bg); }
.section-dark  { background: var(--navy-dark); color: #fff; }

.section-header        { text-align: center; margin-bottom: 44px; }
.section-tag {
  display: inline-block; background: rgba(230,126,34,.1); color: var(--orange);
  padding: 4px 13px; border-radius: 50px; font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px;
}
.section-dark .section-tag { background: rgba(230,126,34,.2); }
.section-header h2    { color: var(--navy); margin-bottom: 10px; }
.section-dark .section-header h2 { color: #fff; }
.section-header p     { color: var(--gray-text); font-size: clamp(.9rem,2vw,1.05rem); max-width: 540px; margin: 0 auto; }
.section-dark .section-header p   { color: rgba(255,255,255,.6); }

@media (min-width: 768px) { .section { padding: 80px 0; } }
@media (min-width: 1024px){ .section { padding: 96px 0; } }

/* ================================================================
   CATEGORÍAS
================================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) { .categories-grid { grid-template-columns: repeat(3,1fr); gap: 18px; } }
@media (min-width: 1024px){ .categories-grid { grid-template-columns: repeat(5,1fr); gap: 24px; } }

.cat-card {
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: var(--tr); cursor: pointer;
  border: 2px solid transparent; display: block;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.cat-card-img {
  height: 120px; overflow: hidden; background: var(--gray-bg);
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 768px) { .cat-card-img { height: 150px; } }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--tr); }
.cat-card:hover .cat-card-img img { transform: scale(1.06); }
.cat-card-body { padding: 14px; }
.cat-card-body h3 { font-size: .85rem; color: var(--navy); margin-bottom: 4px; }
.cat-card-body p  { font-size: .75rem; color: var(--gray-text); line-height: 1.45; display: none; }
.cat-card-arrow   { margin-top: 8px; font-size: .78rem; color: var(--orange); font-weight: 700; }
@media (min-width: 768px) {
  .cat-card-body { padding: 18px; }
  .cat-card-body h3 { font-size: .95rem; }
  .cat-card-body p  { display: block; }
}

/* ================================================================
   PRODUCTOS GRID — Mobile First
================================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 480px) { .products-grid { gap: 16px; } }
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(3,1fr); gap: 20px; } }
@media (min-width: 1024px){ .products-grid { grid-template-columns: repeat(4,1fr); gap: 24px; } }

.product-card {
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: var(--tr); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.product-card-img {
  height: 160px; overflow: hidden; background: var(--gray-bg); position: relative;
}
@media (min-width: 640px) { .product-card-img { height: 200px; } }
.product-card-img img {
  width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: var(--tr);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--orange); color: #fff;
  padding: 3px 8px; border-radius: 50px; font-size: .7rem; font-weight: 700;
}

.product-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
@media (min-width: 640px) { .product-card-body { padding: 16px; } }
.product-card-cat  { font-size: .7rem; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.product-card-body h3 { font-size: .85rem; color: var(--navy); margin-bottom: 6px; line-height: 1.35; }
.product-card-body p  { font-size: .78rem; color: var(--gray-text); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 640px) {
  .product-card-body h3 { font-size: .95rem; }
  .product-card-body p  { font-size: .85rem; }
}

.product-card-footer {
  padding: 10px 12px; border-top: 1px solid var(--gray-light);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
@media (min-width: 640px) { .product-card-footer { padding: 12px 16px; } }

/* ================================================================
   FEATURES (POR QUÉ ELEGIRNOS)
================================================================ */
.features-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px)  { .features-grid { grid-template-columns: repeat(2,1fr); gap: 20px; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4,1fr); gap: 28px; } }

.feature-item {
  text-align: center; padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09);
  transition: var(--tr);
}
.feature-item:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.feature-icon {
  width: 58px; height: 58px; background: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.5rem;
}
.feature-item h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.feature-item p  { color: rgba(255,255,255,.6); font-size: .85rem; }

/* ================================================================
   CTA
================================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--orange) 0%, #c0392b 100%);
  padding: 60px 0; text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 12px; }
.cta-section p  { color: rgba(255,255,255,.85); margin-bottom: 28px; font-size: clamp(.9rem,2vw,1.08rem); }
.cta-btns       { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.cta-btns .btn  { width: min(100%, 280px); justify-content: center; }
@media (min-width: 480px) { .cta-btns { flex-direction: row; flex-wrap: wrap; justify-content: center; } .cta-btns .btn { width: auto; } }

/* ================================================================
   CONTACTO
================================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 36px;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.4fr; gap: 56px; } }

.contact-info h3 { color: var(--navy); margin-bottom: 20px; font-size: 1.15rem; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-icon {
  width: 44px; height: 44px; background: rgba(230,126,34,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--orange);
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-info-text strong { display: block; color: var(--navy); margin-bottom: 2px; font-size: .9rem; }
.contact-info-text span   { color: var(--gray-text); font-size: .85rem; }

/* ================================================================
   FORMULARIO
================================================================ */
.form-group     { margin-bottom: 16px; }
.form-label     { display: block; font-weight: 600; font-size: .875rem; color: var(--navy); margin-bottom: 5px; }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 2px solid var(--gray-light); border-radius: var(--radius);
  font-size: .9rem; transition: var(--tr); background: #fff; color: var(--dark-text);
}
.form-control:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(230,126,34,.12); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ================================================================
   FOOTER — Rediseño completo
================================================================ */

/* Franja CTA superior */
.footer-cta-bar {
  background: var(--navy);
  padding: 20px 0;
}
.footer-cta-inner {
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.footer-cta-inner strong { color: #fff; font-size: 1rem; display: block; }
.footer-cta-inner span   { color: rgba(255,255,255,.65); font-size: .85rem; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 640px) {
  .footer-cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Cuerpo oscuro */
.footer-body {
  background: #011e38;
  padding: 60px 0 40px;
}

/* Grid de columnas */
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 52px; } }

/* Columna marca — logo en caja blanca */
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-logo-wrap {
  background: #ffffff !important;
  border-radius: 14px;
  padding: 18px 28px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  box-shadow: 0 6px 24px rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.15);
}
.footer-logo-wrap img {
  height: 70px !important; width: auto !important; display: block !important;
  filter: none !important;
}
.footer-brand p {
  color: rgba(255,255,255,.55); font-size: .875rem; line-height: 1.7;
  max-width: 300px;
}

/* Social */
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); transition: var(--tr);
}
.footer-social a:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }

/* Columnas de links */
.footer-col h4 {
  color: #fff; font-size: .88rem; font-weight: 700;
  margin-bottom: 18px; text-transform: uppercase; letter-spacing: .07em;
  position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--navy-light));
  border-radius: 2px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,.5); font-size: .875rem;
  transition: var(--tr); display: inline-flex; align-items: center; gap: 6px;
}
.footer-col ul a::before {
  content: '›'; font-size: 1rem; color: var(--navy-light); opacity: 0; transition: var(--tr);
  transform: translateX(-4px);
}
.footer-col ul a:hover { color: #fff; padding-left: 4px; }
.footer-col ul a:hover::before { opacity: 1; transform: none; }

/* Columna de contacto */
.footer-contact-list { list-style: none; }
.footer-contact-list li {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 13px; color: rgba(255,255,255,.5); font-size: .875rem;
}
.fc-icon { font-size: 1rem; line-height: 1.4; flex-shrink: 0; }
.footer-contact-list a { color: rgba(255,255,255,.5); transition: var(--tr); }
.footer-contact-list a:hover { color: #fff; }

/* Barra inferior */
.footer-bottom {
  background: #010f1f;
  padding: 16px 0;
  color: rgba(255,255,255,.35);
  font-size: .78rem;
}
.footer-bottom-inner {
  display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-bottom strong { color: rgba(255,255,255,.6); }
.footer-bottom-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.footer-badge {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 3px 10px;
  font-size: .72rem; color: rgba(255,255,255,.45);
  white-space: nowrap;
}

/* ================================================================
   MODAL PRODUCTO
================================================================ */
.product-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 9000;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .28s;
}
@media (min-width: 640px) { .product-modal-overlay { align-items: center; } }
.product-modal-overlay.active { opacity: 1; pointer-events: all; }

.product-modal {
  background: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%; max-height: 92svh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(30px); transition: transform .28s;
}
@media (min-width: 640px) {
  .product-modal {
    border-radius: var(--radius-lg); max-width: 800px;
    width: 92%; max-height: 90vh; transform: scale(.95);
  }
}
.product-modal-overlay.active .product-modal { transform: none; }

.product-modal-grid {
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .product-modal-grid { grid-template-columns: 1fr 1fr; } }

.product-modal-img {
  background: var(--gray-bg); display: flex; align-items: center; justify-content: center;
  padding: 28px; min-height: 220px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
@media (min-width: 640px) { .product-modal-img { border-radius: var(--radius-lg) 0 0 var(--radius-lg); min-height: 300px; } }
.product-modal-img img { max-height: 260px; object-fit: contain; }
.product-modal-body { padding: 24px 20px; display: flex; flex-direction: column; }
@media (min-width: 640px) { .product-modal-body { padding: 32px; } }
.product-modal-body h2 { color: var(--navy); margin-bottom: 12px; font-size: 1.3rem; }
.product-modal-body p  { color: var(--gray-text); font-size: .875rem; margin-bottom: 20px; flex: 1; }
.product-modal-close {
  position: sticky; top: 0; float: right;
  background: rgba(0,0,0,.06); border: none; border-radius: 50%;
  width: 34px; height: 34px; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-text); margin: 12px 12px 0 0; z-index: 1;
}

/* ================================================================
   POPUP DINÁMICO
================================================================ */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 9999;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
@media (min-width: 640px) { .popup-overlay { align-items: center; } }
.popup-overlay.active { opacity: 1; pointer-events: all; }

.popup-box {
  background: #fff; border-radius: 16px 16px 0 0; max-width: 520px; width: 100%;
  overflow: hidden; box-shadow: var(--shadow-lg);
  transform: translateY(40px); transition: transform .3s;
}
@media (min-width: 640px) { .popup-box { border-radius: var(--radius-lg); transform: scale(.92); } }
.popup-overlay.active .popup-box { transform: none; }
.popup-close {
  position: absolute; top: 10px; right: 14px;
  background: rgba(0,0,0,.08); border: none; border-radius: 50%;
  width: 30px; height: 30px; font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--gray-text); z-index: 1;
}
.popup-img  { width: 100%; height: 180px; object-fit: cover; }
.popup-body { padding: 22px 20px; }
.popup-body h3 { color: var(--navy); margin-bottom: 8px; }
.popup-body p  { color: var(--gray-text); margin-bottom: 18px; font-size: .9rem; }

/* ================================================================
   WHATSAPP FLOTANTE
================================================================ */
.whatsapp-float {
  position: fixed; bottom: 20px; right: 16px; z-index: 999;
}
@media (min-width: 640px) { .whatsapp-float { bottom: 28px; right: 24px; } }
.whatsapp-float a {
  width: 54px; height: 54px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: var(--tr); animation: wapulse 2.5s infinite;
}
@media (min-width: 640px) { .whatsapp-float a { width: 58px; height: 58px; } }
.whatsapp-float a:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
@keyframes wapulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
  50%      { box-shadow: 0 4px 40px rgba(37,211,102,.8); }
}

/* ================================================================
   BREADCRUMB
================================================================ */
.breadcrumb     { background: var(--gray-bg); padding: 12px 0; margin-top: var(--nav-h); }
.breadcrumb-inner {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: .8rem; color: var(--gray-text);
}
.breadcrumb-inner a { color: var(--orange); }

/* ================================================================
   ALERTAS
================================================================ */
.alert {
  padding: 13px 18px; border-radius: var(--radius); font-size: .875rem;
  margin-bottom: 18px; display: flex; align-items: flex-start; gap: 10px;
}
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid var(--success); }
.alert-danger  { background: #f8d7da; color: #721c24; border-left: 4px solid var(--danger); }
.alert-info    { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }

/* ================================================================
   FILTROS CATÁLOGO
================================================================ */
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn {
  padding: 7px 16px; border-radius: 50px; border: 2px solid var(--gray-light);
  background: #fff; color: var(--gray-text); font-weight: 500; cursor: pointer;
  transition: var(--tr); font-size: .82rem; touch-action: manipulation;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--orange); background: var(--orange); color: #fff; }

/* ================================================================
   CATÁLOGO — SIDEBAR + GRID
================================================================ */
.catalog-layout {
  display: block;
}
.catalog-sidebar {
  display: none;
}
@media (min-width: 768px) {
  .catalog-layout {
    display: flex; gap: 32px; align-items: flex-start;
  }
  .catalog-sidebar {
    display: block; width: 200px; flex-shrink: 0;
    position: sticky; top: calc(var(--nav-h) + 16px);
  }
}
@media (min-width: 1024px) { .catalog-sidebar { width: 220px; } }

.catalog-mobile-cats {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  margin-bottom: 20px; scrollbar-width: none; -ms-overflow-style: none;
}
.catalog-mobile-cats::-webkit-scrollbar { display: none; }
.catalog-mobile-cats a {
  flex-shrink: 0; padding: 7px 14px; border-radius: 50px;
  background: var(--gray-bg); color: var(--gray-text); font-size: .82rem; font-weight: 500;
  white-space: nowrap; border: 2px solid transparent; transition: var(--tr);
}
.catalog-mobile-cats a.active { background: var(--orange); color: #fff; border-color: var(--orange); }
@media (min-width: 768px) { .catalog-mobile-cats { display: none; } }

/* ================================================================
   LOADING
================================================================ */
.loading {
  display: inline-block; width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   MISCELÁNEA
================================================================ */
.text-center  { text-align: center; }
.text-orange  { color: var(--orange); }
.mb-4  { margin-bottom: 1rem; }
.mt-4  { margin-top: 1rem; }
.gap-8 { gap: 8px; }

/* Prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
