/* Fuentes se cargan desde index.html */
:root {
  --bg: #ffffff; --panel: #f8f9fa; --panel2: #f1f3f5; --text: #121214; --muted: #6c757d; --line: #e9ecef;
  --chrome-gradient: linear-gradient(135deg, #1b1e20 0%, #69737d 22%, #ffffff 45%, #cbd4db 50%, #3f464c 75%, #f2f5f7 90%, #111314 100%);
  --accent: #1b1e20;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

/* PANTALLA DE BIENVENIDA ESTILO APP */
.welcome-screen {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  overflow: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.welcome-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.welcome-bg-logo {
  position: absolute;
  width: min(85vw, 550px);
  height: auto;
  opacity: 0.14;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}
.welcome-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.welcome-content h2 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text);
  text-transform: uppercase;
}
.welcome-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #e9ecef;
  border-top: 4px solid #1b1e20;
  border-radius: 50%;
  animation: spinLoader 0.8s linear infinite;
}
@keyframes spinLoader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.site-header { height: 88px; padding: 0 7%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Barlow Condensed', sans-serif; font-size: 25px; font-weight: 800; letter-spacing: 2px; }
.brand small { display: block; font: 600 9px Inter, sans-serif; letter-spacing: 3px; color: var(--muted); margin-top: 2px; }
.logo { width: 48px; height: 48px; object-fit: contain; }
.main-nav { display: flex; gap: 38px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; }
.main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-button { background: none; color: var(--text); border: 1px solid var(--line); padding: 11px 15px; cursor: pointer; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; display: inline-flex; align-items: center; }
.cart-button b { background: linear-gradient(135deg, #2d3238 0%, #111315 100%); color: #ffffff; border-radius: 50%; padding: 3px 7px; margin-left: 7px; }
.menu-button { display: none; background: none; border: 1px solid var(--line); padding: 10px 14px; font-size: 18px; cursor: pointer; }

.hero { min-height: 590px; padding: 100px 10% 50px; position: relative; overflow: hidden; background: #f8f9fa; display: flex; align-items: center; }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.65); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.eyebrow { font-size: 10px; letter-spacing: 3px; color: #3f464c; font-weight: 700; margin-bottom: 17px; text-transform: uppercase; }
h1, h2, .about-symbol, .hero-mark { font-family: 'Barlow Condensed', Impact, sans-serif; font-weight: 900; letter-spacing: 1px; }
h1 { font-size: 108px; line-height: .88; margin-bottom: 0; }
h1 span { background: var(--chrome-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; display: inline-block; filter: drop-shadow(1px 1px 0px #ffffff) drop-shadow(-1px -1px 0px #69737d) drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3)); }
.hero-copy { max-width: 430px; font-weight: 500; line-height: 1.8; font-size: 14px; margin: 28px 0 30px; }
.hero-mark { position: absolute; right: 10%; top: 12%; font-size: 430px; line-height: 1; transform: rotate(-9deg); pointer-events: none; z-index: 1; background: var(--chrome-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: opacity(0.08); }

.primary-button { display: inline-flex; align-items: center; gap: 30px; background: linear-gradient(135deg, #2d3238 0%, #111315 100%); color: #ffffff; border: 1px solid #485058; padding: 16px 21px; font-size: 11px; font-weight: 800; letter-spacing: 1.4px; cursor: pointer; text-transform: uppercase; }
.primary-button:hover { background: linear-gradient(135deg, #485058 0%, #2d3238 100%); transform: translateY(-1px); }

/* Botón EXPLORAR con espacio correcto debajo del título */
.hero-content .primary-button {
  margin-top: 36px;
}

.hero-bottom { position: absolute; bottom: 30px; left: 10%; right: 10%; display: flex; justify-content: space-between; border-top: 1px solid rgba(0, 0, 0, 0.1); padding-top: 15px; color: var(--muted); font-size: 9px; letter-spacing: 3px; z-index: 2; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); padding: 27px 10%; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefits div { display: flex; align-items: center; gap: 15px; justify-content: center; border-right: 1px solid var(--line); }
.benefits div:last-child { border: 0; }
.benefits strong { font: 800 23px 'Barlow Condensed'; }
.benefits span { font-size: 9px; letter-spacing: 1.5px; color: var(--muted); }

.shop-section, .tracking-section { padding: 80px 8%; }
.section-heading { margin-bottom: 35px; }
h2 { font-size: 58px; line-height: .95; }
.shop-tools { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 30px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { padding: 10px 15px; background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: 11px; cursor: pointer; text-transform: uppercase; }
.filter.active, .filter:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.search { background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 11px 14px; min-width: 220px; outline: none; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { background: var(--bg); border: 1px solid var(--line); transition: all .2s; cursor: pointer; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); border-color: #69737d; box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
.product-art { height: 225px; background: linear-gradient(145deg, #f8f9fa, #e9ecef); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-art span { font: 900 42px 'Barlow Condensed'; background: var(--chrome-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; z-index: 1; filter: drop-shadow(0px 1px 0px #ffffff) drop-shadow(1px 2px 3px rgba(0,0,0,0.15)); }
.product-info { padding: 18px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-category { font-size: 9px; letter-spacing: 2px; color: #5c6368; text-transform: uppercase; font-weight: 600; }
.product-info h3 { font-size: 14px; margin: 9px 0 14px; min-height: 34px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; font-size: 14px; }
.view-more-btn { border: 1px solid var(--text); color: var(--text); background: none; padding: 8px 12px; font-size: 10px; font-weight: 700; cursor: pointer; }
.no-results, .no-orders { color: var(--muted); padding: 20px 0; font-size: 14px; }

.tracking-container { display: flex; flex-direction: column; gap: 20px; }
.order-tracking-card { border: 1px solid var(--line); background: var(--panel); padding: 25px; }
.order-tracking-header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 12px; font-size: 14px; margin-bottom: 12px; }
.order-tracking-items { font-size: 13px; line-height: 1.6; }

.about-section { padding: 80px 12%; background: var(--panel); display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: center; border-top: 1px solid var(--line); }
.about-symbol { font-size: 260px; background: var(--chrome-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; text-align: center; filter: drop-shadow(1px 1px 0px #ffffff) drop-shadow(2px 4px 5px rgba(0,0,0,0.15)); }
.about-section h2 { font-size: 64px; margin-bottom: 20px; }
.about-section p { color: var(--muted); line-height: 1.8; font-size: 13px; }
footer { padding: 30px 8%; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; color: var(--muted); font-size: 10px; border-top: 1px solid var(--line); }
.footer-brand { color: var(--text); font-weight: 800; }

.product-modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.25s ease; padding: 15px; }
.product-modal-overlay.show { opacity: 1; visibility: visible; }
.product-modal { background: var(--bg); width: 780px; max-width: 100%; max-height: 90vh; border: 1px solid var(--line); padding: 40px; position: relative; overflow-y: auto; }


.modal-close { position: absolute; right: 20px; top: 15px; background: none; border: 0; font-size: 36px; cursor: pointer; line-height: 1; }
.modal-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.modal-visual { height: 300px; background: linear-gradient(145deg, #f8f9fa, #e9ecef); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.modal-visual span { font: 900 64px 'Barlow Condensed'; background: var(--chrome-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.modal-details .modal-cat { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
.modal-details h2 { font-size: 38px; margin-bottom: 12px; line-height: 1.05; }
.modal-details .modal-price { font-size: 24px; font-weight: 800; margin-bottom: 20px; display: block; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.modal-details .modal-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.modal-info-block { margin-bottom: 20px; }
.modal-info-block h4 { font-size: 11px; text-transform: uppercase; margin-bottom: 4px; }
.modal-info-block p { font-size: 12px; color: var(--muted); }
.modal-purchase-row { display: flex; gap: 15px; align-items: center; margin-top: 25px; }
.modal-qty-selector { display: flex; align-items: center; border: 1px solid var(--line); background: var(--panel); height: 48px; }
.modal-qty-selector button { width: 40px; height: 100%; background: none; border: 0; font-size: 18px; font-weight: bold; cursor: pointer; }
.modal-qty-selector span { width: 35px; text-align: center; font-weight: 700; }

.cart-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 150; opacity: 0; visibility: hidden; transition: all 0.25s ease; }
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart-panel { position: fixed; top: 0; right: -420px; width: min(400px, 100%); height: 100%; background: var(--bg); border-left: 1px solid var(--line); z-index: 160; display: flex; flex-direction: column; transition: right 0.3s ease; }
.cart-panel.open { right: 0; }
.cart-header { padding: 25px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.cart-header h2 { font-size: 28px; }
.cart-header button { background: none; border: 0; font-size: 28px; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.cart-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 12px; background: var(--panel); }
.cart-card-visual { width: 55px; height: 55px; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed'; font-weight: 900; font-size: 14px; }
.cart-card-info { flex: 1; display: flex; flex-direction: column; font-size: 13px; }
.cart-card-info small { color: var(--muted); font-size: 11px; }
.cart-card-price { font-weight: 700; margin-top: 4px; }
.quantity { display: flex; align-items: center; border: 1px solid var(--line); background: var(--bg); }
.quantity button { width: 26px; height: 28px; background: none; border: 0; cursor: pointer; font-weight: bold; }
.quantity span { padding: 0 8px; font-size: 12px; font-weight: 700; }
.cart-footer { padding: 25px; border-top: 1px solid var(--line); background: var(--panel); }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; margin-bottom: 15px; }
.cart-footer .primary-button { width: 100%; justify-content: center; }

@media (max-width: 768px) {
  .site-header { padding: 0 5%; height: 74px; }
  .brand { font-size: 18px; }
  .logo { width: 40px; height: 40px; }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 20px; gap: 18px; border-bottom: 1px solid var(--line); text-align: center; }
  .main-nav.active { display: flex; }
  .hero { padding: 70px 6% 85px; min-height: auto; }
  h1 { font-size: 56px; }
  .hero-content .primary-button { margin-top: 28px; }
  .hero-mark { font-size: 240px; right: -5%; }
  .hero-bottom { left: 6%; right: 6%; font-size: 8px; letter-spacing: 1px; }
  .benefits { grid-template-columns: 1fr; padding: 20px 6%; gap: 14px; }
  .benefits div { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; justify-content: flex-start; }
  .benefits div:last-child { border-bottom: 0; padding-bottom: 0; }
  .shop-section, .tracking-section { padding: 50px 5%; }
  h2 { font-size: 42px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-art { height: 150px; }
  .about-section { grid-template-columns: 1fr; padding: 50px 6%; gap: 25px; text-align: center; }
  .about-symbol { font-size: 150px; }
  .modal-layout { grid-template-columns: 1fr; gap: 20px; }
  .modal-visual { height: 190px; }
  .product-modal { padding: 25px 18px; }
}
/* CHAT FLOTANTE Y CONTACTO */
.chat-float-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d3238 0%, #111315 100%);
  color: #ffffff;
  border: 1px solid #485058;
  font-size: 22px;
  cursor: pointer;
  z-index: 180;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: min(350px, calc(100vw - 32px));
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  z-index: 185;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-widget.open { display: flex; }
.chat-widget-header {
  background: #1b1e20;
  color: #ffffff;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-widget-header small { display: block; font-size: 10px; color: #cbd4db; margin-top: 2px; }
.chat-widget-header button { background: none; border: 0; color: #ffffff; font-size: 24px; cursor: pointer; }
.chat-widget-body {
  padding: 16px;
  height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel);
  font-size: 12px;
  line-height: 1.5;
}
.bot-msg { background: #ffffff; border: 1px solid var(--line); padding: 10px 12px; align-self: flex-start; max-width: 88%; }
.user-msg { background: #1b1e20; color: #ffffff; padding: 10px 12px; align-self: flex-end; max-width: 88%; }
.quick-questions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.quick-questions button { background: #ffffff; border: 1px solid var(--line); padding: 6px 10px; font-size: 11px; cursor: pointer; }
.quick-questions button:hover { border-color: #1b1e20; }
.chat-widget-input { display: flex; border-top: 1px solid var(--line); background: #ffffff; }
.chat-widget-input input { flex: 1; border: 0; padding: 12px; font-size: 12px; outline: none; }
.chat-widget-input button { background: #1b1e20; color: #ffffff; border: 0; padding: 0 16px; cursor: pointer; font-weight: 800; }
.whatsapp-direct-link {
  display: block;
  text-align: center;
  padding: 11px;
  background: #f1f3f5;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}
.whatsapp-direct-link:hover { background: #e9ecef; }


/* CABECERA ADAPTATIVA Y MENÚ DE 3 RAYITAS */
.brand span, .main-nav a, .header-actions button {
  white-space: nowrap;
}

.menu-button {
  display: none;
  background: transparent;
  border: 1px solid #d7dde2;
  color: #121214;
  font-size: 20px;
  padding: 6px 12px;
  cursor: pointer;
}

@media (max-width: 960px) {
  .site-header {
    padding: 12px 12px;
    gap: 6px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    flex-direction: column;
    padding: 18px 24px;
    gap: 16px;
    z-index: 999;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }

  .main-nav.active {
    display: flex;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand .logo {
    width: 38px;
    height: 38px;
  }

  .brand span {
    font-size: 17px;
    letter-spacing: 0.5px;
  }

  .brand small {
    display: none;
  }

  .header-actions {
    gap: 5px;
    margin-left: auto;
  }

  .header-actions .cart-button {
    padding: 6px 8px;
    font-size: 10px;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    font-size: 16px;
  }
}
