/* ===========================
   DEOLINDA DECO — Estilos
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Lato:wght@300;400;700&display=swap');

/* Variables */
:root {
  --cream:        #FAF7F2;
  --warm-white:   #FFFFFF;
  --bg-warm:      #EDE3D8;
  --bg-dark:      #2C2416;
  --text-dark:    #2C2416;
  --text-medium:  #6B5B47;
  --text-light:   #9E8E7E;
  --accent:       #B8956A;
  --accent-hover: #9E7D54;
  --accent-light: #EDE3D8;
  --border:       #E0D5C8;
  --sage:         #8B9E7E;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Lato', sans-serif;
  --shadow-soft:  0 2px 16px rgba(44,36,22,0.08);
  --shadow-card:  0 4px 24px rgba(44,36,22,0.10);
  --radius:       6px;
  --transition:   0.25s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 15px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }


/* ===========================
   ANNOUNCEMENT BAR
   =========================== */
.announcement-bar {
  background: var(--text-dark);
  color: #fff;
  text-align: center;
  padding: 9px 20px;
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 300;
}
.announcement-bar span { margin: 0 18px; }
.announcement-bar strong { font-weight: 700; }


/* ===========================
   HEADER
   =========================== */
.site-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-soft);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  position: relative;
}
.header-inner .site-logo {
  grid-column: 2;
  grid-row: 1;
  padding: 20px 0 10px;
}
.header-inner .nav-right {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
}

/* Nav izquierda — debajo del logo */
.nav-left {
  grid-column: 1 / 4;
  grid-row: 2;
  display: flex;
  justify-content: flex-start;
  gap: 36px;
  align-items: center;
  padding: 10px 0 14px;
  border-top: 1px solid var(--border);
}
.nav-left a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-medium);
  transition: color var(--transition);
}
.nav-left a:hover { color: var(--accent); }

/* Dropdown catálogo */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  min-width: 180px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-medium);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown-menu a:first-child {
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  padding-bottom: 12px;
}
.nav-dropdown-menu a:hover {
  background: var(--bg-warm);
  color: var(--accent);
}

/* Logo */
.site-logo {
  text-align: center;
  line-height: 1.15;
}
.site-logo .logo-main {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 0.03em;
}
.site-logo .logo-sub {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 300;
}

/* Íconos derecha */
.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}
.nav-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-medium);
  transition: color var(--transition);
  padding: 4px;
  position: relative;
}
.nav-icon:hover { color: var(--accent); }
.nav-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }

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

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--text-dark);
}
.menu-toggle svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  padding: 20px 32px;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-medium);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}


/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  height: 580px;
  overflow: hidden;
  background: var(--accent-light);
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(44,36,22,0.55) 0%, rgba(44,36,22,0.15) 60%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 0 80px;
}
.hero-content {
  max-width: 480px;
  color: #fff;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title em { font-style: italic; color: #EDE3D8; }
.hero-desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Placeholder hero (sin foto) */
.hero-placeholder {
  background: linear-gradient(135deg, #D4C4B0 0%, #C4A882 40%, #B89060 100%);
}
.hero-placeholder .hero-overlay {
  background: linear-gradient(to right, rgba(44,36,22,0.45) 0%, rgba(44,36,22,0.10) 60%, transparent 100%);
}

/* Hero con video de fondo */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-video .hero-overlay {
  z-index: 1;
  background: linear-gradient(to right, rgba(20,15,8,0.65) 0%, rgba(20,15,8,0.25) 60%, transparent 100%);
}


/* ===========================
   SECCIÓN GENÉRICA
   =========================== */
.section { padding: 72px 32px; }
.section-sm { padding: 48px 32px; }
.container { max-width: 1280px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
}
.section-desc {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-medium);
  font-weight: 300;
  max-width: 500px;
  margin-left: auto; margin-right: auto;
  line-height: 1.7;
}


/* ===========================
   CATEGORÍAS
   =========================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: var(--accent-light);
}
.category-card img,
.category-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-card:hover img,
.category-card:hover .category-card-img { transform: scale(1.06); }
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,36,22,0.65) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px;
}
.category-card-name {
  font-family: var(--font-serif);
  font-size: 20px;
  color: #fff;
  font-weight: 400;
}
.category-card-count {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  letter-spacing: 0.06em;
}
.category-card-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin-top: 5px;
  line-height: 1.4;
}
.category-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 64px;
  color: var(--accent);
  opacity: 0.3;
}


/* ===========================
   PRODUCTOS
   =========================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--warm-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.product-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--accent-light);
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.product-badge.oferta    { background: #C0392B; }
.product-badge.nuevo     { background: var(--sage); }
.product-badge.stock-low { background: #E67E22; }
.product-badge.badge-second { top: 42px; }
.product-wishlist {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,0.85);
  border: none; cursor: pointer;
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.product-wishlist:hover { background: #fff; transform: scale(1.12); }
.product-wishlist svg { width: 17px; height: 17px; stroke: var(--text-medium); fill: none; stroke-width: 1.8; transition: fill 0.2s, stroke 0.2s; }
.product-wishlist.active svg { fill: #C0392B; stroke: #C0392B; }
.product-wishlist.active { animation: heartPop 0.3s ease; }
@keyframes heartPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.product-info { padding: 16px; }
.product-category {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.product-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 6px;
}
.product-variants {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}
.product-price-old {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
}
.product-add {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition);
  white-space: nowrap;
}
.product-add:hover { background: var(--accent-hover); }

/* Placeholder de imagen en producto */
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  color: var(--accent);
  opacity: 0.35;
  font-family: var(--font-serif);
}


/* ===========================
   BANNER INTERMEDIO
   =========================== */
.banner-strip {
  background: var(--text-dark);
  padding: 56px 32px;
  text-align: center;
  color: #fff;
}
.banner-strip .section-eyebrow { color: var(--accent); }
.banner-strip .section-title { color: #fff; }
.banner-strip .section-desc { color: rgba(255,255,255,0.7); }
.banner-strip .btn { margin-top: 28px; }


/* ===========================
   BENEFICIOS
   =========================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.benefit-item {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
}
.benefit-icon {
  font-size: 32px;
  margin-bottom: 14px;
}
.benefit-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #fff;
}
.benefit-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  font-weight: 300;
}

/* Sección oscura */
.section-dark {
  background: var(--bg-dark) !important;
}

/* ===========================
   WAVE DIVIDERS
   =========================== */
.section-wave { position: relative; }
.wave-bottom {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}
.wave-bottom svg { display: block; width: 100%; height: 60px; }

/* ===========================
   SCROLL REVEAL
   =========================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
.categories-grid [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.categories-grid [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.categories-grid [data-reveal]:nth-child(4) { transition-delay: 0.3s; }
.categories-grid [data-reveal]:nth-child(5) { transition-delay: 0.4s; }
.products-grid   [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.products-grid   [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.products-grid   [data-reveal]:nth-child(4) { transition-delay: 0.3s; }
.benefits-grid   [data-reveal]:nth-child(2) { transition-delay: 0.12s; }
.benefits-grid   [data-reveal]:nth-child(3) { transition-delay: 0.24s; }
.benefits-grid   [data-reveal]:nth-child(4) { transition-delay: 0.36s; }
.instagram-grid  [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.instagram-grid  [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.instagram-grid  [data-reveal]:nth-child(4) { transition-delay: 0.24s; }
.instagram-grid  [data-reveal]:nth-child(5) { transition-delay: 0.32s; }
.instagram-grid  [data-reveal]:nth-child(6) { transition-delay: 0.40s; }

/* ===========================
   HOVER PRODUCTO — overlay
   =========================== */
.product-img-wrap::after {
  content: 'Ver producto';
  position: absolute;
  inset: 0;
  background: rgba(44,36,22,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.product-card:hover .product-img-wrap::after { opacity: 1; }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-badge { z-index: 2; }
.product-wishlist { z-index: 2; }


/* ===========================
   INSTAGRAM
   =========================== */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.instagram-item {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--accent-light);
  position: relative;
  cursor: pointer;
}
.instagram-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.instagram-item:hover img { transform: scale(1.06); opacity: 0.85; }
.instagram-item-overlay {
  position: absolute; inset: 0;
  background: rgba(44,36,22,0.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.instagram-item:hover .instagram-item-overlay { opacity: 1; }
.instagram-item-overlay svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.8; }
.instagram-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--accent);
  opacity: 0.4;
}


/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 32px 32px;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { text-align: center; }
.footer-brand .logo-main { color: #fff; font-size: 24px; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.45); }
.footer-brand p {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.75;
  font-weight: 300;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}
.footer-social a:hover { border-color: var(--accent); background: var(--accent); }
.footer-social svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 1.8; }

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--accent); }
.footer-contact p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.footer-contact strong { color: #fff; font-weight: 400; }
.footer-bottom {
  max-width: 1280px;
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-payments { display: flex; gap: 8px; align-items: center; }
.payment-badge {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}


/* ===========================
   CARRITO DRAWER
   =========================== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(44,36,22,0.45);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  background: var(--warm-white);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 32px rgba(44,36,22,0.12);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-drawer-header h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
}
.cart-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-medium);
  transition: color var(--transition);
  padding: 4px;
}
.cart-close:hover { color: var(--text-dark); }
.cart-close svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.cart-empty svg { width: 48px; height: 48px; stroke: var(--border); fill: none; stroke-width: 1.4; margin: 0 auto 16px; }
.cart-empty p { font-family: var(--font-serif); font-size: 18px; margin-bottom: 8px; color: var(--text-medium); }
.cart-empty span { font-size: 13px; }

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 72px; height: 72px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--accent-light);
}
.cart-item-name { font-family: var(--font-serif); font-size: 15px; font-weight: 400; margin-bottom: 4px; }
.cart-item-variant { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.cart-item-qty {
  display: flex; align-items: center; gap: 10px;
}
.qty-btn {
  width: 26px; height: 26px;
  border: 1px solid var(--border); border-radius: 4px;
  background: none; cursor: pointer;
  font-size: 15px; color: var(--text-medium);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition), color var(--transition);
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-val { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; }
.cart-item-price { font-weight: 700; font-size: 15px; white-space: nowrap; }
.cart-item-remove {
  background: none; border: none; cursor: pointer;
  color: var(--text-light); font-size: 18px;
  transition: color var(--transition);
  line-height: 1;
  display: block; margin-top: 4px;
}
.cart-item-remove:hover { color: #C0392B; }

.cart-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--border);
}
.cart-subtotal {
  display: flex; justify-content: space-between;
  font-size: 16px;
  margin-bottom: 6px;
}
.cart-subtotal span:last-child { font-weight: 700; }
.cart-note {
  font-size: 12px; color: var(--text-light);
  margin-bottom: 20px;
}
.cart-checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}
.cart-checkout-btn:hover { background: var(--accent-hover); }
.cart-continue {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-medium);
  cursor: pointer;
  transition: color var(--transition);
}
.cart-continue:hover { color: var(--accent); }


/* ===========================
   CATÁLOGO — sidebar + grid
   =========================== */
.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px;
}
.sidebar, .catalog-sidebar {}
.sidebar-section { margin-bottom: 32px; }
.sidebar-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-list { display: flex; flex-direction: column; gap: 10px; }
.sidebar-list li a {
  font-size: 14px;
  color: var(--text-medium);
  transition: color var(--transition);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-list li a:hover,
.sidebar-list li.active a { color: var(--accent); font-weight: 700; }
.sidebar-list li a span { font-size: 12px; color: var(--text-light); }

.sidebar-search-form { margin-bottom: 0; }
.sidebar-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.sidebar-search-wrap svg {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  stroke: var(--text-light);
  fill: none;
  stroke-width: 2;
}
.sidebar-search-wrap input {
  width: 100%;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 9px 12px 9px 34px;
  font-size: 13px;
  outline: none;
  background: var(--white);
  transition: border-color 0.2s;
}
.sidebar-search-wrap input:focus { border-color: var(--accent); }

.sidebar-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.sidebar-price-inputs input {
  width: 0;
  flex: 1;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}
.sidebar-price-inputs input:focus { border-color: var(--accent); }
.sidebar-price-inputs span { color: var(--text-light); font-size: 13px; flex-shrink: 0; }
.sidebar-price-btn {
  width: 100%;
  padding: 9px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.sidebar-price-btn:hover { background: var(--accent-dark); }
.sidebar-clear {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
  text-decoration: underline;
  cursor: pointer;
}
.sidebar-clear:hover { color: var(--accent); }

.catalog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 16px;
  color: var(--text-light);
}
.catalog-empty svg {
  width: 48px;
  height: 48px;
  stroke: var(--border-color);
  fill: none;
  stroke-width: 1.5;
}
.catalog-empty p { font-size: 16px; color: var(--text-medium); }

.catalog-main {}
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.catalog-count { font-size: 14px; color: var(--text-medium); }
.catalog-sort select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-dark);
  background: var(--warm-white);
  cursor: pointer;
}

/* Grid catálogo (3 columnas) */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}


/* ===========================
   PÁGINA DE PRODUCTO
   =========================== */
.product-page {
  max-width: 1280px;
  margin: 48px auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.product-gallery {}
.product-gallery-main {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--accent-light);
  margin-bottom: 12px;
}
.product-gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.product-gallery-thumbs {
  display: flex; gap: 10px;
}
.thumb {
  width: 80px; height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--accent-light);
  transition: border-color var(--transition);
}
.thumb.active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail {}
.breadcrumb {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-light); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }
.product-detail-category {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.product-detail-name {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
}
.product-detail-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.product-detail-price-old {
  font-size: 16px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 10px;
  font-weight: 400;
}
.product-installments {
  font-size: 13px;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 24px;
}
.product-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.product-option-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.option-pills {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.pill {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 40px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-medium);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.pill.disabled { opacity: 0.35; pointer-events: none; text-decoration: line-through; }

.product-qty-row {
  display: flex; gap: 12px; align-items: center; margin-bottom: 20px;
}
.product-qty {
  display: flex; align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-qty button {
  width: 40px; height: 44px;
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--text-medium);
  transition: background var(--transition);
}
.product-qty button:hover { background: var(--accent-light); }
.product-qty input {
  width: 44px; height: 44px;
  border: none;
  text-align: center;
  font-size: 15px; font-weight: 700;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  background: var(--warm-white);
}
.add-to-cart-btn {
  flex: 1;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}
.add-to-cart-btn:hover { background: var(--accent-hover); }
.product-perks {
  display: flex; flex-direction: column; gap: 10px; margin-top: 20px;
}
.product-perk {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-medium); font-weight: 300;
}
.product-perk svg { width: 16px; height: 16px; stroke: var(--sage); fill: none; stroke-width: 2; flex-shrink: 0; }
.product-description {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.8;
  font-weight: 300;
  margin-top: 24px;
}


/* ===========================
   PAGE HERO (catálogo etc.)
   =========================== */
.page-hero {
  background: var(--accent-light);
  text-align: center;
  padding: 56px 32px;
  border-bottom: 1px solid var(--border);
}
.page-hero .section-title { font-size: 40px; }


/* ===========================
   BUSCADOR INLINE EN HEADER
   =========================== */
.header-search-bar {
  display: flex;
  align-items: center;
  width: 0;
  overflow: hidden;
  transition: width 0.25s ease;
  border-bottom: 1.5px solid transparent;
}
.header-search-bar.open {
  width: 220px;
  border-bottom-color: var(--accent);
}
.header-search-bar input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: transparent;
  padding: 4px 0;
  white-space: nowrap;
}
.header-search-bar input::placeholder { color: var(--text-light); }
.header-search-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  display: none;
  align-items: center;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.header-search-close:hover { color: var(--text-dark); }
.header-search-close svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.search-open .header-search-close { display: flex; }
.search-open #searchTrigger { display: none; }


/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .catalog-layout { grid-template-columns: 200px 1fr; }
}

@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr auto; grid-template-rows: auto; }
  .header-inner .site-logo { grid-column: 2; grid-row: 1; padding: 14px 0; }
  .header-inner .nav-right { grid-column: 3; grid-row: 1; }
  .nav-left { display: none; }
  .menu-toggle { display: flex; }
  .hero { height: 460px; }
  .hero-overlay { padding: 0 40px; }
  .hero-title { font-size: 38px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar, .catalog-sidebar { display: none; }
  .product-page { grid-template-columns: 1fr; gap: 36px; }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .hero { height: 380px; }
  .hero-overlay { padding: 0 24px; }
  .hero-title { font-size: 30px; }
  .hero-desc { font-size: 14px; }
  .section { padding: 48px 20px; }
  .section-title { font-size: 28px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .cart-drawer { width: 100%; }
  .announcement-bar span:not(:first-child) { display: none; }
}

/* ===========================
   PÁGINA NOSOTROS
   =========================== */
.page-nosotros { padding-bottom: 80px; }

.nosotros-hero {
  background: var(--bg-warm);
  padding: 72px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.nosotros-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 12px;
}
.nosotros-hero p {
  font-size: 18px;
  color: var(--text-light);
}

.nosotros-historia {
  padding: 72px 0;
}
.nosotros-historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.nosotros-texto h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--text-dark);
}
.nosotros-texto p {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}
.nosotros-valores {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.valor-card {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.valor-icon {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 8px;
}
.valor-card h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.valor-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.nosotros-contacto {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  padding: 72px 0;
  text-align: center;
}
.nosotros-contacto h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--text-dark);
}
.nosotros-contacto-sub {
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 16px;
}
.contacto-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.contacto-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  color: var(--text-dark);
  min-width: 240px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.contacto-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.contacto-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contacto-card-icon svg { width: 22px; height: 22px; }
.contacto-wa .contacto-card-icon { background: #e7f8ee; color: #25d366; }
.contacto-ig .contacto-card-icon { background: #fce9f6; color: #c13584; }
.contacto-mail .contacto-card-icon { background: #eaf0ff; color: #4361ee; }
.contacto-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.contacto-card p { font-size: 13px; color: var(--text-light); }
.contacto-arrow { margin-left: auto; color: var(--text-light); font-size: 18px; }

@media (max-width: 768px) {
  .nosotros-historia-grid { grid-template-columns: 1fr; gap: 40px; }
  .contacto-cards { flex-direction: column; align-items: stretch; }
  .contacto-card { min-width: 0; }
}

/* ===========================
   PÁGINA FAQ
   =========================== */
.page-faq { padding-bottom: 80px; }

.faq-hero {
  padding: 72px 0 48px;
  text-align: center;
}
.faq-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 12px;
}
.faq-hero p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}
.faq-hero a { color: var(--accent); text-decoration: underline; }

.faq-body {
  max-width: 740px;
  padding-bottom: 64px;
}
.faq-grupo { margin-bottom: 48px; }
.faq-grupo-titulo {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-pregunta {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.faq-pregunta:hover { color: var(--accent); }
.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--text-light);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-respuesta {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-respuesta { max-height: 400px; }
.faq-respuesta p {
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
}

.faq-cta {
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.faq-cta p {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-family: var(--font-serif);
}
/* ===========================
   TOAST CARRITO
   =========================== */
.cart-toast {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background: var(--text-dark);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  z-index: 1100;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 320px;
}
.cart-toast.show { transform: translateX(0); }
.cart-toast svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: #4caf50;
  stroke: #4caf50;
}
.toast-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.toast-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.toast-cart {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toast-cart:hover { background: rgba(255,255,255,0.12); }

/* ===========================
   ZOOM IMAGEN PRODUCTO
   =========================== */
.zoom-ready {
  cursor: zoom-in;
  overflow: hidden;
}
.zoom-ready img {
  transition: transform 0.15s ease;
  will-change: transform;
}

/* Botón flotante WhatsApp */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.55);
}
.wa-float svg {
  width: 28px;
  height: 28px;
}

.btn-wa-faq {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, transform 0.2s;
}
.btn-wa-faq:hover { background: #1ebe5d; transform: translateY(-1px); }
.btn-wa-faq svg { width: 20px; height: 20px; }


/* ===========================
   CATEGORÍAS — MOSAICO EDITORIAL
   =========================== */
.cat-mosaic-section {
  background: var(--bg-warm);
  padding: 48px 0 0;
}
.cat-mosaic-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.cat-mosaic-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  color: var(--text-dark);
  flex: 1;
  margin: 0;
}
.cat-mosaic-title em { color: var(--accent); font-style: italic; }
.cat-mosaic-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  white-space: nowrap;
  margin-bottom: 6px;
  transition: opacity 0.2s;
}
.cat-mosaic-link:hover { opacity: 0.7; }

.cat-mosaic-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  grid-template-rows: 320px;
  gap: 3px;
}
.cat-mosaic-card {
  position: relative;
  overflow: hidden;
  background: var(--accent-light);
  cursor: pointer;
}
.cat-mosaic-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cat-mosaic-card:hover img { transform: scale(1.06); }
.cat-mosaic-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  opacity: 0.25;
}
.cat-mosaic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,36,22,0.72) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  transition: background 0.3s;
}
.cat-mosaic-card:hover .cat-mosaic-overlay {
  background: linear-gradient(to top, rgba(44,36,22,0.85) 0%, rgba(44,36,22,0.1) 60%);
}
.cat-mosaic-name {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #fff;
  font-weight: 400;
  line-height: 1.2;
}
.cat-mosaic-featured .cat-mosaic-name { font-size: 26px; }
.cat-mosaic-count {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 5px;
  letter-spacing: 0.06em;
}
@media (max-width: 900px) {
  .cat-mosaic-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px;
  }
  .cat-mosaic-featured { grid-column: span 2; }
  .cat-mosaic-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 560px) {
  .cat-mosaic-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 160px); }
  .cat-mosaic-featured { grid-column: span 1; }
}


/* ===========================
   PRODUCTOS DESTACADOS — EDITORIAL
   =========================== */
.featured-section {
  padding: 80px 0;
  background: var(--warm-white);
}
.featured-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 860px) {
  .featured-layout { grid-template-columns: 1fr; }
}

.featured-main { display: flex; flex-direction: column; gap: 24px; }
.featured-heading .section-eyebrow { margin-bottom: 8px; }
.featured-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.5vw, 48px);
  line-height: 1.1;
  color: var(--text-dark);
  margin: 0;
}
.featured-title em { color: var(--accent); font-style: italic; }

.featured-hero-card {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--accent-light);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.featured-hero-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(44,36,22,0.15); }
.featured-hero-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.featured-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.featured-hero-card:hover .featured-hero-img img { transform: scale(1.05); }
.featured-hero-img .product-img-placeholder { height: 100%; font-size: 80px; }
.featured-hero-info {
  padding: 20px 22px;
}
.featured-hero-name {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text-dark);
  margin: 4px 0 14px;
}
.featured-hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.featured-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.featured-mini-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.featured-mini-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}
.featured-mini-img {
  position: relative;
  width: 100px;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--accent-light);
  flex-shrink: 0;
}
.featured-mini-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.featured-mini-card:hover .featured-mini-img img { transform: scale(1.08); }
.featured-mini-img .product-img-placeholder { height: 100%; font-size: 28px; }
.featured-mini-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}
.featured-mini-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}
.featured-mini-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}


/* ===========================
   NOVEDADES — GRID EDITORIAL
   =========================== */
.novedades-section {
  background: var(--cream);
  padding: 80px 0;
}
.novedades-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
}
.novedades-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.5vw, 46px);
  color: var(--text-dark);
  margin: 0;
  line-height: 1.1;
}
.novedades-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 640px) { .novedades-grid { grid-template-columns: 1fr; } }

.novedad-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.novedad-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.novedad-img-wrap {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--accent-light);
}
.novedad-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.novedad-card:hover .novedad-img-wrap img { transform: scale(1.06); }
.novedad-img-wrap .product-img-placeholder { height: 100%; font-size: 56px; }
.novedad-info { padding: 18px 20px; }
.novedad-name {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text-dark);
  margin: 4px 0 14px;
  line-height: 1.3;
}


/* ===========================
   CALCULADORA CTA (home)
   =========================== */
.calc-cta-block {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--accent-light);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px;
}
@media (max-width: 700px) {
  .calc-cta-block { flex-direction: column; text-align: center; padding: 28px 24px; }
}
.calc-cta-icon { font-size: 40px; flex-shrink: 0; }
.calc-cta-content { flex: 1; }
.calc-cta-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.calc-cta-desc {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.5;
}
.calc-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.calc-cta-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.calc-cta-btn svg { width: 16px; height: 16px; }


/* ===========================
   BACK TO TOP
   =========================== */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(184,149,106,0.45);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 998;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184,149,106,0.55);
}
.back-to-top svg { width: 18px; height: 18px; }


/* ===========================
   ADMIN ENTRY BUTTON + MODAL
   =========================== */
.admin-entry-btn {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.4;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s;
  border-radius: 4px;
}
.admin-entry-btn:hover { opacity: 1; background: rgba(255,255,255,0.07); }
.admin-entry-btn svg { width: 13px; height: 13px; stroke: currentColor; flex-shrink: 0; }

.admin-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  backdrop-filter: blur(3px);
}
.admin-modal-overlay.open { display: block; }

.admin-modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  z-index: 2001;
  background: var(--warm-white);
  border-radius: 14px;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s;
  opacity: 0;
}
.admin-modal.open {
  display: block;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.admin-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none; border: none;
  cursor: pointer;
  padding: 6px;
  line-height: 0;
  border-radius: 50%;
  transition: background 0.2s;
}
.admin-modal-close:hover { background: var(--accent-light); }
.admin-modal-close svg { width: 18px; height: 18px; stroke: var(--text-medium); stroke-width: 2; }

.admin-modal-logo {
  width: 52px; height: 52px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.admin-modal-logo svg { width: 24px; height: 24px; color: var(--accent); }

.admin-modal-title {
  font-family: var(--font-serif);
  font-size: 20px;
  text-align: center;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.admin-modal-sub {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 22px;
}

.admin-modal-error {
  background: #fde8e8;
  color: #c0392b;
  font-size: 13px;
  border-radius: 6px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s, padding 0.25s;
}
.admin-modal-error.visible {
  padding: 10px 14px;
  max-height: 60px;
  margin-bottom: 16px;
}

.admin-modal-field { margin-bottom: 16px; }
.admin-modal-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-medium);
  margin-bottom: 6px;
}
.admin-modal-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color 0.2s;
  background: var(--cream);
}
.admin-modal-field input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.admin-modal-pw-wrap { position: relative; }
.admin-modal-pw-wrap input { padding-right: 44px; }
.admin-modal-eye {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; padding: 4px; line-height: 0;
}
.admin-modal-eye svg { width: 17px; height: 17px; stroke: var(--text-light); stroke-width: 2; fill: none; }

.admin-modal-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s;
}
.admin-modal-submit:hover { background: var(--accent-hover); }
.admin-modal-submit:active { transform: scale(0.98); }
.admin-modal-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }


/* ===========================
   CALCULADORA DE MANTELES
   =========================== */
.calc-hero {
  background: var(--bg-warm);
  padding: 64px 32px 56px;
  text-align: center;
}
.calc-hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.calc-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.2;
}
.calc-hero p {
  color: var(--text-medium);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.calc-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 720px) {
  .calc-wrap { grid-template-columns: 1fr; gap: 36px; padding: 36px 20px 60px; }
}

/* Left column: controls */
.calc-controls { display: flex; flex-direction: column; gap: 32px; }

.calc-step {}
.calc-step-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.calc-step-num {
  width: 22px; height: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.shape-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.shape-option {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  background: #fff;
  user-select: none;
}
.shape-option:hover { border-color: var(--accent); transform: translateY(-2px); }
.shape-option.active {
  border-color: var(--accent);
  background: var(--accent-light);
}
.shape-option input { display: none; }
.shape-icon { margin-bottom: 8px; }
.shape-icon svg { width: 36px; height: 36px; }
.shape-label { font-size: 13px; font-weight: 600; color: var(--text-dark); }

.dim-inputs { display: flex; flex-direction: column; gap: 14px; }
.dim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dim-field { display: flex; flex-direction: column; gap: 6px; }
.dim-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-medium);
}
.dim-input-wrap { position: relative; }
.dim-input-wrap input {
  width: 100%;
  padding: 11px 40px 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}
.dim-input-wrap input::-webkit-inner-spin-button,
.dim-input-wrap input::-webkit-outer-spin-button { -webkit-appearance: none; }
.dim-input-wrap input:focus { outline: none; border-color: var(--accent); }
.dim-unit {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.04em;
  pointer-events: none;
}

.caida-options { display: flex; flex-direction: column; gap: 8px; }
.caida-option {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fff;
  user-select: none;
}
.caida-option:hover { border-color: var(--accent); }
.caida-option.active { border-color: var(--accent); background: var(--accent-light); }
.caida-option input { display: none; }
.caida-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.caida-option.active .caida-dot { border-color: var(--accent); background: var(--accent); }
.caida-info { flex: 1; }
.caida-name { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.caida-desc { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.caida-cm {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  min-width: 48px;
  text-align: right;
}
.caida-custom-wrap {
  display: none;
  margin-top: 8px;
}
.caida-custom-wrap.show { display: flex; align-items: center; gap: 10px; }
.caida-custom-wrap label { font-size: 13px; color: var(--text-medium); white-space: nowrap; }
.caida-custom-wrap .dim-input-wrap { width: 110px; }

/* Right column: result */
.calc-result-col { position: sticky; top: 100px; }

.calc-diagram-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.calc-diagram-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
  text-align: center;
}

#calcDiagram {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 24px;
}

.calc-result-box {
  display: none;
  background: var(--accent-light);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 16px;
  animation: resultIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.calc-result-box.show { display: block; }
@keyframes resultIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.calc-result-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.calc-result-size {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 6px;
}
.calc-result-detail {
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.5;
}

.calc-result-actions {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.calc-result-actions.show { display: flex; }

.calc-btn-catalog {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 13px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.calc-btn-catalog:hover { background: var(--accent-hover); transform: translateY(-1px); }
.calc-btn-catalog svg { width: 17px; height: 17px; flex-shrink: 0; }

.calc-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--text-dark);
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.calc-btn-wa:hover { border-color: #25d366; background: #f0fdf4; color: #166534; }
.calc-btn-wa svg { width: 17px; height: 17px; flex-shrink: 0; }

.calc-tips {
  max-width: 960px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.calc-tips-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.calc-tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 720px) { .calc-tips-grid { grid-template-columns: 1fr; } }
.calc-tip-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.calc-tip-icon { font-size: 24px; margin-bottom: 10px; }
.calc-tip-title { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.calc-tip-text { font-size: 13px; color: var(--text-medium); line-height: 1.5; }

.calc-placeholder-text {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  padding: 20px 0;
}
