/* === MÓDULO DELIVERY === */
.delivery-section {
  padding: var(--spacing-xl) var(--spacing-lg);
  background: linear-gradient(135deg, #f8f9ff, #fff5f8);
  position: relative;
  overflow: hidden;
}

.delivery-container {
  max-width: var(--breakpoint-desktop);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.delivery-content {
  position: relative;
  z-index: 2;
}

.delivery-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 25px;
  font-weight: bold;
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow);
  animation: pulse 2s infinite;
}

.delivery-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.delivery-description {
  font-size: 1.1rem;
  line-height: var(--line-height-base);
  color: #666;
  margin-bottom: var(--spacing-lg);
}

/* === LISTA DE CARACTERÍSTICAS === */
.delivery-features {
  list-style: none;
  margin-bottom: var(--spacing-xl);
}

.delivery-feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform var(--transition-fast);
}

.delivery-feature:hover {
  transform: translateX(10px);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-text {
  font-weight: 600;
  color: var(--dark-color);
}

/* === SECCIÓN WHATSAPP === */
.whatsapp-contact {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: var(--spacing-lg);
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.whatsapp-contact::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1%, transparent 1%);
  background-size: 20px 20px;
  animation: float 20s linear infinite;
}

.whatsapp-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  display: block;
}

.whatsapp-title {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: var(--spacing-xs);
}

.whatsapp-subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-md);
}

.phone-number {
  display: inline-block;
  background: white;
  color: var(--primary-color);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: var(--spacing-md);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.phone-number:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: var(--secondary-color);
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: #25D366;
  color: white;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  background: #128C7E;
}

.whatsapp-button i {
  font-size: 1.3rem;
}

/* === ILUSTRACIÓN DELIVERY === */
.delivery-illustration {
  position: relative;
  text-align: center;
}

.delivery-image {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow);
  animation: floatUpDown 3s ease-in-out infinite;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  animation: floatAround 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  width: 30px;
  height: 30px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  width: 20px;
  height: 20px;
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}

.floating-element:nth-child(3) {
  width: 25px;
  height: 25px;
  bottom: 15%;
  left: 20%;
  animation-delay: 2s;
}

/* === ANIMACIONES ESPECÍFICAS === */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-20px, -20px) rotate(360deg); }
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes floatAround {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -15px) rotate(90deg); }
  50% { transform: translate(-5px, -25px) rotate(180deg); }
  75% { transform: translate(-15px, -10px) rotate(270deg); }
}

/* === RESPONSIVE DELIVERY === */
@media (max-width: 768px) {
  .delivery-section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .delivery-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .delivery-title {
    font-size: 2rem;
  }

  .phone-number {
    font-size: 1.2rem;
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .whatsapp-button {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .delivery-title {
    font-size: 1.8rem;
  }

  .phone-number {
    font-size: 1.1rem;
    padding: var(--spacing-xs) var(--spacing-sm);
  }
}