/* =============== Tokens =============== */
:root{
  --brand-600:#0EA5A4;
  --brand-700:#0B8C8B;
  --accent-600:#F59E0B;
  --bg:#ffffff;
  --fg:#0f172a;     /* slate-900 */
  --muted:#6b7280;  /* gray-500 */
  --ring:rgba(14,165,164,.35);
}

html[data-theme="dark"]{
  --bg:#0b0f1a;
  --fg:#e5e7eb;     /* gray-200 */
  --muted:#9ca3af;  /* gray-400 */
  --brand-600:#14B8A6;
  --brand-700:#0EA5A4;
  --accent-600:#FBBF24;
  --ring:rgba(20,184,166,.45);
}

*{font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;}
body{background:var(--bg); color:var(--fg);}

/* =============== Componentes =============== */
.navbar .nav-link.active{color:var(--brand-700)!important; font-weight:600;}
.navbar .dropdown-menu{border-radius: .75rem;}

.btn-brand{
  background: var(--brand-600);
  color: #fff; border: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-brand:hover{transform: translateY(-1px); background: var(--brand-700); color:#fff; box-shadow: 0 8px 20px rgba(14,165,164,.25);}
.btn-accent{background: var(--accent-600); color:#111827; border:0;}
.btn-accent:hover{filter: brightness(0.95); color:#111827;}

.hero{
  background: radial-gradient(1000px 500px at 10% -10%, rgba(20,184,166,.15), transparent 60%),
              linear-gradient(180deg, rgba(14,165,164,.05), transparent 60%);
}
.hero .badge{
  background: rgba(14,165,164,.15); color: var(--brand-700);
  border: 1px solid rgba(14,165,164,.25);
}

.card-category{
  border:1px solid rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  background: linear-gradient(180deg, rgba(14,165,164,.03), transparent 40%);
}
.card-category:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  border-color: rgba(14,165,164,.25);
}

.text-muted-2{ color: var(--muted)!important; }

/* Inputs accesibles */
.form-control:focus, .form-select:focus{
  border-color: var(--brand-600);
  box-shadow: 0 0 0 .25rem var(--ring);
}

/* Utilidades */
.rounded-4{border-radius:1rem!important;}
.rounded-top-4{border-top-left-radius:1rem!important;border-top-right-radius:1rem!important;}
.bg-body-tertiary{background: #f8fafc!important;}
.section{padding-block: clamp(2rem, 4vw, 4rem);}
.shadow-soft{box-shadow: 0 8px 24px rgba(0,0,0,.08);}

.hero-pill-group .hero-chip{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: rgba(14,165,164,.12);
  border: 1px solid rgba(14,165,164,.18);
  color: var(--brand-700);
  font-weight: 500;
  font-size: .95rem;
}
.hero-chip-icon{font-size: 1.1rem;}
.hero-stats .stat-card{
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(255,255,255,.85);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.hero-stats .stat-value{
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--brand-700);
}
.hero-stats .stat-label{
  font-size: .95rem;
}
.hero-media{position: relative;}
.hero-contact-card{
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, 90%);
  border-radius: 1rem;
  border: 1px solid rgba(14,165,164,.2);
  background: rgba(255,255,255,.92);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}
html[data-theme="dark"] .hero-contact-card{
  background: rgba(15,23,42,.92);
  border-color: rgba(148,163,184,.35);
}
.brand-strip{
  background: linear-gradient(180deg, rgba(14,165,164,.06), transparent 70%);
}
.logo-strip{
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.25);
  padding: .85rem 1.5rem;
  background: rgba(255,255,255,.75);
}
.logo-pill{
  font-weight: 600;
  font-size: .95rem;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
html[data-theme="dark"] .logo-strip{
  background: rgba(15,23,42,.75);
  border-color: rgba(148,163,184,.35);
}
.benefit-card{
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(255,255,255,.82);
  transition: transform .2s ease, box-shadow .2s ease;
}
.benefit-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(15,23,42,.12);
}
.benefit-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(14,165,164,.12);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
html[data-theme="dark"] .benefit-card{
  background: rgba(15,23,42,.85);
  border-color: rgba(148,163,184,.3);
}
.featured-products-grid{
  --scroll-gutter: 1rem;
}
@media (max-width: 575.98px){
  .hero-contact-card{
    position: static;
    transform: none;
    margin-top: 1.75rem;
    width: 100%;
  }
  .featured-products-grid{
    flex-wrap: nowrap!important;
    overflow-x: auto;
    margin-left: calc(-1 * var(--scroll-gutter));
    margin-right: calc(-1 * var(--scroll-gutter));
    padding-left: var(--scroll-gutter);
    padding-right: var(--scroll-gutter);
    padding-bottom: 1rem;
    gap: 1rem!important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .featured-products-grid > [class*="col-"]{
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: start;
  }
}
.bg-brand-soft{background: rgba(14,165,164,.12)!important;}
.text-brand-strong{color: var(--brand-700)!important;}
.b2b-dashboard-card{
  border: 1px solid rgba(14,165,164,.18);
  background: linear-gradient(165deg, rgba(14,165,164,.18), rgba(255,255,255,.85));
}
html[data-theme="dark"] .b2b-dashboard-card{
  background: linear-gradient(165deg, rgba(14,165,164,.2), rgba(15,23,42,.85));
  border-color: rgba(148,163,184,.3);
}
.dashboard-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  border-radius: .85rem;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(14,165,164,.12);
}
.dashboard-label{
  font-size: .9rem;
  color: var(--muted);
}
.dashboard-value{
  font-weight: 600;
  font-size: 1.05rem;
}
html[data-theme="dark"] .dashboard-row{
  background: rgba(15,23,42,.8);
  border-color: rgba(148,163,184,.25);
}
.timeline{
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before{
  content: '';
  position: absolute;
  left: 1.1rem;
  top: .5rem;
  bottom: .5rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(14,165,164,.35), rgba(56,189,248,.2));
}
.timeline-item{
  position: relative;
  padding: .75rem 0 .75rem 0;
}
.timeline-marker{
  position: absolute;
  left: -2.5rem;
  top: .75rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.timeline-content{
  margin-left: .5rem;
  padding: .75rem 1rem;
  border-radius: .9rem;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(255,255,255,.85);
}
html[data-theme="dark"] .timeline-content{
  background: rgba(15,23,42,.85);
  border-color: rgba(148,163,184,.3);
}
.cta-gradient{
  background: linear-gradient(135deg, #0EA5A4 0%, #0284C7 100%);
  box-shadow: 0 25px 45px rgba(8,84,140,.25);
}
.mobile-quick-actions{
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.3);
  box-shadow: 0 18px 40px rgba(15,23,42,.18);
  padding: .45rem .75rem;
  display: flex;
  gap: .5rem;
  z-index: 1080;
}
.quick-action{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  min-width: 80px;
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--fg);
}
.quick-action-icon{font-size: 1.3rem;}
@media (min-width: 992px){
  .hero-contact-card{
    width: 360px;
  }
}

.nav-categories-dropdown{
  min-width: clamp(320px, 60vw, 420px);
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,.25);
  padding: 0.75rem 0 0.5rem;
  background: #fff;
  box-shadow: 0 20px 40px rgba(15,23,42,.15);
}
.nav-menu-wrapper{
  padding: 0 .75rem;
}
.nav-menu-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .35rem;
}
.nav-menu-link{
  position: relative;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .75rem;
  border-radius: .75rem;
  border: 1px solid transparent;
  background: rgba(248,250,252,.65);
  color: var(--fg);
  font-weight: 500;
  font-size: .9rem;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.nav-menu-label{
  flex: 1 1 auto;
}
.nav-menu-link:hover{
  background: rgba(14,165,164,.12);
  border-color: rgba(14,165,164,.25);
  color: var(--brand-700);
  text-decoration: none;
  transform: translateY(-1px);
}
.nav-menu-link:active{
  transform: translateY(0);
}
.nav-menu-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(14,165,164,.75);
}
.nav-menu-arrow{
  font-size: 1.1rem;
  color: rgba(15,23,42,.35);
  margin-left: auto;
}
.nav-menu-actions{
  margin-top: .65rem;
  padding: .6rem 1rem 0;
  border-top: 1px solid rgba(148,163,184,.22);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.nav-menu-actions .btn:first-child{
  background: rgba(248,250,252,.65);
  border-color: rgba(148,163,184,.35);
}
.nav-menu-actions .btn{
  flex: 1 1 auto;
}
.nav-menu-actions span{
  flex: 1 1 100%;
}
@media (max-width: 576px){
  .nav-menu-list{
    grid-template-columns: 1fr;
  }
}
