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

:root {
  --blue:     #1B4FA8;   /* azul primario SIMART */
  --blue2:    #2563EB;   /* azul acción */
  --blue-lt:  #EFF4FF;   /* azul muy claro (fondos) */
  --dark:     #0D1B3E;   /* azul muy oscuro (hero) */
  --accent:   #F59E0B;   /* amarillo/dorado acento */
  --text:     #111827;
  --muted:    #6B7280;
  --border:   #E5E7EB;
  --surface:  #F8FAFF;
  --wa:       #25D366;
  --radius:   10px;
  --shadow:   0 2px 20px rgba(27,79,168,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
}

h1,h2,h3 { font-family: 'Syne', sans-serif; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }

a { color: inherit; text-decoration: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER ===== */
#header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 66px; }

.logo img { height: 50px; object-fit: contain; display: block; }
.logo-text { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--blue); }
.logo-text em { font-style: normal; color: var(--accent); }

nav { display: flex; gap: 1.5rem; margin-left: auto; }
nav a { font-size: 0.88rem; font-weight: 500; color: var(--muted); transition: color .2s; }
nav a:hover { color: var(--blue); }

.cart-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--blue);
  border-radius: 8px;
  background: transparent;
  color: var(--blue);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  cursor: pointer; position: relative;
  transition: background .2s, color .2s; white-space: nowrap;
}
.cart-toggle:hover { background: var(--blue); color: #fff; }

.pc-actions {

  display: flex;

  gap: 6px;

  align-items: center;

}

.ficha-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
 
.ficha-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.ficha-btn:hover {

  background: #ddd;
   

}

.cart-badge {
  position: absolute; top: -8px; right: -8px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ===== HERO ===== */
.hero {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 75% 30%, rgba(37,99,235,.4) 0%, transparent 65%),
    radial-gradient(ellipse 35% 45% at 5% 90%, rgba(245,158,11,.12) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  padding: 5.5rem 1.5rem 3rem;
  max-width: 680px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  font-weight: 800; color: #fff;
  margin-bottom: 1.25rem; line-height: 1.07;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-sub {
  font-size: 1rem; color: rgba(255,255,255,.6);
  margin-bottom: 2rem; max-width: 500px;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-block; padding: 11px 26px;
  background: var(--blue2); color: #fff;
  border-radius: 8px; font-weight: 500; font-size: 0.9rem;
  border: none; cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }
.btn-primary:active { transform: scale(.98); }

.btn-ghost {
  display: inline-block; padding: 11px 26px;
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff; border-radius: 8px;
  font-weight: 500; font-size: 0.9rem;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.hero-strips {
  position: relative;
  display: flex; gap: 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.strip {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  padding: 1.25rem .75rem;
  border-right: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  transition: background .2s;
  text-align: center;
}
.strip:last-child { border-right: none; }
.strip:hover { background: rgba(255,255,255,.06); }
.strip span { font-size: 22px; }
.strip strong { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,.9); }
.strip p { font-size: 0.7rem; color: rgba(255,255,255,.45); }

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: .4rem; }
.section-head p { color: var(--muted); font-size: 0.95rem; }

/* ===== FILTERS ===== */
.filters { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

#search {
  width: 100%; max-width: 420px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; color: var(--text);
  outline: none; transition: border-color .2s;
}
#search:focus { border-color: var(--blue2); }

.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-tab {
  padding: 5px 13px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: 0.78rem; font-weight: 500;
  cursor: pointer; color: var(--muted); background: #fff;
  transition: all .2s;
}
.cat-tab:hover { border-color: var(--blue2); color: var(--blue2); }
.cat-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.pc-img {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-lt);
  font-size: 34px;
}

.pc-img img {

  width: 100%;

  height: 150px;

  object-fit: contain;

}

.pc-body { padding: 11px 13px; }
.pc-name { font-size: 0.85rem; font-weight: 500; margin-bottom: 4px; line-height: 1.3; }
.pc-cat {
  font-size: 0.7rem; color: var(--blue);
  background: var(--blue-lt);
  display: inline-block;
  padding: 2px 8px; border-radius: 20px;
  margin-bottom: 9px; font-weight: 500;
}
.pc-footer { display: flex; align-items: center; justify-content: space-between; }
.pc-price { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--blue); }

.add-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--blue2);
  color: var(--blue2); background: transparent;
  font-size: 19px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s; line-height: 1;
}
.add-btn:hover { background: var(--blue2); color: #fff; }

.no-results {
  grid-column: 1/-1; text-align: center;
  padding: 3rem; color: var(--muted);
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--muted); margin-bottom: .75rem; }

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.pillar {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem;
}
.pillar-icon { font-size: 22px; margin-bottom: .5rem; }
.pillar h3 { font-size: 0.9rem; margin-bottom: .3rem; }
.pillar p { font-size: 0.8rem; color: var(--muted); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 2rem;
}
.wa-card { background: #f0fdf4; border-color: #bbf7d0; }

.cicon {
  width: 52px; height: 52px;
  border-radius: 12px; background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 1rem;
}
.wa-icon { background: var(--wa); }

.contact-card h3 { margin-bottom: .4rem; }
.contact-card > p { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.25rem; }

.contact-card input, .contact-card textarea {
  width: 100%; padding: 9px 13px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem;
  color: var(--text); margin-bottom: 10px;
  outline: none; resize: vertical; transition: border-color .2s;
}
.contact-card input:focus, .contact-card textarea:focus { border-color: var(--blue2); }

.btn-wa {
  display: inline-block; padding: 10px 22px;
  background: var(--wa); color: #fff;
  border-radius: 8px; font-weight: 500; font-size: 0.88rem;
  border: none; cursor: pointer; transition: opacity .2s;
}
.btn-wa:hover { opacity: .88; }

.contact-data {
  margin-top: 1.25rem;
  display: flex; flex-direction: column; gap: 6px;
}
.contact-data span { font-size: 0.83rem; color: var(--muted); }

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.4); z-index: 200;
}
.cart-overlay.open { display: block; }

.cart-sidebar {
  position: fixed; top: 0; right: -420px;
  width: 380px; max-width: 100vw; height: 100%;
  background: #fff; z-index: 201;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 32px rgba(0,0,0,.12);
  transition: right .3s cubic-bezier(.4,0,.2,1);
}
.cart-sidebar.open { right: 0; }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 1rem; }
.close-btn { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted); }

.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty { color: var(--muted); font-size: 0.88rem; padding: .5rem 0; }

.cart-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.cart-item-icon { font-size: 20px; flex-shrink: 0; }
.cart-item-icon img { width: 40px; height: 40px; object-fit: cover; }
.cart-item-name { flex: 1; font-weight: 500; line-height: 1.3; }
.cart-item-qty { display: flex; align-items: center; gap: 5px; }
.qty-btn {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--border); background: none;
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--surface); }
.cart-item-price { font-weight: 600; color: var(--blue); white-space: nowrap; font-size: 0.85rem; }

.cart-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); }
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem;
}
.cart-total-row strong { font-size: 1.1rem; color: var(--blue); }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255,255,255,.45); padding: 2rem 0; font-size: 0.82rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.logo-text-footer { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem; color: #fff; }
.logo-text-footer em { font-style: normal; color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
  .hero-strips { overflow-x: auto; scrollbar-width: none; }
  .hero-strips::-webkit-scrollbar { display: none; }
  .strip { min-width: 110px; }
  .cart-sidebar { width: 100%; right: -100%; }
  .cart-sidebar.open { right: 0; }
}
