/* ===== Global (esquema claro) ===== */
html, body { height: 100%; overflow-x: hidden; }
body { margin: 0; background: #ffffff; color: #111827; font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif; }
img { display: block; max-width: 100%; }
.container { max-width: 1520px; margin: 0 auto; padding: 0 1rem; }
:root { --accent: #ff9f1c; --hero-bg: #0f172a; --shadow-sm: 0 2px 6px rgba(0,0,0,.1); --shadow-md: 0 8px 20px rgba(0,0,0,.15); --shadow-lg: 0 18px 40px rgba(0,0,0,.2); }

/* Botones */
.btn { background: #334155; color: #ffffff; border: 0; border-radius: 10px; padding: .6rem .9rem; text-decoration: none; display: inline-block; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary { background: #334155; }
.btn-secondary { background: #e5e7eb; color: #111827; }
.btn-accent { background: var(--accent); color: #0b0f14; font-weight: 700; }

/* ===== Header / Nav (index.html) ===== */
.header { background: #ffffff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 20; }
.nav { background: #ffffff; }
.nav-container { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .75rem 1rem; }
.logo-img { height: 50px; width: auto; }
.nav-actions { justify-self: end; }
.cart-btn { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.cart-box { background: #ffffff; color: #111827; border: 1px solid #e7eef9; border-radius: 12px; padding: .5rem .75rem; box-shadow: -2px 2px 10px rgba(0,0,0,0.08); }
.cart-box:hover { box-shadow: -4px 6px 16px rgba(0,0,0,0.12); transform: translateY(-1px); }

/* Desktop: centrar nav-links respecto al ancho total del header */
@media (min-width: 641px) {
  .header .nav-container { position: relative; }
  .header .nav-links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: .5rem; flex-wrap: wrap; }
}

/* ===== Hero (index.html) ===== */
.hero { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 1rem; align-items: center; padding: 4rem 1rem; color: #ffffff; background: #0f172a; }
.hero-content { text-align: center; justify-self: center; }
.hero-logo { width: clamp(280px, 45vw, 600px); margin: 0 auto 1rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.hero-title { font-size: clamp(2rem, 4vw, 3rem); margin: 0; letter-spacing: .04em; color: var(--accent); }
.hero-subtitle { opacity: .95; font-weight: 500; font-size: clamp(1rem, 2.6vw, 1.25rem); line-height: 1.5; }
.hero .btn-group { display: inline-flex; gap: .5rem; margin-top: .75rem; }
.hero-image img { width: 100%; max-width: 640px; border-radius: 16px; box-shadow: var(--shadow-lg); margin: 0 auto; }

/* ===== Categorías (index.html) ===== */
.categories-section { background: #ffffff; padding: 2rem 0; }
.section-title { text-align: center; font-size: 1.75rem; margin: 0 0 1rem; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.category-card { display: block; color: inherit; text-decoration: none; background: #ffffff; border: 1px solid #e7eef9; border-radius: 16px; overflow: hidden; padding: 1rem; text-align: center; cursor: pointer; box-shadow: -2px 2px 10px rgba(0,0,0,0.08); transition: transform .2s ease, box-shadow .2s ease; }
.category-card:hover { transform: translateY(-2px); box-shadow: -4px 6px 16px rgba(0,0,0,0.12); }
.category-image { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; }
.category-card h3 { margin: .5rem 0 .25rem; }
.category-card p { margin: 0; color: #6b7280; }

/* ===== Tarjetas simples de productos (index) ===== */
.product-card-simple { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.product-card-simple:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.product-image { width: 100%; height: 160px; object-fit: cover; }
.product-info-simple { padding: .75rem; display: grid; gap: .35rem; }
.product-title-simple { font-weight: 700; }
.product-price-simple { color: var(--accent); font-weight: 700; }
.product-status { display: inline-block; font-size: .75rem; padding: .2rem .4rem; border-radius: 999px; background: #f3f4f6; color: #111827; }
.status-new { background: #dbeafe; color: #1e3a8a; }
.status-in-stock { background: #dcfce7; color: #166534; }

/* ===== Secciones de productos y contacto (index.html) ===== */
.featured-section, .new-arrivals-section, .contact-section { background: #ffffff; padding: 2rem 0; }
.featured-grid, .new-arrivals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-info, .contact-form { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-md); }
.contact-form { background: linear-gradient(135deg, #f8fafc, #e2e8f0); border: 1px solid #cbd5e1; border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-lg); }
.contact-form h3 { margin-top: 0; color: #1e293b; }
.contact-form input, .contact-form textarea { width: 100%; padding: .85rem 1rem; border: 1px solid #cbd5e1; border-radius: 12px; margin-bottom: 1rem; box-sizing: border-box; background: #ffffff; transition: all 0.25s ease; font-family: inherit; font-size: 1rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: #ffffff; box-shadow: 0 0 0 4px rgba(255, 159, 28, 0.2); transform: translateY(-1px); }

/* ===== Footer (index.html) ===== */
.footer { background: #ffffff; border-top: 1px solid #e5e7eb; }
.footer-logo-container { text-align: center; padding: 2rem 0 0; }
.footer-logo-img { height: 60px; width: auto; display: inline-block; }
.footer-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1rem 0; }
.footer-section { background: #ffffff; }
.footer-bottom { text-align: center; color: #6b7280; padding: .75rem 0 1.5rem; }

/* ===== Cart sidebar (index.html) ===== */
.cart-sidebar { position: fixed; right: -380px; top: 0; width: 360px; height: 100vh; background: #ffffff; border-left: 1px solid #e7eef9; transition: right .25s ease, box-shadow .25s ease; z-index: 1000; display: grid; grid-template-rows: auto 1fr auto; box-shadow: -8px 0 24px rgba(0,0,0,0.08); }
.cart-sidebar.open { right: 0; box-shadow: -12px 0 32px rgba(0,0,0,0.12); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid #e5e7eb; }
.cart-content { overflow-y: auto; padding: 1rem; }
.cart-footer { border-top: 1px solid #e5e7eb; padding: 1rem; display: grid; gap: .5rem; }
.close-cart { background: transparent; border: 0; font-size: 1.5rem; cursor: pointer; }

/* ===== Modal de producto ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; z-index: 100; }
.modal-overlay.open { display: flex; }
#productModal { display: none; }
#productModal.open { display: block; }
.modal { width: min(720px, 92vw); background: #ffffff; border: 1px solid #e7eef9; border-radius: 16px; box-shadow: -10px 16px 38px rgba(0,0,0,0.18); overflow: hidden; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid #e5e7eb; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem; }
.modal-body img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-sm); }
.modal-footer { display: flex; justify-content: flex-end; gap: .5rem; padding: 1rem; border-top: 1px solid #e5e7eb; }
.close-modal { background: transparent; border: 0; font-size: 1.25rem; cursor: pointer; }

/* ===== Modal form layout & fields (refinado) ===== */
.modal h3 { margin: 0 0 .5rem; font-size: 1.2rem; letter-spacing: .02em; }
.modal form { display: grid; gap: .75rem; }
.modal .form-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: .5rem; }
.modal .form-row label { font-weight: 700; color: #111827; }
.modal .form-row input,
.modal .form-row textarea { width: 100%; max-width: 420px; padding: .55rem .6rem; border: 1px solid #e5e7eb; border-radius: 12px; background: #ffffff; }
.modal .form-row textarea { resize: vertical; min-height: 90px; }
.modal .modal-footer .btn-primary,
.modal .modal-footer .btn-secondary { min-width: 120px; }

@media (max-width: 900px) {
  .modal-body { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .modal { width: min(560px, 94vw); }
  .modal .form-row { grid-template-columns: 1fr; }
  .modal .form-row label { margin-bottom: .25rem; }
  .modal .form-row input,
  .modal .form-row textarea { max-width: 100%; }
}

/* ===== Catálogo (catalog.html) - Azul sólo en sidebar ===== */
.shop-header { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; padding: .75rem 1rem; background: #ffffff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 10; }
.shop-header .brand { display: inline-flex; align-items: center; gap: .5rem; color: #111827; text-decoration: none; font-weight: 700; }
.shop-header .brand img { width: 36px; }
.top-actions { display: flex; gap: .5rem; }
.cart-badge { background: var(--accent); color: #0b0f14; border-radius: 999px; font-weight: 700; padding: .25rem .6rem; }
.shop-header { display: grid; grid-template-columns: 1fr; justify-items: center; align-items: center; gap: .5rem; }
.shop-header .top-actions { justify-content: center; }
.shop-header .brand span { display: none; }
.shop-header .brand { display: inline-flex; align-items: center; gap: .5rem; color: #111827; text-decoration: none; font-weight: 700; }
.shop-header .brand img { width: 36px; }
.top-actions { display: flex; gap: .5rem; }
.cart-badge { background: var(--accent); color: #0b0f14; border-radius: 999px; font-weight: 700; padding: .25rem .6rem; }

.shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1rem; padding: 1rem; }
.sidebar { background: #0f172a; color: #e5e7eb; border-radius: 14px; padding: 1rem; display: grid; gap: 1rem; box-shadow: var(--shadow-md); }
.sidebar h3 { margin: 0 0 .5rem; }
.category-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.category-list a { color: #e5e7eb; text-decoration: none; padding: .35rem .5rem; border-radius: 10px; display: block; transition: background .15s ease; }
.category-list a:hover { background: #1f2937; }
.price-filter { display: flex; gap: .5rem; }
.price-filter input { width: 100%; border-radius: 10px; border: 1px solid #374151; background: #0b0f14; color: #e5e7eb; padding: .4rem .5rem; }
.cart { display: grid; gap: .5rem; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .5rem; align-items: center; background: #111827; color: #e5e7eb; padding: .5rem; border-radius: 12px; box-shadow: var(--shadow-sm); }
.cart-item img { width: 64px; border-radius: 8px; }
.cart-item .qty { display: inline-flex; align-items: center; gap: .25rem; }
.cart-actions { display: flex; gap: .5rem; }

.products { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 1rem; box-shadow: var(--shadow-sm); }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
/* Grid default for catalog */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }

.site-header .container { display: grid; grid-template-columns: 1fr auto; justify-items: center; align-items: center; }
.site-header .brand { display: none; }
.site-header .brand { display: inline-flex; align-items: center; gap: .5rem; color: #111827; text-decoration: none; font-weight: 700; }
.site-header .brand img { width: 36px; }
.top-actions { display: flex; gap: .5rem; }
.cart-badge { background: var(--accent); color: #0b0f14; border-radius: 999px; font-weight: 700; padding: .25rem .6rem; }

@media (max-width: 900px) {
  .nav-container { grid-template-columns: auto 1fr auto; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .contact-content { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .modal-body { grid-template-columns: 1fr; }
}

/* Hero con imagen de fondo (restaurado) */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: url('assets/impresion.jpg'); background-size: cover; background-position: center; opacity: .25; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30,58,138,0.40), rgba(14,165,233,0.32)); }
.hero-content { position: relative; z-index: 1; }

/* Nav links en header */
.nav-links { display: flex; gap: .5rem; justify-self: center; }
.nav-links .btn { background: transparent; color: #111827; border: 1px solid #e5e7eb; }
.nav-links .btn:hover { background: #f3f4f6; }

/* Toggle idioma */
.lang-toggle { display: inline-flex; gap: .25rem; margin-right: .5rem; }
.lang-btn { background: #f3f4f6; border: 1px solid #e5e7eb; color: #111827; border-radius: 10px; padding: .35rem .6rem; cursor: pointer; }
.lang-btn.active { background: var(--accent); color: #0b0f14; font-weight: 700; }

/* WhatsApp flotante */
.floating-whatsapp { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 999px; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); text-decoration: none; font-size: 22px; z-index: 1000; }
.floating-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(0,0,0,.22); }

/* Secciones nuevas */
.why-dtf-section, .print-types-section, .about-section, .testimonials-section, .faq-section { background: #ffffff; padding: 2rem 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(220px, 260px)); gap: 1rem; justify-content: center; justify-items: center; }
.why-item { background: #ffffff; border: 1px solid #e7eef9; border-radius: 16px; padding: 1rem; box-shadow: -2px 2px 10px rgba(0,0,0,0.08); }
.types-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.type-card { background: #ffffff; border: 1px solid #e7eef9; border-radius: 16px; padding: 1rem; box-shadow: -2px 2px 10px rgba(0,0,0,0.08); }
.about-text { max-width: 780px; margin: 0 auto; text-align: center; color: #374151; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.testimonial-card { background: #ffffff; border: 1px solid #e7eef9; border-radius: 16px; padding: 1rem; box-shadow: -2px 2px 10px rgba(0,0,0,0.08); }

/* FAQ acordeón */
.accordion { display: grid; gap: .5rem; }
.accordion-item { border: 1px solid #e7eef9; border-radius: 14px; overflow: hidden; }
.accordion-header { width: 100%; text-align: left; background: #f9fafb; border: 0; padding: .75rem 1rem; font-weight: 700; cursor: pointer; }
.accordion-body { display: none; padding: .75rem 1rem; background: #ffffff; }
.accordion-item.open .accordion-body { display: block; }

/* Catálogo: asegurar sidebar arriba en 'Todos' */
.shop-layout { align-items: start; }
.sidebar { position: sticky; top: 72px; align-self: start; }
/* Topbar vibrante */
.topbar { background: linear-gradient(90deg, #ff3366, #ff9f1c, #1e90ff); color: #fff; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: .35rem 0; }
.topbar-text { font-size: .9rem; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.topbar-cta { background: rgba(255,255,255,.15); color: #fff; text-decoration: none; padding: .3rem .6rem; border-radius: 999px; font-weight: 700; border: 1px solid rgba(255,255,255,.35); }
.topbar-cta:hover { background: rgba(255,255,255,.25); }

/* Hero badges */
.hero-badges {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero buttons */
.hero .btn-group {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  justify-content: center;
}
.badge {
  background: linear-gradient(90deg, var(--accent), #ff4d6d);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Services section */
.services-section {
  padding: 3rem 0;
  background: linear-gradient(180deg, rgba(255,159,28,0.08), rgba(0,163,255,0.08));
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 1rem;
  justify-content: center;
  justify-items: center;
}
.service-card {
  color: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transform: translateY(0);
  transition: transform 240ms ease, box-shadow 240ms ease;
  text-align: center;
  max-width: 420px;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.service-card h3 { margin: 0 0 0.5rem; }
.service-card p { margin: 0; opacity: 0.95; }
.gradient-1 { background: linear-gradient(135deg, #ff9f1c, #ff4d6d); }
.gradient-2 { background: linear-gradient(135deg, #00a3ff, #7c4dff); }
.gradient-3 { background: linear-gradient(135deg, #22c55e, #06b6d4); }

/* Process section */
.process-section { padding: 3rem 0; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.process-step {
  background: #0b1b3a;
  color: #fff;
  border-radius: 16px;
  padding: 1rem;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.step-badge {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #ff4d6d);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(90deg, #0ea5e9, #7c3aed);
  color: #fff;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}
.cta-actions { display: flex; gap: 0.75rem; }
.cta-text h2 { margin: 0 0 0.25rem; }
.cta-text p { margin: 0; opacity: 0.95; }

/* Responsive tweaks */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* Product Detail — Modern layout (updated) */
.product-detail {
  max-width: 1100px;
  margin: 24px auto;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.product-detail .pd-gallery {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}
.product-detail .pd-gallery img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.product-detail .pd-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-detail .pd-header h1 {
  font-size: 2rem;
  margin: 0 0 .25rem;
  color: #5a205e;
}
.product-detail .pd-header .pd-meta {
  color: #6b7280;
  font-size: .9rem;
  margin-bottom: .75rem;
}
.product-detail .pd-desc {
  color: #374151;
  line-height: 1.6;
  margin: 1rem 0;
}
.product-detail .pd-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  margin: .5rem 0 1rem;
}
.product-detail .pd-options {
  margin-top: .5rem;
}
.product-detail .pd-options label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.product-detail .option-row {
  margin-bottom: .8rem;
}
.product-detail .option-row label {
  display: block;
  font-weight: 600;
  margin-bottom: .25rem;
}
.product-detail .swatches {
  display: flex;
  gap: .5rem;
}
.product-detail .swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
}
.product-detail .swatch.active {
  outline: 2px solid #5a205e;
}
.product-detail .qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-detail .pd-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin-top: 1rem;
}
.product-detail .btn-primary {
  background: #5a205e;
  color: #fff;
  border: none;
  padding: .65rem 1rem;
  border-radius: 8px;
  cursor: pointer;
}
.product-detail .btn-primary:hover {
  filter: brightness(1.1);
}

/* Upload progress/status helpers */
.progress {
  height: 8px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 6px;
}
.progress-bar {
  height: 8px;
  width: 0;
  background: #5a205e;
}
.upload-status {
  font-size: .85rem;
  color: #6b7280;
  margin-top: .35rem;
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    padding: 10px;
  }
}

/* Mobile header centering tweaks */
@media (max-width: 640px) {
  .topbar-inner { justify-content: center; gap: .5rem; flex-wrap: wrap; }
  .nav-container { grid-template-columns: auto 1fr auto; justify-items: center; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .nav-actions { justify-self: center; }
  .container { padding: 0 .75rem; }
}

/* Gallery carousel */
.gallery-section { background: #ffffff; padding: 2rem 0; }
.gallery-carousel { overflow-x: auto; scroll-behavior: smooth; }
.gallery-track { display: flex; gap: 1rem; padding-bottom: .5rem; }
.gallery-item { flex: 0 0 70%; max-width: 70%; position: relative; }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-md); transition: transform 200ms ease; cursor: pointer; }
.gallery-item:hover img { transform: scale(1.03); }
@media (min-width: 800px) {
  .gallery-item { flex: 0 0 30%; max-width: 30%; }
  .gallery-item img { height: 220px; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; z-index: 1000; }
.lightbox.open { display: flex; }
.lightbox-content { position: relative; max-width: min(900px, 92vw); }
.lightbox-content img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.85); border: 0; border-radius: 999px; width: 36px; height: 36px; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }

/* Hamburger menu (mobile) */
.hamburger { display: none; }
@media (max-width: 640px) {
  .hamburger { display: inline-flex; align-items: center; justify-content: center; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 10px; padding: .4rem .6rem; font-size: 1.25rem; }
  .nav-links { display: flex; flex-direction: column; gap: .5rem; width: calc(100vw - 2rem); max-height: 0; overflow: hidden; opacity: 0; transform: translate(-50%, -6px); transition: max-height .28s ease, opacity .24s ease, transform .24s ease; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 6px 16px rgba(0,0,0,.08); padding: 0; margin-top: .5rem; left: 50%; }
  .nav-links.open { max-height: 420px; opacity: 1; transform: translate(-50%, 0); padding: .5rem; }
  .nav-actions { gap: .5rem; }
  .nav-links .btn { width: 100%; text-align: center; }
}

/* Footer responsive grid */
@media (max-width: 900px) {
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .footer-content { grid-template-columns: 1fr; }
}

/* Make mobile nav-links overlay and independent */
@media (max-width: 640px) {
  .nav-container { position: relative; }
  .nav-links { position: absolute; left: 50%; top: calc(100% + .25rem); z-index: 999; width: calc(100vw - 2rem); }
}

/* Social links (header & contact) */
.social-links { display: inline-flex; align-items: center; gap: 0.5rem; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid #e5e7eb; background: #ffffff; color: #111827; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease; }
.social-links a:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--accent); }
.social-links i { font-size: 18px; line-height: 1; }
@media (max-width: 640px) {
  .social-links a { width: 34px; height: 34px; }
}

/* Mobile header compact layout overrides */
@media (max-width: 640px) {
  header .nav-container, .header .nav-container { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
  header .nav-actions, .header .nav-actions { display: inline-flex; align-items: center; gap: 0.25rem; flex-wrap: nowrap; }
  .hamburger, .cart-btn, .lang-btn { width: 32px; height: 32px; padding: 0; border-radius: 8px; }
  .social-links { gap: 0.25rem; }
  .nav-links { left: 50%; transform: translateX(-50%); }
}

/* Bloques destacados vs otros (REIMAGINED AS HORIZONTAL CAROUSELS) */
.products-split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .products-split { grid-template-columns: 1fr; } }
.featured-block { border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; padding: 1rem; background: linear-gradient(180deg, rgba(255,215,0,0.08), rgba(255,255,255,0)); }
.other-block { border: 1px dashed rgba(0,0,0,0.12); border-radius: 12px; padding: 1rem; background: rgba(245,245,245,0.5); }
.block-title { font-size: 1.1rem; margin: 0 0 0.75rem; font-weight: 600; text-align: center; }
.featured-block .block-title { color: #c07a00; }
.other-block .block-title { color: #666; }

/* Grid Layout (Restored) */
.featured-block .grid, .other-block .grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr); /* Mobile default */
}
@media (min-width: 640px) {
  .featured-block .grid, .other-block .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .featured-block .grid { grid-template-columns: repeat(4, 1fr); }
  .other-block .grid { grid-template-columns: repeat(6, 1fr); }
}

/* Base Card Styles */
.card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.12); }
.card-link { display: contents; text-decoration: none; color: inherit; }

/* Content Styles */
.card-body { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.35rem; flex-grow: 1; }
.card-title { font-size: 0.95rem; font-weight: 600; color: #111827; margin-bottom: 0.35rem; }
.card-desc { font-size: 0.88rem; color: #111827; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { font-size: 0.9rem; color: #0a7; margin-top: auto; font-weight: 700; }

/* Featured Specifics (Big Cards) */
.featured-block .card {
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.featured-block .card img {
  width: 100%;
  height: 220px; /* Taller image */
  object-fit: cover;
  display: block;
}
.featured-block .card-title { font-size: 1.1rem; }
.featured-block .card-desc { font-size: 0.95rem; }
.featured-block .card-body { text-align: center; }

/* Other Specifics (Small Cards) */
.other-block .card {
  border-radius: 8px;
  font-size: 0.9em; /* Smaller font */
}
.other-block .card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.other-block .card-body { padding: 0.5rem; }
.other-block .card-title { font-size: 0.85rem; }
.other-block .card-desc { font-size: 0.75rem; -webkit-line-clamp: 2; }
.other-block .card-body { text-align: center; }
