/* ========================================================= 
   CambiaTuBateria · THEME (elegante, sobrio y de alta gama)
   Edita la paleta SOLO aquí en :root
   ========================================================= */

/* ====== Tema & Variables (ajusta aquí la paleta global) ====== */
:root{
  /* Paleta principal */
  --brand-primary:   #0B1E2D;   /* azul noche premium */
  --brand-secondary: #0F3A5E;   /* azul profundo */
  --brand-accent:    #DC2626;   /* rojo acción (botones y acentos) */
  --brand-contrast:  #FFB800;   /* dorado tibio (detalles opcionales) */

  /* Tipografía */
  --ink-900: #0B1220;  /* títulos */
  --ink-700: #1F2937;  /* texto normal */
  --ink-500: #6B7280;  /* texto suave */

  /* Superficies */
  --surface-0:  #FFFFFF;  /* tarjetas/modales */
  --surface-50: #F9FAFB;  /* fondos suaves */
  --page-bg:    #F5F6F8;  /* fondo general elegante y claro */

  /* Bordes/sombras */
  --line:   #E6E8EF;
  --shadow: 0 20px 50px rgba(10,20,40,.10);

  /* Estados */
  --success: #10B981;
  --info:    #3B82F6;
  --warning: #F59E0B;
  --danger:  #EF4444;
}

/* ====== Base ====== */
html{ scroll-behavior:smooth; }
html, body{
  background: var(--page-bg);
  color: var(--ink-700);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4{
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
a{ color: var(--brand-accent); transition: color .2s ease; }
a:hover{ color:#b91c1c; }
:focus-visible{ outline:2px solid var(--brand-accent); outline-offset:2px; }

/* =========================================================
   NAVBAR (negra sólida)
   ========================================================= */
.navbar{
  backdrop-filter: blur(10px);
  background: #000 !important;                    /* negro sólido */
  border-bottom: 1px solid rgba(255,255,255,.10);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.navbar.scrolled{
  background: #000 !important;                    /* mismo negro al hacer scroll */
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  border-bottom-color: rgba(255,255,255,.12);
}
.nav-link{
  position:relative; color:#F3F4F6 !important;    /* texto claro */
  transition:color .25s ease;
}
.nav-link:hover{ color: var(--brand-accent) !important; }
.nav-link::after{
  content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0;
  background:var(--brand-accent) !important; transition:width .25s ease;
}
.nav-link:hover::after, .nav-link.active::after{ width:100%; }

/* Menú móvil negro */
.mobile-menu{
  transform: translateY(-100%);
  transition: transform .3s ease, max-height .3s ease;
  background: #000 !important;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.10) !important;
  max-height:0; overflow:hidden;
}
.mobile-menu.open{ transform: translateY(0); max-height: 440px; }
.mobile-menu a{ color:#F3F4F6 !important; }
.mobile-menu a:hover{
  color:#DC2626 !important;
  background: rgba(220,38,38,.10);
}

/* Hamburguesa clara */
.hamburger{ cursor:pointer; transition:all .3s ease; }
.hamburger .line{ width:25px; height:3px; background:#F3F4F6 !important; margin:3px 0; border-radius:2px; transition:.3s; }
.hamburger.open .line1{ transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger.open .line2{ opacity:0; }
.hamburger.open .line3{ transform: rotate(45deg) translate(-5px, -6px); }

/* =========================================================
   HERO / CARRUSEL
   ========================================================= */
.hero{ position:relative; height:100vh; overflow:hidden; background: var(--brand-primary); }
.hero::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(11,30,45,.55) 0%, rgba(11,18,32,.80) 100%);
  pointer-events:none;
}
.hero-img{
  opacity:0; transform: scale(1.08); transition: all 1s cubic-bezier(.4,0,.2,1);
  position:absolute; inset:0; width:100%; height:100%; background-size:cover; background-position:center;
}
.hero-img.active{ opacity:1; transform: scale(1); }
.hero-img.next{ opacity:0; transform: translateX(100%) scale(1.06); }
.hero-img.prev{ opacity:0; transform: translateX(-100%) scale(1.06); }

.hero-controls{ transition: opacity .3s ease; }
.hero:hover .hero-controls{ opacity:1; }
.slide-indicator{
  width:14px; height:14px; border-radius:50%; background: rgba(255,255,255,.45);
  transition: all .25s ease; cursor:pointer; border: 2px solid rgba(255,255,255,.55);
}
.slide-indicator.active{ background:#fff; transform: scale(1.15); box-shadow: 0 0 12px rgba(255,255,255,.8); }

/* Ocultar la barra de progreso del hero */
.progress-bar{ display:none !important; }

/* Animaciones de texto */
@keyframes slideInFromLeft { 0%{transform:translateX(-100%);opacity:0} 100%{transform:translateX(0);opacity:1} }
@keyframes slideInFromBottom{ 0%{transform:translateY(50px);opacity:0} 100%{transform:translateY(0);opacity:1} }
.animate-text{ animation: slideInFromLeft 1s ease-out; }
.animate-fade-in{ animation: slideInFromBottom 1.2s ease-out .2s both; }
.animate-buttons{ animation: slideInFromBottom 1.4s ease-out .4s both; }

/* =========================================================
   CARDS / EFECTOS / PRODUCTOS
   ========================================================= */
.info-col{
  transition: all .4s cubic-bezier(.4,0,.2,1);
  transform: translateY(0);
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.info-col.hovered{ transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.12); }

.product-card{
  transition: all .3s ease; cursor:pointer; background: var(--surface-0);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.product-card:hover{ transform: translateY(-5px); box-shadow: 0 15px 35px rgba(15,23,42,.12); }

/* Scroll reveal */
.fade-hidden{ opacity:0; transform: translateY(30px); transition: all .6s cubic-bezier(.4,0,.2,1); }
.fade-up{ opacity:1; transform: translateY(0); }

/* =========================================================
   BOTONES UTILIDAD (si los quieres usar en HTML)
   ========================================================= */
.btn-primary{
  background: var(--brand-accent); color: #fff;
  border-radius: 9999px; padding: .75rem 1.25rem; font-weight: 700;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 24px rgba(220,38,38,.18);
}
.btn-primary:hover{ background:#b91c1c; transform: translateY(-1px); }
.btn-dark{
  background: #111827; color:#fff; border-radius:9999px; padding:.75rem 1.25rem; font-weight:700;
}
.btn-dark:hover{ background: #0b1220; }

/* =========================================================
   MODAL
   ========================================================= */
.modal{ backdrop-filter: blur(10px); animation: fadeIn .3s ease; }
.modal-content{
  animation: slideUp .3s ease;
  background: var(--surface-0); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow);
}
@keyframes fadeIn{ from{opacity:0} to{opacity:1} }
@keyframes slideUp{ from{transform:translateY(50px);opacity:0} to{transform:translateY(0);opacity:1} }

/* =========================================================
   CARRITO
   ========================================================= */
.cart-sidebar{
  transform: translateX(100%); transition: transform .3s ease; background: var(--surface-0);
  border-left: 1px solid var(--line); box-shadow: var(--shadow);
}
.cart-sidebar.open{ transform: translateX(0); }
.cart-badge{ animation: bounce .5s ease; }
@keyframes bounce{ 0%,20%,60%,100%{transform:translateY(0)} 40%{transform:translateY(-10px)} 80%{transform:translateY(-5px)} }
.quantity-btn{ transition: all .2s ease; }
.quantity-btn:hover{ background-color:var(--brand-accent); color:#fff; }
.quantity-btn:active{ transform: scale(.95); }

/* =========================================================
   FABs (WhatsApp / Call)
   ========================================================= */
.fab-wrap{ position:fixed; right:18px; bottom:18px; z-index:60; display:flex; flex-direction:column; gap:12px; }
.fab-btn{
  width:56px; height:56px; border-radius:9999px; display:grid; place-items:center;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  background: var(--surface-0); color:#111;
}
.fab-btn:hover{ transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.fab-wa{ background:#25D366; color:#fff; }
.fab-call{ background:#3B82F6; color:#fff; }

/* =========================================================
   PANELES FLOTANTES (WhatsApp / Llamadas)
   ========================================================= */
.widget-panel{
  position:fixed; right:90px; bottom:18px; width:320px; max-width:calc(100vw - 40px);
  background: var(--surface-0); border-radius:16px; overflow:hidden; box-shadow: var(--shadow);
  transform: translateY(12px); opacity:0; pointer-events:none; transition: all .25s ease; z-index:60;
  border: 1px solid var(--line);
}
.widget-panel.open{ transform: translateY(0); opacity:1; pointer-events:auto; }
.widget-header{
  background: var(--brand-primary); color:#fff; padding:12px 14px;
  display:flex; align-items:center; justify-content:space-between;
}
.widget-header .title{ display:flex; align-items:center; gap:10px; font-weight:700; }
.widget-header .status{ font-size:12px; opacity:.9; }
.widget-close{ background:transparent; color:#fff; opacity:.85; }
.widget-close:hover{ opacity:1; }
.widget-body{ padding:12px; background: var(--surface-50); }
.chat-bubble{
  background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin-bottom:10px;
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
}
.option-card{
  background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px 12px; display:flex; align-items:center; gap:10px;
  margin-bottom:10px; transition: transform .15s ease, box-shadow .15s ease;
}
.option-card:hover{ transform: translateY(-1px); box-shadow: 0 10px 20px rgba(0,0,0,.06); }
.agent-avatar{ width:38px; height:38px; border-radius:9999px; display:grid; place-items:center; font-weight:800; color:#fff; }
.agent-C{ background:#3B82F6; } .agent-A{ background:#8B5CF6; } .agent-M{ background:#EF4444; }
.opt-actions{ margin-left:auto; display:flex; gap:8px; }
.opt-btn{ font-size:12px; border-radius:9999px; padding:6px 10px; }
.opt-wa{ background:#25D366; color:#fff; }
.opt-call{ background:#3B82F6; color:#fff; }
.widget-footer{
  padding:10px 12px; background:#F3F4F6; border-top:1px solid var(--line); display:flex; gap:8px;
}
.widget-footer input{ flex:1; border:1px solid var(--line); background:#fff; padding:8px 10px; border-radius:10px; }
.widget-footer button{ padding:8px 12px; border-radius:10px; background: var(--brand-primary); color:#fff; }
.widget-tip{ font-size:11px; color:#6B7280; text-align:center; margin-top:4px; }

@media (max-width: 420px){
  .widget-panel{ right:12px; bottom:12px; width: calc(100vw - 24px); }
  .fab-wrap{ right:12px; bottom:12px; }
}

/* =========================================================
   FOOTER “alta gama”
   ========================================================= */
footer{
  background: linear-gradient(180deg, #0A1622 0%, #0B1E2D 100%);
}
footer h3{ color: #F8FAFC !important; }
footer p{ color: #C8CEDA; }

/* =========================================================
   MAPA
   ========================================================= */
#map{ background: #E5E7EB; border-radius: 16px; }

/* =========================================================
   DETALLES VISUALES
   ========================================================= */
.brand-logo{ filter: drop-shadow(0 8px 24px rgba(0,0,0,.25)); }
.hero-title{
  text-shadow: 0 2px 20px rgba(0,0,0,.55);
  letter-spacing: -0.01em;
}

/* ====== Forzar textos blancos en el HERO (fix de contraste) ====== */
.hero h1,
.hero h2{
  color: #fff !important;
  text-shadow: 0 2px 20px rgba(0,0,0,.55);
}
.hero p{
  color: rgba(255,255,255,.92) !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
/* acento del hero más visible */
.hero .text-yellow-400{ color:#FFD54A !important; }
/* ====== Servicios compactos (2 cols móvil / 3 cols md / 6 cols xl) ====== */
.square{ aspect-ratio: 1 / 1; }

.service-tile{
  position: relative; overflow: hidden; border-radius: 12px;
  background: var(--surface-0); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.service-tile:hover{ transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15,23,42,.12); }

.tile-inner{
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; text-align:center;
  padding: 14px; gap:10px;          /* compacto por defecto (móvil) */
}

.icon-circle{
  width:56px; height:56px; border-radius:9999px; display:grid; place-items:center; color:#fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.icon-svg{ width:24px; height:24px; color:#fff; }

.tile-title{
  font-weight:800; font-size:.98rem; line-height:1.1; color:var(--ink-900);
}
.tile-text{
  color: var(--ink-500); font-size:.82rem; max-width: 18ch;
}

/* Más aire en pantallas medianas */
@media (min-width: 768px){
  .tile-inner{ padding: 22px; gap:14px; }
  .icon-circle{ width:70px; height:70px; }
  .icon-svg{ width:28px; height:28px; }
  .tile-title{ font-size:1.1rem; }
  .tile-text{ font-size:.9rem; }
}

/* Compactación extra para que 6 entren en una fila en PCs grandes (≥1280px) */
@media (min-width: 1280px){
  .service-tile{ border-radius: 10px; }
  .tile-inner{ padding: 16px; gap: 10px; }
  .icon-circle{ width:56px; height:56px; }
  .icon-svg{ width:22px; height:22px; }
  .tile-title{ font-size:.95rem; }
  .tile-text{ font-size:.8rem; }
}
/* ====== Tarjetas de producto (mismo espíritu que servicios) ====== */
.product-tile{
  position:relative; overflow:hidden; border-radius:12px;
  background: var(--surface-0); border:1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.product-tile:hover{ transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15,23,42,.12); }

.product-square{ aspect-ratio: 1 / 1; background:#fff; display:grid; place-items:center; }
.product-square img{ max-width: 82%; max-height:82%; object-fit:contain; }

.prod-body{
  padding: 10px 12px 14px; display:flex; flex-direction:column; gap:6px; text-align:center;
}
.prod-title{ font-weight:800; font-size:.96rem; color:var(--ink-900); line-height:1.1; min-height:2.2em; }
.prod-price{ font-weight:900; color:#dc2626; font-size:1rem; }
.prod-spec{ color:var(--ink-500); font-size:.8rem; }

.prod-actions{ display:flex; gap:8px; justify-content:center; margin-top:6px; }
.prod-btn{ border-radius:9999px; padding:.45rem .75rem; font-weight:700; font-size:.8rem; }
.prod-btn.primary{ background:var(--brand-accent); color:#fff; }
.prod-btn.ghost{ background:#111827; color:#fff; }

/* compactación XL para 6 por fila */
@media (min-width:1280px){
  .prod-body{ padding:10px; gap:6px; }
  .prod-title{ font-size:.9rem; }
  .prod-price{ font-size:.95rem; }
  .prod-btn{ padding:.4rem .65rem; font-size:.78rem; }
}
/* Home: cards solo-imagen */
.img-only-card{ transition: transform .15s ease, box-shadow .15s ease; }
.img-only-card:hover{ transform: translateY(-2px); box-shadow: 0 12px 24px rgba(15,23,42,.10); }

/* Catálogo: pills / grid */
.filter-pill{
  border:1px solid var(--line); padding:.5rem .9rem; border-radius:9999px; background:#fff;
  font-weight:600; color:var(--ink-700); transition:all .15s ease;
}
.filter-pill:hover{ box-shadow:0 8px 20px rgba(15,23,42,.06); transform:translateY(-1px); }
.filter-pill.active{ background:var(--ink-900); color:#fff; border-color:transparent; }

.catalog-card{ transition:transform .15s ease, box-shadow .15s ease; background:var(--surface-0); border:1px solid var(--line); }
.catalog-card:hover{ transform:translateY(-3px); box-shadow:0 16px 36px rgba(15,23,42,.08); }
.price-tag{ color:#dc2626; font-weight:800; }




