/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #0A3D6B;
  --blue-mid:#1460A8;
  --cyan:    #00A8E8;
  --water:   #E8F4FD;
  --dark:    #0D1B2A;
  --gray:    #64748B;
  --light:   #F7FAFC;
  --white:   #FFFFFF;
  --green-wa:#25D366;
  --radius:  10px;
  --shadow:  0 4px 24px rgba(10,61,107,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,168,232,.15);
  z-index: 1000;
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
}
.logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue-mid), var(--cyan));
  color: white;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.5px;
}
.logo-mark.small { width: 30px; height: 30px; font-size: 12px; }
.logo-text {
  font-size: 22px;
  color: var(--blue);
  letter-spacing: -.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
  transition: color .2s;
}
.nav a:hover { color: var(--cyan); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
  padding: 6px;
  transition: color .2s;
}
.cart-btn:hover { color: var(--cyan); }

.cart-count {
  position: absolute;
  top: -2px; right: -4px;
  background: var(--cyan);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 100px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
  line-height: .95;
  color: var(--dark);
  margin-bottom: 24px;
  letter-spacing: -2px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue-mid), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--gray);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  box-shadow: 0 20px 60px rgba(20,96,168,.35);
}
.badge-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}
.badge-label {
  font-size: 13px;
  font-weight: 600;
  opacity: .85;
  line-height: 1.3;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-mid), var(--cyan));
  color: white;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,168,232,.35);
}
.btn-ghost {
  background: transparent;
  border-color: var(--blue-mid);
  color: var(--blue);
}
.btn-ghost:hover {
  background: var(--blue);
  color: white;
}
.btn-wa {
  background: var(--green-wa);
  color: white;
  font-size: 16px;
  padding: 16px 32px;
}
.btn-wa:hover {
  background: #1ebe57;
  transform: translateY(-2px);
}
.btn.full { width: 100%; justify-content: center; }

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -1px;
  margin-bottom: 32px;
}
.section-title.light { color: white; }

/* ===== CATEGORÍAS ===== */
.categorias {
  padding: 40px 0 0;
  background: var(--light);
}

.cat-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 0;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid #D1E8F5;
  background: white;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray);
  cursor: pointer;
  transition: all .2s;
}
.cat-card:hover, .cat-card.active {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  color: white;
}

/* ===== PRODUCTOS ===== */
.productos {
  padding: 32px 0 80px;
  background: var(--light);
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.producto-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(10,61,107,.07);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.producto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10,61,107,.14);
}

.card-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: var(--water);
}

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyan);
  margin-bottom: 6px;
}
.card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.2;
}
.card-desc {
  font-size: 13px;
  color: var(--gray);
  flex: 1;
  margin-bottom: 14px;
}
.card-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 12px;
}
.card-actions {
  display: flex;
  gap: 8px;
}
.add-cart-btn {
  flex: 1;
  padding: 10px;
  background: linear-gradient(135deg, var(--blue-mid), var(--cyan));
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.add-cart-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}
.info-btn {
  padding: 10px 14px;
  background: var(--water);
  color: var(--blue-mid);
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s;
}
.info-btn:hover { background: #cde8f8; }

/* ===== NOSOTROS ===== */
.nosotros {
  padding: 80px 0;
  background: white;
}
.nosotros-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}
.nosotros-text p {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.ventajas {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ventajas li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}
.v-icon {
  width: 24px; height: 24px;
  background: var(--water);
  color: var(--blue-mid);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.nosotros-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 24px 32px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  border-radius: 14px;
  color: white;
}
.stat-num {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  opacity: .8;
  font-weight: 600;
}

/* ===== CONTACTO ===== */
.contacto {
  background: var(--dark);
  padding: 80px 0;
}
.contacto-inner {
  text-align: center;
}
.contacto-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 16px;
}
.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contacto-info p {
  color: rgba(255,255,255,.75);
  font-size: 16px;
}
.contacto-info a {
  color: var(--cyan);
  font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.footer-brand .logo-text { color: white; font-size: 18px; }
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  text-align: center;
}

/* ===== CARRITO LATERAL ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.active { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: white;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #EEF2F7;
}
.cart-header h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--dark);
}

.close-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--gray);
  padding: 4px;
  transition: color .2s;
}
.close-btn:hover { color: var(--dark); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-empty {
  text-align: center;
  color: var(--gray);
  padding: 40px 0;
  font-size: 15px;
}

.cart-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--light);
  border-radius: 10px;
}
.cart-item-emoji { font-size: 36px; }
.cart-item-info { flex: 1; }
.cart-item-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 2px;
}
.cart-item-price {
  font-size: 13px;
  color: var(--cyan);
  font-weight: 700;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 28px; height: 28px;
  border: 1px solid #D1E8F5;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  color: var(--blue);
  display: grid;
  place-items: center;
  transition: background .2s;
}
.qty-btn:hover { background: var(--water); }
.qty-num { font-weight: 700; font-size: 15px; min-width: 20px; text-align: center; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid #EEF2F7;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
}
#cartTotal { color: var(--blue); font-size: 22px; }
.cart-note {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
}

/* ===== MODAL PRODUCTO ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal {
  background: white;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  padding: 32px;
  position: relative;
  transform: scale(.9);
  transition: transform .3s;
}
.modal-overlay.active .modal { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 20px;
}

.modal-emoji { font-size: 72px; text-align: center; margin-bottom: 16px; }
.modal-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.modal-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 12px;
}
.modal-desc {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.modal-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}
.modal-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 20px;
}
.modal-actions {
  display: flex;
  gap: 10px;
}

/* ===== WA FLOTANTE ===== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px; height: 58px;
  background: var(--green-wa);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  z-index: 900;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: white;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid #EEF2F7;
    box-shadow: var(--shadow);
    z-index: 999;
  }
  .hamburger { display: flex; }
  
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 100px 20px 60px;
  }
  .hero-ctas { justify-content: center; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-visual { order: -1; }
  .hero-badge { width: 130px; height: 130px; }
  .badge-num { font-size: 38px; }

  .nosotros-inner {
    grid-template-columns: 1fr;
  }
  .nosotros-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat { flex: 1; min-width: 120px; }

  .modal-actions { flex-direction: column; }
}

/* ===== LOGO IMAGEN ===== */
.logo-img { height: 52px; width: auto; object-fit: contain; }
.hero-logo-img { width: 260px; height: 260px; object-fit: contain; border-radius: 50%; box-shadow: 0 20px 60px rgba(20,96,168,.25); }
.footer-logo { height: 60px; width: auto; object-fit: contain; margin-bottom: 8px; }

/* ===== IMÁGENES DE PRODUCTOS ===== */
.card-img { height: 200px; display: flex; align-items: center; justify-content: center; background: var(--water); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .3s; }
.producto-card:hover .card-img img { transform: scale(1.05); }

.cart-item-img { width: 50px; height: 50px; object-fit: contain; border-radius: 8px; background: var(--light); flex-shrink: 0; }

.modal-img { height: 240px; display: flex; align-items: center; justify-content: center; background: var(--water); border-radius: 12px; margin-bottom: 20px; overflow: hidden; }
.modal-img img { max-height: 100%; max-width: 100%; object-fit: contain; padding: 12px; }

/* ===== DOBLE PRECIO ===== */
.precios-bloque {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  background: var(--light);
  border-radius: 10px;
}
.precio-efectivo, .precio-tarjeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
}
.precio-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
}
.precio-valor {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--blue);
}
.precio-valor.tarjeta {
  color: var(--blue-mid);
  font-size: 20px;
}
.precio-cuota {
  width: 100%;
  text-align: right;
  font-size: 12px;
  color: var(--gray);
  font-weight: 600;
}
.precio-efectivo {
  border-bottom: 1px solid #D1E8F5;
  padding-bottom: 8px;
}
.modal-precios {
  margin-bottom: 20px;
}
