/* ══════════════════════════════════════════════
   Kathy Tejidos — Estilos principales
   ══════════════════════════════════════════════ */

:root {
  --cream:  #FAF6F0;
  --warm:   #F5EDE0;
  --blush:  #E8C9B0;
  --terra:  #C07A50;
  --deep:   #7A4030;
  --sage:   #8A9E7A;
  --text:   #3A2A20;
  --muted:  #8A7060;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── CONTAINER ───────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── FLASH ───────────────────────────────────── */
.flash {
  position: fixed; top: 1rem; right: 1rem; z-index: 999;
  padding: 0.8rem 1.2rem; border-radius: 4px;
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.9rem; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  animation: slideIn 0.3s ease;
}
.flash-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.flash-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.flash button  { background: none; border: none; cursor: pointer; opacity: 0.5; font-size: 1rem; }
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

/* ── NAVBAR ──────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,246,240,0.97);
  border-bottom: 1px solid var(--blush);
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Playfair Display', serif; font-size: 1.2rem;
  color: var(--deep); text-decoration: none; flex-shrink: 0;
}
.nav-logo img {
  height: 56px; width: 56px; object-fit: contain; mix-blend-mode: multiply;
}
.nav-logo em { font-style: italic; color: var(--terra); }
.nav-links {
  display: flex; list-style: none; gap: 2rem;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--deep); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--terra); }
.nav-icons { display: flex; align-items: center; gap: 0.8rem; }

/* Botones auth */
.nav-auth { display: flex; align-items: center; gap: 0.6rem; }
.btn-nav {
  display: inline-block; padding: 0.45rem 1.1rem;
  border-radius: 2px; font-size: 0.75rem; letter-spacing: 0.08em;
  font-weight: 600; text-transform: uppercase; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-nav-primary { background: var(--terra); color: #fff; border: 1.5px solid var(--terra); }
.btn-nav-primary:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn-nav-dark { background: var(--deep); color: #fff; border: 1.5px solid var(--deep); }
.btn-nav-dark:hover { background: var(--terra); border-color: var(--terra); color: #fff; }
.btn-nav-outline { background: transparent; color: var(--terra); border: 1.5px solid var(--terra); }
.btn-nav-outline:hover { background: var(--terra); color: #fff; }

/* ── BOTONES GENERALES ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.85rem 2rem; border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--terra); color: #fff; border-color: var(--terra); }
.btn-primary:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn-outline { background: transparent; color: var(--deep); border-color: var(--deep); }
.btn-outline:hover { background: var(--deep); color: #fff; }
.btn-full { width: 100%; justify-content: center; }

/* Carrito */
.cart-icon { position: relative; font-size: 1.2rem; text-decoration: none; }
.cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--terra); color: #fff;
  font-size: 0.6rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Hamburguesa — oculto en desktop */
#menuToggle {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
#menuToggle span {
  display: block; width: 22px; height: 2px;
  background: var(--deep); border-radius: 2px;
}

/* Menú móvil — oculto por defecto */
#mobileMenu { display: none; flex-direction: column; background: var(--cream); border-top: 1px solid var(--blush); padding: 0.5rem 1.5rem 1rem; }
#mobileMenu.mob-open { display: flex; }
.mob-link { display: block; padding: 0.75rem 0; font-size: 0.85rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--blush); }
.mob-bold { color: var(--deep); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.mob-accent { color: var(--terra); font-weight: 600; border-bottom: none; padding-top: 0.9rem; }

/* ── HERO ────────────────────────────────────── */
.hero {
  min-height: calc(88vh - 72px);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 72px;
}
.hero-left { padding: 3rem 3rem 3rem 4rem; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--terra);
  font-weight: 500; margin-bottom: 1.5rem;
}
.hero-tag::before { content: ''; width: 30px; height: 1px; background: var(--terra); }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.05; color: var(--deep); margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--terra); }
.hero-sub {
  font-family: 'Lora', serif; font-size: 1.05rem;
  color: var(--muted); line-height: 1.8;
  max-width: 420px; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex; gap: 2.5rem;
  padding-top: 2rem; border-top: 1px solid var(--blush);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; color: var(--deep); font-weight: 700;
}
.stat-label {
  font-size: 0.72rem; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-right {
  background: linear-gradient(145deg, #EDD5C0, #F5EDE0);
  height: 100%; max-height: calc(88vh - 72px);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

/* ── SCROLL BANNER ───────────────────────────── */
.scroll-banner {
  background: var(--terra); padding: 0.7rem 0;
  overflow: hidden;
}
.scroll-track {
  display: flex; gap: 3rem;
  animation: scrollLeft 20s linear infinite;
  width: max-content;
}
.scroll-item {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff;
  white-space: nowrap; font-weight: 500;
}
.scroll-item span { color: rgba(255,255,255,0.4); }
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── CATEGORÍAS ──────────────────────────────── */
.categories-section { padding: 5rem 0; background: var(--warm); }
.categories-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 2.5rem;
}
.categories-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem;
}
.cat-card {
  border-radius: 4px; overflow: hidden; position: relative;
  aspect-ratio: 3/4; cursor: pointer;
  transition: transform 0.3s;
}
.cat-card::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.10);
  pointer-events: none;
}
.cat-card:hover { transform: translateY(-6px); }
.cat-card-img {
  width: 100%; height: 100%; object-fit: cover;
  background: linear-gradient(160deg, #E8C9B0, #D4956A);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.cat-card:nth-child(2) .cat-card-img { background: linear-gradient(160deg,#B5C9A8,#7A9E6A); }
.cat-card:nth-child(3) .cat-card-img { background: linear-gradient(160deg,#F0D8C8,#C07A50); }
.cat-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(rgba(0,0,0,0.15), rgba(30,18,10,0.92) 100%);
  z-index: 2;
}
.cat-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: #fff; margin-bottom: 0.3rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  font-weight: 700;
}
.cat-count { font-size: 0.75rem; color: rgba(255,255,255,0.85); text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

/* ── PRODUCTOS ───────────────────────────────── */
.products-section { padding: 5rem 0; }
.products-header { text-align: center; margin-bottom: 3rem; }
.products-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem;
}
.product-card {
  background: #fff; border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(192,122,80,0.1);
  transition: box-shadow 0.3s, transform 0.3s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(122,64,48,0.12);
}
.product-img-wrap {
  aspect-ratio: 1; position: relative; overflow: hidden;
  background: var(--warm);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-badge {
  position: absolute; top: 0.8rem; left: 0.8rem;
  background: var(--sage); color: #fff;
  font-size: 0.65rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.25rem 0.6rem;
  border-radius: 2px; font-weight: 500;
}
.product-badge.new { background: var(--terra); }
.product-body { padding: 1.2rem; }
.product-category {
  font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--terra);
  font-weight: 500; margin-bottom: 0.3rem;
}
.product-name {
  font-family: 'Lora', serif; font-size: 1rem;
  color: var(--deep); margin-bottom: 0.5rem; line-height: 1.3;
}
.product-footer {
  display: flex; justify-content: space-between;
  align-items: center; margin-top: 0.8rem;
}
.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--deep); font-weight: 700;
}
.product-price-old {
  font-size: 0.85rem; color: var(--muted);
  text-decoration: line-through; margin-left: 0.3rem;
}
.add-btn {
  background: var(--terra); color: #fff;
  border: none; width: 34px; height: 34px;
  border-radius: 50%; cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.add-btn:hover { background: var(--deep); transform: scale(1.1); }

/* ── ABOUT ───────────────────────────────────── */
.about-section {
  padding: 5rem 0; background: var(--deep);
  color: #fff;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0;
}
.feat-item { display: flex; gap: 0.8rem; align-items: flex-start; }
.feat-icon {
  width: 36px; height: 36px; background: rgba(192,122,80,0.2);
  border-radius: 4px; display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.feat-text strong { display: block; font-size: 0.85rem; margin-bottom: 0.2rem; }
.feat-text span { font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.4; }

/* ── TESTIMONIOS ─────────────────────────────── */
.testimonials-section { padding: 5rem 0; background: var(--warm); }
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; align-items: start; }
.review-card {
  background: #fff; padding: 2rem; border-radius: 4px;
  border: 1px solid rgba(192,122,80,0.12); position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.review-card:hover { box-shadow: 0 8px 32px rgba(192,122,80,0.12); transform: translateY(-2px); }
.review-card::before {
  content: '"'; position: absolute; top: 0.8rem; right: 1.5rem;
  font-family: 'Playfair Display', serif; font-size: 5rem;
  color: var(--blush); line-height: 1;
}
/* Card destacada */
.review-card-featured {
  border-color: var(--terra); border-width: 1.5px;
  box-shadow: 0 4px 24px rgba(192,122,80,0.15);
}
.review-badge {
  display: inline-block; background: var(--terra); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: 20px;
  margin-bottom: 0.8rem;
}
.stars { color: #F59E0B; font-size: 1rem; margin-bottom: 0.8rem; letter-spacing: 0.1em; }
.review-text {
  font-family: 'Lora', serif; font-size: 0.92rem;
  color: var(--muted); line-height: 1.85; margin-bottom: 1.5rem;
}
.reviewer { display: flex; align-items: center; gap: 0.8rem; }
.reviewer-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--terra); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; font-family: 'Playfair Display', serif;
}
.reviewer-name { font-size: 0.85rem; font-weight: 600; color: var(--deep); }
.reviewer-loc { font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }

/* ── NEWSLETTER ──────────────────────────────── */
.newsletter-section {
  padding: 5rem 0; background: var(--terra); text-align: center;
}
.newsletter-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem,3vw,2.8rem); color: #fff; margin-bottom: 0.8rem;
}
.newsletter-sub {
  font-family: 'Lora', serif; color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
}
.newsletter-form {
  display: flex; max-width: 440px; margin: 0 auto;
}
.newsletter-form input {
  flex: 1; padding: 0.9rem 1.2rem;
  border: none; border-radius: 2px 0 0 2px;
  font-size: 0.9rem; outline: none;
}
.newsletter-form button {
  padding: 0.9rem 1.5rem; background: var(--deep);
  color: #fff; border: none; cursor: pointer;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 0 2px 2px 0; transition: background 0.2s;
}
.newsletter-form button:hover { background: #5a2a1a; }

/* ── FOOTER ──────────────────────────────────── */
.footer { background: #2A1A10; color: rgba(255,255,255,0.65); padding: 4rem 0 2rem; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: #fff; margin-bottom: 1rem;
}
.footer-logo em { color: var(--blush); font-style: italic; }
.footer-brand p {
  font-size: 0.88rem; line-height: 1.8;
  color: rgba(255,255,255,0.5); margin-bottom: 1.2rem;
}
.social-row { display: flex; gap: 0.7rem; }
.social-btn {
  width: 36px; height: 36px; background: rgba(255,255,255,0.08);
  border-radius: 4px; display: flex; align-items: center;
  justify-content: center; font-size: 0.9rem;
  transition: background 0.2s;
}
.social-btn:hover { background: var(--terra); }
.footer-col-title {
  font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 1.2rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: var(--blush); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between;
  font-size: 0.78rem; color: rgba(255,255,255,0.3);
}

/* ── PÁGINA DE PRODUCTOS ─────────────────────── */
.page-hero {
  background: var(--warm); padding: calc(72px + 2.5rem) 0 3rem;
  text-align: center; border-bottom: 1px solid var(--blush);
}
.filter-bar {
  background: #fff; border-bottom: 1px solid rgba(192,122,80,0.12);
  padding: 1rem 0; position: sticky; top: 72px; z-index: 50;
}
.filter-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap;
}
/* Scroll horizontal en móvil — evita que los filtros se partan en 2 filas */
@media (max-width: 600px) {
  .filter-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .filter-inner::-webkit-scrollbar { display: none; } /* Chrome/Safari */
  .filter-btn { flex-shrink: 0; }
}
.filter-btn {
  padding: 0.5rem 1.2rem; border-radius: 20px;
  border: 1.5px solid var(--blush); background: transparent;
  font-size: 0.8rem; cursor: pointer; color: var(--muted);
  transition: all 0.2s; text-decoration: none;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--terra); border-color: var(--terra); color: #fff;
}

/* ── DETALLE PRODUCTO ────────────────────────── */
.product-detail { padding: calc(72px + 2rem) 0 4rem; }
.product-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.product-detail-img {
  aspect-ratio: 1; background: var(--warm);
  border-radius: 4px; display: flex;
  align-items: center; justify-content: center; font-size: 8rem;
  overflow: hidden;
}
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; color: var(--deep); font-weight: 700; margin: 1rem 0;
}
.qty-selector {
  display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0;
}
.qty-btn {
  width: 36px; height: 36px; background: var(--warm);
  border: 1px solid var(--blush); border-radius: 50%;
  cursor: pointer; font-size: 1.1rem; transition: background 0.2s;
}
.qty-btn:hover { background: var(--blush); }
.qty-input {
  width: 50px; text-align: center; font-size: 1.1rem;
  font-weight: 500; border: none; background: transparent;
}
.materials-list {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem;
}
.material-tag {
  background: var(--warm); padding: 0.3rem 0.8rem;
  border-radius: 20px; font-size: 0.78rem; color: var(--muted);
  border: 1px solid var(--blush);
}

/* ── CARRITO ─────────────────────────────────── */
.cart-page { padding: calc(72px + 2rem) 0 4rem; }
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; }
.cart-item {
  background: #fff; border: 1px solid rgba(192,122,80,0.1);
  border-radius: 4px; padding: 1.2rem;
  display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem;
}
.cart-item-img {
  width: 80px; height: 80px; background: var(--warm);
  border-radius: 4px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name {
  font-family: 'Lora', serif; color: var(--deep); margin-bottom: 0.3rem;
}
.cart-item-price { color: var(--terra); font-weight: 500; font-size: 0.9rem; }
.cart-item-qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.cart-item-subtotal {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--deep); min-width: 80px; text-align: right;
}
.order-summary {
  background: #fff; border: 1px solid rgba(192,122,80,0.12);
  border-radius: 4px; padding: 1.5rem; position: sticky; top: 80px;
}
.summary-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; color: var(--deep); margin-bottom: 1.2rem;
}
.summary-row {
  display: flex; justify-content: space-between;
  font-size: 0.9rem; color: var(--muted); margin-bottom: 0.8rem;
}
.summary-total {
  display: flex; justify-content: space-between;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--deep); font-weight: 700;
  margin: 1rem 0 1.5rem; padding-top: 1rem;
  border-top: 1px solid var(--blush);
}

/* ── CHECKOUT / FORMS ────────────────────────── */
.checkout-page { padding: calc(72px + 2rem) 0 4rem; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; }
.form-section {
  background: #fff; border: 1px solid rgba(192,122,80,0.1);
  border-radius: 4px; padding: 2rem; margin-bottom: 1.5rem;
}
.form-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--deep); margin-bottom: 1.5rem;
  padding-bottom: 0.8rem; border-bottom: 1px solid var(--blush);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block; font-size: 0.8rem; font-weight: 500;
  color: var(--deep); margin-bottom: 0.4rem; letter-spacing: 0.05em;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--blush); border-radius: 2px;
  font-size: 0.9rem; color: var(--text); background: #fff;
  transition: border-color 0.2s; font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--terra);
}
.form-textarea { resize: vertical; min-height: 80px; }

/* ── AUTH ────────────────────────────────────── */
.auth-page {
  min-height: calc(88vh - 72px);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 1rem; background: var(--warm);
}
.auth-card {
  background: #fff; border-radius: 4px; padding: 3rem;
  width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(122,64,48,0.1);
}
.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; color: var(--deep); margin-bottom: 0.5rem;
}
.auth-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }

/* ── ADMIN ───────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--deep); color: #fff; padding: 2rem 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; padding: 0 1.5rem 2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}
.admin-nav a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.8rem 1.5rem; color: rgba(255,255,255,0.7);
  font-size: 0.88rem; transition: all 0.2s;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,0.1); color: #fff;
}
.admin-content { padding: 2rem; background: #f8f5f0; }
.admin-header { margin-bottom: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card {
  background: #fff; padding: 1.5rem; border-radius: 4px;
  border: 1px solid rgba(192,122,80,0.1);
}
.stat-card-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--deep); font-weight: 700;
}
.stat-card-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.table-wrap {
  background: #fff; border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(192,122,80,0.1);
}
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--warm); padding: 0.9rem 1.2rem;
  text-align: left; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
td { padding: 0.9rem 1.2rem; border-bottom: 1px solid rgba(192,122,80,0.08); font-size: 0.9rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(250,246,240,0.5); }

.badge {
  display: inline-block; padding: 0.2rem 0.7rem;
  border-radius: 20px; font-size: 0.72rem; font-weight: 500;
}
.badge-pending  { background: #fef9c3; color: #854d0e; }
.badge-paid     { background: #dbeafe; color: #1e40af; }
.badge-making   { background: #fed7aa; color: #9a3412; }
.badge-shipped  { background: #e9d5ff; color: #6b21a8; }
.badge-delivered{ background: #dcfce7; color: #166534; }
.badge-cancelled{ background: #fee2e2; color: #991b1b; }

/* ── VACÍO ───────────────────────────────────── */
.empty-state { text-align: center; padding: 5rem 1rem; }
.empty-state .empty-icon { font-size: 5rem; margin-bottom: 1.5rem; }
.empty-state p { color: var(--muted); margin-bottom: 2rem; font-family: 'Lora', serif; }

/* ── RESPONSIVE ──────────────────────────────── */

@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3,1fr); }
}

/* ── TABLET ──────────────────────────────────── */
@media (max-width: 768px) {
  /* Navbar */
  .nav-inner { padding: 0 1rem; height: 64px; }
  .nav-links { display: none; }
  .nav-logo img { height: 42px; width: 42px; }
  .nav-logo { font-size: 1rem; }
  .nav-auth { display: none; }
  #menuToggle { display: flex; }

  /* Producto detalle — imagen cuadrada */
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail-img { aspect-ratio: 1/1 !important; }

  /* Hero */
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right {
    display: block;
    height: 260px;
    max-height: 260px;
    border-radius: 0;
  }
  .hero-right img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
  .hero-left { padding: 5rem 1.5rem 2rem; }
  .hero-title { font-size: 2.4rem; }
  .hero-sub { font-size: 0.9rem; }
  .hero-stats { gap: 1.5rem; }

  /* Categorías */
  .categories-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .cat-name { font-size: 1.1rem; }

  /* Productos */
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 1rem; }
  .products-section { padding: 3rem 0; }

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about-grid > div:first-child { display: none; }
  .about-content { padding: 2.5rem 1.5rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }

  /* Carrito y Checkout */
  .cart-grid, .checkout-grid { grid-template-columns: 1fr; }

  /* Producto detalle */
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail-img { aspect-ratio: 1/1; }

  /* Reseñas */
  .reviews-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2,1fr); }

  /* Admin */
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }

  /* Scroll banner */
  .scroll-banner { font-size: 0.7rem; }

  /* Page hero */
  .page-hero { padding: 5rem 1.5rem 2rem; }
  .page-hero h1 { font-size: 2rem; }
}

/* ── MÓVIL ───────────────────────────────────── */
@media (max-width: 480px) {
  /* Navbar */
  .nav-inner { padding: 0 1rem; }
  .nav-logo img { height: 34px; width: 34px; }
  .nav-logo { font-size: 1rem; gap: 0.3rem; }
  .nav-icons { gap: 0.4rem; }
  .nav-icons a[style] { display: none !important; } /* ocultar botones texto en móvil */
  .cart-icon { display: flex !important; } /* mantener carrito visible */
  #menuToggle { display: flex; }
  .nav-auth { display: none; }

  /* Hero */
  .hero-left { padding: 4.5rem 1rem 2rem; }
  .hero-title { font-size: 2rem; line-height: 1.15; }
  .hero-tag { font-size: 0.65rem; }
  .hero-sub { font-size: 0.85rem; }
  .hero-actions { flex-direction: column; gap: 0.7rem; }
  .hero-actions a { text-align: center; }
  .hero-stats { grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: 0.6rem; }

  /* Categorías */
  .categories-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .cat-card { aspect-ratio: 3/2; }

  /* Productos */
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 0.7rem; }
  .product-card { border-radius: 4px; }
  .product-img { aspect-ratio: 1/1; }
  .product-info { padding: 0.8rem; }
  .product-name { font-size: 0.85rem; }
  .product-price { font-size: 1rem; }

  /* Detalle producto */
  .product-detail { padding: 0; }
  .product-detail .container { padding: 0 1rem; }

  /* Carrito */
  .cart-item { flex-direction: column; gap: 0.8rem; }
  .cart-item-img { width: 100%; height: 180px; border-radius: 4px; }

  /* Checkout */
  .checkout-section { padding: 1rem; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 0.8rem; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer { padding: 2.5rem 0 1.5rem; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .form-group input, .form-group select, .form-group textarea {
    font-size: 16px; /* evita zoom en iOS */
  }

  /* Mis pedidos */
  .container { padding: 0 1rem; }

  /* Botón WhatsApp */
  .whatsapp-bubble span { display: none; }
  .whatsapp-bubble { padding: 0.8rem; border-radius: 50%; }

  /* Scroll banner */
  .scroll-banner { display: none; }

  /* Page hero */
  .page-hero { padding: 4.5rem 1rem 1.5rem; }
  .page-hero h1 { font-size: 1.7rem; }

  /* Filtros de productos — scroll horizontal manejado en bloque .filter-inner arriba */
  .filter-btn { font-size: 0.72rem; padding: 0.35rem 0.8rem; }
}