/* =============================================
   AGUAMARINA STORE — styles.css v2
   Branding: Teal · Blanco · Artesanal
   Mobile First · Vanilla CSS
   ============================================= */

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

/* ── CSS Variables (Paleta Aguamarina) ───────── */
:root {
  /* Teal — color principal de la marca */
  --teal:         #2BB5A0;
  --teal-dark:    #1A8A78;
  --teal-darker:  #116B5E;
  --teal-light:   #5FCABB;
  --teal-pale:    #D6F2EE;
  --teal-ultra:   #EEF9F7;

  /* Neutros */
  --white:        #FFFFFF;
  --cream:        #FAFBFA;
  --cream-warm:   #F5F7F5;
  --border:       #E2EDEB;
  --border-mid:   #C8DEDD;

  /* Texto */
  --dark:         #1C2E2B;
  --mid:          #4A6B66;
  --light-text:   #8AADA8;

  /* Acento dorado — para precios y detalles */
  --gold:         #C9A55A;
  --gold-light:   #E8C97A;

  /* WhatsApp */
  --wa:           #25D366;
  --wa-dark:      #128C7E;

  /* Sombras con tinte teal */
  --shadow-xs:  0 1px 6px  rgba(43,181,160,0.10);
  --shadow-sm:  0 3px 14px rgba(43,181,160,0.14);
  --shadow-md:  0 8px 32px rgba(28,46,43,0.10);
  --shadow-lg:  0 18px 60px rgba(28,46,43,0.14);
  --shadow-teal: 0 6px 24px rgba(43,181,160,0.30);

  /* Radios */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-full: 9999px;

  --header-h: 62px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img     { display: block; max-width: 100%; }
a       { text-decoration: none; color: inherit; }
button  { cursor: pointer; border: none; outline: none; background: none; font-family: inherit; }
ul, ol  { list-style: none; }
input, select, textarea { font-family: inherit; }
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }

/* ══════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  /* Fondo teal oscuro — contraste fuerte con el hero blanco */
  background: var(--teal-darker);
  border-bottom: 3px solid var(--teal-dark);
  transition: background .3s, box-shadow .3s;
}

/* Al hacer scroll: un poco más oscuro con sombra */
.navbar--scrolled {
  background: var(--teal-darker);
  box-shadow: 0 4px 20px rgba(17,107,94,.35);
}

.navbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: height .3s;
}

.navbar--scrolled .navbar__inner { height: 54px; }

/* Brand — solo texto */
.navbar__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

.navbar__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: .02em;
  white-space: nowrap;
}

.navbar__name em {
  font-style: italic;
  color: var(--teal-light);
}

.navbar__sub {
  font-size: .58rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Acciones derechas */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__social {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
  opacity: 1;
}

.navbar__social:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-2px) scale(1.1);
}

.navbar__divider { display: none; }

.navbar__cart {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  border: none;
  transition: background .15s, transform .15s;
  text-decoration: none;
  opacity: 1;
}

.navbar__cart:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-2px) scale(1.1);
}

.navbar__cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: #fff;
  color: var(--teal-darker);
  border-radius: var(--r-full);
  font-size: .62rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--teal-darker);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity .2s, transform .2s var(--ease-spring);
}

.navbar__cart-badge.visible { opacity: 1; transform: scale(1); }

/* Compat con páginas que aún usan .header */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 62px;
  background: var(--teal-darker);
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 3px solid var(--teal-dark);
}

.header__logo { flex: 1; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header__mark { display: none; }
.header__logo-img { height: 38px; width: auto; object-fit: contain; }
.header__text { display: flex; flex-direction: column; gap: 1px; }
.header__name { font-family: var(--font-display); font-size: 1rem; color: #fff; white-space: nowrap; }
.header__name em { font-style: italic; color: var(--teal-light); }
.header__tagline { font-size: .58rem; color: rgba(255,255,255,.5); letter-spacing: .1em; text-transform: uppercase; }
.header__actions { display: flex; align-items: center; gap: 6px; }
.header__icon-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: background .15s; }
.header__icon-btn:hover { background: rgba(255,255,255,.12); }

.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 17px; height: 17px;
  background: #fff;
  color: var(--teal-darker);
  border-radius: var(--r-full);
  font-size: .62rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  opacity: 0; transform: scale(0.5);
  transition: opacity .2s, transform .2s var(--ease-spring);
}
.cart-badge.visible { opacity: 1; transform: scale(1); }

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 24px 36px;
  text-align: center;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

/* Marca de agua — concha de fondo */
.hero__watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.hero__watermark img {
  width: min(500px, 90vw);
  height: auto;
  opacity: .06;
  mix-blend-mode: multiply;
}

/* Contenido sobre la marca de agua */
.hero__content {
  position: relative;
  z-index: 1;
}

/* Ícono central */
.hero__icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  background: var(--teal-ultra);
  border: 1.5px solid var(--teal-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroIconIn .7s var(--ease-spring) both;
}

.hero__icon img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

@keyframes heroIconIn {
  from { opacity: 0; transform: scale(.7) rotate(-10deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

.hero__eyebrow {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-ultra);
  border: 1px solid var(--teal-pale);
  border-radius: var(--r-full);
  padding: 5px 18px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 600;
}

.hero__title {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.hero__title em {
  font-style: italic;
  color: var(--teal);
}

.hero__tagline {
  font-size: .88rem;
  color: var(--mid);
  letter-spacing: .04em;
  margin-bottom: 20px;
  font-style: italic;
  font-family: var(--font-display);
}

.hero__sub {
  font-size: .9rem;
  color: var(--mid);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════
   FILTER BAR
   ══════════════════════════════════════════════ */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 50;
}

.filter-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-bar__inner::-webkit-scrollbar { display: none; }

.filter-pill {
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: var(--r-full);
  font-size: .88rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--mid);
  border: 2px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: all .22s var(--ease);
  white-space: nowrap;
  letter-spacing: .01em;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}

.filter-pill:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-ultra);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(43,181,160,.18);
}

.filter-pill:active {
  transform: translateY(0);
}

.filter-pill.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 6px 20px rgba(43,181,160,.35);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════
   PRODUCTS SECTION
   ══════════════════════════════════════════════ */
.products-section {
  padding: 24px 14px 100px;
  max-width: 900px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 2px;
}

.section-title {
  font-size: 1.4rem;
  color: var(--dark);
}

.product-count {
  font-size: .78rem;
  color: var(--light-text);
  font-family: var(--font-body);
}

/* ── Products Grid ────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 480px)  { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px)  { .products-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Product Card ─────────────────────────── */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--teal-ultra);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}

.product-card:hover .product-card__img { transform: scale(1.05); }

.product-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  color: var(--teal-dark);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-full);
  border: 1px solid var(--teal-pale);
}

.product-card__body {
  padding: 12px;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card__price {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--teal-dark);
  font-size: .92rem;
  margin-bottom: 10px;
}

.product-card__btn {
  width: 100%;
  padding: 9px;
  background: var(--teal-ultra);
  border: 1.5px solid var(--teal-pale);
  border-radius: var(--r-sm);
  color: var(--teal-dark);
  font-size: .8rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all .18s var(--ease);
}

.product-card__btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* ── Skeleton Loading ─────────────────────── */
.skeleton-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  padding: 12px;
}

.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--teal-ultra) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-xs);
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.sk-img   { aspect-ratio: 1; border-radius: var(--r-xs); margin-bottom: 10px; }
.sk-text  { height: 14px; margin-bottom: 6px; width: 80%; }
.sk-price { height: 14px; margin-bottom: 10px; width: 45%; }
.sk-btn   { height: 34px; border-radius: var(--r-sm); }

/* ══════════════════════════════════════════════
   PRODUCT DETAIL PAGE
   ══════════════════════════════════════════════ */
.product-detail-page { max-width: 860px; margin: 0 auto; }

@media (min-width: 640px) {
  .product-detail-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: calc(100vh - var(--header-h));
  }
}

.product-detail__gallery {
  position: relative;
  background: var(--teal-ultra);
  aspect-ratio: 1;
}

@media (min-width: 640px) {
  .product-detail__gallery {
    aspect-ratio: unset;
    min-height: 420px;
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
  }
}

.product-detail__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.back-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  transition: all .15s;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.back-btn:hover { 
  background: var(--teal-dark);
  transform: scale(1.05);
}

.product-detail__info {
  padding: 28px 20px 40px;
  background: var(--white);
}

.product-detail__cat {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 10px;
  font-family: var(--font-body);
}

.product-detail__name {
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.product-detail__price {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 18px;
  font-family: var(--font-body);
}

.product-detail__desc {
  font-size: .9rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 28px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.product-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 14px 24px;
  font-size: .92rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-align: center;
  text-decoration: none;
}

.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-md);
  padding: 13px 24px;
  font-size: .9rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--mid);
  cursor: pointer;
  transition: border-color .18s, color .18s;
  background: none;
  text-decoration: none;
}

.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* ══════════════════════════════════════════════
   CART PAGE
   ══════════════════════════════════════════════ */
.cart-page { padding: 20px 16px 140px; max-width: 640px; margin: 0 auto; }

.cart-page__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2rem);
  color: var(--dark);
  margin-bottom: 4px;
}

.cart-page__subtitle {
  font-size: .82rem;
  color: var(--light-text);
  margin-bottom: 28px;
}

/* Cart item */
.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  margin-bottom: 10px;
  transition: box-shadow .2s;
}

.cart-item:hover { box-shadow: var(--shadow-sm); }

.cart-item__img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--teal-ultra);
}

.cart-item__name {
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--dark);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__unit-price { font-size: .76rem; color: var(--light-text); margin-bottom: 8px; }

.qty-row { display: flex; align-items: center; gap: 8px; }

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-mid);
  color: var(--dark);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: border-color .15s, background .15s;
}

.qty-btn:hover { border-color: var(--teal); background: var(--teal-ultra); color: var(--teal); }

.qty-num { font-weight: 600; font-size: .9rem; min-width: 20px; text-align: center; }

.cart-item__subtotal {
  font-weight: 700;
  font-size: .95rem;
  color: var(--teal-dark);
}

.cart-item__remove {
  font-size: .7rem;
  color: var(--border-mid);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .15s;
}

.cart-item__remove:hover { color: #e74c3c; }

/* Summary */
.cart-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-top: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--mid);
  padding: 5px 0;
}

.summary-divider {
  border: none;
  border-top: 1.5px solid var(--border);
  margin: 10px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
}

.summary-total__label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

.summary-total__value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--teal-dark);
}

/* WhatsApp order button */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 16px;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s;
  margin-top: 14px;
  width: 100%;
}

.btn-whatsapp:hover { background: #1ebe5c; transform: translateY(-1px); }

/* Cart empty state */
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--mid);
}

.cart-empty__icon { font-size: 3.5rem; margin-bottom: 16px; opacity: .4; }

.cart-empty__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.cart-empty__sub {
  font-size: .85rem;
  margin-bottom: 28px;
  line-height: 1.6;
  color: var(--light-text);
}

/* ══════════════════════════════════════════════
   FLOATING WHATSAPP FAB
   ══════════════════════════════════════════════ */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 18px;
  width: 54px;
  height: 54px;
  background: var(--wa);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.38);
  z-index: 200;
  transition: transform .2s var(--ease-spring), box-shadow .2s;
  animation: fabPulse 3s ease-in-out infinite;
}

.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,.50);
}

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,.38); }
  50%       { box-shadow: 0 6px 32px rgba(37,211,102,.55); }
}

/* ══════════════════════════════════════════════
   BOTTOM CART BAR
   ══════════════════════════════════════════════ */
.bottom-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 150;
  transform: translateY(100%);
  transition: transform .28s var(--ease);
  box-shadow: 0 -4px 24px rgba(43,181,160,.30);
}

.bottom-cart-bar.visible { transform: translateY(0); }

.bottom-cart-bar__text {}

.bcb-count { font-size: .8rem; opacity: .85; margin-bottom: 1px; }
.bcb-total { font-weight: 700; font-size: 1rem; }

.bcb-btn {
  background: #fff;
  color: var(--teal-dark);
  border: none;
  border-radius: var(--r-sm);
  padding: 10px 20px;
  font-size: .87rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .15s;
}

.bcb-btn:hover { background: var(--teal-ultra); }

/* ══════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--r-full);
  font-size: .83rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

.toast span:first-child {
  color: var(--teal-light);
  font-size: 1rem;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════════════ */
.hidden { display: none !important; }

/* Login */
.login-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--cream-warm);
}

.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-card__logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid var(--teal);
}

.login-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 4px;
  text-align: center;
}

.login-card__sub { font-size: .8rem; color: var(--light-text); margin-bottom: 28px; }

.login-error {
  display: none;
  color: #c0392b;
  font-size: .78rem;
  background: #fdf0f0;
  border-radius: var(--r-sm);
  padding: 8px 12px;
  margin-bottom: 12px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  outline: none;
  transition: border-color .2s, background .2s;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.form-input:focus { border-color: var(--teal); background: var(--white); }

.login-btn {
  width: 100%;
  padding: 13px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .2s;
}

.login-btn:hover { background: var(--teal-dark); }
.login-back { display: block; margin-top: 18px; font-size: .78rem; color: var(--light-text); }
.login-back:hover { color: var(--teal); }

/* Admin layout */
.admin-layout { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-topbar__left { 
  display: flex; 
  align-items: center; 
  gap: 12px;
  text-decoration: none;
}

.admin-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
}

.admin-topbar__brand {
  display: flex;
  flex-direction: column;
}

.admin-topbar__title { 
  font-family: var(--font-display); 
  font-size: 1.1rem; 
  color: var(--dark);
  font-weight: 500;
}

.admin-topbar__title em {
  color: var(--teal);
  font-style: normal;
}
.admin-topbar__actions { display: flex; gap: 8px; }

.btn-admin-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 9px 16px;
  font-size: .84rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .18s;
}

.btn-admin-primary:hover { background: var(--teal-dark); }

.btn-admin-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--mid);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  font-size: .82rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color .15s, color .15s;
  text-decoration: none;
}

.btn-admin-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}

.stat-card__label {
  font-size: .68rem;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 6px;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--dark);
}

.stat-card--teal .stat-card__value { color: var(--teal-dark); }

/* Table */
.admin-table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* Barra de acciones principales */
.admin-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}

.action-btn--add {
  background: var(--teal);
  color: white;
}

.action-btn--add:hover {
  background: var(--teal-dark);
}

.action-btn__icon {
  font-size: 1.1rem;
  font-weight: 700;
}

.action-search {
  flex: 1;
  min-width: 200px;
  margin: 0 !important;
  padding: 10px 16px !important;
  font-size: .88rem !important;
}

.action-filter {
  width: 200px;
  margin: 0 !important;
  padding: 10px 16px !important;
  font-size: .88rem !important;
}

/* Tabla header */
.admin-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.admin-table-head h2 {
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--dark);
  font-weight: 500;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-count {
  background: var(--teal-ultra);
  color: var(--teal-dark);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: .83rem; }

.admin-table thead th {
  text-align: left;
  padding: 10px 16px;
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--light-text);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 600;
}

.admin-table tbody tr { border-bottom: 1px solid #F0F5F4; transition: background .12s; }
.admin-table tbody tr:last-child { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--teal-ultra); }
.admin-table td { padding: 10px 16px; vertical-align: middle; }

.table-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--r-xs);
  object-fit: cover;
  background: var(--teal-ultra);
  display: block;
}

.table-name { font-weight: 500; color: var(--dark); }
.table-price { color: var(--teal-dark); font-weight: 700; }

.cat-badge {
  display: inline-block;
  background: var(--teal-ultra);
  color: var(--teal-dark);
  border-radius: var(--r-full);
  padding: 2px 9px;
  font-size: .68rem;
  font-weight: 600;
  border: 1px solid var(--teal-pale);
}

.stock-ok   { color: #16a34a; font-weight: 600; }
.stock-low  { color: #d97706; font-weight: 600; }
.stock-none { color: #dc2626; font-weight: 600; }

.row-actions { display: flex; gap: 6px; }

.btn-edit {
  background: var(--teal-ultra);
  color: var(--teal-dark);
  border: 1px solid var(--teal-pale);
  border-radius: var(--r-xs);
  padding: 5px 12px;
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .15s;
}

.btn-edit:hover { background: var(--teal-pale); }

.btn-del {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: var(--r-xs);
  padding: 5px 12px;
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .15s;
}

.btn-del:hover { background: #fee2e2; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 600px) {
  .admin-actions-bar {
    flex-direction: column;
  }
  .action-search,
  .action-filter {
    width: 100% !important;
  }
  .admin-table thead th:nth-child(3),
  .admin-table td:nth-child(3) { display: none; }
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,46,43,.45);
  backdrop-filter: blur(4px);
  z-index: 9000;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}

@media (min-width: 540px) { .modal-overlay { align-items: center; } }
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: var(--r-lg) var(--r-lg) var(--r-md) var(--r-md);
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp .22s var(--ease);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--dark);
}

.modal-close-btn {
  width: 30px;
  height: 30px;
  background: var(--cream-warm);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--mid);
  cursor: pointer;
  transition: background .15s;
}

.modal-close-btn:hover { background: var(--teal-pale); color: var(--teal-dark); }

.modal-body { padding: 18px 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 380px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  outline: none;
  transition: border-color .18s, background .18s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-hint { font-size: .7rem; color: var(--light-text); margin-top: 4px; }

/* ── Upload area (drag & drop / celu) ────── */
.upload-area {
  border: 2px dashed var(--border-mid);
  border-radius: var(--r-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background .18s;
  margin-bottom: 8px;
  position: relative;
}

.upload-area:hover, .upload-area.drag-over {
  border-color: var(--teal);
  background: var(--teal-ultra);
}

.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
}

.upload-area__icon { font-size: 2rem; margin-bottom: 8px; }

.upload-area__text {
  font-size: .82rem;
  color: var(--mid);
  line-height: 1.5;
}

.upload-area__text strong { color: var(--teal-dark); }

.upload-progress {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  color: var(--teal-dark);
  margin-top: 6px;
}

.upload-progress.show { display: flex; }

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
  transition: width .3s;
  width: 0%;
}

.img-preview {
  display: none;
  border-radius: var(--r-sm);
  overflow: hidden;
  max-height: 200px;
  margin-top: 8px;
  border: 1px solid var(--border);
  position: relative;
}

.img-preview img { width: 100%; object-fit: cover; display: block; }

.btn-change-img {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,.6);
  color: white;
  border: none;
  padding: 8px;
  font-size: .8rem;
  cursor: pointer;
  transition: background .15s;
}

.btn-change-img:hover {
  background: rgba(0,0,0,.8);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
}

.btn-save {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 11px 22px;
  font-size: .9rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .18s;
}

.btn-save:hover { background: var(--teal-dark); }

.btn-cancel {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  font-size: .87rem;
  font-family: var(--font-body);
  color: var(--mid);
  cursor: pointer;
}

.btn-cancel:hover { border-color: var(--teal); color: var(--teal); }

/* ══════════════════════════════════════════════
   HERO LOGO
   ══════════════════════════════════════════════ */
.hero__logo {
  width: 240px;
  height: auto;
  margin: 0 auto 10px;
  animation: heroLogoIn .8s var(--ease) both;
}

.hero__logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

@media (min-width: 480px) {
  .hero__logo { width: 270px; }
}

@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Hero info bar (ubicación + tel) ─────── */
.hero__info {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero__info-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .76rem;
  color: var(--mid);
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 6px 14px;
  text-decoration: none;
  transition: all .18s;
  font-family: var(--font-body);
}

.hero__info-chip--wa {
  color: var(--teal-dark);
  font-weight: 600;
  background: var(--teal-ultra);
  border-color: var(--teal-pale);
}

.hero__info-chip--wa:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.hero__info-sep { display: none; }
.hero__info-item { display: none; }
.hero__info-wa   { display: none; }

/* ── Social icons in header ──────────────── */
.header__social {
  color: var(--mid);
  transition: color .15s, background .15s;
}

.header__social:hover { color: var(--teal); }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 36px 20px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .site-footer {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
    padding: 40px 32px;
  }
}

.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  font-weight: 400;
}

.site-footer__name em {
  font-style: italic;
  color: var(--teal-light);
}

.site-footer__tagline {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  margin-top: 3px;
  letter-spacing: .04em;
}

.site-footer__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
}

.site-footer__row a {
  color: var(--teal-light);
  text-decoration: none;
  transition: color .15s;
}

.site-footer__row a:hover { color: var(--teal); }

.site-footer__social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .15s;
}

.footer__social-btn:hover { color: var(--teal-light); }

/* Footer logo image */
.site-footer__logo-img {
  height: 48px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  flex-shrink: 0;
  /* logo fondo blanco sobre footer oscuro: invertimos */
  filter: brightness(0) invert(1);
  opacity: .7;
}


/* ══════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════ */

/* ══════════════════════════════════════════════
   CATÁLOGO POR SECCIONES
   ══════════════════════════════════════════════ */
.catalog-sections {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 14px 20px;
}

.cat-section {
  padding: 32px 0 16px;
  border-bottom: 1px solid var(--border);
}

.cat-section:last-child { border-bottom: none; }

.cat-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cat-section__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-section__icon { font-size: 1.4rem; }

.cat-section__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--dark);
  position: relative;
}

.cat-section__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--teal);
  margin-top: 4px;
  border-radius: 2px;
}

.cat-section__count {
  font-size: .78rem;
  color: var(--light-text);
  background: var(--teal-ultra);
  border: 1px solid var(--teal-pale);
  border-radius: var(--r-full);
  padding: 3px 12px;
}

/* Botón "Consultar" en lugar de "+ Agregar" */
.product-card__btn {
  width: 100%;
  padding: 9px;
  background: var(--teal);
  border: none;
  border-radius: var(--r-sm);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .18s, transform .15s;
}

.product-card__btn:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

/* Quitar tag de categoría en las cards (ya está en el header de sección) */
.product-card__tag { display: none; }

/* ══════════════════════════════════════════════
   SOBRE NOSOTROS
   ══════════════════════════════════════════════ */
.about-section {
  background: linear-gradient(135deg, var(--teal-ultra) 0%, #ffffff 60%);
  border-top: 1px solid var(--border);
  padding: 60px 20px;
}

.about-section__inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 640px) {
  .about-section__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.about-section__eyebrow {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 12px;
  font-family: var(--font-body);
}

.about-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.about-section__title em {
  font-style: italic;
  color: var(--teal);
}

.about-section__body {
  font-size: .92rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 28px;
}

/* Ebook card */
.ebook-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1.5px solid var(--teal-pale);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.ebook-card__icon { font-size: 2rem; flex-shrink: 0; }

.ebook-card__text { flex: 1; min-width: 0; }

.ebook-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--dark);
  font-weight: 500;
  margin-bottom: 2px;
}

.ebook-card__desc {
  font-size: .76rem;
  color: var(--mid);
  line-height: 1.4;
}

.ebook-card__btn {
  flex-shrink: 0;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 10px 16px;
  font-size: .8rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, transform .15s;
  white-space: nowrap;
}

.ebook-card__btn:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

/* Badges de valores */
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-size: .76rem;
  color: var(--mid);
  font-weight: 500;
}

/* Imagen sobre nosotros */
.about-section__image {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--teal-ultra);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ══════════════════════════════════════════════
   CATÁLOGO CON TABS
   ══════════════════════════════════════════════ */
.catalog-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 14px 40px;
}

/* Banner */
.catalog-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 20px;
  border-bottom: 2px solid var(--teal-pale);
  margin-bottom: 20px;
}

.catalog-banner__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.catalog-banner__sub {
  font-size: .8rem;
  color: var(--light-text);
  font-style: italic;
}

.catalog-banner__count {
  font-size: .78rem;
  color: var(--teal-dark);
  background: var(--teal-ultra);
  border: 1px solid var(--teal-pale);
  border-radius: var(--r-full);
  padding: 4px 14px;
  font-weight: 600;
}

/* Tabs */
.cat-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cat-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-full);
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--mid);
  font-size: .88rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .22s var(--ease);
  white-space: nowrap;
}

.cat-tab:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-ultra);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(43,181,160,.15);
}

.cat-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 6px 20px rgba(43,181,160,.35);
  transform: translateY(-1px);
}

.cat-tab__icon { font-size: 1.1rem; }

.cat-tab__count {
  background: rgba(255,255,255,.25);
  border-radius: var(--r-full);
  padding: 1px 8px;
  font-size: .72rem;
  min-width: 22px;
  text-align: center;
}

.cat-tab:not(.active) .cat-tab__count {
  background: var(--teal-ultra);
  color: var(--teal-dark);
}

.catalog-grid-wrap {
  min-height: 300px;
}

/* ── Título catálogo con líneas decorativas ── */
.catalog-heading {
  text-align: center;
  padding: 40px 20px 28px;
}

.catalog-heading__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  white-space: nowrap;
}

.catalog-heading__title::before,
.catalog-heading__title::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--teal));
}

.catalog-heading__title::after {
  background: linear-gradient(to left, transparent, var(--teal));
}

/* Tabs centrados */
.cat-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

/* Estado vacío */
.catalog-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--light-text);
  font-style: italic;
  font-size: .9rem;
}

/* ══════════════════════════════════════════════
   CARRUSEL DE CATEGORÍAS — LIFESTYLE
   ══════════════════════════════════════════════ */
.cat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 0 14px;
}

@media (max-width: 600px) {
  .cat-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.cat-card {
  cursor: pointer;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.cat-card__img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

@media (max-width: 600px) {
  .cat-card__img-wrap { aspect-ratio: 16/9; }
}

.cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}

.cat-card:hover .cat-card__img { transform: scale(1.06); }

/* Gradiente oscuro desde abajo */
.cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(17,107,94,.55) 75%,
    rgba(17,107,94,.82) 100%
  );
}

.cat-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-card__label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: .02em;
}

.cat-card__cta {
  font-size: .78rem;
  color: rgba(255,255,255,.8);
  font-weight: 500;
  letter-spacing: .06em;
  transition: color .2s;
}

.cat-card:hover .cat-card__cta { color: #fff; }

/* ── Header de categoría activa ────────────── */
.catalog-active-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 14px 20px;
  max-width: 960px;
  margin: 0 auto;
}

.catalog-back-btn {
  background: var(--teal);
  border: none;
  border-radius: var(--r-full);
  padding: 10px 20px;
  font-size: .88rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: white;
  cursor: pointer;
  transition: all .18s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(43,181,160,.3);
}

.catalog-back-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43,181,160,.4);
}

.catalog-active-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--teal);
}

.catalog-grid-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 14px 40px;
}

/* ══════════════════════════════════════════════
   SOBRE NOSOTROS — actualizado
   ══════════════════════════════════════════════ */
.about-section {
  background: linear-gradient(135deg, var(--teal-ultra) 0%, #ffffff 100%);
  border-top: 1px solid var(--border);
  padding: 60px 20px;
}

.about-section__inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Imagen primero en desktop, debajo en mobile */
@media (max-width: 640px) {
  .about-section__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* Imagen arriba en mobile */
  .about-section__image { order: -1; }
}

.about-section__image {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.about-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ══════════════════════════════════════════════
   EBOOK SECTION
   ══════════════════════════════════════════════ */
.ebook-section {
  background: var(--teal-darker);
  padding: 60px 20px;
}

.ebook-section__inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 52px;
  align-items: center;
}

@media (max-width: 640px) {
  .ebook-section__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.ebook-section__img-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  transform: rotate(-2deg);
  transition: transform .3s var(--ease);
}

.ebook-section__img-wrap:hover { transform: rotate(0deg) scale(1.02); }

.ebook-section__img {
  width: 100%;
  display: block;
}

.ebook-section__eyebrow {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal-light);
  font-weight: 600;
  margin-bottom: 14px;
  font-family: var(--font-body);
}

.ebook-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.ebook-section__title em {
  font-style: italic;
  color: var(--teal-light);
}

.ebook-section__body {
  font-size: .92rem;
  color: rgba(255,255,255,.7);
  line-height: 1.8;
  margin-bottom: 28px;
}

.ebook-section__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--teal-darker);
  font-size: .95rem;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 14px 28px;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: all .2s var(--ease);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.ebook-section__btn:hover {
  background: var(--teal-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
