:root {
  --primary-color: #16A085;
  --secondary-color: #0F665E;
  --accent-color: #2ECCB1;
  --light-color: #E6F6F3;
  --dark-color: #073B36;
  --gradient-primary: linear-gradient(135deg, #2ECCB1 0%, #16A085 100%);
  --hover-color: #0F665E;
  --background-color: #F2F2F2;
  --text-color: #4B5563;
  --border-color: rgba(22, 160, 133, 0.2);
  --divider-color: rgba(15, 102, 94, 0.1);
  --shadow-color: rgba(15, 102, 94, 0.1);
  --highlight-color: #F1C40F;
  --main-font: 'Open Sans', sans-serif;
  --alt-font: 'Lora', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--main-font);
  background-color: var(--background-color);
  color: var(--dark-color);
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(192, 192, 192, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 44%, rgba(223, 223, 223, 0.05) 0%, transparent 60%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--alt-font);
}

/* Elementos decorativos */
.decoration-element {
  position: absolute;
  opacity: 0.08;
  z-index: -1;
}

.decoration-circle {
  border-radius: 50%;
  background: var(--primary-color);
}

.decoration-square {
  transform: rotate(45deg);
  background: var(--primary-color);
}

.decoration-cross {
  font-size: 40px;
  color: var(--primary-color);
}

.decoration-star {
  font-size: 30px;
  color: var(--primary-color);
}

.decoration-heart {
  font-size: 25px;
  color: var(--primary-color);
}

.decoration-diamond {
  width: 30px;
  height: 30px;
  border: 2px solid var(--primary-color);
  transform: rotate(45deg);
}

.grid-pattern {
  position: absolute;
  width: 200px;
  height: 200px;
  background-image: linear-gradient(to right, var(--primary-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--primary-color) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.05;
  z-index: -1;
}

.pulse-animation {
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }

  100% {
    background-position: 400px 0;
  }
}

/* Contenedor principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
}

/* Título del carrito */
.cart-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 10px;
  position: relative;
  display: block;
}

.cart-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  margin: 15px auto 0;
  border-radius: 3px;
}

.cart-subtitle {
  text-align: center;
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  opacity: 0.9;
}

.cart-decorations {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0 25px;
  color: var(--accent-color);
  font-size: 18px;
}

/* Contenedor del carrito */
.cart-container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 20px;
}

@media (max-width: 992px) {
  .cart-container {
    grid-template-columns: 1fr;
  }
}

/* Sección de productos */
.cart-products {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px var(--shadow-color);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.cart-products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
}

.products-title {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.products-title i {
  color: var(--accent-color);
}

/* Producto individual */
.product-item {
  display: flex;
  border-bottom: 1px dashed var(--divider-color);
  padding-bottom: 30px;
  margin-bottom: 30px;
  position: relative;
}

.product-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.product-image {
  width: 120px;
  flex-shrink: 0;
  margin-right: 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
  padding: 5px;
  background: linear-gradient(135deg, rgba(245, 245, 245, 0.05) 0%, rgba(51, 51, 51, 0.05) 100%);
}

.product-image::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  z-index: 1;
  pointer-events: none;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.product-image:hover img {
  transform: scale(1.05);
}

.product-details {
  flex: 1;
}

.product-sku {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.product-name {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--dark-color);
}

.product-rating {
  display: flex;
  margin-bottom: 8px;
  color: var(--highlight-color);
}

.product-description {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.6;
}

.product-price {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: var(--hover-color);
  transform: scale(1.05);
}

.quantity-input {
  width: 40px;
  height: 30px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.remove-btn {
  color: #6B7280;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 15px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.remove-btn:hover {
  color: var(--primary-color);
}

/* Sección de resumen */
.cart-summary {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px var(--shadow-color);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: sticky;
  top: 20px;
}

.cart-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
}

.summary-title {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-title i {
  color: var(--accent-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--divider-color);
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-label {
  color: var(--text-color);
}

.summary-value {
  font-weight: 600;
  color: var(--dark-color);
}

.summary-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-top: 5px;
}

.checkout-form {
  margin-top: 30px;
}

.form-section {
  margin-bottom: 30px;
}

.form-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--dark-color);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--divider-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--dark-color);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.checkout-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.checkout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.checkout-btn:hover {
  background: var(--hover-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.checkout-btn:hover::before {
  left: 100%;
}

/* Garantía y beneficios */
.guarantee-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  transform: rotate(15deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.guarantee-badge span {
  font-size: 0.7rem;
  text-transform: uppercase;
}

.guarantee-badge i {
  font-size: 1.5rem;
  margin-bottom: 3px;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.benefit-item {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  background: rgba(51, 51, 51, 0.1);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--dark-color);
}

.benefit-item i {
  color: var(--primary-color);
  margin-right: 8px;
}

/* Seguridad y confianza */
.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-color);
}

.security-note i {
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .cart-title {
    font-size: 2rem;
  }

  .cart-subtitle {
    font-size: 1rem;
  }

  .product-item {
    flex-direction: column;
  }

  .product-image {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 20px;
  }

  .quantity-controls {
    justify-content: center;
    margin-top: 20px;
  }
}