* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── HEADER ── */
header { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 2rem; background: var(--white); box-shadow: var(--shadow); }
header h1 { font-family: Georgia, serif; font-size: 1.3rem; letter-spacing: 2px; color: var(--primary); }
.main-nav { display: flex; gap: 1.4rem; }
.main-nav a { font-weight: 600; transition: var(--transition); }
.main-nav a:hover { color: var(--primary-light); }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.lang button { background: none; border: none; cursor: pointer; font-weight: 700; color: var(--text-light); }
.lang button.active { color: var(--primary); }
#cart-toggle { background: var(--primary); border: none; color: #fff; padding: .55rem 1rem; border-radius: var(--radius); cursor: pointer; }

/* ── HERO ── */
.hero { text-align: center; color: #fff; padding: 5.5rem 2rem; background: linear-gradient(120deg, var(--primary-dark), var(--primary-light)); }
.hero h2 { font-size: 2.6rem; margin-bottom: 1rem; }
.hero p { max-width: 560px; margin: 0 auto 2rem; opacity: .92; }

/* ── BOTONES ── */
.btn { display: inline-block; padding: .75rem 1.7rem; border-radius: var(--radius); border: 2px solid var(--primary); background: transparent; color: var(--primary); font-weight: 700; cursor: pointer; transition: var(--transition); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); }

/* ── BENEFICIOS ── */
.beneficios { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; padding: 2.2rem; background: var(--white); }
.beneficios div { text-align: center; max-width: 220px; }
.beneficios strong { display: block; margin: .4rem 0 .2rem; color: var(--primary); }
.beneficios small { color: var(--text-light); }

/* ── PRODUCTOS ── */
#destacados { padding: 3.5rem 2rem; text-align: center; }
#destacados h2 { color: var(--primary); margin-bottom: 2.2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; max-width: 1100px; margin: 0 auto; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); padding-bottom: 1.2rem; }
.product-card:hover { transform: translateY(-6px); }
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-card h3 { margin: .9rem 0 .3rem; }
.product-card .price { color: var(--primary-light); font-weight: 800; margin-bottom: .9rem; }

/* ── NEWSLETTER ── */
.newsletter { text-align: center; padding: 3.5rem 2rem; background: var(--primary); color: #fff; }
.newsletter h2 { margin-bottom: .8rem; }
.newsletter p { margin-bottom: 1.6rem; opacity: .9; }
.newsletter .btn { border-color: #fff; color: #fff; }
.newsletter .btn:hover { background: #fff; color: var(--primary); }

/* ── DETALLE ── */
.detalle { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: 1100px; margin: 3rem auto; padding: 0 2rem; }
.galeria img { border-radius: var(--radius); }
#detail-main-img { width: 100%; box-shadow: var(--shadow); }
.thumbs { display: flex; gap: .6rem; margin-top: .8rem; }
.thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.thumbs img.active, .thumbs img:hover { border-color: var(--primary-light); }
.back { font-size: .85rem; color: var(--primary-light); }
.detalle h2 { color: var(--primary); margin-top: .4rem; }
.coleccion { color: var(--text-light); margin: .3rem 0; }
.detalle .price { font-size: 1.4rem; font-weight: 800; color: var(--primary-light); margin: .6rem 0; }
.detalle .price small { font-size: .75rem; font-weight: 400; color: var(--text-light); }
.detalle label { display: block; margin: .7rem 0; font-weight: 600; }
.detalle select { padding: .45rem .6rem; border: 1px solid #cbd5e1; border-radius: 8px; margin-left: .5rem; }
.qty-box { display: inline-flex; align-items: center; gap: .6rem; }
.qty-box button { width: 28px; height: 28px; border: none; border-radius: 6px; background: var(--primary); color: #fff; cursor: pointer; }
.qty-box input { width: 42px; text-align: center; border: 1px solid #cbd5e1; border-radius: 6px; padding: .3rem; }
.pay-label { margin-top: 1.1rem; font-weight: 700; font-size: .85rem; letter-spacing: 1px; color: var(--text-light); }
.pay-alt { margin-top: .5rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.pay-alt button { background: #ffc439; border: none; padding: .6rem 1.2rem; border-radius: 8px; font-weight: 700; cursor: pointer; }
.pay-alt button.tarjeta { background: var(--white); border: 1px solid #cbd5e1; }
.detalle .desc { margin-top: .6rem; color: var(--text-light); line-height: 1.6; }

/* ── CARRITO ── */
.cart-panel { position: fixed; top: 0; right: -360px; width: 330px; height: 100%; background: var(--white); box-shadow: -6px 0 18px rgba(0,0,0,.18); padding: 1.4rem; overflow-y: auto; transition: right .35s ease; z-index: 200; }
.cart-panel.open { right: 0; }
.cart-panel h2 { color: var(--primary); margin-bottom: 1rem; }
.cart-panel .empty { color: var(--text-light); margin-bottom: .8rem; }
.cart-item { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.cart-item img { border-radius: 8px; }
.cart-item div { flex: 1; }
.cart-item button { background: none; border: none; color: #dc2626; cursor: pointer; }
.cart-subtotal, .cart-total { display: flex; justify-content: space-between; font-weight: 700; margin: .3rem 0; }
.cart-total { border-top: 1px solid #e2e8f0; padding-top: .7rem; margin-top: .7rem; }
.cart-panel .btn { width: 100%; margin-top: .6rem; }

/* ── FOOTER ── */
footer { background: var(--primary-dark); color: #fff; text-align: center; padding: 2.4rem 1rem; margin-top: 3rem; }
footer nav { display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
footer a { color: #bfdbfe; }
footer a:hover { color: #fff; }
footer p { margin: .3rem 0; font-size: .9rem; opacity: .85; }

@media (max-width: 800px) { .detalle { grid-template-columns: 1fr; } header { flex-wrap: wrap; } }