:root {
  --primary: #a66dd4;
  --primary-dark: #7c3aed;
  --primary-light: #d4a8f0;
  --secondary: #364f6b;
  --accent: #ff6ec7;
  --white: #ffffff;
  --off-white: #faf9fc;
  --gray-100: #f5f3f8;
  --gray-200: #ede9f5;
  --gray-500: #8b8a9a;
  --gray-700: #444356;
  --lila-light: #f3e9f3;
  --dark: #1a1625;
  --font-display: "Outfit", sans-serif;
  --font-body: "Poppins", sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-section {
  padding: 120px 20px 60px;
  background: var(--lila-light);
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* ============================================
   INDICADOR DE CARGA
   ============================================ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(243, 233, 243, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.loading-spinner {
  text-align: center;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(166, 109, 212, 0.2);
}

.loading-spinner i {
  font-size: 3em;
  color: var(--primary);
  margin-bottom: 20px;
  animation: spin 1s linear infinite;
}

.loading-spinner p {
  font-family: var(--font-body);
  font-size: 1.1em;
  color: var(--gray-700);
  font-weight: 500;
  margin: 0;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

/* Transición suave para el grid de productos */
#productos-grid {
  transition: opacity 0.3s ease;
}

/* ============================================
   CONTROLES DE ALTERNANCIA
   ============================================ */
.toggle-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.toggle-btn {
  border: none;
  background: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.toggle-btn i {
  margin-right: 6px;
}

.toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.toggle-btn.active {
  background: linear-gradient(135deg, #a66dd4, #8f4ed1);
  color: #fff;
  box-shadow: 0 6px 18px rgba(166, 109, 212, 0.35);
}

/* ============================================
   HEADER DE PRODUCTOS
   ============================================ */
.products-header {
  text-align: center;
  padding: 40px 20px 30px;
  background: linear-gradient(
    135deg,
    rgba(166, 109, 212, 0.08) 0%,
    rgba(243, 233, 243, 0.5) 100%
  );
  border-radius: var(--radius);
  margin: 0 20px 40px;
  box-shadow: 0 4px 20px rgba(166, 109, 212, 0.1);
}

.products-header h1 {
  font-family: var(--font-display);
  font-size: 2.8em;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.products-header p {
  font-family: var(--font-body);
  font-size: 1.15em;
  color: var(--gray-500);
  font-weight: 400;
  margin: 0;
}

/* ============================================
   BARRA DE FILTROS
   ============================================ */
#filtrosForm {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.filters-bar {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  flex-wrap: wrap;
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(166, 109, 212, 0.08);
  margin-bottom: 40px;
  animation: slideDown 0.5s ease-out;
  scroll-behavior: smooth;
}

.filter-item {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-item .form-label {
  font-family: var(--font-body);
  font-size: 0.9em;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0;
}

.filter-item .form-label.invisible {
  visibility: hidden;
}

.filter-item .form-select {
  font-family: var(--font-body);
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95em;
  color: var(--dark);
  background-color: var(--white);
  transition: var(--transition);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A66DD4' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.filter-item .form-select:hover {
  border-color: var(--primary-light);
  background-color: var(--gray-100);
}

.filter-item .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(166, 109, 212, 0.1);
  background-color: var(--white);
}

.filter-item .form-select:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.filter-item .form-select option {
  padding: 10px;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
}

.filter-item .form-select.loading {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23A66DD4' d='M8 0a8 8 0 100 16A8 8 0 008 0zm0 14a6 6 0 110-12 6 6 0 010 12z' opacity='.3'/%3E%3Cpath fill='%23A66DD4' d='M14 8a6 6 0 00-6-6V0a8 8 0 018 8h-2z'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 8 8' to='360 8 8' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.7;
}

.filter-action {
  flex: 0 0 auto;
  min-width: 120px;
}

.filter-action .btn-view {
  position: relative;
}

.filter-action .btn-view:hover::before {
  content: "Restablecer todos los filtros";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: var(--dark);
  color: var(--white);
  font-size: 0.75em;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
  animation: tooltipFade 0.2s ease;
}

.filters-count {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9em;
  white-space: nowrap;
  flex: 0 0 auto;
  animation: pulse 0.5s ease-out;
}

.filters-count small {
  font-size: 1em;
  color: var(--white);
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes tooltipFade {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

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

/* ============================================
   CONTENEDOR DE PRODUCTOS
   ============================================ */
.products-container {
  display: none;
  animation: fadeInProducts 0.35s ease;
}

.products-container.active-list {
  display: grid;
  /* Base: 5 columnas en pantallas grandes */
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  /* Las filas se ajustan automáticamente al contenido */
  align-items: start;
}

/* ============================================
   PRODUCT CARD — altura dinámica según contenido
   ============================================ */
.product-card {
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  /* Flex column para que info y actions crezcan */
  display: flex;
  flex-direction: column;
  height: auto; /* ← sin altura fija */
  cursor: pointer;
  border: 1px solid rgba(34, 34, 34, 0.05);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 2px 6px rgba(166, 109, 212, 0.08),
    0 4px 12px rgba(166, 109, 212, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover {
  transform: scale(1.03);
  border-color: rgba(166, 109, 212, 0.25);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(166, 109, 212, 0.15),
    0 8px 24px rgba(166, 109, 212, 0.18),
    0 16px 40px rgba(166, 109, 212, 0.12),
    0 0 0 1px rgba(166, 109, 212, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

/* Imagen — altura fija solo para la imagen, no la card */
.product-image {
  position: relative;
  height: 220px;
  flex-shrink: 0; /* la imagen no se comprime */
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
  border-bottom: 1px solid rgba(166, 109, 212, 0.08);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.015) 100%
  );
  pointer-events: none;
}

/* Badges */
.badge-agotado,
.badge-pocas,
.badge-vendido {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: white;
  z-index: 2;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

.badge-agotado {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.badge-pocas {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1625;
  box-shadow:
    0 2px 8px rgba(251, 191, 36, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.4);
}
.badge-vendido {
  background: linear-gradient(135deg, #ff6ec7, #a855c8);
}

/* Info — crece para ocupar el espacio disponible */
.product-info {
  padding: 16px;
  flex: 1; /* ← empuja actions hacia abajo */
  display: flex;
  flex-direction: column;
}

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

.product-name {
  font-family: "Outfit", sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  color: #1a1625;
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.2px;
  transition: color 0.2s ease;
}

.product-link:hover .product-name {
  color: #a66dd4;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(166, 109, 212, 0.08);
}

.meta-inline {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-brand {
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #a66dd4;
}

.meta-sep {
  color: rgba(166, 109, 212, 0.25);
  font-size: 0.7rem;
}

.product-category {
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: #8b8a9a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.product-price .amount {
  background: linear-gradient(135deg, #222222, #000000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0 5px 0 0;
}

.product-price .currency {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #000000;
  -webkit-text-fill-color: #000000;
}

.product-stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: "Poppins", sans-serif;
  
  /* Mantenemos el tamaño pequeño */
  font-size: 0.72rem;
  font-weight: 400;
  padding: 5px 10px; /* Reduje un poco el padding superior/inferior */
  border-radius: 50px;

  /* CENTRADO DEL BLOQUE */
  margin: 10px auto;    /* Centra el elemento si el padre es un bloque */
  text-align: center;
  
  /* OPCIONAL: Si quieres asegurar que no crezca más de lo debido */
  width: fit-content; 
}

.product-stock.stock-disponible {
  color: #065f46;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
}
.product-stock.stock-limitado {
  color: #92400e;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.12);
}
.product-stock.stock-agotado {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.08);
  border: 1px solid rgba(254, 226, 226, 0.12);
}

.product-stock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Actions — siempre al fondo de la card */
.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 16px;
  flex-shrink: 0;
}

.btn-add-cart {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: #a66dd4ff;
  color: #fff;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-added {
  background: #006e26;
  color: #fff;
  cursor: default;
  pointer-events: none;
}

.btn-add-cart.btn-out-stock,
.btn-add-cart:disabled {
  filter: grayscale(60%);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.06);
  cursor: not-allowed;
  opacity: 0.9;
  pointer-events: none;
}

.btn-add-cart.btn-out-stock:hover,
.btn-add-cart:disabled:hover {
  transform: none;
  box-shadow: none;
}

.btn-view {
  padding: 10px 18px;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  font-size: 0.85em;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-view:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
}

/* Sin resultados */
.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.no-products i {
  font-size: 4em;
  margin-bottom: 20px;
  color: #ddd;
}
.no-products p {
  font-size: 1.2em;
}

/* Ver todos */
.view-all-container {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  padding: 0 20px;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1.1em;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-view-all:hover {
  background: linear-gradient(135deg, #5568d3 0%, #63408a 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
  color: white;
}

.btn-view-all i {
  font-size: 1em;
  transition: transform 0.3s ease;
}
.btn-view-all:hover i {
  transform: translateX(5px);
}

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

/* ≤1400px → 4 columnas */
@media (max-width: 1400px) {
  .products-container.active-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 0 20px;
  }

  #filtrosForm {
    padding: 0 20px;
  }
}

/* ≤1024px → 3 columnas */
@media (max-width: 1024px) {
  .products-container.active-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 20px;
  }

  #filtrosForm {
    padding: 0 15px;
  }

  .filters-bar {
    padding: 20px;
    gap: 12px;
  }

  .product-section {
    padding: 100px 20px 50px;
  }
}

/* ≤768px → 2 columnas */
@media (max-width: 768px) {
  .products-container.active-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 12px;
  }

  .products-header {
    margin: 0 12px 30px;
    padding: 30px 20px;
  }

  .products-header h1 {
    font-size: 2.2em;
  }
  .products-header p {
    font-size: 1em;
  }

  #filtrosForm {
    padding: 0 12px;
  }

  .filters-bar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    margin-bottom: 30px;
  }

  .filter-item {
    flex: 1 1 calc(50% - 6px);
    min-width: calc(50% - 6px);
  }

  .filter-action {
    flex: 1 1 calc(50% - 6px);
  }
  .filters-count {
    flex: 1 1 100%;
    justify-content: center;
  }

  /* Sin zoom en tarjetas en móvil */
  .product-card {
    border-radius: 12px;
  }
  .product-card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(166, 109, 212, 0.15);
  }

  .product-image {
    height: 160px;
  }
  .product-info {
    padding: 8px;
  }
  .product-category {
    display: none;
  }
  .product-brand {
    font-size: 0.65em;
  }
  .product-stock {
    display: none;
  }

  .product-name {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
    margin: 6px 0;
  }

  .product-price {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .product-actions {
    padding: 0 8px 10px;
  }

  .btn-add-cart {
    padding: 8px 12px;
    font-size: 0.78em;
  }
  .btn-add-cart span {
    display: none;
  }

  .product-section {
    padding: 90px 5px 30px;
  }
}

/* ≤480px → 2 columnas compactas */
@media (max-width: 480px) {
  .products-container.active-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px;
  }

  .products-header {
    margin: 0 10px 30px;
    padding: 25px 15px;
  }

  .products-header h1 {
    font-size: 2em;
  }
  .products-header p {
    font-size: 0.95em;
  }

  #filtrosForm {
    padding: 0 10px;
  }

  .filters-bar {
    flex-direction: column;
    gap: 12px;
    padding: 20px 15px;
    margin-bottom: 30px;
  }

  .filter-item,
  .filter-action {
    width: 100%;
    min-width: 100%;
  }

  .filter-item .form-select {
    font-size: 0.9em;
    padding: 10px 14px;
    padding-right: 36px;
  }

  .filters-count {
    width: 100%;
    justify-content: center;
  }

  .product-image {
    height: 150px;
  }
  .product-info {
    padding: 8px;
  }

  .product-name {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .product-brand,
  .product-category {
    font-size: 0.65rem;
  }

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

  .product-actions {
    padding: 0 8px 10px;
    flex-direction: column;
    gap: 6px;
  }

  .btn-add-cart {
    width: 100%;
    padding: 9px 14px;
    font-size: 0.82em;
  }
  .btn-add-cart span {
    display: none;
  }

  .btn-view {
    width: 100%;
    padding: 8px 14px;
  }

  .product-section {
    padding: 70px 5px 20px;
  }
}

/* ≤420px */
@media (max-width: 420px) {
  .meta-inline {
    font-size: 0.9rem;
  }
  .product-price {
    font-size: 0.88rem;
  }

  .view-all-container {
    margin-top: 40px;
  }

  .btn-view-all {
    padding: 14px 32px;
    font-size: 1em;
  }
}

/* ============================================
   MENSAJES DE NOTIFICACIÓN
   ============================================ */
.messages-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.msg {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95em;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
}

.msg::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.2em;
}

.msg.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: var(--white);
  border-left: 4px solid #065f46;
}

.msg.success::before {
  content: "\f058"; /* fa-check-circle */
}

.msg.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: var(--white);
  border-left: 4px solid #991b1b;
}

.msg.error::before {
  content: "\f06a"; /* fa-exclamation-circle */
}

.msg.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: var(--dark);
  border-left: 4px solid #92400e;
}

.msg.warning::before {
  content: "\f071"; /* fa-exclamation-triangle */
}

.msg.info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: var(--white);
  border-left: 4px solid #1e40af;
}

.msg.info::before {
  content: "\f05a"; /* fa-info-circle */
}

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

/* Responsive para mensajes */
@media (max-width: 768px) {
  .messages-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .msg {
    padding: 12px 16px;
    font-size: 0.85em;
  }
}