/* ================================================
   ESTILOS PERSONALIZADOS - NEUMATICOS FELINA
   ================================================ */

:root {
  --color-primary: #1a1a1a;      /* Negro (caucho)*/
  --color-secondary: #dc143c;    /* Rojo (dinamismo)*/
  --color-accent: #ffd700;       /* Dorado (visibilidad)*/
  --color-light: #f8f9fa;        /* Gris claro */
  --color-gray: #6c757d;         /* Gris medio */
}

/* ================================================
   BARRA DE NAVEGACIÓN Y HEADER
   ================================================ */
.navbar {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border-bottom: 3px solid #dc143c;
  position: relative !important;
}

.navbar-brand {
  font-size: 1.8rem !important;
  font-weight: 900;
  color: #ffd700 !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar-brand:hover {
  color: #ffed4e !important;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.nav-link {
  color: #ffffff !important;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 5px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #ffd700 !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

/* Ubicación del usuario */
.ubicacion-display {
  position: absolute;
  right: 100px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #dc143c 0%, #ff6b6b 100%);
  color: white;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 100;
}

/* Ocultar ubicación en página carrito */
body.carrito-page .ubicacion-display {
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: none !important;
}

.ubicacion-display:hover {
  background: linear-gradient(135deg, #ff6b6b 0%, #dc143c 100%);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.5);
  transform: translateY(-50%) scale(1.05);
}

@media (max-width: 768px) {
  .ubicacion-display {
    font-size: 0.72rem;
    padding: 8px 12px;
    right: 60px;
    max-width: 150px;
  }
}

@media (max-width: 576px) {
  .ubicacion-display {
    font-size: 0.65rem;
    padding: 6px 10px;
    right: 55px;
    max-width: 120px;
  }
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #dc143c;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ================================================
   HEADER PRINCIPAL
   ================================================ */
header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #dc143c 100%) !important;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '🛞';
  position: absolute;
  font-size: 20rem;
  opacity: 0.1;
  top: -50px;
  right: -50px;
  transform: rotate(45deg);
}

header h1 {
  color: #ffd700;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  letter-spacing: 3px;
  font-weight: 900;
}

header p {
  color: #ffffff;
  font-size: 1.2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

/* ================================================
   TARJETAS DE PRODUCTOS
   ================================================ */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  position: relative;
  background: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(220, 20, 60, 0.25);
}

.card::before {
  content: '🛞';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.8rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.card:hover::before {
  opacity: 0.9;
}

.badge {
  background: linear-gradient(135deg, #dc143c 0%, #ff1744 100%) !important;
  padding: 10px 14px !important;
  font-weight: 800;
  border-radius: 24px;
  box-shadow: 0 6px 12px rgba(220, 20, 60, 0.35);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* Stock Indicator - Discreto */
.stock-indicator {
  text-align: center;
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
  min-height: 20px;
}

.stock-text {
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.stock-disponible {
  color: #28a745;
}

.stock-bajo {
  color: #ff9800;
}

.stock-agotado {
  color: #dc143c;
}



.card-img-top {
  height: 260px;
  object-fit: cover;
  border-bottom: 5px solid #ffd700;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

.card-body {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  padding: 1.5rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.card-body > div {
  display: flex;
  flex-direction: column;
}

.card-body h5 {
  color: #1a1a1a;
  font-weight: 900;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: left;
}

/* Nuevos estilos para diseño profesional */
.badges-container {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.badge-oferta {
  background: linear-gradient(135deg, #dc143c 0%, #ff1744 100%) !important;
  padding: 8px 12px !important;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(220, 20, 60, 0.3) !important;
  color: white;
  letter-spacing: 0.5px;
}

.badge-oficial {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
  padding: 6px 10px !important;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.categoria-badge {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.rating-info {
  font-size: 0.9rem;
}

.stars-vendidos {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-weight: 500;
}

.stars-display {
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.vendidos {
  color: #999;
  font-size: 0.85rem;
  padding: 4px 8px;
  background: #f0f0f0;
  border-radius: 12px;
  font-weight: 600;
}

.precio-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.precio-anterior {
  color: #b0b0b0;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-block;
  padding-right: 8px;
  border-right: 2px solid #dc143c;
}

.precio-principal {
  font-size: 1.8rem;
  color: #dc143c;
  font-weight: 900;
  letter-spacing: 1px;
}

.envio-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f0f8f0;
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 4px solid #28a745;
}

.envio-gratis {
  color: #28a745;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.envio-tiempo {
  color: #28a745;
  font-size: 0.85rem;
  font-weight: 500;
}

.descripcion-corta {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 10px 0;
}

.info-adicional {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: #666;
  padding-top: 10px;
  border-top: 1px solid #e9ecef;
  margin-top: 10px;
}

.ubicacion, .garantia {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.garantia {
  color: #1cc88a;
}


.card-body p {
  color: #6c757d;
  font-size: 0.85rem;
  line-height: 1.6;
  min-height: 45px;
  margin-bottom: 1.2rem;
  flex: 1;
}

.text-warning {
  color: #ffc107 !important;
  filter: drop-shadow(0 0 2px rgba(255, 193, 7, 0.5));
}

.text-muted {
  color: #a8b4c0 !important;
  text-decoration: line-through;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.card-body > div > span:last-child {
  font-size: 1.6rem;
  font-weight: 900;
  color: #dc143c;
  text-shadow: 2px 2px 4px rgba(220, 20, 60, 0.2);
  letter-spacing: 1px;
}

.card-footer {
  background: linear-gradient(to bottom, #f8f9fa 0%, #f1f3f5 100%);
  border: none;
  padding: 1.5rem;
  padding-top: 1.2rem;
  margin-top: auto;
}

/* ================================================
   BOTONES
   ================================================ */
.btn-outline-dark {
  border: 2px solid #1a1a1a;
  color: #1a1a1a;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

.btn-outline-dark:hover {
  background: linear-gradient(135deg, #dc143c 0%, #ff1744 100%);
  border-color: #dc143c;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(220, 20, 60, 0.35);
  transform: translateY(-4px);
}

.btn-primary {
  background: linear-gradient(135deg, #dc143c 0%, #ff1744 100%) !important;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff1744 0%, #dc143c 100%) !important;
  box-shadow: 0 8px 16px rgba(220, 20, 60, 0.4);
  transform: translateY(-3px);
}

.btn-warning {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
  border: none;
  color: #1a1a1a !important;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%) !important;
  box-shadow: 0 8px 16px rgba(255, 215, 0, 0.4);
  transform: translateY(-3px);
}

/* ================================================
   BOTÓN FLOTANTE CARRITO
   ================================================ */
.btn-flotante {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  border-radius: 50%;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #dc143c 0%, #ff1744 100%);
  padding: 18px 30px;
  position: fixed;
  bottom: 40px;
  right: 40px;
  transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 20px rgba(220, 20, 60, 0.4);
  z-index: 99;
  text-decoration: none;
  border: 3px solid #ffd700;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 12px;
}

.btn-flotante:hover {
  background: linear-gradient(135deg, #ff1744 0%, #dc143c 100%);
  transform: translateY(-10px) rotate(-5deg);
  box-shadow: 0 16px 30px rgba(220, 20, 60, 0.5);
}

.btn-flotante .badge {
  background-color: #ffd700 !important;
  color: #1a1a1a !important;
  font-weight: 900;
  font-size: 14px;
  position: absolute;
  top: -5px;
  right: -5px;
}

/* ================================================
   BOTÓN FLOTANTE RASTREO
   ================================================ */
.btn-rastreo {
  bottom: 130px !important;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
  border-color: #ffd700 !important;
  box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4) !important;
}

.btn-rastreo:hover {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
  box-shadow: 0 16px 30px rgba(39, 174, 96, 0.5) !important;
}

/* ================================================
   BOTÓN WHATSAPP EN NAVBAR
   ================================================ */
.btn-whatsapp-navbar {
  background: #25d366 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3) !important;
  margin: 0 10px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  display: inline-block !important;
}

.btn-whatsapp-navbar:link,
.btn-whatsapp-navbar:visited,
.btn-whatsapp-navbar:active {
  background: #25d366 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.btn-whatsapp-navbar:hover,
.btn-whatsapp-navbar:focus,
.btn-whatsapp-navbar:active {
  background: #20ba58 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5) !important;
}

@media (max-width: 768px) {
  .btn-whatsapp-navbar {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    margin: 0 5px !important;
  }
}

/* Botón WhatsApp flotante en pago */
#btnWhatsapp {
  background: linear-gradient(135deg, #25d366 0%, #20ba58 100%) !important;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4) !important;
}

#btnWhatsapp:hover {
  background: linear-gradient(135deg, #20ba58 0%, #25d366 100%) !important;
  box-shadow: 0 16px 30px rgba(37, 211, 102, 0.5) !important;
}

/* ================================================
   FOOTER
   ================================================ */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
  border-top: 3px solid #dc143c;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '🛞';
  position: absolute;
  font-size: 15rem;
  opacity: 0.05;
  bottom: -50px;
  left: -50px;
}

footer::after {
  content: '🛞';
  position: absolute;
  font-size: 15rem;
  opacity: 0.05;
  bottom: -50px;
  right: -50px;
}

footer p {
  color: #ffd700;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

/* ================================================
   TABLA DE CARRITO
   ================================================ */
.table {
  border-collapse: collapse;
}

.table thead {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffd700;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.table tbody tr {
  border-bottom: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background-color: #fff8e1;
  box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.1);
}

.table td {
  color: #333333;
  font-weight: 500;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media only screen and (max-width: 600px) {
  .btn-flotante {
    font-size: 12px;
    padding: 12px 20px;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
  }

  .btn-rastreo {
    bottom: 100px !important;
  }

  .navbar-brand {
    font-size: 1.2rem !important;
  }

  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  header::before {
    font-size: 10rem;
  }
}

/* ================================================
   ANIMACIONES
   ================================================ */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(220, 20, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 20, 60, 0);
  }
}

/* ================================================
   ANIMACIONES DE AGREGAR AL CARRITO
   ================================================ */

/* Animación de partículas */
@keyframes particula-vuela {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

.particula {
    position: fixed;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 9999;
    will-change: transform, opacity;
}

/* Animación del botón agregar */
.agregar {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.agregar:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.agregar.agregar-activo {
    background: linear-gradient(135deg, #1cc88a 0%, #0fb86d 100%) !important;
    border-color: #1cc88a !important;
    color: white !important;
    animation: agregar-pulse 0.6s ease-out;
    box-shadow: 0 0 20px rgba(28, 200, 138, 0.6);
}

@keyframes agregar-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Animación del contador del carrito */
.carrito-animado {
    animation: carrito-salto 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background-color: #ffd700 !important;
    color: #1a1a1a !important;
    font-weight: 900;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

@keyframes carrito-salto {
    0% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.3) rotate(-10deg);
    }
    50% {
        transform: scale(1.4) rotate(10deg);
    }
    75% {
        transform: scale(1.2) rotate(-5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Efecto de destello en el botón carrito flotante */
@keyframes destello {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
}

.btn-flotante.carrito-inflado {
    animation: carrito-infla 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

@keyframes carrito-infla {
    0% {
        transform: scale(1) rotate(0deg);
    }
    20% {
        transform: scale(1.25) rotate(-5deg);
    }
    40% {
        transform: scale(1.35) rotate(5deg);
    }
    60% {
        transform: scale(1.25) rotate(-3deg);
    }
    80% {
        transform: scale(1.15) rotate(2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Elemento que vuela al carrito */
.volador {
    background: linear-gradient(135deg, #dc143c 0%, #ff1744 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
    z-index: 9998;
    pointer-events: none;
}

/* Notificación flotante */
.notificacion-flotante {
    background: linear-gradient(135deg, #1cc88a 0%, #0fb86d 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(28, 200, 138, 0.5);
    max-width: 320px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 9998;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.notif-title {
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.notif-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.notif-nombre {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    word-break: break-word;
}

.notif-precio {
    color: #ffd700;
    font-size: 16px;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.notificacion-flotante.notif-visible {
    opacity: 1;
    animation: notif-slide 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes notif-slide {
    0% {
        transform: translateX(400px) scale(0.9);
        opacity: 0;
    }
    60% {
        transform: translateX(-20px) scale(1.05);
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* ================================================
   CONTROLES DE CANTIDAD EN CARRITO
   ================================================ */
.btn-mas, .btn-menos {
    padding: 4px 8px !important;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.btn-mas:hover, .btn-menos:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

.cantidad-input {
    border: 2px solid #ddd !important;
    border-radius: 4px !important;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.cantidad-input:focus {
    border-color: #dc143c !important;
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.3) !important;
}

.btn-eliminar {
    padding: 4px 12px !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-eliminar:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

/* ================================================
   ESTILOS DEL CARRITO DE COMPRAS
   ================================================ */

.carrito-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 40px 0;
    min-height: calc(100vh - 400px);
}

.carrito-titulo {
    color: #1a1a1a;
    font-weight: 900;
    font-size: 28px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.carrito-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #dc143c 0%, #ffd700 100%);
    border-radius: 2px;
}

.carrito-products {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.carrito-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.carrito-vacio {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.carrito-vacio p {
    font-size: 24px;
    color: #6c757d;
    margin-bottom: 20px;
    font-weight: 700;
}

.btn-volver {
    background: linear-gradient(135deg, #dc143c 0%, #ff1744 100%);
    color: white !important;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-volver:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(220, 20, 60, 0.4);
}

/* Tarjeta del producto en carrito */
.carrito-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.5fr 150px;
    gap: 12px;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.carrito-item:hover {
    border-color: #dc143c;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.1);
    transform: translateY(-2px);
}

.item-info h5 {
    color: #1a1a1a;
    font-weight: 900;
    font-size: 13px;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-precio {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 12px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.item-cantidad {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.btn-cantidad {
    width: 28px;
    height: 28px;
    padding: 0 !important;
    border-radius: 4px !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    color: #ffd700 !important;
    border: 1px solid #ffd700 !important;
    transition: all 0.2s ease;
}

.btn-cantidad:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 6px rgba(220, 20, 60, 0.2);
}

.cantidad-input {
    width: 50px !important;
    height: 28px;
    text-align: center;
    border: 1px solid #dc143c !important;
    border-radius: 4px !important;
    font-weight: 700;
    font-size: 13px;
    color: #1a1a1a;
    background: white !important;
    padding: 2px !important;
}

.cantidad-input:focus {
    box-shadow: 0 0 6px rgba(220, 20, 60, 0.2) !important;
    border-color: #ff1744 !important;
}

.item-subtotal {
    text-align: center;
}

.subtotal-valor {
    font-size: 14px;
    font-weight: 900;
    color: #dc143c;
    margin: 0;
}

.btn-eliminar-item {
    width: 32px;
    height: 32px;
    padding: 0 !important;
    border-radius: 4px !important;
    background: linear-gradient(135deg, #dc143c 0%, #ff1744 100%) !important;
    color: white !important;
    border: none !important;
    font-weight: 900;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-eliminar-item:hover {
    transform: scale(1.08) rotate(90deg);
    box-shadow: 0 2px 6px rgba(220, 20, 60, 0.2);
}

/* Miniatura del producto en carrito */
.item-miniatura-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    width: 140px;
    grid-column: 5;
}

.item-miniatura {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.item-miniatura:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.2);
}

.item-miniatura-info {
    width: 100%;
    text-align: center;
    font-size: 11px;
}

.mini-nombre {
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 26px;
}

.mini-precio {
    font-weight: 700;
    color: #dc143c;
    margin: 2px 0;
    font-size: 12px;
}

.mini-cantidad {
    font-weight: 600;
    color: #6c757d;
    margin: 2px 0;
    padding: 4px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 4px;
    color: #1a1a1a;
}

/* Resumen de compra */
.carrito-resumen {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
    border: 2px solid #e9ecef;
}

/* Barra de envío gratis */
.envio-gratis-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #ffd700;
}

.envio-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
}

.envio-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    background: white;
    border: 1px solid #ddd;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
}

#progress-valor {
    font-weight: 900;
    color: #dc143c;
}

/* Datos de envío */
.envio-datos {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.envio-titulo {
    color: #1a1a1a;
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    color: #6c757d;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 8px 10px !important;
    border: 2px solid #dc143c !important;
    border-radius: 6px !important;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    background: white !important;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 8px rgba(220, 20, 60, 0.3) !important;
    border-color: #ff1744 !important;
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
}

.resumen-titulo {
    color: #1a1a1a;
    font-weight: 900;
    font-size: 22px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resumen-info {
    margin-bottom: 25px;
}

.resumen-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
}

.resumen-label {
    color: #6c757d;
    font-weight: 600;
}

.resumen-valor {
    color: #1a1a1a;
    font-weight: 700;
}

.resumen-divider {
    margin: 15px 0;
    border: none;
    border-top: 2px solid #f0f0f0;
}

.total-row {
    padding: 15px 0;
    font-size: 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 8px;
    margin: 0 -15px;
}

.resumen-total {
    color: #dc143c;
    font-weight: 900;
    font-size: 24px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.resumen-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-vaciar {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-vaciar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
}

.btn-vaciar i {
    margin-right: 8px;
}

#paypal-button-container {
    margin-bottom: 15px;
}

.resumen-info-adicional {
    background: linear-gradient(135deg, #1cc88a 0%, #0fb86d 100%);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.resumen-info-adicional p {
    color: white;
    font-weight: 600;
    font-size: 13px;
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 991px) {
    .carrito-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .item-cantidad,
    .item-subtotal,
    .btn-eliminar-item,
    .item-miniatura-container {
        justify-self: flex-start;
    }
    
    .item-miniatura-container {
        width: 100%;
        flex-direction: row;
        align-items: center;
    }
    
    .item-miniatura {
        width: 100px;
        height: 100px;
        margin-right: 12px;
    }
    
    .item-miniatura-info {
        flex: 1;
        text-align: left;
    }
    
    .carrito-resumen {
        position: relative;
        top: 0;
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .carrito-section {
        padding: 20px 0;
    }
    
    .carrito-products,
    .carrito-resumen {
        padding: 20px;
    }
    
    .carrito-titulo {
        font-size: 22px;
    }
    
    .resumen-titulo {
        font-size: 18px;
    }
}

/* ================================================
   DATOS PERSONALES Y PAGO CON TARJETA
   ================================================ */

.datos-personales {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f7 100%);
    border: 2px solid #dc143c;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.15);
}

.datos-personales .form-group {
    margin-bottom: 15px;
}

.datos-personales label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

.datos-personales .form-control,
.datos-personales .form-control select {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    background-color: white;
    transition: all 0.3s ease;
    color: #1a1a1a;
}

.datos-personales .form-control:focus,
.datos-personales .form-control select:focus {
    border-color: #dc143c;
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
    outline: none;
}

.btn-tarjeta {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffd700;
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.btn-tarjeta:hover {
    background: linear-gradient(135deg, #dc143c 0%, #ff1744 100%);
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.5);
}

.btn-tarjeta:active {
    transform: translateY(-1px);
}

.tarjeta-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.tarjetas-logos {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #eee;
}

.tarjetas-logos .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
    border: 1px solid #ddd;
    flex: 1;
    transition: all 0.3s ease;
    cursor: default;
}

.tarjetas-logos .logo:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-color: #dc143c;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(220, 20, 60, 0.2);
}

/* ================================================
   MODAL PASARELA DE PAGOS CON TARJETA
   ================================================ */

.modal-pagos {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    animation: fadeInModal 0.3s ease;
}

.modal-pagos.activa {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content-pagos {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f7 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(220, 20, 60, 0.4);
    animation: slideInModal 0.4s ease;
}

@keyframes slideInModal {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header-pagos {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffd700;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
    border-bottom: 3px solid #dc143c;
}

.modal-header-pagos h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
}

.btn-cerrar-modal {
    background: none;
    border: none;
    color: #ffd700;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cerrar-modal:hover {
    color: #dc143c;
    transform: rotate(90deg);
}

.modal-body-pagos {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.container-tarjeta-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.tarjeta-visual {
    width: 100%;
    max-width: 380px;
    height: 240px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.tarjeta-visual.volteada {
    transform: rotateY(180deg);
}

.tarjeta-frente,
.tarjeta-dorso {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tarjeta-frente {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #ffd700;
    box-shadow: 0 15px 35px rgba(220, 20, 60, 0.3);
    color: white;
}

.tarjeta-frente.visa {
    background: linear-gradient(135deg, #1434cb 0%, #0066cc 100%);
}

.tarjeta-frente.mastercard {
    background: linear-gradient(135deg, #eb001b 0%, #f79e1b 100%);
}

.tarjeta-frente.amex {
    background: linear-gradient(135deg, #006fcf 0%, #00a8e1 100%);
}

.tarjeta-frente.discover {
    background: linear-gradient(135deg, #ff6000 0%, #ffd700 100%);
}

.tarjeta-logo {
    text-align: right;
    font-size: 40px;
}

.tarjeta-numeros {
    text-align: center;
}

.input-tarjeta {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    text-align: center;
    width: 100%;
    outline: none;
    font-family: 'Courier New', monospace;
}

.input-tarjeta::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-tarjeta.pequeno {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tarjeta-datos {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: flex-end;
}

.dato {
    display: flex;
    flex-direction: column;
}

.dato label,
.dato-tipo label {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.dato-tipo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.tipo-badge {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    color: #ffd700;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.tipo-badge.visa {
    background: rgba(20, 52, 203, 0.3);
    color: white;
    border-color: white;
}

.tipo-badge.mastercard {
    background: rgba(235, 0, 27, 0.3);
    color: white;
    border-color: white;
}

.tipo-badge.amex {
    background: rgba(0, 111, 207, 0.3);
    color: white;
    border-color: white;
}

.tipo-badge.discover {
    background: rgba(255, 96, 0, 0.3);
    color: white;
    border-color: white;
}

.tarjeta-dorso {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border: 2px solid #ffd700;
    box-shadow: 0 15px 35px rgba(220, 20, 60, 0.3);
    transform: rotateY(180deg);
    color: white;
    justify-content: flex-end;
}

.banda-magnetica {
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, #000000 0%, #333333 50%, #000000 100%);
    border-radius: 4px;
    margin-bottom: 20px;
}

.cvv-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cvv-section label {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.cvv-input {
    width: 80px !important;
    text-align: center;
}

.formulario-pagos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grupo {
    display: flex;
    flex-direction: column;
}

.form-grupo label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-pago {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-pago:focus {
    border-color: #dc143c;
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
    outline: none;
}

.info-tarjeta {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.row-dos-campos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.resumen-pago {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #ddd;
}

.linea-resumen {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: #1a1a1a;
}

.linea-resumen.total {
    font-weight: 700;
    font-size: 16px;
    color: #dc143c;
}

.botones-pago {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.btn-cancelar {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    color: white !important;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
}

.btn-cancelar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-procesar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffd700;
    border: 2px solid #ffd700;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-procesar:hover {
    background: linear-gradient(135deg, #dc143c 0%, #ff1744 100%);
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.4);
}

.btn-procesar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ================================================
   RESPONSIVE PASARELA
   ================================================ */

@media (max-width: 768px) {
    .modal-body-pagos {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .modal-header-pagos h2 {
        font-size: 20px;
    }
    
    .tarjeta-visual {
        max-width: 300px;
        height: 190px;
    }
    
    .tarjeta-frente,
    .tarjeta-dorso {
        padding: 20px;
    }
    
    .input-tarjeta {
        font-size: 18px;
    }
}

/* ================================================
   MODAL MENSAJES PROFESIONAL
   ================================================ */

.modal-mensaje {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-mensaje.activa {
    display: flex;
    opacity: 1;
}

.modal-mensaje-content {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDownMessaje 0.4s ease-out;
}

@keyframes slideDownMessaje {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-mensaje-icon {
    font-size: 60px;
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popInMessaje 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popInMessaje {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

.modal-mensaje-icon.error {
    color: #dc143c;
    font-size: 70px;
}

.modal-mensaje-icon.exito {
    color: #1cc88a;
    font-size: 70px;
}

.modal-mensaje-icon.advertencia {
    color: #ffc107;
    font-size: 70px;
}

#modalMensajeTitulo {
    color: #1a1a1a;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

#modalMensajeTexto {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-confirmacion {
    background: linear-gradient(135deg, #dc143c 0%, #a00028 100%);
    color: white;
    border: none;
    padding: 13px 35px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-confirmacion:hover {
    background: linear-gradient(135deg, #a00028 0%, #7a001f 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.3);
}

.btn-confirmacion:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .modal-mensaje-content {
        padding: 40px 25px;
    }
    
    #modalMensajeTitulo {
        font-size: 22px;
    }
    
    #modalMensajeTexto {
        font-size: 14px;
    }
}

/* ================================================
   SELECTOR DÉBITO/CRÉDITO Y CUOTAS
   ================================================ */

.tipo-tarjeta-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.radio-custom {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.radio-custom input[type="radio"] {
    cursor: pointer;
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #dc143c;
}

.radio-custom .radio-label {
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.radio-custom input[type="radio"]:checked + .radio-label {
    color: #dc143c;
}

.radio-custom:hover {
    border-color: #dc143c;
    background: #fff5f5;
}

.radio-custom input[type="radio"]:checked ~ *,
.radio-custom input[type="radio"]:checked {
    color: #dc143c;
}

.radio-custom:has(input[type="radio"]:checked) {
    border-color: #dc143c;
    background: #fff5f5;
    border-width: 2px;
}

.info-cuotas {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.desglose-cuotas {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    border-left: 5px solid #dc143c;
    border: 1px solid #e9ecef;
    border-left: 5px solid #dc143c;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.desglose-cuotas.visible {
    display: block;
    animation: slideDownMessaje 0.3s ease-out;
}

.desglose-cuotas-titulo {
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.desglose-cuota-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.desglose-cuota-item:hover {
    background: #f0f0f0;
    border-color: #dc143c;
}

.desglose-cuota-item:last-child {
    margin-bottom: 0;
}

.desglose-cuota-monto {
    font-weight: 700;
    color: #dc143c;
    font-size: 15px;
    min-width: 80px;
    text-align: right;
}

.desglose-total-final {
    font-weight: 800;
    color: #ffffff;
    font-size: 16px;
    margin-top: 14px;
    padding: 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #dc143c 0%, #ff1744 100%);
    text-align: right;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.2);
}

/* ================================================
   BUSCADOR DE PRODUCTOS
   ================================================ */
#buscador {
    background-color: #ffffff !important;
    border: 2px solid #dc143c !important;
    border-radius: 25px !important;
    padding: 8px 15px !important;
    font-weight: 500;
    color: #333 !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.15);
}

#buscador:focus {
    border-color: #ffd700 !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3) !important;
    background-color: #fffef5 !important;
    outline: none;
}

#buscador::placeholder {
    color: #999;
    font-weight: 400;
}

/* ================================================
   BUSCADOR INTEGRADO EN NAVBAR
   ================================================ */
.buscador-navbar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    padding: 10px 0 !important;
    border-bottom: 2px solid #dc143c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 98;
}

.buscador-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.buscador-input-group {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
}

.buscador-icon {
    position: absolute;
    left: 14px;
    font-size: 1.2rem;
    color: #ffd700;
    z-index: 10;
    pointer-events: none;
}

.buscador-input {
    width: 100%;
    padding: 10px 14px 10px 45px;
    background: rgba(40, 40, 40, 0.9);
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff !important;
    transition: all 0.3s ease;
    outline: none;
}

.buscador-input::placeholder {
    color: #bbb !important;
    font-weight: 400;
    font-size: 0.93rem;
}

.buscador-input:focus {
    background: rgba(50, 50, 50, 0.95);
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    color: #ffffff !important;
}

/* Responsive */
@media (max-width: 992px) {
    .buscador-input-group {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .buscador-input {
        padding: 9px 12px 9px 40px;
        font-size: 0.9rem;
    }
    
    .buscador-icon {
        left: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .buscador-input-group {
        max-width: 100%;
    }
    
    .buscador-input {
        padding: 8px 10px 8px 38px;
        font-size: 0.85rem;
    }
}

/* ================================================
   LINKS DE PRODUCTO EN TARJETAS
   ================================================ */
.product-image-link {
    display: block;
    overflow: hidden;
    border-bottom: 5px solid #ffd700;
    text-decoration: none;
}

.product-image-link img {
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 100%;
    display: block;
}

.card:hover .product-image-link img {
    transform: scale(1.1);
}

.product-name-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.product-name-link:hover h5 {
    color: #dc143c;
    text-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

/* Mejorar botones en tarjetas */
.card-footer .d-grid {
    gap: 0.75rem;
}

.card-footer .btn {
    padding: 0.65rem 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card-footer .btn-outline-primary {
    border: 2px solid #3483FA;
    color: #3483FA;
}

.card-footer .btn-outline-primary:hover {
    background-color: #3483FA;
    color: white;
    box-shadow: 0 6px 16px rgba(52, 131, 250, 0.3);
}

.card-footer .btn-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: none;
    color: white;
}

.card-footer .btn-dark:hover {
    background: linear-gradient(135deg, #dc143c 0%, #ff1744 100%);
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.3);
}

.card-footer .btn-dark:disabled {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ================================================
   FOOTER SECTION GLOBAL
   ================================================ */
.footer-section {
    background-color: #222222;
    color: #CCCCCC;
    padding: 32px 16px;
    margin-top: 32px;
}

.footer-section h5 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-section p {
    font-size: 12px;
    margin: 0 0 12px 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #CCCCCC;
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    color: #CCCCCC;
    text-decoration: none;
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    display: inline-block;
}

.social-link:hover {
    color: white;
    border-color: white;
}

.footer-section hr {
    border: none;
    border-top: 1px solid #444444;
    margin: 24px 0;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #999999;
}

.footer-bottom p {
    margin: 8px 0;
}

@media (max-width: 768px) {
    .footer-section {
        padding: 24px 12px;
    }

    .footer-section h5 {
        font-size: 13px;
    }
}

