/* -------------------------------
   🌐 Global Styles - Lume
---------------------------------*/

/* 🌐 RESET & BASE ------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  background-color: #fffdf9;
  color: #222;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  padding-left: 0;
}

button {
  font-family: inherit;
  font-size: 1rem;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* 🖼️ TYPOGRAPHY ------------------------ */
h1, h2, h3, h4 {
  font-family: "Rubik", sans-serif;
  color: #111;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 0.3rem;
}

section {
  padding: 2rem 1.5rem;
}

/* 🔘 BUTTONS BÁSICOS ------------------------ */
.btn {
  display: inline-block;
  background: #2e2e2e;
  color: white;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #765580;
}

/* 🛒 ESTILOS MEJORADOS DEL CARRITO ------------------------ */
.carrito .producto-carrito {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 1.2rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 94, 0, 0.08);
  position: relative;
  overflow: hidden;
  min-height: 140px;
}

.carrito .producto-carrito::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #ff5e00, #ff8c00);
  border-radius: 0 2px 2px 0;
}

.carrito .producto-carrito:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 94, 0, 0.15);
  border-color: rgba(255, 94, 0, 0.2);
}

.carrito .producto-imagen {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  position: relative;
}

.carrito .producto-imagen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 94, 0, 0.05), rgba(255, 140, 0, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carrito .producto-carrito:hover .producto-imagen::after {
  opacity: 1;
}

.carrito .producto-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1rem;
}

.carrito .producto-carrito:hover .producto-imagen img {
  transform: scale(1.08);
}

.carrito .producto-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: space-between;
  height: 140px;
}

.carrito .producto-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.carrito .producto-precio {
  font-size: 1.6rem;
  font-weight: 800;
  color: #000;
  margin: 0;
  background: linear-gradient(135deg, #ff5e00, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.carrito .cantidad-controles {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
}

.carrito .btn-cantidad {
  width: 38px;
  height: 38px;
  border: 2px solid #e2e8f0;
  background: linear-gradient(135deg, #ffffff, #f7fafc);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5568;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.carrito .btn-cantidad:hover {
  border-color: #ff5e00;
  background: linear-gradient(135deg, #ff5e00, #ff8c00);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 94, 0, 0.3);
}

.carrito .btn-cantidad:active {
  transform: scale(0.95);
}

.carrito .cantidad {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2d3748;
  min-width: 35px;
  text-align: center;
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
  padding: 0.5rem 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid #e2e8f0;
}

.carrito .btn-eliminar {
  background: linear-gradient(135deg, #ff4757, #ff3742);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
  align-self: flex-start;
  letter-spacing: 0.02em;
  margin-top: auto;
}

.carrito .btn-eliminar:hover {
  background: linear-gradient(135deg, #ff3742, #ff2e3a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.carrito .btn-eliminar:active {
  transform: translateY(0);
}

/* Responsive mejorado para productos del carrito */
@media (max-width: 768px) {
  .carrito .producto-carrito {
    flex-direction: row;
    text-align: left;
    gap: 1.2rem;
    padding: 1.2rem;
    min-height: auto;
    align-items: flex-start;
  }

  .carrito .producto-imagen {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
  }

  .carrito .producto-info {
    width: 100%;
    align-items: flex-start;
    height: auto;
    gap: 0.8rem;
    justify-content: flex-start;
  }

  .carrito .producto-info h3 {
    font-size: 1rem;
    line-height: 1.3;
  }

  .carrito .producto-precio {
    font-size: 1.2rem;
  }

  .carrito .cantidad-controles {
    justify-content: flex-start;
    gap: 0.8rem;
    margin: 0.3rem 0;
  }

  .carrito .btn-cantidad {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .carrito .cantidad {
    font-size: 0.95rem;
    padding: 0.4rem 0.6rem;
    min-width: 30px;
  }

  .carrito .btn-eliminar {
    align-self: flex-start;
    width: auto;
    justify-content: center;
    max-width: none;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .carrito .producto-carrito {
    padding: 1rem;
    gap: 1rem;
  }

  .carrito .producto-imagen {
    width: 90px;
    height: 90px;
  }

  .carrito .producto-info {
    gap: 0.6rem;
  }

  .carrito .producto-info h3 {
    font-size: 0.95rem;
  }

  .carrito .producto-precio {
    font-size: 1.1rem;
  }

  .carrito .cantidad-controles {
    gap: 0.6rem;
  }

  .carrito .btn-cantidad {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .carrito .cantidad {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
    min-width: 25px;
  }

  .carrito .btn-eliminar {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
    gap: 0.3rem;
  }
}

/* VARIABLES CSS ------------------------ */
:root {
  --primary: #ff5e00;
  --primary-dark: #e55500;
  --secondary: #111;
  --accent: #25d366;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
}

/* UTILIDADES BÁSICAS ------------------------ */
html {
  scroll-behavior: smooth;
}

/* ANIMACIONES BÁSICAS ------------------------ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* SKELETON LOADING ------------------------ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

