/* ============================================
   NEEXXO — CATÁLOGO (layout y componentes)
   ============================================ */

/* --- Encabezado ------------------------------------------------------- */
.site-header {
  padding: 60px var(--gutter) 44px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.header-inner {
  max-width: 620px;
  margin: 0 auto;
}

.brand-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 14px 28px -10px rgba(1, 37, 16, 0.55), 0 0 0 5px rgba(242, 197, 17, 0.16);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 8px 20px rgba(15, 61, 34, 0.22);
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 16px auto 0;
  max-width: 46ch;
}

.header-rule {
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-yellow));
  border: none;
  margin: 26px auto 0;
}

.header-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-primary {
  background: var(--brand-green);
  color: var(--brand-yellow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -14px rgba(1, 37, 16, 0.55);
}

.btn-ghost {
  border: 1px solid var(--line-dark);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.header-stats {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0 0;
  padding: 0;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.header-stats li:not(:last-child)::after {
  content: '·';
  margin: 0 12px;
  color: var(--line-dark);
}

.stat-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.stat-link:hover,
.stat-link:focus-visible {
  color: var(--brand-green);
  border-bottom-color: var(--brand-green);
}

.stat-link.is-active {
  color: var(--brand-green);
  font-weight: 600;
}

/* --- Barra de controles (filtros + búsqueda) ------------------------- */
.controls {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-translucent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 18px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.tabs {
  display: flex;
  gap: 28px;
  min-width: 0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 6px 0 10px;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.tab:hover { color: var(--ink); }

.tab[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* --- Filtros (género / marca) + búsqueda ------------------------------ */
.filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.select-wrap { flex-shrink: 0; }

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%236B6459' d='M5.25 7.5l4.75 5 4.75-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 30px 10px 14px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.select-wrap select:hover { border-color: var(--line-dark); }
.select-wrap select:focus { border-color: var(--gold); }

.search-wrap {
  position: relative;
  min-width: 200px;
  flex: 0 1 240px;
  margin-left: auto;
}

.search-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 16px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6459' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: 0.7;
}

.search-wrap input {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 10px 16px 10px 38px;
  box-shadow: 0 6px 18px -12px rgba(27, 23, 18, 0.25), inset 0 0 0 1px var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.search-wrap input::placeholder { color: var(--ink-soft); }

.search-wrap input:focus {
  box-shadow: 0 10px 24px -12px rgba(15, 61, 34, 0.3), inset 0 0 0 1.5px var(--brand-green);
}

.result-count {
  padding: 14px var(--gutter) 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* --- Grid de productos ------------------------------------------------ */
.catalog {
  padding: 32px var(--gutter) 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px 28px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.card:hover {
  border-color: var(--line-dark);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.card-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-image img { transform: scale(1.045); }

.gender-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
}

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

.card-brand {
    font-family: var(--sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin: 0 0 4px;
}

.card-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.28rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.card-meta {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.card-meta .divider {
  border-left: 1px solid var(--line-dark);
  margin-left: 10px;
  padding-left: 10px;
}

.card-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* --- Estado vacío ------------------------------------------------------ */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
}

/* --- Pie de página ----------------------------------------------------- */
.site-footer {
  padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.site-footer strong {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-footer a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* --- Botón flotante de WhatsApp ----------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 28px -10px rgba(1, 37, 16, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 18px 32px -10px rgba(1, 37, 16, 0.5);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: whatsapp-pulse 2.2s ease-out infinite;
}

@keyframes whatsapp-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* --- Modal de detalle --------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(27, 23, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  overflow-y: auto;
}

.modal-overlay[hidden] { display: none; }
.modal-overlay.is-visible { opacity: 1; }

.modal {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
  background: var(--bg);
  border-radius: 10px;
  box-shadow: 0 40px 80px -30px rgba(1, 37, 16, 0.5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s var(--ease);
}

.modal-overlay.is-visible .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.modal-close:hover { border-color: var(--brand-green); color: var(--brand-green); }

.modal-media {
  position: relative;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.modal-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.modal-caption {
  text-align: center;
  padding: 12px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.modal-photo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(1, 37, 16, 0.35);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.modal-photo-arrow:hover { background: #fff; color: var(--brand-green); }
.modal-photo-prev { left: 14px; }
.modal-photo-next { right: 14px; }

.modal-photo-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.modal-photo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(1, 37, 16, 0.2);
}

.modal-photo-dot.is-active {
  background: var(--brand-green);
}

.modal-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
}

.modal-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.modal-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-green);
  margin: 0 0 12px;
}

.modal-sku {
  font-size: 0.75rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  white-space: nowrap;
}

.modal-brand {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin: 0 0 6px;
}

.modal-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.modal-desc {
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 24px;
}

.modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.chip {
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.modal-notes { margin-bottom: 24px; }

.modal-notes h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.chip-note {
  background: rgba(15, 61, 34, 0.06);
  border-color: rgba(15, 61, 34, 0.2);
  color: var(--brand-green);
}

.modal-nav {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pill-btn {
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.pill-btn:hover:not(:disabled) { border-color: var(--brand-green); color: var(--brand-green); }
.pill-btn:disabled { opacity: 0.35; cursor: default; }

.modal-position {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* --- Paginación --------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 8px var(--gutter) 72px;
}

.pagination[hidden] { display: none; }

.page-info {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* --- Breadcrumb (futuro) ---------------------------------------------- */
/* Espacio reservado para navegación de jerarquía si se agrega */
