/* ==========================================================================
   1. RESET GLOBAL
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================================================================
   2. CONFIGURACIÓN BASE Y VARIABLES
   ========================================================================== */
html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

:root {
  --color-primary: #194d33;
  --color-primary-dark: #123725;
  --color-primary-light: #e8f5ec;
  --color-accent: #22c55e;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #20ba5a;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-radius-sm: 0.6rem;
  --border-radius: 1.2rem;
  --border-radius-lg: 2rem;
  --border-radius-pill: 5rem;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  --spacing-xs: 0.8rem;
  --spacing-sm: 1.2rem;
  --spacing-md: 2rem;
  --spacing-lg: 3.2rem;
  --spacing-xl: 5rem;
  
  --container-width: 120rem;
}

[data-theme="dark"] {
  --bg-main: #0b0f19;
  --bg-card: #1e293b;
  --bg-subtle: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
}

/* ==========================================================================
   3. ESTILOS GENERALES Y TIPOGRAFÍAS
   ========================================================================== */
body {
  font-family: var(--font-base);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 1.6rem;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ==========================================================================
   4. ELEMENTOS HTML / LAYOUT & HEADER
   ========================================================================== */
.header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 7.2rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.header__logo-img {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
}

.header__title {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-main);
}

/* 1. Por defecto (Móvil): El menú de navegación se oculta y el botón hamburguesa se muestra */
.header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
  margin-left: auto;        /* Empuja el menú a la derecha pegándolo a las acciones */
  margin-right: 0.8rem;     /* Distancia prudente respecto al carrito */
}

.header__nav {
  display: none; /* Oculto por defecto en móvil */
  position: absolute;
  top: 7.2rem; /* Justo debajo del header */
  left: 0;
  width: 100%;
  background-color: var(--bg-card);
  flex-direction: column;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  gap: var(--spacing-sm);
  z-index: 99;
}

/* Cuando se activa con JavaScript en móvil */
.header__nav.is-open {
  display: flex;
}

.header__link {
  font-size: 1.6rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--bg-subtle);
  color: var(--text-main);
  border-radius: var(--border-radius-sm);
  display: block;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header__link:hover,
.header__link--active {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  font-weight: 600;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.header__cart-btn {
  position: relative;
  background-color: var(--bg-subtle);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: background-color 0.2s;
}

.header__cart-btn:hover {
  background-color: var(--border-color);
}

.header__cart-badge {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  background-color: var(--color-primary);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__user-avatar {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-primary);
}

.header__user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* ==========================================================================
   5. SECCIONES Y COMPONENTES (Móvil / Base)
   ========================================================================== */
.app-view {
  display: none;
}

.app-view.view--active {
  display: block;
}

/* Botones comunes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 1.2rem 2.4rem;
  border-radius: var(--border-radius-pill);
  font-weight: 600;
  font-size: 1.4rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.btn--primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(25, 77, 51, 0.25);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn--outline {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn--outline:hover {
  background-color: var(--bg-subtle);
}

.btn--whatsapp {
  background-color: var(--color-whatsapp);
  color: white;
  width: 100%;
  padding: 1.4rem;
  font-size: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.btn--whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
}

/* Hero Section */
.hero {
  padding: var(--spacing-lg) 0;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-main) 100%);
}

.hero__container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  padding: 0.6rem 1.4rem;
  border-radius: var(--border-radius-pill);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.hero__profile {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.hero__avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.hero__avatar {
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.hero__avatar-status {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 1.2rem;
}

.hero__greeting-pill {
  display: inline-block;
  background-color: #fef3c7;
  color: #92400e;
  padding: 0.4rem 1rem;
  border-radius: var(--border-radius-pill);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.hero__heading {
  font-size: 2.6rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.hero__description {
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

/* Progress Box */
.hero__progress-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-md);
}

.hero__progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.hero__progress-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.hero__progress-stats {
  font-size: 1.5rem;
  font-weight: 700;
}

.hero__progress-current {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero__amount-percentage {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 500;
  float: right;
}

.hero__progress-bar {
  width: 100%;
  height: 1.2rem;
  background-color: var(--bg-subtle);
  border-radius: var(--border-radius-pill);
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
}

.hero__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #eab308 0%, var(--color-accent) 100%);
  border-radius: var(--border-radius-pill);
}

.hero__milestones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero__milestone {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  padding: 0.4rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 1.4rem;
  font-weight: 500;
}

.hero__milestone--done {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

/* Destination Card */
.destination-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.destination-card__img-wrapper {
  position: relative;
  height: 22rem;
}

.destination-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destination-card__badge {
  position: absolute;
  top: 1.6rem;
  left: 1.6rem;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  backdrop-filter: blur(4px);
  padding: 0.4rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.destination-card__title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-md);
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
}

.destination-card__body {
  padding: var(--spacing-md);
}

.destination-card__subtitle {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--text-main);
}

.destination-card__list {
  padding-left: 1.6rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-muted);
  font-size: 1.3rem;
}

.destination-card__list li {
  margin-bottom: 0.4rem;
}

.destination-card__guarantee {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--bg-subtle);
  padding: 1.2rem;
  border-radius: var(--border-radius-sm);
  font-size: 1.2rem;
  color: var(--text-muted);
}
.destination-card__guarantee span {
    font-size: 1.4rem;
}


/* Steps Section */
.steps-section {
  padding: var(--spacing-md) 0 var(--spacing-xl);
}

.steps-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.step-card__number {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.step-card__content h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step-card__content p {
  font-size: 1.3rem;
  color: var(--text-muted);
}

/* Catalog Section */
.catalog-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.catalog__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.catalog__header {
  margin-bottom: var(--spacing-lg);
}

.catalog__section-tag {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.6rem;
}

.catalog__title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.catalog__subtitle {
  color: var(--text-muted);
  font-size: 1.5rem;
  max-width: 60rem;
}

.catalog__filter-bar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

/* Search Box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0 var(--spacing-sm);
  height: 5rem;
}

.search-box__icon {
  margin-right: 1rem;
  font-size: 1.6rem;
}

.search-box__input {
  flex: 1;
  height: 100%;
  color: var(--text-main);
}

.search-box__clear {
  font-size: 1.8rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
}

.search-box__clear:hover {
  color: var(--text-main);
}

/* Ocultar la cruz nativa de los inputs de búsqueda en todos los navegadores */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}


/* Category Filters en varias filas alineadas a la izquierda */
.category-filters {
  display: flex;
  flex-wrap: wrap; /* Permite que bajen a la siguiente línea ordenadamente */
  gap: 0.8rem;
  justify-content: flex-start; /* Alineados a la izquierda de forma natural */
  overflow-x: visible;
  padding: 0.5rem 0;
}

.filter-chip {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  padding: 0.8rem 1.4rem;
  border-radius: var(--border-radius-pill);
  font-size: 1.3rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
  flex: 0 1 auto; 
  text-align: center;
}

.filter-chip:hover,
.filter-chip--active {
  background-color: var(--color-primary);
  color: white;
}

.filter-chip:hover,
.filter-chip--active {
  background-color: var(--color-primary);
  color: white;
}

/* ==========================================================================
   Estilo personalizado para el selector de proveedores
   ========================================================================== */
.supplier-filter-wrapper {
  margin-bottom: var(--spacing-lg); /* Espacio amplio para despegarlo de las tarjetas */
  max-width: 32rem; /* Ancho máximo moderado para que no ocupe toda la pantalla */
}

.supplier-select {
  width: 100%;
  height: 5rem; /* Misma altura que la caja de búsqueda (.search-box) */
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0 var(--spacing-md);
  font-family: var(--font-base);
  font-size: 1.4rem;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  appearance: none; /* Elimina la flecha fea nativa en algunos sistemas */
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Añadimos una flecha desplegable elegante y limpia a la derecha */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.6rem center;
  background-size: 1.6rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.supplier-select:hover {
  border-color: var(--text-muted);
}

.supplier-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-card__img-wrapper {
  position: relative;
  height: 22rem;
  background-color: var(--bg-subtle); /* Fondo estético para los espacios que sobren */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Muestra la imagen completa sin recortarla ni deformarla */
  padding: 1rem;       /* Un pequeño respiro para que la joya no pegue contra los bordes */
  display: block;
}

.product-card__tag {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
}

.product-card__body {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__sku {
  font-size: 1.1rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.product-card__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.product-card__desc {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
  flex: 1;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-color);
}

.product-card__price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.product-card__unit {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 500;
}

.product-card__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Contenedor del selector de cantidad */
.quantity-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-subtle);
  border-radius: var(--border-radius-sm);
  padding: 0.2rem 0.4rem;
}

/* Botones + y - */
.quantity-btn {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0;
  margin: 0;
  position: relative;
  top: -0.15rem;
  cursor: pointer;
  color: var(--text-main);
  border-radius: var(--border-radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
  user-select: none;
}

.quantity-btn:hover {
  background-color: var(--border-color);
  color: var(--color-primary);
}

.quantity-btn:active {
  transform: scale(0.95);
}

/* Número central de cantidad */
.quantity-input {
  width: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-main);
}

.cart-item__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Load More */
.catalog__load-more {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.btn--load-more {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn--load-more:hover {
  background-color: var(--border-color);
}

.catalog__counter-info {
  font-size: 1.3rem;
  color: var(--text-muted);
}

/* FAQ & Contact Section */
.faq-contact-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-main);
}

.faq-contact__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.section-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.section-desc {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion__item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion__summary {
  padding: 1.6rem;
  font-weight: 600;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion__content {
  padding: 0 1.6rem 1.6rem;
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Direct Contact Card */
.direct-contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.direct-contact__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  font-size: 2.4rem;
}

.direct-contact__header h4 {
  font-size: 1.8rem;
  font-weight: 700;
}

.direct-contact__header p {
  font-size: 1.3rem;
  color: var(--text-muted);
}

.direct-contact__desc {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

.direct-contact__info-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background-color: var(--bg-subtle);
  padding: 1.2rem;
  border-radius: var(--border-radius-sm);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}


.direct-contact__note {
  display: block;
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-top: var(--spacing-xs);
}

/* Footer */
.footer {
  background-color: var(--text-main);
  color: white;
  padding: var(--spacing-xl) 0 0;
}

.footer__container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid #334155;
}

.footer__brand {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.footer__desc {
  font-size: 1.3rem;
  color: #94a3b8;
  max-width: 35rem;
}

.footer__col h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__list li {
  font-size: 1.3rem;
  color: #94a3b8;
}

.footer__list a:hover {
  color: white;
}

.footer__bottom {
  padding: var(--spacing-md) 0;
  font-size: 1.2rem;
  color: #64748b;
}

.footer__bottom-flex {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  justify-content: space-between;
}

/* UI Feedback / Toast / Modals */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  background-color: var(--text-main);
  color: white;
  padding: 1.2rem 2rem;
  border-radius: var(--border-radius-sm);
  font-size: 1.4rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   6. VISTA CARRITO DE COMPRAS (Base / Móvil)
   ========================================================================== */
.cart-view__container {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

.cart-view__header {
  margin-bottom: var(--spacing-lg);
}

.cart-view__back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: var(--spacing-sm);
  transition: transform 0.2s;
}

.cart-view__back-btn:hover {
  transform: translateX(-3px);
}

.cart-view__layout {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Estado Vacío */
.cart-empty {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cart-empty__icon {
  font-size: 4.8rem;
  margin-bottom: var(--spacing-sm);
  display: block;
}

.cart-empty__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.cart-empty__desc {
  color: var(--text-muted);
  font-size: 1.4rem;
  margin-bottom: var(--spacing-md);
}

/* Lista de Productos del Carrito */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.cart-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  box-shadow: var(--shadow-sm);
}

.cart-item__main {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.cart-item__img {
  width: 6.4rem;
  height: 6.4rem;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
  background-color: var(--bg-subtle);
  flex-shrink: 0;
}

.cart-item__info {
  flex: 1;
}

.cart-item__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.cart-item__sku {
  font-size: 1.1rem;
  color: var(--text-light);
  text-transform: uppercase;
}

.cart-item__price-unit {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-xs);
  border-top: 1px solid var(--bg-subtle);
}

.cart-item__subtotal {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.cart-item__remove-btn {
  color: #ef4444;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-sm);
  transition: background-color 0.2s;
}

.cart-item__remove-btn:hover {
  background-color: #fef2f2;
}

/* Tarjeta Resumen del Carrito */
.cart-summary {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.cart-summary__title {
  font-size: 1.8rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--spacing-xs);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
  color: var(--text-muted);
}

.cart-summary__row--total {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  border-top: 2px solid var(--border-color);
  padding-top: var(--spacing-sm);
}

.cart-summary__actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

/* Alineación y separación para los botones del resumen --- */
.btn__icon {
  font-size: 1.8rem;
  line-height: 1;
}

.cart-summary__actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.btn--clear-cart {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-size: 1.3rem;
}

.btn--clear-cart:hover {
  background-color: var(--bg-subtle);
  color: #ef4444;
}

/* ==========================================================================
   7. VISOR DE IMÁGENES (LIGHTBOX)
   ========================================================================== */
.lightbox {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85); /* Fondo oscuro translúcido */
  z-index: 9999; /* Por encima de todo (header, modales, etc.) */
  justify-content: center;
  align-items: center;
  padding: var(--spacing-md);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lightbox__img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: scaleUp 0.3s ease;
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  font-size: 2.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.lightbox__close:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

@keyframes scaleUp {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   8. MEDIA QUERIES (Desktop / Responsive)
   ========================================================================== */
@media (min-width: 888px) {
  .header__menu-btn {
    display: none; /* Ocultamos el botón de hamburguesa en ordenador */
  }

  .header__nav {
    display: flex;
    position: static;
    width: auto;
    background-color: transparent;
    flex-direction: row;
    padding: 0;
    border: none;
    box-shadow: none;
    gap: 0.6rem;
  }

  .header__link {
    font-size: 1.4rem;
    padding: 0.8rem 1.6rem;
    border-bottom: none;
    border-radius: var(--border-radius-pill);
    background-color: transparent;
    font-weight: 600; /* Fijamos el peso desde el principio para que NUNCA altere el ancho al hacer hover */
    color: var(--text-muted); /* Reposo un poco más suave para resaltar el hover */
    transition: all 0.2s ease;
  }

  .header__link:hover,
  .header__link--active {
    color: var(--color-primary);
    background-color: var(--color-primary-light); /* Fondo suave de píldora que resalta al instante */
  }

  .hero__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: var(--spacing-xl);
  }

  .hero__cta-group {
    flex-direction: row;
  }

  .steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-contact__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: flex-start;
    gap: var(--spacing-xl);
  }

  .footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-xl);
  }

  .footer__bottom-flex {
    flex-direction: row;
  }

  /* --- Carrito (Adaptación Desktop) --- */
  .cart-view__layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    align-items: flex-start;
  }

  .cart-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cart-item__controls {
    border-top: none;
    padding-top: 0;
    gap: var(--spacing-md);
  }
}



@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}