@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
  --blue-primary: #0066FF;
  --blue-dark: #004CCB;
  --blue-light: #E6F0FF;
  --yellow-accent: #FFFF00;
  --white: #FFFFFF;
  --bg-light: #F8FAFC;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --success: #25D366;
  --shadow: 0 10px 30px rgba(0, 102, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background-color: var(--white); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

/* ─── HEADER ─── */
.top-bar { background: var(--blue-primary); color: var(--white); padding: 8px 5%; font-size: 0.8rem; display: flex; justify-content: space-between; align-items: center; }
.top-bar-info { display: flex; gap: 20px; }
.top-bar-info span { display: flex; align-items: center; gap: 6px; }

.main-header { padding: 15px 5%; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--white); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 50px; width: 50px; border-radius: 10px; object-fit: cover; }
.logo-text { font-weight: 900; font-size: 1.4rem; color: var(--blue-primary); letter-spacing: -0.5px; }
.logo-text span { color: var(--text-main); }

.search-bar { flex: 1; max-width: 600px; position: relative; display: flex; }
.search-bar input { width: 100%; padding: 12px 20px; border: 2px solid var(--border); border-radius: 30px; font-family: inherit; font-size: 0.9rem; }
.search-btn { position: absolute; right: 5px; top: 5px; bottom: 5px; background: var(--blue-primary); color: var(--white); border: none; padding: 0 20px; border-radius: 25px; font-weight: 600; cursor: pointer; }

.header-tools { display: flex; gap: 20px; align-items: center; }
.tool-item { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-main); text-decoration: none; font-size: 0.75rem; font-weight: 600; }
.tool-icon { font-size: 1.3rem; color: var(--blue-primary); }

.nav-bar { background: var(--white); border-top: 1px solid var(--border); border-bottom: 3px solid var(--blue-primary); padding: 0 5%; position: sticky; top: 0; z-index: 1000; display: flex; justify-content: space-between; align-items: center; height: 55px; }
.nav-links { display: flex; list-style: none; height: 100%; align-items: center; }
.nav-links li { height: 100%; }
.nav-links a { display: flex; align-items: center; padding: 0 15px; height: 100%; text-decoration: none; color: var(--text-main); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; transition: background 0.2s; }
.nav-links a:hover { background: var(--blue-light); color: var(--blue-primary); }
.nav-cta { background: var(--yellow-accent); color: var(--text-main) !important; padding: 0 25px !important; }

/* ─── HERO ─── */
.hero-slider { height: 520px; background: var(--blue-light); position: relative; overflow: hidden; display: flex; align-items: center; padding: 0 5%; }
.hero-bg-pattern { position: absolute; inset: 0; opacity: 0.04; background-image: radial-gradient(var(--blue-primary) 1.5px, transparent 1.5px); background-size: 35px 35px; }
.slide-content { position: relative; z-index: 2; max-width: 650px; }
.slide-tag { display: inline-block; background: var(--blue-primary); color: var(--white); padding: 6px 16px; border-radius: 5px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; }
.hero-slider h1 { font-size: 3.8rem; font-weight: 900; line-height: 1.05; margin-bottom: 25px; }
.hero-slider h1 span { color: var(--blue-primary); }
.sucursal-page .hero-slider h1 span { color: var(--white); }
.hero-slider p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 35px; }
.sucursal-page .hero-slider p { color: rgba(255,255,255,0.8) !important; }

.btn-primary { background: var(--blue-primary); color: var(--white); font-weight: 800; padding: 15px 35px; border-radius: 12px; text-decoration: none; border: none; transition: 0.3s; cursor: pointer; display: inline-block; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2); }
.btn-outline { font-weight: 700; padding: 15px 35px; border-radius: 12px; text-decoration: none; transition: 0.3s; display: inline-block; }

/* ─── CATEGORÍAS ─── */
section { padding: 80px 5%; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 10px; }
.section-header h2 span { color: var(--blue-primary); }
.usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }
.usage-card { height: 380px; border-radius: 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 35px; transition: 0.4s; cursor: pointer; background: var(--text-main); }
.usage-card:hover { transform: translateY(-12px); }
.usage-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; mix-blend-mode: luminosity; }
.usage-info { position: relative; z-index: 2; color: var(--white); }
.usage-info h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: 8px; }
.usage-info p { font-size: 0.9rem; opacity: 0.85; margin-bottom: 20px; }
.btn-usage { background: var(--yellow-accent); color: var(--text-main); padding: 10px 22px; border-radius: 30px; text-decoration: none; font-weight: 800; font-size: 0.75rem; }

/* ─── PRODUCTOS ─── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px; }
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 25px; transition: 0.3s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow); border-color: var(--blue-primary); }
.product-tag { font-size: 0.62rem; font-weight: 800; color: var(--blue-primary); text-transform: uppercase; margin-bottom: 12px; }
.product-name { font-size: 0.98rem; font-weight: 600; margin-bottom: 18px; min-height: 2.5rem; }
.product-price { font-size: 1.6rem; font-weight: 900; color: var(--blue-primary); margin-bottom: 20px; }
.product-meta { border-top: 1px solid var(--border); padding-top: 18px; margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.badge-garantia { font-size: 0.72rem; font-weight: 800; color: var(--success); display: flex; align-items: center; gap: 5px; }
.btn-view { background: var(--bg-light); color: var(--blue-primary); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: 0.3s; font-size: 1.1rem; }
.btn-view:hover { background: var(--blue-primary); color: var(--white); }

/* ─── GARANTÍA ─── */
.garantia-premium { background: var(--blue-primary); color: var(--white); border-radius: 35px; padding: 70px 5%; display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.garantia-premium::after { content: '🛡️'; position: absolute; right: -20px; bottom: -20px; font-size: 15rem; opacity: 0.08; pointer-events: none; }
.garantia-text { flex: 1; max-width: 600px; }
.garantia-text h2 { font-size: 3.2rem; font-weight: 900; line-height: 1; margin-bottom: 25px; }
.garantia-text p { font-size: 1.2rem; opacity: 0.85; margin-bottom: 40px; }
.garantia-stats { display: flex; gap: 50px; }
.g-stat h4 { font-size: 3rem; font-weight: 900; color: var(--yellow-accent); margin-bottom: 5px; }
.g-stat p { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── SUCURSALES SWIPER ─── */
.branches-swiper { padding: 20px 0 50px !important; }
.swiper-pagination-bullet-active { background: var(--blue-primary) !important; }
.sucursal-card { 
  background: var(--white); 
  border-radius: 24px; 
  overflow: hidden; 
  box-shadow: var(--shadow); 
  border: 1px solid var(--border); 
  position: relative; /* For the clickable link */
  transition: 0.3s;
}
.sucursal-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 102, 255, 0.15); }
.card-link { position: absolute; inset: 0; z-index: 5; }
.suc-actions { position: relative; z-index: 10; } /* Keep buttons on top of card link */
.suc-img { height: 160px; background: var(--blue-primary); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 800; font-size: 1.5rem; position: relative; }
.suc-badge { position: absolute; top: 15px; right: 15px; background: var(--yellow-accent); color: var(--text-main); padding: 5px 15px; border-radius: 20px; font-size: 0.7rem; font-weight: 800; }
.suc-info { padding: 30px; }
.suc-info h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 10px; color: var(--blue-primary); }
.suc-info p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 25px; line-height: 1.5; height: 3rem; }
.suc-actions { display: flex; gap: 12px; }
.btn-suc { flex: 1; padding: 14px; border-radius: 12px; text-decoration: none; font-weight: 800; font-size: 0.85rem; text-align: center; }
.btn-suc-wa { background: var(--success); color: var(--white); }
.btn-suc-map { background: var(--bg-light); color: var(--text-main); }

/* ─── WHATSAPP PREMIUM ─── */
.wa-float-premium { position: fixed; bottom: 30px; right: 30px; background: var(--success); color: var(--white); padding: 12px 25px; border-radius: 50px; text-decoration: none; display: flex; align-items: center; gap: 12px; font-weight: 700; box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4); z-index: 2000; transition: transform 0.3s; }
.wa-float-premium:hover { transform: scale(1.05) translateY(-5px); }
.wa-float-premium i { font-size: 1.8rem; }

/* ─── FOOTER ─── */
footer { background: var(--text-main); color: var(--white); padding: 80px 5% 40px; }
.footer-centered { text-align: center; padding: 40px 5%; }
.footer-centered .footer-links { display: flex; justify-content: center; gap: 30px; margin-top: 15px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 70px; }
.footer-brand h4 { font-size: 2rem; font-weight: 900; margin-bottom: 25px; }
.footer-brand h4 span { color: var(--blue-primary); }
.footer-brand p { font-size: 0.95rem; opacity: 0.6; line-height: 1.8; max-width: 320px; }
.footer-col h5 { font-size: 0.85rem; text-transform: uppercase; color: var(--blue-primary); margin-bottom: 30px; letter-spacing: 0.1em; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--white); text-decoration: none; font-size: 0.9rem; opacity: 0.6; transition: 0.2s; }
.footer-links a:hover { opacity: 1; color: var(--blue-primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; opacity: 0.5; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-slider h1 { font-size: 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-bar { display: none; }
  .main-header { flex-wrap: wrap; }
  .search-bar { order: 3; max-width: 100%; }
}
