*{box-sizing:border-box}
body{margin:0;font-family:system-ui,Segoe UI,Arial;background:#f7f7f7;color:#111}
a{color:inherit;text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
.main{padding:18px 16px 40px}

.topbar{background:#efefef;border-bottom:1px solid #ddd;font-size:13px}
.topbar-inner{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:8px 0}
.topbar .left{display:flex;gap:14px;flex-wrap:wrap;color:#111}
.topbar .right{display:flex;gap:10px;align-items:center}
.topbar .social .dot{display:inline-block;width:18px;height:18px;border-radius:50%;background:#d6d6d6;margin-left:6px}
.topbar .cart{position:relative;padding:6px 8px;border-radius:8px;background:#fff;border:1px solid #ddd}
.badge{display:inline-block;min-width:18px;padding:2px 6px;border-radius:999px;background:#ffb703;color:#111;font-weight:700;font-size:12px;text-align:center}

.header-main{background:#fff;border-bottom:1px solid #ddd}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:16px 0;gap:16px}
.brand{display:flex;flex-direction:column}
.brand-logo{font-size:44px;font-weight:900;color:#ff7a00;line-height:1}
.brand-sub{font-size:12px;color:#666;margin-top:2px}

.search{display:flex;gap:8px;align-items:center;flex:1;max-width:420px;justify-content:flex-end}
.search input{width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:999px;background:#fff}
.search button{border:0;background:transparent;font-size:18px;cursor:pointer}

.nav{border-top:1px solid #eee}
.nav-inner{display:flex;gap:26px;justify-content:center;padding:12px 0;font-weight:700}
.nav a{padding:8px 6px;border-bottom:2px solid transparent}
.nav a.active{border-bottom-color:#0d47a1}

.card{background:#fff;border:1px solid #e5e5e5;border-radius:14px;padding:16px}
.hero{background:#fff;border:1px solid #e5e5e5;border-radius:14px;padding:18px}
.btn{display:inline-block;padding:10px 14px;border-radius:12px;border:1px solid #ddd;background:#fff;font-weight:700}
.btn-primary{background:#0d47a1;color:#fff;border-color:#0d47a1}
.btn-sm{display:inline-block;padding:8px 10px;border-radius:10px;border:1px solid #ddd;background:#fff;font-weight:700;font-size:13px}
.muted{color:#666}
.ok{background:#e6ffed;border:1px solid #b7f5c6;padding:10px;border-radius:10px;margin:10px 0}
.alert{background:#ffe9e9;border:1px solid #ffb8b8;padding:10px;border-radius:10px;margin:10px 0}

.grid2{display:grid;grid-template-columns:250px 1fr;gap:16px}
.products{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:12px}
.p-card{background:#fff;border:1px solid #eee;border-radius:14px;overflow:hidden}
.p-img{height:140px;background:#f1f1f1;display:flex;align-items:center;justify-content:center}
.ph{width:64px;height:64px;border-radius:14px;background:#ddd;display:flex;align-items:center;justify-content:center;font-weight:900;color:#666}
.ph.big{width:160px;height:160px}
.p-body{padding:12px}
.p-name{font-weight:800}
.p-meta{font-size:12px;color:#666;margin:4px 0}
.p-price{font-size:18px;font-weight:900;margin:8px 0}
.p-actions{display:flex;align-items:center;gap:8px;justify-content:space-between}
.toolbar{display:flex;justify-content:space-between;align-items:center}

.prod-detail{display:grid;grid-template-columns:260px 1fr;gap:16px}
.price{font-size:26px;font-weight:900;margin:10px 0}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.between{justify-content:space-between}
.qty{width:80px;padding:8px;border:1px solid #ddd;border-radius:10px;text-align:center}

.table{width:100%;border-collapse:collapse;margin-top:10px}
.table th,.table td{border-bottom:1px solid #eee;padding:10px;text-align:left}
.table .right{text-align:right}
.table .center{text-align:center}

.footer{margin-top:22px;background:#fff;border-top:1px solid #ddd}
.footer-inner{display:flex;justify-content:space-between;padding:14px 0;color:#666}

.auth{max-width:520px;margin:0 auto}
label{display:block;margin:10px 0 6px;font-weight:700}
input{width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:12px}

@media (max-width: 980px){
  .grid2{grid-template-columns:1fr}
  .products{grid-template-columns:repeat(2,1fr)}
  .header-inner{flex-direction:column;align-items:flex-start}
  .search{max-width:100%;justify-content:flex-start}
}
@media (max-width: 560px){
  .products{grid-template-columns:1fr}
  .nav-inner{flex-wrap:wrap}
}

/* ===== TIENDA (LOOK MODERNO / CLARO) ===== */

/* Layout sidebar + grid */
.grid2{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap:20px;
}
@media (max-width: 980px){
  .grid2{ grid-template-columns: 1fr; }
}

/* Sidebar */
.sidebar{
  padding:18px;
  border-radius:16px;
}
.side-title{
  margin:0 0 10px;
  font-weight:900;
  font-size:18px;
}
.chips{ display:flex; flex-direction:column; gap:8px; }
.chip{
  display:inline-block;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#fff;
  text-decoration:none;
  color:#374151;
  font-weight:700;
}
.chip:hover{ border-color:#cbd5e1; }
.chip-active{
  border-color:#2563eb;
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
}

/* Toolbar */
.toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
  color:#374151;
}

/* Products grid */
.products{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap:16px;
}

/* Card */
.p-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(15,23,42,.08);
  transition:transform .18s ease, box-shadow .18s ease;
}
.p-card:hover{
  transform: translateY(-4px);
  box-shadow:0 16px 32px rgba(15,23,42,.14);
}

/* Image */
.p-img{
  height:160px;
  background:#f3f4f6;
  display:flex;
  align-items:center;
  justify-content:center;
}
.p-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ph{
  width:64px;
  height:64px;
  border-radius:14px;
  background:#e5e7eb;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#6b7280;
}

/* Body */
.p-body{ padding:14px; }
.p-name{
  font-weight:900;
  font-size:15px;
  margin-bottom:6px;
}
.p-meta{
  font-size:12px;
  color:#6b7280;
  margin-bottom:8px;
}
.p-price{
  font-weight:900;
  font-size:18px;
  margin-bottom:10px;
}

/* Actions */
.p-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.p-actions form{ margin:0; }

.btn-sm{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#fff;
  text-decoration:none;
  color:#111827;
  font-weight:800;
  font-size:12px;
  cursor:pointer;
}
.btn-sm:hover{ border-color:#cbd5e1; }

.btn-primary{
  border-color:#2563eb;
  background:#2563eb;
  color:#fff;
}
.btn-primary:hover{ filter:brightness(.98); }

/* ===== HERO / BANNER PRINCIPAL ===== */
.hero{ padding:20px 0 26px; }
.hero-card{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  align-items:center;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:18px;
  box-shadow:0 10px 24px rgba(15,23,42,.08);
  overflow:hidden;
  position:relative;
}
.hero-card::before{
  content:"";
  position:absolute;
  inset:-60px -80px auto auto;
  width:260px;
  height:260px;
  background:rgba(255,153,0,.15);
  border-radius:999px;
  filter:blur(0px);
}
.hero-content{ position:relative; z-index:1; }
.hero-badge{
  display:inline-block;
  padding:7px 12px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
}
.hero-title{
  margin:10px 0 8px;
  font-size:34px;
  line-height:1.1;
  font-weight:950;
  color:#0f172a;
}
.hero-text{
  margin:0;
  color:#475569;
  line-height:1.6;
  max-width:56ch;
}
.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.hero-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 14px;
  border-radius:999px;
  font-weight:900;
  text-decoration:none;
  background:#2563eb;
  color:#fff;
  border:1px solid #2563eb;
}
.hero-btn:hover{ filter:brightness(.98); }
.hero-btn-outline{
  background:#fff;
  color:#0f172a;
  border:1px solid #e5e7eb;
}
.hero-btn-outline:hover{ border-color:#cbd5e1; }

.hero-mini{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.hero-mini-item{
  font-size:12px;
  font-weight:800;
  color:#0f172a;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  padding:8px 10px;
  border-radius:999px;
}

.hero-media{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:center;
  align-items:center;
}
.hero-img{
  width:100%;
  max-width:520px;
  height:auto;
  object-fit:contain;
  border-radius:14px;
}

/* Responsive */
@media (max-width: 980px){
  .hero-card{ grid-template-columns:1fr; }
  .hero-title{ font-size:28px; }
}
.social{display:flex;gap:8px;align-items:center}
.sicon{
  width:30px;height:30px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid #ddd;
  font-size:14px;
}
.sicon:hover{border-color:#bbb}

/* ===== FOOTER MODERNO ===== */
.footer{margin-top:26px;background:#fff;border-top:1px solid #e5e7eb}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr .9fr;
  gap:18px;
  padding:18px 0;
}
.f-col{padding:14px;border:1px solid #eef2f7;border-radius:16px;background:#fff}
.f-title{font-weight:950;font-size:16px;margin-bottom:8px;color:#0f172a}
.f-text{margin:0;color:#475569;line-height:1.6}
.f-item{color:#334155;font-size:13px;margin:8px 0;line-height:1.5}
.f-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.f-badge{
  font-size:12px;font-weight:800;color:#0f172a;
  background:#f1f5f9;border:1px solid #e2e8f0;
  padding:8px 10px;border-radius:999px;
}
.f-btn{
  display:inline-flex;align-items:center;justify-content:center;
  margin-top:10px;padding:10px 12px;border-radius:999px;
  background:#25D366;color:#fff;font-weight:900;border:1px solid #25D366;
}
.f-btn:hover{filter:brightness(.98)}
.f-link{display:block;color:#0f172a;font-weight:800;padding:8px 0;border-bottom:1px dashed #e5e7eb}
.f-link:last-child{border-bottom:0}
.f-social{display:flex;gap:8px;margin-top:12px}
.f-icon{
  width:34px;height:34px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  background:#f1f5f9;border:1px solid #e2e8f0;
  font-weight:900;color:#0f172a;
}
.f-icon:hover{border-color:#cbd5e1}
.f-note{margin-top:12px;color:#64748b;font-size:12px}

.footer-bottom{border-top:1px solid #e5e7eb;background:#fafafa}
.bottom-inner{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 0;color:#64748b;font-size:13px}
.bottom-right{font-weight:800;color:#334155}

@media (max-width: 980px){
  .footer-grid{grid-template-columns:1fr}
  .bottom-inner{flex-direction:column;align-items:flex-start}
}

/* ===== SECCIÓN NOTICIAS ===== */

.news-section{
  margin-top:40px;
}

.news-header{
  text-align:center;
  margin-bottom:25px;
}

.news-header h2{
  font-size:28px;
  font-weight:900;
  margin-bottom:8px;
}

.news-header p{
  color:#64748b;
}

.news-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.news-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(15,23,42,.08);
  transition:transform .2s ease, box-shadow .2s ease;
}

.news-card:hover{
  transform:translateY(-5px);
  box-shadow:0 16px 32px rgba(15,23,42,.14);
}

.news-img{
  height:180px;
  overflow:hidden;
}

.news-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.news-body{
  padding:16px;
}

.news-date{
  font-size:12px;
  font-weight:800;
  color:#2563eb;
}

.news-body h3{
  font-size:18px;
  margin:8px 0;
  font-weight:900;
}

.news-body p{
  font-size:14px;
  color:#475569;
  margin-bottom:12px;
}

.news-btn{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  background:#2563eb;
  color:#fff;
  font-weight:800;
  font-size:13px;
}

.news-btn:hover{
  filter:brightness(.95);
}

/* Responsive */
@media (max-width: 980px){
  .news-grid{
    grid-template-columns:1fr;
  }
}