/* ==========================================================================
   1. VARIABLES TEMA CLARO "LUXURY"
   ========================================================================== */
:root {
  /* Fondos */
  --bg-body: #f5f5f8;
  --bg-body-alt: #eef2ff;
  --bg-card: #ffffff;
  --bg-card-soft: #f9fafb;
  --bg-modal: #ffffff;

  /* Acentos */
  --gold-primary: #d4af37;
  --gold-hover: #f1c857;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --danger: #b91c1c;

  /* Textos */
  --text-main: #0f172a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;

  /* Bordes y sombras */
  --border-light: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --border-gold: rgba(212, 175, 55, 0.6);

  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 30px rgba(148, 163, 184, 0.25);
  --shadow-modal: 0 25px 80px rgba(15, 23, 42, 0.25);

  /* Tipografía y transiciones */
  --font-stack: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ==========================================================================
   2. RESET + BASE (solo página exclusivos)
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.exclusives-page {
  min-height: 100vh;
  background: radial-gradient(circle at top, var(--bg-body-alt) 0, var(--bg-body) 45%, #e5e7eb 100%);
  color: var(--text-main);
  font-family: var(--font-stack);
  line-height: 1.6;
  overflow-x: hidden;
}

body.exclusives-page img {
  max-width: 100%;
  display: block;
}

body.exclusives-page a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

body.exclusives-page ul {
  list-style: none;
}

/* Scrollbar */
body.exclusives-page::-webkit-scrollbar {
  width: 8px;
}
body.exclusives-page::-webkit-scrollbar-track {
  background: #e5e7eb;
}
body.exclusives-page::-webkit-scrollbar-thumb {
  background: #cbd5f5;
  border-radius: 4px;
}
body.exclusives-page::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Layout global */
body.exclusives-page .page-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

body.exclusives-page .section {
  margin-bottom: 3.5rem;
}

body.exclusives-page .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   3. HEADER (CLARO, STICKY)
   ========================================================================== */
body.exclusives-page .sf-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.9rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 6px 24px rgba(148, 163, 184, 0.18);
}

body.exclusives-page .sf-header svg#logo rect {
  fill: transparent;
}
body.exclusives-page .sf-header svg#logo text {
  fill: var(--gold-primary);
  font-weight: 800;
  letter-spacing: -0.4px;
}

/* NAV DESKTOP */
body.exclusives-page .sf-header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

body.exclusives-page #nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

body.exclusives-page .nav-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.35rem 0;
  position: relative;
}

body.exclusives-page .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--gold-primary);
  transition: width 0.2s ease;
}

body.exclusives-page .nav-link:hover,
body.exclusives-page .nav-link[aria-current="page"] {
  color: var(--gold-primary);
}
body.exclusives-page .nav-link[aria-current="page"]::after {
  width: 100%;
}

/* Botón hamburguesa móvil */
body.exclusives-page .nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.35rem;
}

body.exclusives-page .hamburger,
body.exclusives-page .hamburger::before,
body.exclusives-page .hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  position: relative;
  transition: transform 0.25s var(--ease-smooth), opacity 0.2s ease;
}

body.exclusives-page .hamburger::before,
body.exclusives-page .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

body.exclusives-page .hamburger::before {
  top: -6px;
}
body.exclusives-page .hamburger::after {
  top: 6px;
}

body.exclusives-page .nav-toggle[aria-expanded="true"] .hamburger {
  transform: rotate(45deg);
}
body.exclusives-page .nav-toggle[aria-expanded="true"] .hamburger::before {
  opacity: 0;
}
body.exclusives-page .nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-90deg);
  top: 0;
}

/* ==========================================================================
   4. MARQUEE INFINITO (AUTOMÁTICO CON CSS)
   ========================================================================== */
body.exclusives-page .exclusivos-marquee-section {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(to bottom, #ffffff 0, var(--bg-body) 65%);
  border-bottom: 1px solid var(--border-light);
}

body.exclusives-page .exclusivos-marquee-section .container {
  padding: 0 1rem;
  text-align: center;
}

body.exclusives-page .section-label {
  color: var(--gold-primary);
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

body.exclusives-page .exclusivos-marquee-section h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  background: linear-gradient(90deg, #111827, #4b5563);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

body.exclusives-page .exclusivos-marquee-section p {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* Contenedor: SIN scroll manual, se mueve por animación CSS */
body.exclusives-page .infinite-carousel {
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    black 10%,
    black 90%,
    transparent 100%
  );
}

/* Track: ancho dinámico + animación infinita */
body.exclusives-page .infinite-carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scrollLoop 40s linear infinite;
}

/* Pausar en hover */
body.exclusives-page .infinite-carousel-track:hover {
  animation-play-state: paused;
}

/* Animación carrusel infinito */
@keyframes scrollLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Ítems */
body.exclusives-page .infinite-carousel-item {
  width: 260px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border-light);
  padding: 0.9rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth),
    border-color 0.25s ease;
  box-shadow: 0 10px 25px rgba(148, 163, 184, 0.14);
}

body.exclusives-page .infinite-carousel-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-soft);
}

body.exclusives-page .infinite-carousel-image-wrap {
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.7rem;
  background: #e5e7eb;
}

body.exclusives-page .infinite-carousel-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.exclusives-page .infinite-carousel-info {
  text-align: left;
}

body.exclusives-page .marquee-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

body.exclusives-page .marquee-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

body.exclusives-page .marquee-price {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--gold-primary);
}

/* ==========================================================================
   5. BUSCADOR IA
   ========================================================================== */
body.exclusives-page #search-section {
  max-width: 900px;
  margin: 2.5rem auto 2rem;
  padding: 0 1rem;
}

body.exclusives-page #search-title {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

body.exclusives-page .search-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1.25rem;
}

body.exclusives-page .search-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.exclusives-page #search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1.1rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.25);
}

body.exclusives-page #search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.95rem;
  min-width: 0;
}
body.exclusives-page #search-input::placeholder {
  color: var(--text-muted);
}
body.exclusives-page #search-input:focus {
  outline: none;
}

body.exclusives-page .search-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--gold-primary);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.1s ease;
}
body.exclusives-page .search-btn:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

/* Caja resultados */
body.exclusives-page .search-results {
  position: relative;
  margin-top: 1rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 18px 40px rgba(148, 163, 184, 0.35);
  padding: 0.75rem 1rem 1rem;
  display: none;
}
body.exclusives-page .search-results.active {
  display: block;
}

body.exclusives-page .close-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}

body.exclusives-page .search-loading {
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
body.exclusives-page .search-loading .loader {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  border-top-color: var(--gold-primary);
  animation: spinloader 0.7s linear infinite;
}

@keyframes spinloader {
  to {
    transform: rotate(360deg);
  }
}

body.exclusives-page .search-results-content {
  margin-top: 1.5rem;
  max-height: 360px;
  overflow-y: auto;
}

body.exclusives-page .search-results-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.exclusives-page .search-result-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.9rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--bg-card-soft);
  border: 1px solid var(--border-light);
}

body.exclusives-page .search-result-img {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
}

body.exclusives-page .search-result-content h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
body.exclusives-page .search-result-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.15rem;
}

body.exclusives-page .search-error,
body.exclusives-page .search-message {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   6. GRID DE PRODUCTOS EXCLUSIVOS
   ========================================================================== */
body.exclusives-page #shopfusion-exclusives {
  padding: 3rem 0 0;
}

body.exclusives-page #shopfusion-exclusives .container {
  position: relative;
  padding: 0 0.5rem;
}

body.exclusives-page #shopfusion-exclusives-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gold-primary);
  margin-bottom: 2.4rem;
}
body.exclusives-page #shopfusion-exclusives-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold-primary);
  margin: 0.5rem auto 0;
}

/* Flechas para escritorio (en móvil se ocultan) */
body.exclusives-page .carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: radial-gradient(circle at top, #ffffff 0, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  z-index: 5;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
body.exclusives-page .carousel-nav:hover {
  background: var(--gold-primary);
  color: #111827;
  border-color: var(--gold-primary);
  transform: translateY(-50%) translateY(-1px);
}
body.exclusives-page .carousel-nav.prev {
  left: -0.2rem;
}
body.exclusives-page .carousel-nav.next {
  right: -0.2rem;
}

/* GRID */
body.exclusives-page .products-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0.3rem 1.8rem;
}

/* TARJETA */
body.exclusives-page .product-card.exclusive {
  background: radial-gradient(circle at top, #ffffff 0, var(--bg-card-soft) 60%, #e5e7eb 100%);
  border-radius: 18px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth),
    border-color 0.25s ease;
}

body.exclusives-page .product-card.exclusive:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: 0 24px 60px rgba(148, 163, 184, 0.5);
}

/* Badge */
body.exclusives-page .exclusive-badge {
  position: absolute;
  top: 16px;
  left: 18px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  z-index: 2;
}

/* Carrusel interno de imágenes */
body.exclusives-page .carousel {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
  background: #e5e7eb;
}

body.exclusives-page .product-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

body.exclusives-page .product-card.exclusive:hover .product-media {
  transform: scale(1.05);
}

/* Contenido */
body.exclusives-page .product-content {
  position: relative;
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

body.exclusives-page .product-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

body.exclusives-page .categoria {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

/* Descripción en card (resumen, 3 líneas) */
body.exclusives-page .product-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.3rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Precios */
body.exclusives-page .price-block {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

body.exclusives-page .price,
body.exclusives-page .offer-price {
  font-size: 1.45rem;
  font-weight: 800;
}

body.exclusives-page .price {
  color: var(--text-main);
}

body.exclusives-page .offer-price {
  color: var(--gold-primary);
}

body.exclusives-page .old-price {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

body.exclusives-page .discount-badge {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.14);
  color: #b91c1c;
  font-weight: 600;
}

/* Stock */
body.exclusives-page .stock {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}
body.exclusives-page .out-of-stock {
  color: var(--danger);
  font-weight: 600;
}

/* Botones */
body.exclusives-page .button-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.75rem;
}

body.exclusives-page .btn {
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: none;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

body.exclusives-page .view-more-btn {
  background: transparent;
  border: 1px solid #d1d5db;
  color: var(--text-main);
}
body.exclusives-page .view-more-btn:hover {
  border-color: var(--border-strong);
  background: rgba(249, 250, 251, 0.9);
}

body.exclusives-page .buy-exclusive-btn {
  background: var(--gold-primary);
  color: #111827;
  box-shadow: 0 12px 25px rgba(212, 175, 55, 0.35);
}
body.exclusives-page .buy-exclusive-btn:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(212, 175, 55, 0.5);
}

/* Texto cuando no hay exclusivos */
body.exclusives-page #no-exclusivos {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem 1rem;
}

/* ==========================================================================
   7. MODAL DETALLES (#product-modal)
   ========================================================================== */
body.exclusives-page .product-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overscroll-behavior: contain;
}

body.exclusives-page .product-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.exclusives-page .product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Dialog (DETALLE) */
body.exclusives-page #product-modal .product-modal__dialog {
  position: relative;
  width: min(100% - 2.5rem, 1100px);
  max-height: 90vh;
  background: var(--bg-modal);
  border-radius: 22px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  animation: modalSlideUp 0.35s var(--ease-smooth);
  box-sizing: border-box;
}

/* Animación modal */
@keyframes modalSlideUp {
  from {
    transform: translateY(30px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

body.exclusives-page .product-modal__content {
  display: flex;
  width: 100%;
  min-height: 0;
}

/* Lado imagen */
body.exclusives-page .product-modal__media {
  flex: 1.2;
  background: #e5e7eb;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  max-height: 90vh;
  overflow: hidden;
}

body.exclusives-page .product-modal__image {
  width: 100%;
  height: 100%;
  max-height: 90vh;
  object-fit: contain;
}

/* Flechas imágenes */
body.exclusives-page .modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.6);
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
body.exclusives-page .modal-nav:hover {
  background: var(--gold-primary);
  color: #111827;
}
body.exclusives-page .modal-nav--prev {
  left: 14px;
}
body.exclusives-page .modal-nav--next {
  right: 14px;
}

/* Lado info (scroll interno si hay mucho texto) */
body.exclusives-page .product-modal__info {
  flex: 1;
  padding: 2.2rem 2.4rem 2rem;
  background: linear-gradient(180deg, #ffffff 0, #f9fafb 35%, #eef2ff 100%);
  overflow-y: auto;
  max-height: 90vh;
  min-height: 0;
}

/* Scrollbar interno del panel de info */
body.exclusives-page .product-modal__info::-webkit-scrollbar {
  width: 8px;
}
body.exclusives-page .product-modal__info::-webkit-scrollbar-track {
  background: #e5e7eb;
}
body.exclusives-page .product-modal__info::-webkit-scrollbar-thumb {
  background: #cbd5f5;
  border-radius: 4px;
}
body.exclusives-page .product-modal__info::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

body.exclusives-page .product-modal__title {
  font-size: 1.9rem;
  color: var(--gold-primary);
  margin-bottom: 0.4rem;
  line-height: 1.15;
}

body.exclusives-page .product-modal__category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

/* Descripción completa */
body.exclusives-page .product-modal__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.7rem;
  white-space: pre-line;
}

body.exclusives-page .product-modal__prices {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  font-size: 1.6rem;
  font-weight: 800;
}

body.exclusives-page .product-modal__stock {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.3rem;
}

body.exclusives-page .product-modal__actions {
  margin-top: 0.5rem;
}

/* Botón comprar desde modal detalles */
body.exclusives-page .buy-exclusive-btn-modal {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: none;
  background: var(--gold-primary);
  color: #111827;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
body.exclusives-page .buy-exclusive-btn-modal:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(212, 175, 55, 0.5);
}

/* Botón cerrar */
body.exclusives-page .product-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: none;
  background: transparent;
  color: #111827;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s ease, transform 0.2s ease;
}
body.exclusives-page .product-modal__close:hover {
  color: var(--gold-primary);
  transform: rotate(90deg);
}

/* ==========================================================================
   8. MODAL CHECKOUT EXCLUSIVOS (#exclusive-modal)
   ========================================================================== */
body.exclusives-page #exclusive-modal .product-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100% - 2.4rem, 600px);
  max-height: 90vh;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-modal);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  animation: modalSlideUp 0.35s var(--ease-smooth);
  box-sizing: border-box;
}

/* Scrollbar interno del modal de checkout */
body.exclusives-page #exclusive-modal .product-modal__dialog::-webkit-scrollbar {
  width: 8px;
}
body.exclusives-page #exclusive-modal .product-modal__dialog::-webkit-scrollbar-track {
  background: #e5e7eb;
}
body.exclusives-page #exclusive-modal .product-modal__dialog::-webkit-scrollbar-thumb {
  background: #cbd5f5;
  border-radius: 4px;
}
body.exclusives-page #exclusive-modal .product-modal__dialog::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

body.exclusives-page #exclusive-modal .modal-title {
  padding: 1.6rem 2rem 0.4rem;
  text-align: center;
  font-size: 1.55rem;
}

body.exclusives-page #exclusive-modal .modal-price {
  text-align: center;
  font-size: 1rem;
  color: var(--gold-primary);
  margin-bottom: 0.8rem;
}

/* Nota de seguridad */
body.exclusives-page .payment-safety-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--gold-soft);
  color: #78350f;
  font-size: 0.8rem;
}
body.exclusives-page .payment-safety-note i {
  margin-top: 1px;
}

/* Formulario checkout */
body.exclusives-page .exclusive-checkout-form {
  padding: 1.6rem 1.8rem 0.8rem;
}

body.exclusives-page .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
}

body.exclusives-page .form-field--full {
  grid-column: 1 / -1;
}

body.exclusives-page .form-field label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Inputs */
body.exclusives-page .form-field input,
body.exclusives-page .form-field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 9px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.exclusives-page .form-field input::placeholder,
body.exclusives-page .form-field textarea::placeholder {
  color: var(--text-muted);
}

body.exclusives-page .form-field input:focus,
body.exclusives-page .form-field textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4);
  background: #ffffff;
}

/* Estado de error (desde JS) */
body.exclusives-page .field-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.4);
}

/* Icono info con tooltip */
body.exclusives-page .info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: none;
  background: #4b5563;
  color: #f9fafb;
  font-size: 11px;
  cursor: help;
}

body.exclusives-page .info-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  max-width: 260px;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: #0f172a;
  color: #f9fafb;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.7rem;
  line-height: 1.4;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 20;
}
body.exclusives-page .info-icon:hover::after,
body.exclusives-page .info-icon:focus-visible::after {
  opacity: 1;
}

/* Contenedor PayPal */
body.exclusives-page .paypal-button-wrap {
  padding: 0 1.8rem 1.4rem;
}

/* Mensaje final */
body.exclusives-page .checkout-message {
  text-align: center;
  font-size: 0.9rem;
  padding: 0.3rem 1.4rem 1.4rem;
  color: var(--text-main);
}

/* ==========================================================================
   9. FLASH MESSAGES
   ========================================================================== */
body.exclusives-page .flash-container {
  position: fixed;
  top: 80px;
  right: 1.25rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body.exclusives-page .alert {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid transparent;
  background: #ffffff;
}

body.exclusives-page .alert-success {
  border-color: rgba(22, 163, 74, 0.5);
  background: #ecfdf5;
  color: #14532d;
}

body.exclusives-page .alert-error {
  border-color: rgba(239, 68, 68, 0.6);
  background: #fef2f2;
  color: #7f1d1d;
}

body.exclusives-page .alert-warning {
  border-color: rgba(245, 158, 11, 0.7);
  background: #fffbeb;
  color: #92400e;
}

/* ==========================================================================
   10. RESPONSIVE
   ========================================================================== */

/* Tablets */
@media (max-width: 1024px) {
  body.exclusives-page .page-wrapper {
    padding-inline: 1rem;
  }

  body.exclusives-page .products-container {
    padding-inline: 0.5rem;
    gap: 1.6rem;
  }

  body.exclusives-page .carousel-nav {
    display: none; /* en tablet/móvil solo scroll horizontal o swipes */
  }

  body.exclusives-page #product-modal .product-modal__dialog {
    width: min(100% - 1.8rem, 1000px);
  }
}

/* Móvil */
@media (max-width: 768px) {
  /* NAV móvil */
  body.exclusives-page .nav-toggle {
    display: block;
  }

  body.exclusives-page #nav-menu {
    position: fixed;
    inset-inline: 0;
    top: 60px;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-140%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 900;
  }
  body.exclusives-page #nav-menu.is-open {
    transform: translateY(0);
  }

  body.exclusives-page .sf-header {
    padding-inline: 1.1rem;
  }

  /* Marquee */
  body.exclusives-page .infinite-carousel-item {
    width: 220px;
  }

  /* Grid productos */
  body.exclusives-page .products-container {
    grid-template-columns: 1fr;
    padding-inline: 0;
  }

  body.exclusives-page .carousel {
    height: 250px;
  }

  body.exclusives-page .product-content {
    padding: 1.2rem 1.15rem 1.3rem;
  }

  body.exclusives-page .product-name {
    font-size: 1.1rem;
  }

  body.exclusives-page .button-container {
    grid-template-columns: 1fr;
  }

  /* ===========================
     MODALES EN MÓVIL
     =========================== */

  body.exclusives-page .product-modal {
    align-items: stretch;
    justify-content: stretch;
  }

  /* MODAL "VER DETALLES" (#product-modal) */
  body.exclusives-page #product-modal .product-modal__dialog {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  body.exclusives-page #product-modal .product-modal__content {
    flex-direction: column;        /* 🔥 imagen arriba, texto abajo */
    height: 100%;
  }

  body.exclusives-page #product-modal .product-modal__media {
    flex: 0 0 45vh;
    height: 45vh;
    max-height: 45vh;
  }

  body.exclusives-page #product-modal .product-modal__info {
    flex: 1 1 auto;
    max-height: none;
    overflow-y: auto;
    padding: 1.5rem 1.3rem 1.3rem;
  }

  /* MODAL "COMPRAR AHORA" (#exclusive-modal) */
  body.exclusives-page #exclusive-modal .product-modal__dialog {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.exclusives-page .exclusive-checkout-form {
    padding-inline: 1.2rem;
  }

  body.exclusives-page .form-grid {
    grid-template-columns: 1fr;
  }

  /* Buscador */
  body.exclusives-page #search-section {
    margin-top: 2rem;
  }

  body.exclusives-page .search-result-item {
    grid-template-columns: 70px 1fr;
  }
}

/* Altura muy baja (móvil en horizontal, etc.) */
@media (max-height: 600px) {
  body.exclusives-page #product-modal .product-modal__dialog,
  body.exclusives-page #exclusive-modal .product-modal__dialog {
    max-height: 100vh;
  }
}
