/* ============================================================================
   1. CSS VARIABLES — catálogo público
   ============================================================================ */
:root {
  --color-bg:          #faf7f2;
  --color-ink:         #1a1814;
  --color-accent:      #c8553d;
  --color-accent-soft: #f4e4df;
  --color-muted:       #6b665e;
  --color-surface:     #ffffff;
  --color-card:        #ffffff;
  --font-display:      Georgia, 'Times New Roman', serif;
  --font-body:         -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm:         0 2px 4px rgba(0,0,0,.04);
  --shadow-md:         0 4px 12px rgba(0,0,0,.08);
  --card-scale:        1;
}

/* ============================================================================
   2. RESET & BASE
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  min-height: 100vh;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: var(--color-accent); }
button { cursor: pointer; }

/* ============================================================================
   3. LOADING SKELETON
   ============================================================================ */
#loading-skeleton {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
}
#loading-skeleton[hidden] { display: none; }
.skeleton-spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--color-accent-soft);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================================
   4. HEADER
   ============================================================================ */
.catalog-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-accent-soft);
  box-shadow: var(--shadow-sm);
}
.catalog-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.catalog-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.catalog-header__logo {
  font-size: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.catalog-header__brand strong {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-ink);
}
.catalog-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
  position: relative;
}
.icon-btn:hover { background: var(--color-accent-soft); border-color: var(--color-accent-soft); }
.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ============================================================================
   5. HERO
   ============================================================================ */
.hero {
  position: relative;
  background: var(--color-accent-soft);
  background-size: cover;
  background-position: center;
  min-height: 260px;
  display: flex;
  align-items: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.18) 0%, rgba(0,0,0,.45) 100%);
  display: flex;
  align-items: center;
}
.hero__content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
  color: #fff;
}
.hero__tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .85;
  margin-bottom: 8px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 10px;
  color: #fff;
}
.hero__description {
  font-size: 15px;
  opacity: .9;
  max-width: 540px;
}

/* ============================================================================
   6. SEARCH BAR
   ============================================================================ */
.search-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-accent-soft);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}
.search-bar input {
  flex: 1;
  border: 1px solid var(--color-accent-soft);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 14px;
  outline: none;
  background: var(--color-bg);
  color: var(--color-ink);
}
.search-bar input:focus { border-color: var(--color-accent); }

/* ============================================================================
   7. CATALOG CONTROLS (filtros + sort)
   ============================================================================ */
.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
}
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.filter-pill {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-accent-soft);
  background: var(--color-surface);
  font-size: 13px;
  color: var(--color-muted);
  transition: all .15s;
  white-space: nowrap;
}
.filter-pill:hover, .filter-pill--active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.catalog-sort select {
  border: 1px solid var(--color-accent-soft);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  background: var(--color-surface);
  color: var(--color-ink);
  outline: none;
}

/* ============================================================================
   8. MAIN CONTENT WRAPPER
   ============================================================================ */
.catalog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}
.catalog-layout { display: block; }
.catalog-layout--with-notices {
  display: flex;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.catalog-layout--with-notices .catalog-main {
  flex: 1;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
}
/* Override max-width when layout handles centering */
.catalog-layout--with-notices ~ * { }

/* Footer */
.catalog-footer {
  background: var(--color-ink);
  color: rgba(255,255,255,.7);
  padding: 40px 20px;
}
.catalog-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.catalog-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.catalog-footer__contacts a {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  text-decoration: none;
}
.catalog-footer__contacts a:hover { color: #fff; }
.catalog-footer__credit { font-size: 12px; opacity: .5; }

/* Cart drawer */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: var(--color-surface);
  box-shadow: -4px 0 24px rgba(0,0,0,.18);
  z-index: 800;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.cart-drawer.is-open { transform: none; }
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 799;
}
.cart-drawer__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer__title { font-weight: 700; font-size: 17px; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-drawer__footer { padding: 16px 20px; border-top: 1px solid var(--color-accent-soft); }
.cart-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-accent-soft); align-items: flex-start; }
.cart-item__name { font-size: 14px; font-weight: 600; }
.cart-item__price { font-size: 13px; color: var(--color-muted); }
.cart-item__qty { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.cart-item__qty button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--color-accent-soft); background: var(--color-surface); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cart-empty { text-align: center; color: var(--color-muted); padding: 40px 0; font-size: 15px; }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; margin-bottom: 12px; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--color-accent); color: #fff; border: none;
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  transition: opacity .15s, transform .1s;
  width: 100%;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--color-surface); color: var(--color-ink);
  border: 1px solid var(--color-accent-soft);
  padding: 8px 16px; border-radius: 8px; font-size: 13px;
}
.btn-secondary:hover { border-color: var(--color-accent); }

/* ============================================================================
   9. CATALOG SECTIONS + CARDS GRID
   ============================================================================ */

.catalog-section {
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--color-accent);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-count {
  font-size: 0.7em;
  color: var(--color-muted);
  font-weight: 400;
  font-family: var(--font-body);
  font-style: italic;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (min-width: 1200px) {
  .cards-grid {
    gap: 40px;
  }
}


/* ============================================================================
   10. PRODUCT/SERVICE CARD
   ============================================================================ */

.product-card {
  background: var(--color-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  animation: cardFadeIn 0.5s ease backwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

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

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

.card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-accent-soft);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.product-card:hover .card-image img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.4;
  background: linear-gradient(135deg, var(--color-accent-soft), var(--color-bg));
}


/* ============================================================================
   11. BADGES
   ============================================================================ */

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.badge-new   { background: #4a7c59; color: white; }
.badge-sale  { background: #c8553d; color: white; }
.badge-promo { background: #d4a017; color: white; }
.badge-last  { background: #6b665e; color: white; }


/* Quick add button */
.card-quick-add {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  border: none;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card:hover .card-quick-add {
  opacity: 1;
  transform: translateY(0);
}

.card-quick-add:hover {
  transform: scale(1.1) !important;
  background: #b04832;
}


/* ============================================================================
   12. CARD BODY AND PRICES
   ============================================================================ */

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.3;
  margin: 0;
}

.card-desc {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 4px;
}

.card-stock,
.card-code,
.card-duration,
.card-deposit {
  display: inline-flex;
  align-items: center;
}

.card-stock.stock-low {
  color: var(--color-error);
  font-weight: 600;
}

.card-stock.stock-ok {
  color: var(--color-success);
}

.card-stock.stock-out {
  color: var(--color-error);
  font-weight: 700;
  opacity: 0.8;
}

.card-deposit {
  color: var(--color-accent);
  font-weight: 600;
}

.card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  gap: 10px;
}

.card-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-current {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.price-old {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-decoration: line-through;
  line-height: 1;
}

.btn-card-action {
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.btn-card-action:hover {
  background: #b04832;
  transform: translateY(-1px);
}


/* ============================================================================
   13. EMPTY STATE
   ============================================================================ */

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-muted);
}

.empty-state h2 {
  font-family: var(--font-display);
  color: var(--color-ink);
  margin-bottom: 12px;
}


/* ============================================================================
   14. ERROR STATE
   ============================================================================ */

.error-state {
  text-align: center;
  padding: 60px 20px;
}

.error-state h2 {
  color: var(--color-error);
  margin-bottom: 12px;
}

.error-state p {
  color: var(--color-muted);
  margin-bottom: 20px;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover { background: #b04832; }


/* ============================================================================
   15. FOOTER
   ============================================================================ */

.catalog-footer {
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 40px 20px;
  margin-top: 60px;
}

.catalog-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.catalog-footer__contacts {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.catalog-footer__contacts a {
  color: var(--color-bg);
  text-decoration: none;
  font-size: 14px;
}

.catalog-footer__contacts a:hover {
  color: var(--color-accent-soft);
}

.catalog-footer__credit {
  display: block;
  margin-top: 24px;
  opacity: 0.7;
  font-size: 12px;
}


/* ============================================================================
   16. MODAL
   ============================================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
} 

.modal[hidden] {
  display: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s;
}

.modal__dialog {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s;
  -webkit-overflow-scrolling: touch; /* Smooth scroll iOS / Scroll suave iOS */
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 1;
}

/* Modal body layout: image on top (mobile) or left (desktop) */
/* Layout del modal: imagen arriba (mobile) o a la izquierda (desktop) */

.modal__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .modal__body {
    grid-template-columns: 1fr 1fr;
  }
}

.modal__hero {
  position: relative;
  background: var(--color-accent-soft);
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
}

/* Hero media area takes the available space / Área del medio toma el espacio */
.modal__hero > .modal__hero-media,
.modal__hero > .modal__hero-placeholder {
  aspect-ratio: 4 / 3;
  width: 100%;
}

/* Desktop: image on left side full height / Desktop: imagen a la izquierda */
@media (min-width: 768px) {
  .modal__hero {
    border-radius: 16px 0 0 16px;
    height: 100%;
  }

  .modal__hero > .modal__hero-media,
  .modal__hero > .modal__hero-placeholder {
    aspect-ratio: auto;
    flex: 1;
    min-height: 400px;
  }
}

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

.modal__hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  opacity: 0.4;
  background: linear-gradient(135deg, var(--color-accent-soft), var(--color-bg));
}

.modal__badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

/* Info column / Columna de información */
.modal__info {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-ink);
  line-height: 1.2;
  margin: 0;
  padding-right: 40px; /* Avoid X button overlap / Evitar superposición con X */
}

.modal__description {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
}

.modal__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.modal__meta-item {
  font-size: 14px;
  color: var(--color-muted);
}

.modal__meta-item.stock-ok {
  color: var(--color-success);
  font-weight: 600;
}

.modal__meta-item.stock-low {
  color: var(--color-error);
  font-weight: 600;
}

.modal__meta-item.stock-out {
  color: var(--color-error);
  font-weight: 700;
}

.modal__meta-item--accent {
  color: var(--color-accent);
  font-weight: 600;
}

/* Price row in modal / Fila de precio en modal */
.modal__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 4px;
}

.modal__prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal__price-current {
  font-size: 2rem !important;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

/* Action button (full-width, bottom of modal) */
/* Botón de acción (ancho completo, parte inferior del modal) */
.modal__action-btn {
  width: 100%;
  margin-top: auto;
  padding: 16px 24px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.modal__action-btn:hover {
  background: #b04832;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.modal__action-btn:active {
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ============================================================================
   17. MODAL GALLERY / Galería del modal
   ============================================================================
   Image gallery with thumbnails + video support.
   Galería de imágenes con thumbnails + soporte de video.
   ============================================================================ */

/* Hero media container — wraps the main image or video */
/* Contenedor del medio principal — envuelve la imagen o video */
.modal__hero-media {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

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

/* ============================================================================
   THUMBNAILS strip / Tira de miniaturas
   ============================================================================
   Horizontal scrollable strip below the hero on mobile,
   small overlay on desktop.
   Tira horizontal con scroll bajo el hero en mobile,
   pequeña superpuesta en desktop.
   ============================================================================ */

.modal__thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  overflow-x: auto;
  scrollbar-width: thin;
}

/* Hide scrollbar on Webkit / Ocultar scrollbar en Webkit */
.modal__thumbs::-webkit-scrollbar {
  height: 4px;
}

.modal__thumbs::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

/* On desktop, thumbs sit at bottom of hero / En desktop, abajo del hero */
/* On larger screens, thumbs sit below hero (not absolute) */
/* En pantallas grandes, los thumbs van debajo del hero (no absolute) */
@media (min-width: 768px) {
  .modal__thumbs {
    border-top: 1px solid var(--color-border);
  }
}

/* Individual thumbnail button / Botón de miniatura individual */
.modal__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: var(--color-bg);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__thumb:hover {
  border-color: var(--color-accent-soft);
  transform: translateY(-2px);
}

.modal__thumb.is-active {
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(200, 85, 61, 0.3);
}

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

/* Video thumbnail — special look with play icon */
/* Thumbnail de video — con ícono de play */
.modal__thumb--video {
  background: linear-gradient(135deg, var(--color-ink), var(--color-muted));
}

.modal__thumb-video-icon {
  color: white;
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* ============================================================================
   VIDEO PLAYER / Reproductor de video
   ============================================================================ */

.modal__video-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Custom sound toggle button (overlaid on video) */
/* Botón custom de sonido (superpuesto al video) */
.modal__video-sound-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid white;
  color: white;
  cursor: pointer;
  font-size: 1.3rem;
  z-index: 3;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  font-family: inherit;
}

.modal__video-sound-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

.modal__video-sound-btn:active {
  transform: scale(0.95);
}

/* skeleton loaders — solo el spinner se usa ahora */

/* Pulse animation when item added to cart */
/* Animación pulse cuando se agrega al carrito */
.icon-btn.pulse {
  animation: pulse 0.6s ease;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.2); }
  60% { transform: scale(0.95); }
}

/* +1 flotante al agregar al carrito — Fase 4 Sesión 7 */
.cart-plus-one {
  position: fixed;
  z-index: 300;
  font-weight: 800;
  font-size: 15px;
  color: #4a7c59;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  animation: cartPlusOne 0.8s ease-out forwards;
}

@keyframes cartPlusOne {
  0%   { opacity: 0; transform: translateY(6px) scale(0.8); }
  20%  { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-28px) scale(1); }
}

/* ============================================================================
   19. CART DRAWER / Drawer del carrito
   ============================================================================ */

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 250;
}

/* ============================================================================
   20. CHECKOUT MODAL / Modal de checkout
   ============================================================================ */

.modal__dialog--checkout {
  max-width: 520px;
}

.checkout {
  padding: 32px 28px 28px;
}

.checkout__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.checkout__subtitle {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.checkout__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout__field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
}

.checkout__field label small {
  font-weight: 400;
  color: var(--color-muted);
  margin-left: 4px;
}

.checkout__field input,
.checkout__field textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--color-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.checkout__field input:focus,
.checkout__field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(200, 85, 61, 0.15);
  background: white;
}

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

/* Radio row / Fila de radios */
.checkout__radio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkout__radio {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  transition: all 0.15s;
  font-size: 14px;
  font-weight: 500;
}

.checkout__radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout__radio:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 600;
}

/* Summary / Resumen */
.checkout__summary {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.checkout__summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--color-muted);
}

.checkout__summary-row--total {
  border-top: 1px solid var(--color-border);
  padding-top: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-ink);
}

.checkout__summary-row--total span:last-child {
  color: var(--color-accent);
}

/* Submit button */
.checkout__submit {
  background: #25d366;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  margin-top: 4px;
}

.checkout__submit:hover {
  background: #1da851;
  transform: translateY(-1px);
}

.checkout__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.checkout__back {
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
  font-family: inherit;
}

.checkout__back:hover {
  color: var(--color-accent);
}

/* Error / Error */
.checkout__error {
  background: #fee;
  color: #a63d2a;
  border: 1px solid #a63d2a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

/* ============================================================================
   CART DRAWER / Drawer del carrito
   ============================================================================ */

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 250;
}

.cart-drawer[hidden] {
  display: none !important;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: white;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.cart-drawer__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-ink);
  margin: 0;
}

.cart-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-ink);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-drawer__close:hover {
  background: var(--color-accent-soft);
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.cart-drawer__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.cart-drawer__empty[hidden] {
  display: none !important;
}

.cart-drawer__empty-icon {
  font-size: 4rem;
  opacity: 0.4;
  margin-bottom: 16px;
}

.cart-drawer__empty h3 {
  font-family: var(--font-display);
  color: var(--color-ink);
  margin-bottom: 8px;
}

.cart-drawer__empty p {
  color: var(--color-muted);
  margin-bottom: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  padding: 12px;
  background: var(--color-bg);
  border-radius: 12px;
  margin-bottom: 12px;
  align-items: start;
}

.cart-item__image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: var(--color-accent-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cart-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-item__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.cart-item__qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item__qty-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.cart-item__qty {
  font-size: 14px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.cart-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.cart-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-muted);
  padding: 4px;
  transition: color 0.15s;
}

.cart-item__remove:hover {
  color: var(--color-error);
}

.cart-item__subtotal {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
  white-space: nowrap;
}

.cart-drawer__footer {
  border-top: 1px solid var(--color-border);
  padding: 20px 24px 24px;
  background: white;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-drawer__footer[hidden] {
  display: none !important;
}

.cart-drawer__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer__total-label {
  font-size: 14px;
  color: var(--color-muted);
}

.cart-drawer__total-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
}

.cart-drawer__checkout {
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.cart-drawer__checkout:hover {
  background: #b04832;
  transform: translateY(-1px);
}

.cart-drawer__clear {
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
  font-family: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s;
}

.cart-drawer__clear:hover {
  text-decoration-color: var(--color-muted);
}

@media (max-width: 640px) {
  .cart-drawer__panel {
    max-width: 100%;
  }
}


/* ============================================================================
   CHECKOUT MODAL / Modal de checkout
   ============================================================================ */

.modal__dialog--checkout {
  max-width: 520px;
}

.checkout {
  padding: 32px 28px 28px;
}

.checkout__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.checkout__subtitle {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.checkout__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout__field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
}

.checkout__field label small {
  font-weight: 400;
  color: var(--color-muted);
  margin-left: 4px;
}

.checkout__field input,
.checkout__field textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--color-bg);
  width: 100%;
}

.checkout__field input:focus,
.checkout__field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(200, 85, 61, 0.15);
  background: white;
}

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

.checkout__radio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkout__radio {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  transition: all 0.15s;
  font-size: 14px;
  font-weight: 500;
}

.checkout__radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout__radio:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 600;
}

.checkout__summary {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.checkout__summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--color-muted);
}

.checkout__summary-row--total {
  border-top: 1px solid var(--color-border);
  padding-top: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-ink);
}

/* E6 — Coupon */
.checkout__summary-row--discount {
  color: #2e7d32;
  font-weight: 500;
}

.checkout__coupon-row {
  margin-bottom: 4px;
}

.checkout__coupon-input-row {
  display: flex;
  gap: 8px;
}

.checkout__coupon-input-row input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  color: var(--color-ink);
  letter-spacing: 0.05em;
}

.checkout__coupon-input-row input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(200,85,61,0.12);
}

.checkout__coupon-input-row button {
  padding: 9px 16px;
  background: var(--color-ink, #1a1814);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.checkout__coupon-input-row button:hover { opacity: 0.85; }
.checkout__coupon-input-row button:disabled { opacity: 0.5; cursor: not-allowed; }

.checkout__coupon-msg {
  margin-top: 6px;
  font-size: 13px;
  padding: 5px 8px;
  border-radius: 6px;
}

.checkout__coupon-msg--ok { background: #e8f5e9; color: #2e7d32; }
.checkout__coupon-msg--error { background: #fee; color: #a63d2a; }

.checkout__submit {
  background: #25d366;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  margin-top: 4px;
}

.checkout__submit:hover {
  background: #1da851;
}

.checkout__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.checkout__back {
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
  font-family: inherit;
}

.checkout__error {
  background: #fee;
  color: #a63d2a;
  border: 1px solid #a63d2a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

/* ============================================================================
   SUCCESS MODAL / Modal de éxito
   ============================================================================ */

.modal__dialog--success {
  max-width: 440px;
  text-align: center;
}

.success {
  padding: 40px 28px 32px;
}

.success__icon {
  font-size: 4rem;
  margin-bottom: 12px;
  animation: successPop 0.4s ease;
}

@keyframes successPop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.success__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.success__subtitle {
  color: var(--color-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.success__order-info {
  background: var(--color-accent-soft);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.success__order-number {
  font-size: 14px;
  color: var(--color-ink);
}

.success__order-number strong {
  font-size: 1.2rem;
  color: var(--color-accent);
}

.success__order-amount {
  font-size: 14px;
  color: var(--color-ink);
}

.success__order-amount strong {
  color: var(--color-accent);
}

.success__message {
  background: #e8f5e9;
  border: 1px solid #81c784;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #2e7d32;
  text-align: left;
}

.success__message p {
  margin: 0;
}

.success__message p + p {
  margin-top: 6px;
}

.success__hint {
  font-size: 12px;
  opacity: 0.85;
}

.success__back-btn {
  width: 100%;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

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

/* ============================================================================
   21. VIDEO MULTI-FORMATO / Video multi-format (F-005)
   ============================================================================
   Supports MP4 + YouTube + Vimeo with click-to-enlarge behavior.
   Soporta MP4 + YouTube + Vimeo con comportamiento click-para-agrandar.
   ============================================================================ */

/* Wrap base — common to all video types */
/* Wrap base — común a todos los tipos de video */
.modal__video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center center;
}

/* Enlarged state — applies to all video types */
/* Estado agrandado — aplica a todos los tipos de video */
.modal__video-wrap.is-enlarged {
  transform: scale(1.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  z-index: 10;
  border-radius: 8px;
}

/* Embed wrap (YouTube/Vimeo) — needs aspect ratio */
/* Wrap embed (YouTube/Vimeo) — necesita aspect ratio */
.modal__video-wrap--embed {
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

/* Iframe video — fills the wrap completely */
/* Video iframe — llena el wrap completo */
.modal__video--embed {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* When enlarged, embed expands a bit more */
/* Cuando se agranda, el embed se expande un poco más */
.modal__video-wrap--embed.is-enlarged {
  transform: scale(1.1);
}

/* ============================================================================
   22. VIDEO IMPROVEMENTS / Mejoras del video (F-005 polish)
   ============================================================================ */

/* Click zone overlay — invisible layer over iframe to capture clicks */
/* Overlay click zone — capa invisible sobre iframe para capturar clicks */
.modal__video-click-zone {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* Cover top portion only, leave bottom for native player controls */
  /* Cubre solo la parte superior, deja abajo para controles nativos */
  height: 70%;
  background: transparent;
  cursor: pointer;
  z-index: 5;
}

/* YouTube/Vimeo thumbnail with play overlay */
/* Thumbnail YouTube/Vimeo con overlay de play */
.modal__thumb--video {
  background: #000;
  position: relative;
  overflow: hidden;
}

.modal__thumb--video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.modal__thumb--video:hover img {
  opacity: 1;
}

/* Play overlay over the thumbnail image */
/* Overlay de play sobre la imagen del thumbnail */
.modal__thumb-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px; /* Optical centering of ▶ / Centrado óptico del ▶ */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.2s;
}

.modal__thumb--video:hover .modal__thumb-play-overlay {
  background: var(--color-accent);
  transform: translate(-50%, -50%) scale(1.1);
}

/* ============================================================================
   BOOKING MODAL (Phase 4 Session 5)
   Modal de reserva para servicios bookables
   ============================================================================ */

/* Badge RESERVABLE en cards de servicio */
.badge-bookable {
  background: #4a7c59;
  color: white;
  font-weight: 700;
}

/* Booking action button on cards / Botón "Reservar" en cards */
.btn-card-action--book {
  background: #4a7c59;
  color: white;
}

.btn-card-action--book:hover {
  background: #3a6347;
}

/* ============================================================================
   MODAL DIALOG SIZE
   ============================================================================ */

.modal__dialog--booking {
  max-width: 640px;
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

/* ============================================================================
   HEADER
   ============================================================================ */

.booking__header {
  padding: 28px 28px 16px;
  border-bottom: 1px solid var(--color-border);
}

.booking__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-ink);
  margin: 0 0 4px;
}

.booking__service-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-accent);
}

.booking__service-meta {
  font-size: 14px;
  color: var(--color-muted);
  margin-top: 2px;
}

.booking__sep {
  margin: 0 6px;
  opacity: 0.5;
}

/* ============================================================================
   STEPS INDICATOR (1 — 2 — 3 — 4)
   ============================================================================ */

.booking__steps {
  display: flex;
  align-items: center;
  padding: 16px 28px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  gap: 0;
}

.booking__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.booking__step.is-active,
.booking__step.is-complete {
  opacity: 1;
}

.booking__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
}

.booking__step.is-active .booking__step-num {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 0 0 4px rgba(200, 85, 61, 0.15);
}

.booking__step.is-complete .booking__step-num {
  background: #4a7c59;
  color: white;
}

.booking__step.is-complete .booking__step-num::before {
  content: '✓';
  font-size: 14px;
}

.booking__step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-ink);
  text-align: center;
}

.booking__step-sep {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  margin: 0 8px;
  position: relative;
  top: -12px;
}

/* ============================================================================
   STEP PANELS
   ============================================================================ */

.booking__step-panel {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
  min-height: 280px;
}

.booking__step-panel[hidden] {
  display: none !important;
}

.booking__step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-ink);
  margin: 0 0 16px;
}

/* ============================================================================
   STEP 1: Employee selection
   ============================================================================ */

.booking__loading,
.booking__empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--color-muted);
}

.booking__empty p {
  margin: 6px 0;
}

.booking__hint {
  font-size: 13px;
  color: var(--color-muted);
}

.booking__employees {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.booking-employee-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: white;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  position: relative;
}

.booking-employee-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.booking-employee-card.is-selected {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.booking-employee-card.is-selected::after {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.booking-employee-card__photo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}

.booking-employee-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.booking-employee-card__placeholder {
  font-size: 24px;
  opacity: 0.6;
}

.booking-employee-card__body {
  flex: 1;
  min-width: 0;
}

.booking-employee-card__name {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-ink);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-employee-card__role {
  font-size: 12px;
  color: var(--color-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
}

/* ============================================================================
   PLACEHOLDER PANELS (steps 2, 3, 4)
   ============================================================================ */

.booking__placeholder {
  text-align: center;
  padding: 40px 20px;
  background: var(--color-bg);
  border: 2px dashed var(--color-border);
  border-radius: 12px;
}

.booking__placeholder-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

.booking__placeholder p {
  margin: 6px 0;
  color: var(--color-ink);
}

/* ============================================================================
   ACTIONS
   ============================================================================ */

.booking__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 4px;
  margin-top: 20px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.booking__btn {
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border: none;
  transition: all 0.15s ease;
}

.booking__btn--primary {
  background: var(--color-accent);
  color: white;
}

.booking__btn--primary:hover:not(:disabled) {
  background: #b04832;
  transform: translateY(-1px);
}

.booking__btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.booking__btn--secondary {
  background: transparent;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

.booking__btn--secondary:hover {
  background: var(--color-bg);
  color: var(--color-ink);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 600px) {
  .modal__dialog--booking {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .booking__header,
  .booking__step-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .booking__steps {
    padding: 12px 18px;
  }

  .booking__step-label {
    font-size: 10px;
  }

  .booking__employees {
    grid-template-columns: 1fr;
  }

  .booking__actions {
    flex-direction: column-reverse;
  }

  .booking__btn {
    width: 100%;
  }

}

/* ============================================================
   BOOKING CALENDAR (Phase 4 Session 5)
   ============================================================ */
.booking-calendar { margin: 0 0 20px 0; }
.booking-calendar__nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.booking-calendar__nav-btn {
  background: white; border: 1px solid #e8e3d8; border-radius: 8px;
  width: 36px; height: 36px; font-size: 20px; cursor: pointer;
  color: #1a1814; transition: all 0.15s;
}
.booking-calendar__nav-btn:hover:not(:disabled) { border-color: #c8553d; color: #c8553d; }
.booking-calendar__nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.booking-calendar__title {
  font-size: 1.1rem; font-weight: 600; color: #1a1814; text-transform: capitalize;
}
.booking-calendar__weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  margin-bottom: 6px; font-size: 12px; font-weight: 600;
  color: #6b665e; text-align: center;
}
.booking-calendar__grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; min-height: 240px;
}
.booking-calendar__loading {
  grid-column: 1 / -1; display: flex; align-items: center;
  justify-content: center; padding: 40px; color: #6b665e; font-size: 14px;
}
.booking-calendar__cell {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 14px; font-weight: 500;
  user-select: none; transition: all 0.15s;
}
.booking-calendar__cell--empty { background: transparent; }
.booking-calendar__cell--past,
.booking-calendar__cell--unavailable {
  background: #f5f2ec; color: #b8b3a8; cursor: not-allowed;
}
.booking-calendar__cell--available {
  background: white; border: 1px solid #d4e4d4; color: #2e7d32; cursor: pointer;
}
.booking-calendar__cell--available:hover { background: #e8f5e9; border-color: #2e7d32; }
.booking-calendar__cell--today { font-weight: 700; outline: 2px solid #c8553d; outline-offset: -2px; }
.booking-calendar__cell--selected {
  background: #c8553d !important; color: white !important;
  border-color: #c8553d !important; font-weight: 700;
}
.booking-calendar__legend {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 14px; font-size: 12px; color: #6b665e;
}
.booking-calendar__legend-item { display: inline-flex; align-items: center; gap: 6px; }
.booking-calendar__legend-item .dot {
  display: inline-block; width: 12px; height: 12px; border-radius: 3px;
}
.dot--available { background: white; border: 1px solid #d4e4d4; }
.dot--unavailable { background: #f5f2ec; }
.dot--selected { background: #c8553d; }
.booking-calendar__selected {
  margin-top: 14px; padding: 10px 14px;
  background: #faf7f2; border: 1px solid #e8e3d8;
  border-radius: 8px; font-size: 14px; color: #1a1814;
}

/* ============================================================
   TIME SLOTS PICKER (Phase 4 Session 5)
   ============================================================ */
.booking-times__header {
  margin-bottom: 12px; padding: 10px 14px;
  background: #faf7f2; border: 1px solid #e8e3d8;
  border-radius: 8px; font-size: 14px;
}
.booking-times__date-label { color: #6b665e; margin-right: 6px; }
.booking-times__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px; margin-bottom: 14px; max-height: 320px; overflow-y: auto;
}
.booking-times__empty {
  grid-column: 1 / -1; padding: 24px; text-align: center;
  color: #6b665e; font-size: 14px;
}
.booking-times__slot {
  background: white; border: 1px solid #e8e3d8; border-radius: 8px;
  padding: 10px 6px; font-size: 14px; font-weight: 500; color: #1a1814;
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.booking-times__slot:hover { border-color: #c8553d; color: #c8553d; }
.booking-times__slot.is-selected {
  background: #c8553d; color: white; border-color: #c8553d; font-weight: 700;
}
.booking-times__selected {
  margin-bottom: 14px; padding: 10px 14px;
  background: #faf7f2; border: 1px solid #e8e3d8;
  border-radius: 8px; font-size: 14px; color: #1a1814;
}

/* ============================================================
   BOOKING INFO FORM (Phase 4 Session 6 Block 2)
   ============================================================ */
.booking-summary {
  background: #faf7f2; border: 1px solid #e8e3d8;
  border-radius: 10px; padding: 12px 14px; margin-bottom: 16px;
}
.booking-summary__row {
  display: flex; justify-content: space-between;
  padding: 4px 0; font-size: 14px; color: #1a1814;
}
.booking-summary__row span { color: #6b665e; }
.booking-summary__row strong { text-align: right; }
.booking-summary__row--deposit strong { color: #c8553d; }

.booking-form__field { margin-bottom: 12px; }
.booking-form__field label {
  display: block; font-size: 13px; font-weight: 600;
  color: #1a1814; margin-bottom: 4px;
}
.booking-form__field .req { color: #c8553d; }
.booking-form__field input,
.booking-form__field textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid #e8e3d8; border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #faf7f2;
  box-sizing: border-box;
}
.booking-form__field input:focus,
.booking-form__field textarea:focus {
  outline: none; border-color: #c8553d; background: white;
}
.booking-form__field textarea { resize: vertical; min-height: 60px; }
.booking-form__hint {
  display: block; font-size: 12px; color: #6b665e; margin-top: 4px;
}

/* ============================================================
   BOOKING SUCCESS (Phase 4 Session 6 Block 3)
   ============================================================ */
.booking-success { text-align: center; padding: 8px 0; }
.booking-success__icon { font-size: 56px; margin-bottom: 8px; }
.booking-success__title {
  font-size: 1.4rem; font-weight: 700;
  color: #2e7d32; margin: 0 0 6px;
}
.booking-success__subtitle {
  color: #6b665e; font-size: 14px; margin: 0 0 16px;
}
.booking-success__number {
  background: #faf7f2; border: 2px dashed #c8553d;
  border-radius: 12px; padding: 14px; margin-bottom: 18px;
}
.booking-success__number span {
  display: block; font-size: 12px; color: #6b665e; margin-bottom: 4px;
}
.booking-success__number strong {
  display: block; font-size: 1.8rem; font-weight: 700;
  color: #c8553d; letter-spacing: 0.5px;
}
.booking-success__details {
  background: #faf7f2; border: 1px solid #e8e3d8;
  border-radius: 10px; padding: 12px 14px;
  margin-bottom: 16px; text-align: left;
}
.booking-success__row {
  display: flex; justify-content: space-between;
  padding: 4px 0; font-size: 14px; color: #1a1814;
}
.booking-success__row span { color: #6b665e; }
.booking-success__row strong { text-align: right; }
.booking-success__deposit-notice {
  background: #fff8e1; border: 1px solid #ffe082;
  border-radius: 10px; padding: 12px 14px; margin-bottom: 16px;
  font-size: 13px; color: #6d4c00; line-height: 1.4;
}
.booking-success__wa-btn {
  display: block; width: 100%;
  background: #25D366; color: white;
  padding: 14px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  margin-bottom: 10px; box-sizing: border-box;
  transition: background 0.15s;
}
.booking-success__wa-btn:hover { background: #1faa55; }
.booking-success__close-btn { width: 100%; }

/* ============================================================
   FIX — calendario de reserva en mobile [E4.S7 · rev E4.S8]
   ============================================================ */
@media (max-width: 600px) {
  .booking-calendar__nav {
    display: flex; align-items: center;
    justify-content: space-between; gap: 8px;
  }
  .booking-calendar__title {
    flex: 1; text-align: center; text-transform: capitalize;
  }
  .booking-calendar__weekdays,
  .booking-calendar__grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
  }
  .booking-calendar__weekdays {
    margin-bottom: 6px; font-size: 11px; font-weight: 600;
    color: #6b665e; text-align: center;
  }
  .booking-calendar__grid {
    min-height: 200px;
    grid-auto-rows: minmax(44px, auto);   /* alto real de fila — fix colapso iOS */
  }
  .booking-calendar__loading {
    grid-column: 1 / -1; display: flex; align-items: center;
    justify-content: center; padding: 32px 8px; text-align: center;
  }
  .booking-calendar__cell {
    aspect-ratio: auto;                   /* sin ratio circular que colapsa en iOS */
    display: flex; align-items: center;
    justify-content: center; border-radius: 8px;
    font-size: 13px; font-weight: 500;
  }
  
  .booking-calendar__legend {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: 12px; font-size: 11px;
  }

  .booking-calendar__weekdays,
  .booking-calendar__grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
  }
  .booking-calendar__weekdays {
    margin-bottom: 6px; font-size: 11px; font-weight: 600;
    color: #6b665e; text-align: center;
  }
  .booking-calendar__grid { min-height: 200px; }
  .booking-calendar__loading {
    grid-column: 1 / -1; display: flex; align-items: center;
    justify-content: center; padding: 32px 8px; text-align: center;
  }
  .booking-calendar__cell {
    aspect-ratio: 1 / 1; display: flex; align-items: center;
    justify-content: center; border-radius: 8px;
    font-size: 13px; font-weight: 500;
  }
  .booking-calendar__legend {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: 12px; font-size: 11px;
  }
}


/* ============================================================================
   E12b — CATALOG CONTROLS (category filters + sort)
   ============================================================================ */

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

/* Category filter pills */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.filter-pill {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.filter-pill:hover {
  background: var(--color-accent-soft, rgba(0,0,0,0.06));
}

.filter-pill--active {
  background: var(--color-accent);
  color: #fff;
}

/* Sort select */
.catalog-sort select {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--color-muted, #ccc);
  background: var(--color-surface, #fff);
  color: var(--color-ink);
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
}

.catalog-sort select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}


/* Sub-category pills (depth indentation) */
.filter-pill--child {
  font-size: 0.78rem;
  padding: 4px 12px;
  opacity: 0.85;
}

.filter-pill--depth-1 { margin-left: 12px; }
.filter-pill--depth-2 { margin-left: 24px; }
.filter-pill--depth-3 { margin-left: 36px; }

.filter-pill--child.filter-pill--active { opacity: 1; }


/* ============================================================================
   E12b — FEATURED SECTION
   ============================================================================ */

.catalog-section--featured {
  background: var(--color-accent-soft, rgba(0,0,0,0.03));
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 48px;
}

.section-title--featured {
  color: var(--color-ink);
}

/* Horizontal scroll grid for featured row */
.cards-grid--scroll {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 20px !important;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-muted, #ccc) transparent;
}

.cards-grid--scroll .product-card {
  flex: 0 0 240px;
  min-width: 200px;
  max-width: 280px;
}

/* ============================================================================
   E12c — BUSINESS HOURS SECTION
   ============================================================================ */

.catalog-hours {
  max-width: 560px;
  margin: 0 auto 60px;
  padding: 0 16px;
}

.catalog-hours__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--color-accent);
  margin-bottom: 20px;
}

.catalog-hours__grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-muted, #e5e7eb);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--color-surface, #fff);
  font-size: 0.92rem;
  transition: background 0.12s;
}

.hours-row:nth-child(even) {
  background: var(--color-bg, #fafafa);
}

.hours-row--today {
  background: var(--color-accent-soft, rgba(79,70,229,0.06));
  font-weight: 600;
}

.hours-row--closed .hours-row__hours {
  color: var(--color-muted, #aaa);
  font-style: italic;
}

.hours-row__day {
  color: var(--color-ink);
  min-width: 100px;
}

.hours-row__day em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--color-accent);
  margin-left: 4px;
}

.hours-row__hours {
  color: var(--color-ink);
  text-align: right;
  font-size: 0.88rem;
}


/* ============================================================================
   E12d — REVIEWS SECTION (catálogo público)
   ============================================================================ */

.catalog-reviews {
  padding: 0 16px;
  margin-bottom: 60px;
}

.catalog-reviews__inner {
  max-width: 680px;
  margin: 0 auto;
}

.catalog-reviews__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--color-accent);
  margin-bottom: 24px;
}

/* Summary bar */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 18px;
  background: var(--color-accent-soft, rgba(0,0,0,0.03));
  border-radius: 10px;
}

.reviews-summary__avg {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.reviews-summary__stars { color: #f59e0b; font-size: 1.2rem; letter-spacing: 2px; }
.reviews-summary__count { color: var(--color-muted); font-size: 0.88rem; }

/* Individual review */
.review-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-muted, #e5e7eb);
}

.review-item:last-child { border-bottom: none; }

.review-item__header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.review-item__stars  { color: #f59e0b; font-size: 0.95rem; letter-spacing: 1px; }
.review-item__name   { font-weight: 600; font-size: 0.9rem; color: var(--color-ink); }
.review-item__date   { font-size: 0.78rem; color: var(--color-muted); margin-left: auto; }

.review-item__comment {
  font-size: 0.9rem;
  color: var(--color-ink);
  line-height: 1.5;
  margin: 0;
}

.reviews-no-reviews {
  color: var(--color-muted);
  font-style: italic;
  margin-bottom: 24px;
}

/* Submit form */
.catalog-reviews__form-wrap {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1.5px solid var(--color-muted, #e5e7eb);
}

.catalog-reviews__form-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-ink);
  margin-bottom: 16px;
}

.review-form__stars {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-muted, #d1d5db);
  padding: 0;
  transition: color 0.1s, transform 0.1s;
  line-height: 1;
}

.star-btn:hover,
.star-btn--active { color: #f59e0b; }

.star-btn:hover { transform: scale(1.15); }

.review-form__row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.review-form__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 200px;
  margin-bottom: 12px;
}

.review-form__field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-muted);
}

.review-form__field input,
.review-form__field textarea {
  padding: 10px 12px;
  border: 1.5px solid var(--color-muted, #d1d5db);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--color-surface, #fff);
  color: var(--color-ink);
  transition: border-color 0.15s;
}

.review-form__field input:focus,
.review-form__field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.review-form__msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.review-form__msg--error   { background: #fee2e2; color: #991b1b; }
.review-form__msg--success { background: #d1fae5; color: #065f46; }

.review-form__btn { margin-top: 4px; }

/* Star display (approved reviews) */
.star { color: var(--color-muted, #d1d5db); }
.star--filled { color: #f59e0b; }


/* ============================================================================
   E14 — MERCADOPAGO PAYMENT BUTTON (success modal)
   ============================================================================ */

.success__mp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #009ee3;
  color: #fff;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  margin: 16px 0 8px;
  transition: background 0.15s, transform 0.1s;
}

.success__mp-btn:hover,
.success__mp-btn--ready:hover {
  background: #0082c0;
  transform: translateY(-1px);
}

.success__mp-logo {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
}

.success__mp-hint {
  font-size: 0.78rem;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 12px;
}

.success__mp-loading {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.88rem;
  padding: 8px;
}

.success__mp-error {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.82rem;
  margin-bottom: 8px;
}


/* ── E16: Loyalty widget in checkout ─── */
.checkout__loyalty-row {
  margin-bottom: 0;
}

.checkout__loyalty-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.checkout__loyalty-use {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #92400e;
  cursor: pointer;
  white-space: nowrap;
}

#loyalty-points-info {
  font-size: 0.88rem;
  color: #78350f;
}

/* ============================================================
   F-007 BLOCK B — MEMBRESÍAS EN CATÁLOGO
   ============================================================ */

.catalog-memberships {
  padding: 32px 16px;
  background: #f9f7f4;
  border-top: 1px solid #e8e3d8;
}

.catalog-memberships__inner {
  max-width: 900px;
  margin: 0 auto;
}

.catalog-memberships__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1814;
  margin: 0 0 6px;
}

.catalog-memberships__subtitle {
  color: #6b665e;
  font-size: 0.95rem;
  margin: 0 0 24px;
}

.memberships-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.membership-card {
  background: #fff;
  border: 1px solid #e8e3d8;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.membership-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.membership-card__name {
  font-weight: 800;
  font-size: 1.05rem;
  color: #1a1814;
}

.membership-card__price {
  font-weight: 800;
  font-size: 1.15rem;
  color: #009ee3;
  white-space: nowrap;
}

.membership-card__cycle {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 400;
}

.membership-card__desc {
  font-size: 0.88rem;
  color: #6b665e;
  margin: 0;
}

.membership-card__included {
  font-size: 0.88rem;
  color: #374151;
  font-weight: 600;
}

.membership-card__btn {
  margin-top: auto;
  width: 100%;
  padding: 10px;
  font-size: 0.9rem;
  border-radius: 10px;
  background: #1a1814;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: opacity .15s;
}

.membership-card__btn:hover { opacity: .85; }

/* Modal de suscripción */
.membership-modal-box {
  max-width: 440px;
  width: 94vw;
}

.membership-modal__header {
  margin-bottom: 6px;
}

.membership-modal__plan-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a1814;
  margin: 0 0 4px;
}

.membership-modal__plan-price {
  font-weight: 700;
  color: #009ee3;
  font-size: 1rem;
}

.membership-modal__plan-desc {
  font-size: 0.9rem;
  color: #6b665e;
  margin: 0 0 16px;
}

.membership-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.membership-form__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.membership-form__label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.membership-form__input {
  padding: 9px 12px;
  border: 1px solid #e8e3d8;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}

.membership-form__input:focus { border-color: #009ee3; }

.membership-form__error {
  color: #dc2626;
  font-size: 13px;
  padding: 6px 10px;
  background: #fee2e2;
  border-radius: 6px;
}

.membership-form__submit {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.membership-success {
  text-align: center;
  padding: 16px 0;
}

.membership-success__icon { font-size: 2.5rem; margin-bottom: 8px; }
.membership-success h4 { font-size: 1.1rem; margin: 0 0 8px; }
.membership-success p { font-size: 0.9rem; color: #6b665e; }

/* Banner de membresía en booking flow */
.membership-booking-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eff8ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.membership-booking-banner__icon { font-size: 1.3rem; }

.membership-booking-banner__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.membership-booking-banner__info strong {
  font-size: 14px;
  color: #0369a1;
}

.membership-booking-banner__info span {
  font-size: 12px;
  color: #0284c7;
}

.membership-booking-banner__check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0369a1;
  cursor: pointer;
  white-space: nowrap;
}

/* ============================================================================
   E19 — PORTAL MIS PEDIDOS
   ============================================================================ */

.mis-pedidos-box {
  max-width: 520px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px 24px;
}

.mis-pedidos__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1814;
  margin: 0 0 18px;
}

.mis-pedidos__hint {
  font-size: 14px;
  color: #666;
  margin: 0 0 14px;
}

.mis-pedidos__field {
  margin-bottom: 12px;
}

.mis-pedidos__input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e8e3d8;
  border-radius: 8px;
  font-size: 15px;
  color: #1a1814;
  background: #fafaf8;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}

.mis-pedidos__input:focus {
  border-color: #c8553d;
}

.mis-pedidos__btn {
  width: 100%;
  margin-top: 4px;
}

.mis-pedidos__error {
  color: #c8553d;
  font-size: 13px;
  margin-bottom: 10px;
}

.mis-pedidos__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mis-pedidos__empty {
  text-align: center;
  padding: 28px 16px;
  color: #666;
}

.mis-pedidos__empty-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

/* Tarjeta de pedido */
.mp-card {
  border: 1.5px solid #e8e3d8;
  border-radius: 12px;
  background: #fafaf8;
  overflow: hidden;
}

.mp-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 8px;
  background: #fff;
  border-bottom: 1px solid #f0e8da;
}

.mp-card__num {
  font-weight: 700;
  font-size: 15px;
  color: #c8553d;
}

.mp-card__date {
  font-size: 12px;
  color: #888;
}

.mp-card__meta {
  display: flex;
  gap: 10px;
  padding: 8px 16px;
  font-size: 12px;
  color: #555;
  border-bottom: 1px solid #f0e8da;
}

.mp-card__status {
  font-weight: 600;
}

.mp-card__items {
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid #f0e8da;
}

.mp-card__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #333;
}

.mp-card__item-name {
  flex: 1;
}

.mp-card__item-qty {
  color: #888;
  font-size: 12px;
  min-width: 24px;
  text-align: right;
}

.mp-card__item-price {
  font-weight: 600;
  min-width: 60px;
  text-align: right;
}

.mp-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
}

.mp-card__total {
  font-size: 16px;
  color: #1a1814;
}

.mp-card__pay-status {
  font-size: 12px;
  font-weight: 600;
}

.mp-card__notes {
  padding: 8px 16px;
  font-size: 12px;
  color: #777;
  border-top: 1px solid #f0e8da;
  background: #fff8e1;
}

/* ── E25: Variantes en modal del producto ─────────────────────────────── */
.modal__variants {
  margin: 12px 0;
}
.modal__variants-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}
.variant-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 6px 6px 0;
  padding: 6px 12px;
  border: 2px solid #e8e3d8;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.variant-option:has(input:checked) {
  border-color: var(--color-accent, #009ee3);
  background: color-mix(in srgb, var(--color-accent, #009ee3) 10%, #fff);
  font-weight: 600;
}
.variant-option input { display: none; }

/* ── E27: Zona de envío en checkout ───────────────────────────────────── */
.checkout__zone-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.checkout__zone-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 2px solid #e8e3d8;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  background: #fff;
  transition: border-color .15s;
}
.checkout__zone-option:has(input:checked) {
  border-color: var(--color-accent, #009ee3);
  background: color-mix(in srgb, var(--color-accent, #009ee3) 8%, #fff);
}
.checkout__zone-option input { display: none; }
.checkout__zone-cost {
  margin-left: auto;
  font-weight: 700;
  color: #1a1814;
}
.checkout__zone-option small {
  color: #888;
  font-size: 11px;
}

/* ============================================================
   E18 — CARD STYLES
   ============================================================ */
:root { --card-scale: 1; }

.cards-size-sm .product-card { zoom: 0.9; }
.cards-size-lg .product-card { zoom: 1.1; }
/* El carrusel maneja su propio tamaño; excluirlo del zoom global */
.cards-size-sm .carousel-grid .product-card,
.cards-size-lg .carousel-grid .product-card { zoom: 1; }

/* Minimal */
.cards-style-minimal .product-card { box-shadow: none; border: 1px solid var(--color-accent-soft, #f4e4df); border-radius: 8px; }
.cards-style-minimal .card-image { height: 120px; }

/* Magazine */
.cards-style-magazine .product-card { border-radius: 14px; overflow: hidden; position: relative; }
.cards-style-magazine .card-image { height: 180px; }
.cards-style-magazine .card-body { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%); color: #fff; padding: 12px; border-radius: 0 0 14px 14px; }
.cards-style-magazine .card-title { color: #fff; }
.cards-style-magazine .card-price-row { flex-direction: column; gap: 2px; }
.cards-style-magazine .card-price { color: #ffe; font-size: 15px; font-weight: 700; }

/* Pill */
.cards-style-pill .cards-grid { gap: 8px; }
.cards-style-pill .product-card { border-radius: 40px; padding: 10px 16px; display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: unset; }
.cards-style-pill .card-image { width: 44px; height: 44px; min-height: unset; border-radius: 50%; flex-shrink: 0; }
.cards-style-pill .card-body { flex: 1; padding: 0; }
.cards-style-pill .card-title { font-size: 13px; }
.cards-style-pill .card-desc { display: none; }
.cards-style-pill .card-price-row { flex-direction: row; align-items: center; }
.cards-style-pill .card-quick-add { position: static; opacity: 1; width: 28px; height: 28px; font-size: 16px; }

/* ============================================================
   E18 — CAROUSEL
   ============================================================ */

/* Sección contenedora — overflow-x hidden corta el desborde lateral
   sin bloquear el scroll interno del .carousel-grid */
.carousel-section {
  padding: 24px 0 8px;
  overflow-x: clip;
}
.carousel-section__title {
  margin-bottom: 16px;
}

/* Grid del carrusel */
.carousel-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 16px;
  padding-bottom: 8px;
}
.carousel-grid::-webkit-scrollbar { display: none; }

/* Reset de estilos de página que filtran hacia el carrusel */
.carousel-grid .product-card {
  flex-direction: column;
  padding: unset;
  border-radius: 16px;
  min-height: unset;
}
.carousel-grid .card-image {
  aspect-ratio: 4/3;
  height: auto;
  width: 100%;
  min-height: unset;
  border-radius: 0;
}
.carousel-grid .card-body {
  position: static;
  background: transparent;
  color: inherit;
  padding: 12px;
}
.carousel-grid .card-quick-add {
  position: absolute;
  opacity: 0;
}

/* Tamaño y snap de cards */
.carousel-grid .product-card {
  flex: 0 0 calc(100% / var(--carousel-visible, 3) - 12px);
  scroll-snap-align: start;
  min-width: 180px;
  max-width: none;
}

/* Tamaños — zoom afecta el layout real, sin overlap */
.carousel-size-sm .product-card { zoom: 0.9; }
.carousel-size-lg .product-card { zoom: 1.1; }

/* Estilos de card (independent del estilo de la página) */
.carousel-style-minimal .product-card {
  box-shadow: none;
  border: 1px solid var(--color-accent-soft, #f4e4df);
  border-radius: 8px;
}
.carousel-style-minimal .card-image { height: 120px; }

.carousel-style-magazine .product-card {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.carousel-style-magazine .card-image { height: 180px; }
.carousel-style-magazine .card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  color: #fff;
  padding: 12px;
  border-radius: 0 0 14px 14px;
}

.carousel-style-pill .product-card {
  border-radius: 40px;
  padding: 10px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: unset;
}
.carousel-style-pill .card-image {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}
.carousel-style-pill .card-title { font-size: 13px; }
.carousel-style-pill .card-desc { display: none; }

/* Clase legacy: .carousel-active en .cards-grid--scroll (sección destacados) */
.carousel-active {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 16px !important;
  grid-template-columns: unset !important;
}
.carousel-active::-webkit-scrollbar { display: none; }
.carousel-active .product-card {
  flex: 0 0 calc(100% / var(--carousel-visible, 3) - 12px) !important;
  scroll-snap-align: start;
  min-width: 180px;
  max-width: none;
}

/* ============================================================
   E18 — VIDEO BANNER
   ============================================================ */
.video-banner-wrap {
  width: 100%;
  overflow: hidden;
  background: #000;
  height: min(56vw, 480px);
}
.video-banner-wrap[hidden] { display: none !important; }
.video-banner-wrap.video-banner--expanding {
  animation: videoBannerExpand 1.4s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes videoBannerExpand {
  from { height: 0; opacity: .3; }
  to   { height: min(56vw, 480px); opacity: 1; }
}
.video-banner-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-banner-iframe,
.video-banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}

/* ============================================================
   E18 — MÚSICA (botón fixed)
   ============================================================ */
.music-toggle-btn[hidden] { display: none !important; }
.music-toggle-btn {
  position: fixed;
  z-index: 900;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-accent-soft, #f4e4df);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, box-shadow .15s;
  top: 14px;
  right: 14px;
}
.music-toggle-btn[data-pos="top-right"]    { top: 14px;    right: 14px;  bottom: auto; left: auto; }
.music-toggle-btn[data-pos="top-left"]     { top: 14px;    left: 14px;   bottom: auto; right: auto; }
.music-toggle-btn[data-pos="bottom-right"] { bottom: 20px; right: 14px;  top: auto;    left: auto; }
.music-toggle-btn[data-pos="bottom-left"]  { bottom: 20px; left: 14px;   top: auto;    right: auto; }
@supports (padding: env(safe-area-inset-top)) {
  .music-toggle-btn[data-pos="top-right"]    { top: calc(env(safe-area-inset-top) + 14px);    right: calc(env(safe-area-inset-right) + 14px); }
  .music-toggle-btn[data-pos="top-left"]     { top: calc(env(safe-area-inset-top) + 14px);    left: calc(env(safe-area-inset-left) + 14px); }
  .music-toggle-btn[data-pos="bottom-right"] { bottom: calc(env(safe-area-inset-bottom) + 20px); right: calc(env(safe-area-inset-right) + 14px); }
  .music-toggle-btn[data-pos="bottom-left"]  { bottom: calc(env(safe-area-inset-bottom) + 20px); left: calc(env(safe-area-inset-left) + 14px); }
}
.music-toggle-btn:active { transform: scale(0.93); }
@media (hover: hover) {
  .music-toggle-btn:hover { transform: scale(1.1); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
}

/* ============================================================
   E18 — CATALOG LAYOUT + NOTICES PANEL
   ============================================================ */
.catalog-layout { display: block; }

.catalog-layout--with-notices {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.catalog-layout--notices-right { flex-direction: row-reverse; }
.catalog-layout--notices-left  { flex-direction: row; }
.catalog-layout--with-notices .catalog-main { flex: 1; min-width: 0; }

.notices-panel {
  width: 240px;
  flex-shrink: 0;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-accent-soft, #f4e4df);
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0;
  position: sticky;
  top: 80px;
  align-self: flex-start;
}
.notices-panel--right { margin-left: 16px; }
.notices-panel--left  { margin-right: 16px; }
.notices-panel__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-muted, #6b665e);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-accent-soft, #f4e4df);
}
.notices-panel__item { margin-bottom: 12px; }
.notices-panel__item-title { font-size: 13px; display: block; margin-bottom: 3px; }
.notices-panel__item-body { font-size: 12px; color: var(--color-muted, #6b665e); margin: 0; line-height: 1.45; }

@media (max-width: 700px) {
  .catalog-layout--with-notices { flex-direction: column; }
  .notices-panel { width: 100%; position: static; margin: 0 0 12px; }
  .notices-panel--right, .notices-panel--left { margin: 0 0 12px; }
}

/* ============================================================
   E18 — CHATBOT WIDGET
   ============================================================ */
.chatbot-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.chatbot-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent, #c8553d);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transition: transform .15s, box-shadow .15s;
  user-select: none;
}
.chatbot-bubble:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(0,0,0,.28); }
/* Prevent display:flex from overriding the hidden attribute */
.chatbot-window[hidden] { display: none !important; }

.chatbot-window {
  width: 300px;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-accent-soft, #f4e4df);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  overflow: hidden;
  animation: chatWindowIn .2s ease;
}
@keyframes chatWindowIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.chatbot-window__header {
  background: var(--color-accent, #c8553d);
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14px;
}
.chatbot-close-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}
.chatbot-close-btn:hover { color: #fff; }
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
}
.chat-msg {
  max-width: 86%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}
.chat-msg--user {
  align-self: flex-end;
  background: var(--color-accent, #c8553d);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg--bot {
  align-self: flex-start;
  background: var(--color-accent-soft, #f4e4df);
  color: var(--color-ink, #1a1814);
  border-bottom-left-radius: 4px;
}
.chat-msg--typing { opacity: .6; letter-spacing: .2em; }
.chat-feedback {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-fb-label { font-size: 11px; color: var(--color-muted, #6b665e); }
.chat-fb-btn {
  background: none;
  border: 1px solid var(--color-accent-soft, #f4e4df);
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  padding: 1px 6px;
  transition: background .1s;
}
.chat-fb-btn:hover { background: var(--color-accent-soft, #f4e4df); }
.chatbot-input-row {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--color-accent-soft, #f4e4df);
}
.chatbot-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  outline: none;
}
.chatbot-input:focus { border-color: var(--color-accent, #c8553d); }
.chatbot-send-btn {
  width: 32px;
  height: 32px;
  background: var(--color-accent, #c8553d);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .1s;
}
.chatbot-send-btn:hover { transform: scale(1.08); }

@media (max-width: 420px) {
  .chatbot-window { width: calc(100vw - 40px); }
}
