/* ── Variables del logo ─────────────────────────────────────
   Fondo:  #FAF0E6  (crema del logo)
   Tinta:  #1E1A16  (negro cálido de ilustración y texto)
   ────────────────────────────────────────────────────────── */
:root {
  --cream:      #FAF0E6;   /* fondo principal = fondo del logo  */
  --cream-dark: #F0DFC8;   /* crema más oscura para secciones   */
  --ink:        #1E1A16;   /* tinta del logo = color principal   */
  --ink-mid:    #4A3F35;   /* tinta media para hover/acento      */
  --ink-soft:   #7A6A58;   /* texto secundario                   */
  --surface:    #FFFFFF;   /* tarjetas blancas                   */
  --border:     #E4D5C3;   /* bordes sutiles                     */
  --green:        #25d366;
  --green-dark:   #1da851;
  --terra:        #B85C38;   /* terracota cálida = botón agregar   */
  --terra-dark:   #96472A;   /* hover del botón                    */
  --radius:       14px;
  --shadow:       0 4px 24px rgba(30,26,22,.08);
  --shadow-md:    0 8px 32px rgba(30,26,22,.13);
  --shadow-warm:  0 20px 56px rgba(184,92,56,.13);  /* sombra cálida tarjetas */
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--ink);
}

/* Cormorant Garamond = la tipografía del logo */
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── ANNOUNCEMENT BAR ───────────────────────────────────── */
.announcement-bar {
  background: var(--ink);
  color: rgba(250,240,230,.75);
  text-align: center;
  padding: 10px 20px;
  font-family: 'Nunito', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.4;
}
.announcement-bar strong {
  color: var(--cream);
  font-weight: 700;
}

/* ── HEADER ─────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 14px; flex: 1; }
.logo-img {
  height: 50px; width: auto; object-fit: contain;
  border-radius: 8px;
  filter: brightness(0) invert(1);
}
.logo-name {
  display: block; font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; color: var(--cream); line-height: 1.1; letter-spacing: .04em;
}
.logo-sub { display: block; font-size: .72rem; color: rgba(250,240,230,.55); letter-spacing: .06em; }

.nav { display: flex; gap: 28px; }
.nav a {
  color: rgba(250,240,230,.75); text-decoration: none;
  font-weight: 600; font-size: .88rem; letter-spacing: .04em;
  transition: color .2s;
}
.nav a:hover { color: var(--cream); }

.cart-btn {
  background: var(--cream); border: none; cursor: pointer;
  padding: 8px 18px; border-radius: 40px;
  font-size: .92rem; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 6px;
  transition: background .2s, transform .15s;
}
.cart-btn:hover { background: #fff; transform: scale(1.04); }
.cart-count {
  background: var(--ink); color: var(--cream);
  border-radius: 50%; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  background: var(--surface);
  min-height: 78vh; display: flex; align-items: center;
  padding: 80px 20px;
  border-bottom: 2px solid var(--border);
}
.hero-content { max-width: 600px; margin: 0 auto; text-align: center; }
.hero-logo {
  width: min(460px, 82vw); height: auto;
  margin-bottom: 24px;
}
.hero-content p {
  color: var(--ink-soft); font-size: 1.15rem;
  line-height: 1.7; margin-bottom: 36px;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
}

.btn-primary {
  display: inline-block;
  background: var(--ink); color: var(--cream);
  padding: 14px 40px; border-radius: 40px;
  font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--ink-mid); transform: translateY(-2px); }

/* ── SHOP ───────────────────────────────────────────────── */
.shop { padding: 88px 0 110px; background: var(--cream); }

.shop-header { text-align: center; margin-bottom: 72px; }
.shop-overline {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 14px;
}
.shop-title {
  font-size: 3.2rem; color: var(--ink);
  letter-spacing: .02em; line-height: 1.1; margin-bottom: 22px;
}
.shop-rule { width: 40px; height: 1.5px; background: var(--ink); margin: 0 auto; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.shop-layout {
  display: grid; grid-template-columns: 210px 1fr;
  gap: 60px; align-items: start;
}

/* ── SIDEBAR ────────────────────────────────────────────── */
.shop-sidebar { position: sticky; top: 88px; }

.shop-nav-all {
  padding-bottom: 18px; margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.shop-nav-group { border-bottom: 1px solid var(--border); }

.shop-nav-title {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; padding: 15px 0;
  background: none; border: none; cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.08rem; font-weight: 600; color: var(--ink);
  letter-spacing: .04em; text-align: left;
  transition: color .2s;
}
.shop-nav-title:hover { color: var(--ink-mid); }

.shop-chevron {
  flex-shrink: 0; color: var(--ink-soft);
  transition: transform .22s ease;
}
.shop-nav-group:not(.open) .shop-chevron { transform: rotate(-90deg); }

.shop-nav-items {
  display: flex; flex-direction: column; gap: 2px;
  padding-bottom: 12px; overflow: hidden;
  max-height: 400px; opacity: 1;
  transition: max-height .25s ease, opacity .2s ease, padding .2s ease;
}
.shop-nav-group:not(.open) .shop-nav-items {
  max-height: 0; opacity: 0; padding-bottom: 0;
}

.shop-nav-item {
  background: none; border: none; cursor: pointer;
  text-align: left; padding: 8px 12px; border-radius: 8px;
  font-family: 'Nunito', sans-serif; font-weight: 600;
  font-size: .87rem; color: var(--ink-soft);
  letter-spacing: .02em; width: 100%;
  transition: background .15s, color .15s;
}
.shop-nav-item:hover { background: var(--cream-dark); color: var(--ink); }
.shop-nav-item.active { background: var(--ink); color: var(--cream); }

/* ── MAIN ───────────────────────────────────────────────── */
.shop-breadcrumb {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 36px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.shop-active-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem; font-weight: 600;
  color: var(--ink); letter-spacing: .02em;
}
.shop-count {
  font-size: .75rem; color: var(--ink-soft);
  letter-spacing: .1em; text-transform: uppercase;
}

/* ── PRODUCT GRID ───────────────────────────────────────── */
#productsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
}

/* ── PRODUCT CARD ───────────────────────────────────────── */
.shop-card {
  background: var(--surface); border-radius: 18px;
  border: 1px solid var(--border); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease;
}
.shop-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-warm); }
.shop-card.out-of-stock { opacity: .6; }

.shop-card-img {
  aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--cream);
}
.shop-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.shop-card:hover .shop-card-img img { transform: scale(1.05); }

.shop-card-img--placeholder {
  display: flex; align-items: center; justify-content: center;
}
.shop-card-img--placeholder span { font-size: 4.8rem; opacity: .5; }

.shop-card-body {
  padding: 24px 26px 26px; flex: 1;
  display: flex; flex-direction: column;
}
.shop-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.22rem; font-weight: 600;
  color: var(--ink); line-height: 1.35; margin-bottom: 8px;
}
.shop-card-desc {
  font-size: .82rem; color: var(--ink-soft);
  line-height: 1.65; flex: 1; margin-bottom: 20px;
}
.shop-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; border-top: 1px solid var(--border);
}
.shop-card-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-weight: 700; color: var(--ink);
}
.shop-card-price.confirmar {
  font-family: 'Nunito', sans-serif;
  font-size: .75rem; font-weight: 700; color: var(--ink-soft);
  background: var(--cream-dark); padding: 5px 13px;
  border-radius: 20px; letter-spacing: .05em; text-transform: uppercase;
}
.shop-add-btn {
  background: var(--terra); color: #fff;
  border: none; border-radius: 30px; padding: 9px 20px;
  cursor: pointer; font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s, transform .15s;
}
.shop-add-btn:hover { background: var(--terra-dark); transform: scale(1.05); }
.shop-add-btn:active { transform: scale(.97); }
.shop-add-btn--disabled {
  background: #ccc; color: #fff; cursor: not-allowed;
  border-radius: 30px; padding: 9px 20px;
  font-family: 'Nunito', sans-serif; font-size: .8rem;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.shop-empty {
  text-align: center; color: var(--ink-soft);
  padding: 60px 0; font-style: italic; grid-column: 1 / -1;
}

/* ── RESPONSIVE SHOP ────────────────────────────────────── */
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; gap: 32px; }
  .shop-sidebar { position: static; }
  .shop-nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .shop-nav-all, .shop-nav-group { border: none; }
  .shop-nav-title { display: none; }
  .shop-nav-items {
    flex-direction: row; flex-wrap: wrap;
    max-height: none !important; opacity: 1 !important; padding: 0;
  }
  .shop-nav-item {
    padding: 7px 16px; border: 1.5px solid var(--border);
    border-radius: 30px; white-space: nowrap; width: auto;
  }
  .shop-nav-item.active { border-color: var(--ink); }
  .shop-nav-all { padding-bottom: 0; margin-bottom: 0; }
}
@media (max-width: 560px) {
  .shop-title { font-size: 2.4rem; }
  #productsGrid { grid-template-columns: 1fr; }
  .shop-card-img { aspect-ratio: 3 / 2; }
}

/* ── NOSOTROS ───────────────────────────────────────────── */
.nosotros { background: var(--ink); color: var(--cream); padding: 90px 20px; }
.nosotros-inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: center;
}
.nosotros-text h2 {
  font-size: 2.6rem; margin-bottom: 18px; letter-spacing: .02em;
}
.nosotros-text p {
  color: rgba(250,240,230,.7); line-height: 1.8;
  margin-bottom: 12px; font-size: 1rem;
}
.nosotros-img { font-size: 7rem; opacity: .35; }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff;
  padding: 13px 30px; border-radius: 40px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  margin-top: 12px; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-whatsapp:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-whatsapp.full { width: 100%; justify-content: center; font-size: 1rem; padding: 15px; }

.btn-mp {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #009EE3; color: #fff;
  width: 100%; padding: 15px; border-radius: 40px;
  font-family: 'Nunito', sans-serif; font-size: 1rem; font-weight: 700;
  margin-top: 8px; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-mp:hover { background: #0080BB; transform: translateY(-2px); }
.btn-mp:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── CONTACTO ───────────────────────────────────────────── */
.contacto { padding: 80px 20px; background: var(--cream-dark); }
.contacto-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.contacto-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 22px; text-align: center;
  border: 1.5px solid var(--border);
}
.contacto-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.contacto-card h3 {
  color: var(--ink); margin-bottom: 8px;
  font-size: 1.15rem; letter-spacing: .03em;
}
.contacto-card p { color: var(--ink-soft); font-size: .9rem; }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--ink); color: rgba(250,240,230,.55);
  text-align: center; padding: 24px;
  font-size: .82rem; letter-spacing: .04em;
}

/* ── CARRITO DRAWER ─────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(30,26,22,.5);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--cream); z-index: 201;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
  box-shadow: -6px 0 40px rgba(0,0,0,.18);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: var(--ink); color: var(--cream);
}
.cart-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; letter-spacing: .04em;
}
.close-cart {
  background: none; border: none; color: var(--cream);
  font-size: 1.3rem; cursor: pointer; padding: 4px 8px;
  border-radius: 6px; transition: background .2s;
}
.close-cart:hover { background: rgba(250,240,230,.15); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; color: var(--ink-soft); margin-top: 48px; font-size: 1rem; font-style: italic; }

.cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.cart-item-emoji { font-size: 2rem; flex-shrink: 0; }
.cart-item-info  { flex: 1; }
.cart-item-name  { font-weight: 700; font-size: .93rem; }
.cart-item-price { font-size: .84rem; color: var(--ink-soft); }
.cart-item-qty   { display: flex; align-items: center; gap: 8px; }

.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border); background: none;
  cursor: pointer; font-size: 1rem; font-weight: 700;
  color: var(--ink); display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.qty-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.qty-num { font-weight: 700; min-width: 20px; text-align: center; }

.cart-footer { padding: 18px 24px; border-top: 2px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.05rem; }
.cart-total strong { color: var(--ink); font-size: 1.3rem; font-family: 'Cormorant Garamond', serif; }

#cartNote {
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 10px; font-family: 'Nunito', sans-serif;
  font-size: .9rem; resize: vertical; color: var(--ink);
  background: var(--surface);
}
#cartNote:focus { outline: none; border-color: var(--ink); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 680px) {
  .nav { display: none; }
  .nosotros-inner { grid-template-columns: 1fr; }
  .nosotros-img   { display: none; }
}
