﻿/* styles/style.css - CSS PRINCIPAL CORREGIDO */

/* ðŸ”¹ VARIABLES Y RESET */
:root {
  /* Colores Principales */
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --success-color: #27ae60;
  --warning-color: #f39c12;

  /* Escala de Grises */
  --dark-color: #2c3e50;
  --text-color: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --border-color: #e1e1e1;
  --bg-light: #f8f9fa;
  --bg-lighter: #fafafa;
  --white: #ffffff;

  /* TipografÃ­a */
  --font-primary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* Espaciado */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem; /* Standard small spacing */
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Bordes */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

  /* Transiciones */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
  --z-loader: 9999;

  /* Skeleton Loading */
  --skeleton-bg: #e2e8f0;
  --skeleton-highlight: #f1f5f9;

  /* Mobile-First Breakpoints */
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;

  /* Fluid Typography (clamp) */
  --font-fluid-h1: clamp(2rem, 8vw, 4rem);
  --font-fluid-h2: clamp(1.5rem, 6vw, 3rem);
  --font-fluid-h3: clamp(1.25rem, 4vw, 2rem);
  --font-fluid-base: clamp(0.95rem, 1.5vw + 0.5rem, 1.15rem);
}

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

.skeleton-premium {
  background: #f6f7f8;
  background-image: linear-gradient(
    to right,
    #f6f7f8 0%,
    #edeef1 20%,
    #f6f7f8 40%,
    #f6f7f8 100%
  );
  background-repeat: no-repeat;
  background-size: 800px 104px;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: shimmer;
  animation-timing-function: linear;
}

/* LOADER ANIMATIONS */
/* LOADER ANIMATIONS */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Full Screen Loader */
#initial-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  z-index: var(--z-loader);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  transition:
    opacity 0.5s ease-out,
    visibility 0.5s ease-out;
}

#initial-loader .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(52, 152, 219, 0.3);
  border-radius: 50%;
  border-top-color: var(--secondary-color);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 20px;
}

#initial-loader img {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 50%;
  animation: pulse 2s infinite ease-in-out;
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.skeleton-premium {
  background-size: 800px 104px;
  display: inline-block;
  position: relative;
  animation: shimmer 1.2s linear infinite forwards;
}

/* Micro-interacciones */
@keyframes heart-explosion {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4);
    filter: drop-shadow(0 0 10px var(--accent-color));
  }
  100% {
    transform: scale(1);
  }
}

.heart-animate {
  animation: heart-explosion 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cart-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.cart-bounce {
  animation: cart-bounce 0.5s ease;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card-animate {
  animation: fade-in-up 0.6s ease backwards;
}

/* Micro-animaciÃ³n de Carrito */
@keyframes cart-bounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2) rotate(-5deg);
  }
}

.cart-animate {
  animation: cart-bounce 0.4s ease-out;
}

/* AnimaciÃ³n de Favorito (Heart Pop) */
@keyframes heart-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}

.heart-pop {
  animation: heart-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.favorite-btn.active i {
  color: #e53e3e !important;
  font-weight: 900 !important; /* fas class from FontAwesome */
}

/* Estilos para Favoritos Locales (Invitado) */
.guest-favorites-notice {
  background: #fff5f5;
  border-left: 4px solid #f56565;
  padding: 12px;
  margin-bottom: 15px;
  font-size: 0.875rem;
  color: #c53030;
  border-radius: 4px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}
/*
 .nav-actions {
    gap: var(--spacing-sm);
    
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
    margin-top: -3rem;
    background-color: #FFF600;
  }
*/

.dev-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/*
.nav-actions {
 display: flex;
 margin-top: 1rem;
 margin-bottom: 1rem;
 align-items: center;
 justify-content: space-between;
 background-color: #D400FFD6;
 gap: var(--spacing-md);
}
*/
.product-colors {
  margin-top: 12px;
  margin-bottom: 12px;
}

.color-label {
  display: block;
  font-size: 0.85rem;
  color: #4a5568;
  margin-bottom: 8px;
  font-weight: 500;
}

.colors-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 0 0 2px rgba(255, 255, 255, 0.3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.color-btn::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.color-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.15),
    inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.color-btn.active {
  transform: scale(1.1);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.color-btn.active::after {
  border-color: var(--primary-color);
  transform: scale(1.1);
}

/* Soporte para colores muy claros (blanco, beige) */
.color-btn[style*="#FFFFFF"],
.color-btn[style*="white"],
.color-btn[style*="#f5f5dc"] {
  border: 1px solid #e2e8f0;
}

@media (min-width: 32px) {
  .profile-avatar img {
    width: 70%;
    height: 70%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
    box-shadow: none;
  }
}

@media (min-width: 320px) {
  #imagen_programador,
  .dev-avatar {
    width: 32px; /* Ligeramente más pequeño para asegurar ajuste */
    height: 32px;
    border-width: 1px;
  }

  #initial-loader img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-xl);
  }
}

/* ðŸ”¹ HEADER Y NAVEGACIÃ“N */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow-md);
  z-index: var(--z-fixed);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  max-width: 100%;
  overflow-x: hidden;
}
#navpric {
  display: flex;
  margin-top: 2rem;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: space-evenly;

  gap: var(--spacing-md);
}

.logo h1 {
  color: var(--primary-color);
  font-size: var(--font-fluid-h2);
  font-weight: 700;
}

.logo-link {
  text-decoration: none;
}

/* Logo Image - Responsive Sizes */
.logo-img,
#site-logo {
  height: 45px; /* Mobile base */
  width: auto;
  max-width: 120px;
  object-fit: contain;
  transition: var(--transition);
}

@media (min-width: 576px) {
  .logo-img,
  #site-logo {
    height: 50px;
    max-width: 140px;
  }

  #initial-loader img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
  }
}

@media (min-width: 768px) {
  .logo-img,
  #site-logo {
    height: 55px;
    max-width: 160px;
  }
}

@media (min-width: 1024px) {
  .logo-img,
  #site-logo {
    height: 60px;
    max-width: 180px;
  }

  #initial-loader img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
  }
}

/* =====================================================
   MENÚ DE NAVEGACIÓN - Mobile First
   ===================================================== */

/* 
 * .nav-menu: Contenedor principal del menú
 * - En MÓVIL: Oculto por defecto, se muestra al activar hamburguesa
 * - En DESKTOP: Siempre visible y horizontal
 */
.nav-menu {
  /* Reseteo de lista - QUITA LOS PUNTOS */
  list-style: none; /* ← Elimina los puntos/bullets */
  margin: 0;
  padding: 0;

  /* Layout Móvil: Menú desplegable vertical */
  display: none; /* Oculto en móvil por defecto */
  flex-direction: column; /* Items apilados verticalmente */

  /* Posicionamiento del menú móvil */
  position: fixed;
  top: 70px; /* Debajo del header */
  left: 0;
  width: 100%;

  /* Apariencia */
  background: var(--white);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--border-color);

  /* Control de desbordamiento */
  max-height: calc(100vh - 70px);
  overflow-y: auto;

  /* Capas */
  z-index: var(--z-fixed);

  /* Espaciado entre items */
  gap: var(--spacing-sm);
}

/* 
 * .nav-menu.active: Menú abierto en móvil
 * - Se activa cuando el usuario toca el botón hamburguesa
 */
.nav-menu.active {
  display: flex;

  /* Muestra el menú */
}

/*
 * .nav-item: Cada elemento de la lista
 * - Contenedor de los enlaces
 */
.nav-item {
  list-style: none; /* Doble seguridad para quitar puntos */
  margin: 0;
  padding: 0;
}

/* =====================================================
   TABLET (576px+): Primeras mejoras
   ===================================================== */
@media (min-width: 576px) {
  .nav-menu {
    padding: var(--spacing-lg);
    gap: var(--spacing-xs);
  }
  #initial-loader img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
  }
}

/* =====================================================
   TABLET/DESKTOP (768px+): Menú horizontal visible
   ===================================================== */
@media (min-width: 768px) {
  /* LAYOUT DESKTOP DEL HEADER */
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 var(--spacing-md);
  }

  /* 1. LOGO A LA IZQUIERDA */
  .logo {
    flex: 0 0 auto;
    margin-right: 20px;
  }

  /* 2. MENÚ EN EL CENTRO (NUEVO) */
  .nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: static;
    flex: 1; /* Ocupa el espacio central */
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    border: 1px solid transparent !important;
    padding: 0;
    margin: 0 20px;
    gap: 20px;
    overflow: visible;
  }

  .nav-item {
    display: inline-block;
  }

  /* 3. ACCIONES Y BUSCADOR A LA DERECHA */
  /*
  .nav-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-left: auto; /* Empuja a la derecha si hace falta */
  /*  background-color: #00F575;
  }

  /* Ajuste del container "sutCaja" para desktop (si se usa) */
  #sutCaja {
    display: none; /* En desktop usamos el menú principal directo, o lo integramos */
  }
}

/* =====================================================
   DESKTOP GRANDE (1024px+): Más espacio
   ===================================================== */
@media (min-width: 1024px) {
  .nav-menu {
    gap: var(--spacing-sm); /* Más espacio entre items */
  }
}

/* =====================================================
   CONTENEDOR PERSONALIZADO - #sutCaja y .sutNav-menu
   ===================================================== */

/* Contenedor padre del menú */
#sutCaja {
  margin-top: -2rem;
  width: 100%;
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center;
  padding: var(--spacing-sm) 0;
}

/* Menú personalizado - centrado */
.sutNav-menu {
  display: flex;
  flex-direction: row; /* Items en fila horizontal */
  justify-content: center; /* ← CENTRA LOS HIJOS */
  align-items: center; /* Alineación vertical */
  gap: var(--spacing-md); /* Espacio entre items */

  /* Sin puntos ni estilos de lista */
  list-style: none;
  margin: 0;
  padding: 0;

  /* Ancho completo para que el centrado funcione */
  width: 100%;
}

/* Items del menú personalizado */
.sutNav-menu .nav-item {
  text-align: center;
}

/* Responsive: En móvil, menú vertical */
@media (max-width: 767px) {
  #sutCaja {
    /* Don't hide completely, or Fixed child #nav-menu won't show */
    display: block;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--secondary-color);
  background: var(--bg-light);
}

.nav-link.active,
.nav-link:focus {
  color: var(--secondary-color);
  background: rgba(52, 152, 219, 0.1);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-actions {
  display: flex;
  margin-top: -2rem;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: space-between;

  gap: var(--spacing-md);
}

.search-container {
  display: none; /* Hidden on mobile base */
  align-items: center;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.search-input {
  border: none;
  background: transparent;
  padding: var(--spacing-sm) var(--spacing-md);
  width: 180px; /* Fixed width to prevent layout shift */
  outline: none;
  font-size: var(--font-size-base);
  transition: width 0.3s ease;
  min-height: 40px; /* Consistent height */
}

/* Only expand on larger screens to avoid mobile layout issues */
@media (min-width: 768px) {
  .search-input:focus {
    width: 250px;
  }
}

.search-btn {
  background: none;
  border: none;
  padding: var(--spacing-sm);
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.search-btn:hover {
  color: var(--secondary-color);
}

.auth-buttons {
  display: flex;
  gap: var(--spacing-sm);
}

.user-info {
  display: none;
  align-items: center;
  gap: 10px;
}

.auth-guest-buttons {
  display: flex;
  gap: 10px;
}

.favorites-count {
  display: none;
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: bold;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  min-height: 44px; /* Touch-friendly minimum height */
  justify-content: center;
}

.btn-sm {
  padding: 6px 12px;
  font-size: var(--font-size-sm);
  min-height: 38px;
}

@media (max-width: 768px) {
  .btn-sm {
    min-height: 44px; /* Ensure standard touch size on mobile */
  }
}

.btn-outline {
  border: 2px solid var(--border-color);
  color: var(--text-color);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  background: rgba(52, 152, 219, 0.05);
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

.btn-login {
  border: 2px solid var(--border-color);
  color: var(--text-color);
}

.btn-login:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.btn-register {
  background: var(--primary-color);
  color: var(--white);
}

.btn-register:hover {
  background: var(--dark-color);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  font-size: var(--font-size-xl);
  color: var(--text-color);
  cursor: pointer;
  padding: 12px; /* Increased for better touch target */
  border-radius: var(--border-radius);
  transition: var(--transition);
  min-height: 44px; /* Touch-friendly minimum */
  min-width: 44px;
}

.cart-btn:hover {
  background: var(--bg-light);
  color: var(--secondary-color);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: bold;
}

/* --- NAVBAR TOGGLE --- */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  border: none;
  background: transparent;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 70px; /* Ajustar segÃºn altura de header mÃ³vil */
  left: 0;
  width: 100%;
  background: var(--white);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-fixed);
  border-top: 1px solid var(--border-color);

  /*rosado*/
}

.nav-menu.active {
  display: flex;
}

.search-container {
  display: none; /* Oculto en mÃ³viles, se activa en tablets o con botÃ³n de lupa */
}

/* Desktop overrides moved to responsive.css */

/* 🔹 CARRUSEL PRINCIPAL 🔹 */
.hero {
  margin-top: 85px; /* Ajustado para el nuevo header con nav */
  width: 100%;
  background: var(--bg-light);
  overflow: hidden;
  position: relative;
  margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
  .hero {
    margin-top: 110px; /* Más espacio en desktop por el nav centrado */
  }
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 350px; /* Altura adecuada para móvil */
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: pan-y;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Las imágenes llenan el espacio sin deformarse */
  object-position: center;
  z-index: 1;
}

/* Capa oscura para mejorar legibilidad del texto */
.carousel-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 2;
}

.carousel-caption {
  position: relative;
  z-index: 3;
  color: var(--white);
  text-align: left;
  padding: var(--spacing-xl);
  max-width: 800px;
  width: 90%;
}

.carousel-caption h2 {
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.1;
  animation: fade-in-up 0.8s ease-out;
}

.carousel-caption p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
  animation: fade-in-up 0.8s ease-out 0.2s backwards;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--font-size-lg);
  color: var(--text-color);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: var(--spacing-lg);
}

.carousel-next {
  right: var(--spacing-lg);
}

.carousel-indicators {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-sm);
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background: var(--white);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .hero {
    height: 350px; /* Reducir altura del carrusel en mÃ³viles */
    margin-top: 60px;
  }

  .slide-content h2 {
    font-size: 1.75rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
  }
}

/* ðŸ”¹ SECCIONES */
.section-title {
  text-align: center;
  font-size: var(--font-fluid-h2);
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: var(--spacing-xl);
  font-size: var(--font-size-lg);
}

/* ðŸ”¹ PRODUCTOS */
/* ðŸ”¹ PRODUCTOS (ESTILO MEJORADO) */
.products-section {
  padding: var(--spacing-2xl) 0;
  background: #f8fafc; /* Fondo gris muy suave para la secciÃ³n */
}

.products-filters {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; /* Show thin scrollbar */
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  position: relative;
}

/* Gradient fade indicators for scroll */
.products-filters::before,
.products-filters::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 10px;
  width: 30px;
  pointer-events: none;
  z-index: 1;
}

.products-filters::before {
  left: 0;
  background: linear-gradient(to right, #f8fafc, transparent);
}

.products-filters::after {
  right: 0;
  background: linear-gradient(to left, #f8fafc, transparent);
}

@media (max-width: 768px) {
  .products-filters {
    justify-content: flex-start;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    gap: var(--spacing-sm);
  }
}

.filter-btn {
  padding: 10px 18px;
  border: 2px solid #e2e8f0;
  background: var(--white);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-color);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  min-height: 44px; /* Touch-friendly */
  white-space: nowrap; /* Prevent text wrapping */
  flex-shrink: 0; /* Prevent shrinking in flex container */
}

.filter-btn:hover {
  background: var(--bg-light);
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

.filter-btn.active {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(44, 62, 80, 0.25);
}

.filter-btn:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile default: 1 column */
  gap: var(--spacing-md);
  padding: 0 var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

/* Desktop overrides moved to responsive.css */
@media (max-width: 600px) {
  .product-info {
    padding: 12px;
  }

  .product-title {
    font-size: 0.85rem;
  }

  .product-price {
    font-size: 1rem;
  }
}

/* Tarjeta Estilo Premium */
.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 4px 6px -2px rgba(0, 0, 0, 0.025);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  border: 1px solid white; /* Borde sutil para modo claro */
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #edf2f7;
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* Standard fashion aspect ratio */
  background: #f5f5f5;
  overflow: hidden;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Clave: Cubre todo el espacio sin deformarse */
  transition: transform 0.7s ease; /* Zoom muy suave */
}

/* Efecto Zoom en Hover */
.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 8px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Max 2 lÃ­neas */
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px; /* Menor margen para acomodar tallas */
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e53e3e;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px; /* Pill shape */
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-badge.out-of-stock {
  background: #718096;
  right: auto;
  left: 12px;
}

/* Estilos para el botÃ³n de Agregar al Carrito */
.add-to-cart {
  margin-top: auto;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.add-to-cart:hover {
  background: var(--primary-color);
  color: white;
}

.add-to-cart:disabled {
  border-color: #cbd5e0;
  color: #cbd5e0;
  cursor: not-allowed;
  background: transparent;
}

/* ðŸ”¹ SKELETON LOADERS */
.skeleton {
  background: #f0f0f0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

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

.skeleton-card {
  height: 400px;
  background: white;
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.skeleton-image {
  width: 100%;
  height: 250px;
}

.skeleton-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-text {
  height: 18px;
  width: 100%;
  border-radius: 4px;
}

.skeleton-text.short {
  width: 60%;
}

/* ðŸ”¹ NEWSLETTER */
.newsletter-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: var(--spacing-2xl) 0;
  text-align: center;
}

.newsletter-content h2 {
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-3xl);
}

.newsletter-content p {
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-lg);
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: var(--spacing-md);
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
}

/* ðŸ”¹ SOCIAL AUTH */
.social-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--text-lighter);
}

.social-auth-divider::before,
.social-auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.social-auth-divider span {
  padding: 0 10px;
  font-size: 0.85rem;
}

.social-auth-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

.social-btn.google i {
  color: #db4437;
}
.social-btn.facebook i {
  color: #4267b2;
}

/* ðŸ”¹ FOOTER */
.footer {
  background: var(--primary-color);
  color: var(--white);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-md);
  color: var(--white);
}

.footer-section h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
  color: var(--white);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.payment-methods {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
  font-size: var(--font-size-xl);
}

.shipping-info {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
  flex-wrap: wrap;
}

.shipping-badge {
  background: var(--bg-light);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  color: var(--text-color);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--font-size-sm);
}

.footer-links a:hover {
  color: var(--white);
}

/* ðŸ”¹ MODALES */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Un poco más oscuro para mejor contraste */
  backdrop-filter: blur(4px); /* Efecto Glassmorphism */
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.modal.active {
  display: flex;
  margin-top: 1rem;
}

.modal-content {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-2xl);
  width: 100%;
  max-width: 500px; /* Un poco más ancho por defecto */
  max-height: 90vh; /* Asegurar que no se salga de la pantalla */
  overflow-y: auto; /* Permitir scroll si el contenido es largo */
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-modal {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  background: none;
  border: none;
  font-size: var(--font-size-xl);
  cursor: pointer;
  color: var(--text-light);

  transition: var(--transition);
}

.close-modal:hover {
  color: var(--text-color);
}

.modal h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--primary-color);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group input {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-sm);
}

.remember-me,
.terms-agree {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.forgot-password {
  color: var(--secondary-color);
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

.auth-divider {
  text-align: center;
  margin: var(--spacing-lg) 0;
  position: relative;
  color: var(--text-light);
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
  z-index: 1;
}

.auth-divider span {
  background: var(--white);
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 2;
}

.social-auth {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.btn-social {
  flex: 1;
  justify-content: center;
  border: 2px solid var(--border-color);
  background: var(--white);
}

.btn-google:hover {
  border-color: #db4437;
  color: #db4437;
}

.btn-facebook:hover {
  border-color: #4267b2;
  color: #4267b2;
}

.auth-switch {
  text-align: center;
  margin-top: var(--spacing-lg);
  color: var(--text-light);
}

.auth-switch a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* ðŸ”¹ ESTADOS */
.loading-products,
.empty-cart {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  grid-column: 1 / -1;
}

.error {
  background: #f8d7da;
  color: #721c24;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin: var(--spacing-lg) 0;
}

/* ðŸ”¹ RESPONSIVE */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
  /*
  .nav-actions {
    gap: var(--spacing-sm);
  }
*/
  .search-container {
    display: none;
  }

  .hero {
    height: 300px;
    margin-top: 60px;
  }

  .slide-content h2 {
    font-size: var(--font-size-2xl);
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .social-auth {
    flex-direction: column;
  }

  .color-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.1),
      inset 0 0 0 2px rgba(255, 255, 255, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .color-btn::after {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.2s ease;
  }

  .color-btn:hover {
    transform: translateY(-2px);
    box-shadow:
      0 4px 8px rgba(0, 0, 0, 0.15),
      inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  }

  .color-btn.active {
    transform: scale(1.1);
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.2),
      inset 0 0 0 2px rgba(255, 255, 255, 0.8);
  }

  .color-btn.active::after {
    border-color: var(--primary-color);
    transform: scale(1.1);
  }

  /* Soporte para colores muy claros (blanco, beige) */
  .color-btn[style*="#FFFFFF"],
  .color-btn[style*="white"],
  .color-btn[style*="#f5f5dc"] {
    border: 1px solid #e2e8f0;
  }
}

/* Optimización Premium para Móviles (Bottom Sheets Robustos) */
@media (max-width: 600px) {
  .modal {
    padding: 0;
    align-items: flex-end; /* Los modales nacen de abajo en móvil */
    background: rgba(0, 0, 0, 0.75); /* Fondo un poco más oscuro */
  }

  .modal-content {
    max-width: 100%;
    width: 100%; /* Asegurar ancho completo */
    margin: 0;
    border-radius: 20px 20px 0 0; /* Esquinas redondeadas */
    padding: 25px 20px 80px; /* Padding seguro inferior para scroll y botones */
    max-height: 85vh; /* ALTURA SEGURA: Deja espacio arriba para cerrar tocando fuera */
    height: auto;
    overflow-y: auto; /* Scroll vertical CRÍTICO */
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
    animation: bottomSheetSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: relative; /* Para posicionar el close-modal y grabber */
  }

  /* Asegurar que el contenido interno no rompa el layout */
  .auth-form,
  .checkout-form {
    width: 100%;
    margin-bottom: 20px;
  }

  .modal-content h2 {
    margin-top: 15px; /* Espacio para el grabber */
    font-size: 1.5rem;
  }

  @keyframes bottomSheetSlide {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  /* Grabber visual (Barrita superior) */
  .modal-content::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 5px;
    background: #e2e8f0;
    border-radius: 10px;
  }

  /* Botones de acción siempre visibles y accesibles */
  .checkout-actions,
  .modal-footer,
  .form-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .btn-full {
    padding: 14px; /* Botones más altos para dedos */
    font-size: 1rem;
  }

  /* Botón de cerrar flotante y seguro */
  .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    z-index: 20;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
  }

  .checkout-modal-content {
    padding-top: 20px !important;
  }

  /* Ajuste específico para el stepper de checkout */
  .checkout-progress {
    margin: 10px 0 25px;
    transform: scale(0.9); /* Reducir un poco en pantallas muy pequeñas */
    width: 100%;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .nav-actions .btn span {
    display: none;
    background-color: #f500ed;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  /**
  .nav-actions {
  display: flex;
  margin-top: 1rem;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: space-between;
  background-color: #1CF500;
  gap: var(--spacing-md);
}
}

/* BotÃ³n de Favorito (CorazÃ³n solo sin borde) */
  .favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
    color: #cbd5e0; /* Color inactivo */
    transition:
      transform 0.2s,
      color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
  }

  .favorite-btn:hover {
    transform: scale(1.2);
    color: #e53e3e; /* Rojo al pasar mouse */
  }

  .product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
  }

  /* BotÃ³n Compartir */
  .share-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #a0aec0;
    transition: color 0.2s;
    margin-left: 8px;
    z-index: 5;
  }

  .share-btn:hover {
    color: #4a5568;
  }

  .card-actions {
    display: flex;
    align-items: center;
  }

  /* ðŸ”¹ TALLAS (SIZE SELECTOR) */
  .product-sizes {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
  }

  .size-btn {
    background: transparent;
    border: 1px solid #cbd5e0;
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
  }

  .size-btn:hover {
    border-color: var(--primary-color);
  }

  .size-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    font-weight: 600;
    transform: scale(1.05);
  }

  /* ðŸ”¹ SELECTOR DE COLORES */
  .product-colors {
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .color-label {
    display: block;
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 500;
  }

  .colors-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .color-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.1),
      inset 0 0 0 2px rgba(255, 255, 255, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .color-btn::after {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.2s ease;
  }

  .color-btn:hover {
    transform: translateY(-2px);
    box-shadow:
      0 4px 8px rgba(0, 0, 0, 0.15),
      inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  }

  .color-btn.active {
    transform: scale(1.1);
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.2),
      inset 0 0 0 2px rgba(255, 255, 255, 0.8);
  }

  .color-btn.active::after {
    border-color: var(--primary-color);
    transform: scale(1.1);
  }

  /* Soporte para colores muy claros (blanco, beige) */
  .color-btn[style*="#FFFFFF"],
  .color-btn[style*="white"],
  .color-btn[style*="#f5f5dc"] {
    border: 1px solid #e2e8f0;
  }
}

/* AnimaciÃ³n de shake para validaciÃ³n */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

/* Estilos para product-sizes */
.product-sizes {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* Mejoras para el header del producto */
.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.favorite-btn,
.share-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #718096;
  transition: all 0.2s;
  padding: 4px;
}

.favorite-btn:hover {
  color: #e53e3e;
  transform: scale(1.2);
}

.share-btn:hover {
  color: #667eea;
  transform: scale(1.2);
}

.product-description {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 10px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ============================================
   ðŸ’³ SISTEMA DE CHECKOUT
   ============================================ */

/* Modal de Checkout */
.checkout-modal-content {
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
}

/* Barra de Progreso */
.checkout-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
  padding: 0 20px;
}

.checkout-progress::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: #e2e8f0;
  z-index: 0;
}

.checkout-progress .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.step-number {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #718096;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transform: scale(1.1);
}

.step.completed .step-number {
  background: #27ae60;
  color: white;
}

.step.completed .step-number::after {
  content: "\2713";
}

.step-label {
  font-size: 14px;
  font-weight: 500;
  color: #718096;
}

.step.active .step-label {
  color: var(--primary-color);
  font-weight: 600;
}

/* Pasos del Checkout */
.checkout-step {
  animation: fadeIn 0.3s ease;
}

.checkout-step h2 {
  margin-bottom: 25px;
  color: var(--text-color);
  font-size: 24px;
}

/* Optimización de botones de acción para móviles */
.checkout-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.checkout-actions .btn {
  flex: 1;
  min-height: 50px; /* Área táctil mínima recomendada */
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.checkout-actions .btn:active {
  transform: scale(0.97); /* Feedback táctil */
}

/* Resumen del Carrito */
.checkout-items {
  margin-bottom: 20px;
}

.checkout-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #f7fafc;
  border-radius: 10px;
  margin-bottom: 10px;
}

.checkout-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.checkout-item .item-details {
  flex: 1;
}

.checkout-item .item-details h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
}

.checkout-item .item-details p {
  margin: 3px 0;
  font-size: 14px;
  color: #718096;
}

.cart-item-sku, .item-sku {
  display: inline-block;
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.checkout-item .item-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
}

.checkout-subtotal {
  border-top: 2px solid #e2e8f0;
  padding-top: 15px;
  margin-top: 15px;
}

.subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  margin-bottom: 10px;
}

/* Formulario de EnvÃ­o */
.shipping-type-selector {
  margin-bottom: 30px;
}

.shipping-type-selector h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.shipping-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.shipping-option-card {
  position: relative;
  cursor: pointer;
}

.shipping-option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.shipping-option-card .option-content {
  padding: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  background: white;
}

.shipping-option-card input[type="radio"]:checked + .option-content {
  border-color: var(--primary-color);
  background: rgba(102, 126, 234, 0.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* ðŸ”¹ ADMIN & PROFILE FORMS */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

#profile-form .btn-primary {
  align-self: center;
  min-width: 200px;
  padding: 12px 24px;
  margin-top: 20px;
}

.shipping-option-card .option-content h4 {
  margin: 10px 0 5px 0;
  font-size: 16px;
}

.shipping-option-card .option-content p {
  font-size: 14px;
  color: #718096;
  margin-bottom: 10px;
}

.price-tag {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Selector de Agencias */
.agency-selector {
  margin-bottom: 30px;
}

.agency-selector h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

/* --- MERCADO ENVÍOS STYLE --- */
.agency-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agency-card-modern {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.agency-card-modern:hover {
    border-color: #3483fa;
    box-shadow: 0 4px 12px rgba(52, 131, 250, 0.1);
}

.agency-card-modern.active {
    border-color: #3483fa;
    background: #f5f8ff;
}

.agency-card-modern input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.agency-main {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.brand-logo {
    width: 60px;
    height: 40px;
    object-fit: contain;
}

.agency-title {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.status-msg {
    margin: 4px 0 0 0;
    font-size: 13px;
}

.status-msg.available { color: #22c55e; }
.status-msg.unavailable { color: #ef4444; }

.agency-pricing {
    text-align: right;
    min-width: 80px;
}

.free-shipping-tag {
    color: #22c55e;
    font-weight: 700;
    font-size: 14px;
}

.agency-cost-value {
    color: #3483fa;
    font-weight: 600;
    font-size: 18px;
}

.me-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ffe600;
    color: #333;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-bottom-left-radius: 8px;
    text-transform: uppercase;
    z-index: 2;
}

.selection-indicator {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #3483fa;
    font-size: 20px;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 2;
}

.agency-card-modern.active .selection-indicator {
    opacity: 1;
    left: 15px;
}

.agency-card-modern.active .card-body {
    padding-left: 35px; /* Espacio para el check */
}

.agency-card-modern .card-body {
    transition: padding 0.2s ease;
}

/* Formularios */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small, .helper-text {
  display: block;
  margin-top: 5px;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.3;
}

.helper-icon {
  font-size: 0.85rem;
  color: #3483fa; /* Azul Mercado Libre */
  margin-left: 5px;
  cursor: help;
}

/* Ubicaciones de Agencias */
.agency-locations {
    margin: 20px 0;
}
.branch-code {
    background: #edf2f7;
    color: #4a5568;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 8px;
    border: 1px solid #e2e8f0;
}

.location-card.active {
    border-color: #3483fa;
    background: #f5f8ff;
}

.location-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.location-card:hover {
  border-color: var(--primary-color);
  background: rgba(102, 126, 234, 0.05);
}

.location-card input[type="radio"] {
  margin-right: 12px;
}

.location-icon {
  color: var(--primary-color);
  margin-right: 12px;
  font-size: 20px;
}

.location-details h5 {
  margin: 0 0 5px 0;
  font-size: 15px;
}

.location-details p {
  margin: 0;
  font-size: 13px;
  color: #718096;
}

.no-locations,
.info-text {
  text-align: center;
  padding: 30px;
  color: #718096;
}

/* Resumen de EnvÃ­o */
.shipping-summary {
  background: #f7fafc;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
}

.summary-row.total {
  border-top: 2px solid #e2e8f0;
  padding-top: 10px;
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
}

/* MÃ©todos de Pago */
.payment-header {
  margin-bottom: 25px;
}

.payment-header .total-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color), #5568d3);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-top: 15px;
}

.payment-header .total-amount span {
  font-size: 16px;
}

.payment-header .total-amount strong {
  font-size: 28px;
}

.payment-method-card {
  margin-bottom: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.payment-method-card:hover {
  border-color: var(--primary-color);
}

.payment-method-card input[type="radio"] {
  display: none;
}

.payment-method-card input[type="radio"]:checked + .payment-method-header {
  background: rgba(102, 126, 234, 0.1);
  border-left: 4px solid var(--primary-color);
}

.payment-method-header {
  display: flex;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-icon {
  font-size: 32px;
  margin-right: 15px;
}

.payment-title {
  flex: 1;
}

.payment-title h4 {
  margin: 0 0 5px 0;
  font-size: 18px;
}

.payment-title p {
  margin: 0;
  font-size: 14px;
  color: #718096;
}

.payment-arrow {
  color: #718096;
  transition: transform 0.3s ease;
}

.payment-method-content {
  padding: 20px;
  background: #f7fafc;
}

/* Datos de Pago */
.payment-data-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin: 15px 0;
}

.payment-data-item {
  margin-bottom: 15px;
}

.payment-data-item label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
}

.payment-data-item.amount-highlight {
  background: rgba(102, 126, 234, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
}

.amount-display {
  text-align: center;
}

.amount-display strong {
  display: block;
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.amount-display small {
  color: #718096;
}

/* Campos Copiables */
.copyable-field {
  display: flex;
  gap: 10px;
}

.copyable-field input {
  flex: 1;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  background: #f7fafc;
}

.copy-btn {
  padding: 12px 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  white-space: nowrap;
}

.copy-btn:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Crypto Address */
.crypto-address-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin: 15px 0;
}

.network-warning {
  background: #fff3cd;
  border: 2px solid #ffc107;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.network-warning i {
  color: #ffc107;
  margin-right: 8px;
}

.network-warning strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.network-warning p {
  margin: 0;
  font-size: 13px;
  color: #856404;
}

.qr-code-section {
  text-align: center;
  margin: 20px 0;
}

.qr-placeholder {
  display: inline-block;
  padding: 40px;
  background: #f7fafc;
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
}

.qr-placeholder i {
  color: #cbd5e0;
  margin-bottom: 10px;
}

.qr-placeholder p {
  margin: 0;
  color: #718096;
}

/* Subida de Archivos */
.upload-section {
  margin: 20px 0;
}

.upload-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-color);
}

.upload-label i {
  margin-right: 8px;
  color: var(--primary-color);
}

.file-input {
  width: 100%;
  padding: 12px;
  border: 2px dashed #cbd5e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-input:hover {
  border-color: var(--primary-color);
  background: rgba(102, 126, 234, 0.05);
}

.file-preview {
  margin-top: 15px;
}

.image-preview {
  position: relative;
  display: inline-block;
}

.image-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f7fafc;
  border-radius: 8px;
}

.file-info i {
  color: #e74c3c;
  font-size: 32px;
}

.remove-file {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #e74c3c;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.remove-file:hover {
  background: #c0392b;
  transform: scale(1.1);
}

/* PayPal */
.paypal-info {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 8px;
  margin: 15px 0;
}

.paypal-info i {
  color: #27ae60;
  font-size: 32px;
  margin-bottom: 10px;
}

.paypal-note {
  display: block;
  text-align: center;
  margin-top: 15px;
  font-size: 12px;
  color: #718096;
}

.paypal-placeholder {
  text-align: center;
  padding: 40px;
  background: #fff3cd;
  border-radius: 8px;
}

/* Botones de AcciÃ³n */
.checkout-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.checkout-actions .btn {
  flex: 1;
}

.btn-full {
  width: 100%;
}

/* Animaciones para botÃ³n de pago */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
  }
}

@keyframes pulse-glow-primary {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
  }
}

.btn-success {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(39, 174, 96, 0.3);
  animation: pulse-glow 2s infinite;
}

.btn-success:active:not(:disabled) {
  transform: translateY(0);
}

.btn-success:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 2rem;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
  animation: pulse-glow-primary 2s infinite;
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Modal de ConfirmaciÃ³n */
.order-confirmation-modal {
  text-align: center;
  padding: 40px 20px;
}

.success-animation {
  margin-bottom: 30px;
}

.checkmark-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #27ae60;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s ease;
}

.checkmark {
  width: 40px;
  height: 70px;
  border: solid white;
  border-width: 0 8px 8px 0;
  transform: rotate(45deg);
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.order-number {
  font-size: 18px;
  margin: 20px 0;
}

.pending-notice,
.success-notice {
  background: #f7fafc;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
}

.pending-notice i {
  color: #ffc107;
  font-size: 32px;
  margin-bottom: 10px;
}

.success-notice i {
  color: #27ae60;
  font-size: 32px;
  margin-bottom: 10px;
}

.order-details {
  text-align: left;
  background: #f7fafc;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
}

.order-details h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.order-details p {
  margin: 8px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .checkout-modal-content {
    padding: 20px;
  }

  .checkout-progress {
    padding: 0 5px;
    margin-bottom: 30px;
  }

  .checkout-progress::before {
    left: 5%;
    right: 5%;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 14px;
    margin-bottom: 8px;
  }

  .step-label {
    font-size: 11px;
    text-align: center;
    line-height: 1.2;
    max-width: 80px;
  }

  .shipping-options,
  .agency-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .checkout-actions {
    flex-direction: column;
  }

  .copyable-field {
    flex-direction: column;
  }

  .copy-btn {
    width: 100%;
  }

  #initial-loader img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
  }
}

/*codigo de mejoracion del modal carrito para mÃ³viles*/

/* 1. Ajuste del Contenedor Principal del Modal */
.modal-content {
  width: 95%; /* Casi todo el ancho en mÃ³viles */
  max-width: 500px; /* Pero no mÃ¡s de 500px en PC */
  max-height: 90vh; /* No mÃ¡s del 90% de la altura de la pantalla */
  margin: 20px auto;
  padding: 15px;
  border-radius: 12px;
  overflow-y: auto; /* Habilita scroll si hay muchos productos */
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 2. Ajuste de los Ãtems del Carrito (Layout Horizontal) */
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

/* 3. Â¡CRÃTICO! Control de la imagen del producto */
.cart-item img,
.cart-item-img {
  width: 70px; /* TamaÃ±o optimizado para mÃ³viles */
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid #edf2f7;
}

/* 4. InformaciÃ³n del producto (Texto) */
.cart-item-info {
  flex-grow: 1; /* Toma el espacio restante */
  min-width: 0; /* Permite que el texto se trunque si es muy largo */
}

.cart-item-name {
  font-size: 0.95rem;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Pone "..." si el nombre es muy largo */
}

/* 5. Controles de cantidad en mÃ³viles */
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-btn {
  padding: 5px 8px;
  font-size: 0.8rem;
}

/* ðŸ”¹ OVERLAY PARA DETALLES DE ORDEN (ADMIN) */
.modal-overlay {
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

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

.modal-overlay .btn-primary {
  background: var(--admin-primary) !important;
  background-color: #07f8be;
}

/* ðŸ‘¤ DASHBOARD DE USUARIO (FASE 9 - PREMIUM POLISH) */
.dashboard-content {
  max-width: 1000px !important;
  border-radius: 6px !important;
  background: #f5f5f5 !important;
}

.dashboard-container {
  display: flex;
  min-height: 600px;
  background: #f5f5f5;
  padding: 20px;
  gap: 16px;
}

.dashboard-sidebar {
  width: 280px;
  background: #fff;
  border-radius: 6px;
  border: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border: none;
  background: transparent;
  color: #333;
  cursor: pointer;
  font-weight: 400;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
  font-size: 15px;
}

.dash-nav-item i {
  font-size: 18px;
  color: #666;
  width: 24px;
  text-align: center;
}

.dash-nav-item:hover {
  background: #f5f5f5;
}

.dash-nav-item.active {
  background: #f5f5f5;
  color: #3483fa;
  font-weight: 600;
  border-left: 4px solid #3483fa;
  padding-left: 20px;
}

.dash-nav-item.active i {
  color: #3483fa;
}

.dash-nav-item.logout-item {
  margin-top: auto;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.dashboard-main {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  padding: 32px;
  overflow-y: auto;
  max-height: 85vh;
}

.dash-view h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #333;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  background: white;
  padding: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 24px;
}

.profile-avatar {
  position: relative;
  width: 100px;
  height: 100px;
}

.profile-avatar img {
  /* width: 100%;*/
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eee;
  box-shadow: none;
}

.avatar-edit-label {
  background: #fff;
  color: #3483fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
}

.profile-welcome h4 {
  font-size: 22px;
  color: #333;
}

.profile-welcome p {
  font-size: 16px;
  color: #666;
}

/* Historial de Compras Style Mercado Libre */
.user-order-card {
  border: 1px solid #eee;
  margin-bottom: 16px;
  padding: 24px;
  border-radius: 6px;
  background: #fff;
}

.order-card-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}

.order-status-pill {
  background: #f1f8ff;
  color: #3483fa;
  border: 1px solid #d1e9ff;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-paid {
  background: #e6fffa;
  color: #27ae60;
  border-color: #b2f5ea;
}
.status-shipped {
  background: #ebf8ff;
  color: #3182ce;
  border-color: #bee3f8;
}
.status-pending_verification {
  background: #fffaf0;
  color: #dd6b20;
  border-color: #fbd38d;
}

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

/* Responsivo Dashboard */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
    padding: 10px;
  }
  .dashboard-sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 0;
  }
  .dash-nav-item {
    padding: 15px;
    font-size: 14px;
    white-space: nowrap;
    width: auto;
  }
  .dash-nav-item.active {
    border-left: none;
    border-bottom: 3px solid #3483fa;
  }

  #initial-loader img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
  }
}

/* Estilos de Items en el Historial */
.order-items-minimal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eee;
}

.mini-item-info {
  flex: 1;
}

.mini-item-info p {
  margin: 0;
  font-size: 14px;
  color: #333;
}

.mini-item-info span {
  font-size: 12px;
  color: #999;
}

.mini-item-price {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* Estilos de Notificaciones en el Dashboard */
.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.notification-item {
  display: flex;
  gap: 15px;
  padding: 16px;
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  transition: all 0.2s;
  cursor: pointer;
}

.notification-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background: #f8fafc;
}

.notification-item.unread {
  border-left: 4px solid #3483fa;
  background: #f1f8ff;
}

.notif-icon {
  width: 40px;
  height: 40px;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #4a5568;
  flex-shrink: 0;
}

.unread .notif-icon {
  background: #3483fa;
  color: white;
}

.notification-item[data-type="success"] .notif-icon {
  color: #2ecc71;
}
.notification-item[data-type="shipping"] .notif-icon {
  color: #3498db;
}
.notification-item[data-type="warning"] .notif-icon {
  color: #e67e22;
}

.notif-content {
  flex: 1;
}

.notif-message {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 8px;
}

.notif-date {
  font-size: 12px;
  color: #a0aec0;
}

/* REAL-TIME TRACKING PROGRESS */
.tracking-progress-container {
  margin: 20px 0;
  position: relative;
  padding: 10px 0;
}

.tracking-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.tracking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
}

.step-icon {
  width: 35px;
  height: 35px;
  background: #edf2f7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #a0aec0;
  transition: all 0.3s ease;
  border: 3px solid white;
  box-shadow: 0 0 0 1px #e2e8f0;
}

.tracking-step.active .step-icon {
  background: #3483fa;
  color: white;
  box-shadow: 0 0 0 1px #3483fa;
}

.tracking-step.completed .step-icon {
  background: #27ae60;
  color: white;
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  color: #718096;
  text-align: center;
}

.progress-bar-bg {
  position: absolute;
  top: 27px; /* Ajustado para estar centrado con el icono */
  left: 12.5%;
  width: 75%;
  height: 4px;
  background: #edf2f7;
  z-index: 1;
}

.progress-bar-fill {
  height: 100%;
  background: #3483fa;
  transition: width 0.5s ease;
}

.tracking-cancelled {
  padding: 10px;
  background: #fff5f5;
  color: #c53030;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
  border: 1px solid #feb2b2;
}

/* PREMIUM VISUAL EFFECTS */
.glass-modal {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.premium-card {
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease !important;
}

.premium-card:hover {
  transform: translateY(-5px) scale(1.01) !important;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* ðŸ”¹ FACTURACIÃ“N Y BALANCES (Dashboard) */
.billing-summary-widget {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.summary-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid #edf2f7;
}

.summary-card h4 {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.summary-card .amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
}

.summary-card.pending .amount {
  color: #e53e3e;
}

.summary-card.paid .amount {
  color: #38a169;
}

.invoice-card {
  background: white;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s;
}

.invoice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.invoice-info h4 {
  margin: 0 0 5px 0;
  font-size: 1rem;
}

.invoice-info p {
  font-size: 0.85rem;
  color: #718096;
  margin: 0;
}

.invoice-status {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-paid-alt {
  background: #c6f6d5;
  color: #22543d;
}
.status-pending-alt {
  background: #feebc8;
  color: #744210;
}

.invoice-actions {
  display: flex;
  gap: 10px;
}

.btn-invoice {
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-pay {
  background: #3182ce;
  color: white;
}

.btn-pay:hover {
  background: #2b6cb0;
}

.btn-download {
  background: #edf2f7;
  color: #4a5568;
}

.btn-download:hover {
  background: #e2e8f0;
}

/* ðŸ›’ Checkout Paso 1: Controles de Cantidad */
.item-quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
}

.qty-btn {
  background: white;
  border: 1px solid #e2e8f0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: #64748b;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.qty-btn:hover {
  background: #f8fafc;
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: scale(1.1);
}

.qty-value {
  font-weight: 600;
  color: #1e293b;
  min-width: 20px;
  text-align: center;
}

/* ðŸš€ Animaciones de Checkout */
.checkout-step {
  animation: fadeInSlideRight 0.4s ease-out;
}

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

.step.completed .step-number {
  background: #22c55e !important;
  color: white !important;
}

.step.completed .step-number::after {
  content: "";
  font-size: 12px;
}

/* ðŸ“¦ Checkout Paso 2: GuÃ­as y Validaciones */
.helper-icon {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-left: 5px;
  cursor: help;
  transition: color 0.2s;
}

/* âœ¨ Modal de Ã‰xito "Wow" */
.success-wow {
  text-align: center;
  padding: 30px 20px;
}

.success-icon-container {
  margin-bottom: 20px;
}

.sw-check {
  width: 60px;
  height: 60px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
  animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sw-check-line-tip {
  position: absolute;
  width: 15px;
  height: 4px;
  background: white;
  top: 34px;
  left: 17px;
  transform: rotate(45deg);
}

.sw-check-line-long {
  position: absolute;
  width: 30px;
  height: 4px;
  background: white;
  top: 28px;
  left: 23px;
  transform: rotate(-45deg);
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.status-box {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 12px;
  margin: 20px 0;
  text-align: left;
  font-size: 0.9rem;
}

.status-box.pending {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.status-box.verified {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.order-summary-box {
  background: #f8fafc;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.next-steps {
  text-align: left;
  background: #f1f5f9;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.next-steps h4 {
  margin: 0 0 10px 0;
  font-size: 1rem;
}
.next-steps ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.next-steps li {
  margin-bottom: 8px;
  font-size: 0.85rem;
  display: flex;
  gap: 8px;
  align-items: center;
}
.next-steps li i {
  color: var(--primary-color);
}

.confirm-actions {
  display: flex;
  gap: 10px;
}

.confirm-actions button {
  flex: 1;
}

.helper-icon:hover {
  color: var(--primary-color);
}

.validation-msg {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 4px;
  transition: all 0.3s ease;
}

.agency-card input:checked + .agency-content {
  border-color: var(--primary-color);
  background: #f0f7ff;
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
}

.shipping-option-card input:checked + .option-content {
  border-color: var(--primary-color);
  background: #f0f7ff;
}

/* Tooltip simple por atributo title */
[title] {
  position: relative;
}

[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  z-index: 1000;
  white-space: nowrap;
  margin-bottom: 5px;
}

/* 🔹 ACTION BUTTONS (Added by Agent) */
.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.favorite-btn,
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: white;
  color: #718096;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.favorite-btn:hover,
.share-btn:hover {
  transform: scale(1.1);
  border-color: #cbd5e0;
  color: var(--secondary-color);
}

.favorite-btn.active {
  border-color: #e53e3e;
  background: #fff5f5;
  color: #e53e3e; /* Ensure icon color matches */
}

/* --- DEVELOPER CREDIT --- */
.footer-bottom-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.developer-credit {
  background: rgba(255, 255, 255, 0.05); /* Toque sutil */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 5px 15px 5px 5px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.developer-credit:hover {
  background: rgba(
    44,
    62,
    80,
    0.1
  ); /* Oscurecer un poco al hover si el fondo es claro */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary-color);
}

/* En caso de que el footer sea oscuro, ajustamos */
.footer-bottom {
  background: #1a202c; /* Asegurar fondo oscuro para footer bottom */
  color: #cbd5e0;
  padding: 20px 0;
}

.dev-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dev-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dev-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dev-label {
  font-size: 0.65rem;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 2px;
}

.dev-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.dev-contact {
  font-size: 0.75rem;
  color: var(--secondary-color);
  text-decoration: none;
  margin-top: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.developer-credit:hover .dev-contact {
  height: auto;
  opacity: 1;
  margin-top: 2px;
}

.developer-credit:hover .dev-label {
  display: none;
}

@media (width <= 2200px) {
  #navpric {
    display: flex;
    margin-top: -1rem;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: space-evenly;
    gap: var(--spacing-md);

    #initial-loader img {
      width: 120px;
      height: auto;
      margin-bottom: 20px;
      border-radius: 50%;
      animation: pulse 2s infinite ease-in-out;
    }
  }
}
/*
.nav-actions{
 background-color: #99FF00;
}
*/

/* =====================================================
   DISPOSITIVOS MUY PEQUEÑOS (Menos de 350px)
   Asegurar que los modales sean scrollables para ver todos los botones
   ===================================================== */
@media (max-width: 350px) {
  .modal-content,
  .checkout-modal-content {
    max-height: 85vh !important; /* Altura segura */
    overflow-y: auto !important; /* Forzar scroll vertical */
    padding: 20px 15px !important; /* Reducir padding para más espacio útil */
    border-radius: 20px 20px 0 0 !important;
  }

  .modal {
    align-items: flex-end !important; /* Alinear al fondo para fácil acceso con pulgar */
  }

  /* Asegurar que los botones de acción no se peguen al borde y sean accesibles */
  .modal-footer,
  .checkout-actions,
  .form-options {
    padding-bottom: 60px !important; /* Espacio extra generoso para scroll final */
    flex-wrap: wrap; /* Permitir que los botones se apilen */
  }

  /* Asegurar botones grandes y "tapeables" */
  .btn,
  .social-btn {
    min-height: 48px;
  }

  /* Reducir tamaño de textos grandes para ajustar mejor */
  .modal-content h2 {
    font-size: 1.25rem !important;
  }

  #initial-loader img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
  }
}
