.newsletter {
  padding: var(--spacing-xl) var(--spacing-sm);
  background: linear-gradient(180deg, var(--color-turquoise) 0%, var(--color-turquoise-dark) 100%);
  position: relative;

}

.newsletter::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: white;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 0;
}

.newsletter-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter h2 {
  font-size: 48px;
  color: white;
  margin-bottom: var(--spacing-sm);
  font-weight: bold;
}

.newsletter p {
  font-size: 16px;
  color: white;
  opacity: 0.9;
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto 20px;
  align-items: stretch; /* 🔹 Importante para que ambos tengan la misma altura */
}

.newsletter-input {
  flex: 1;
  padding: 15px 25px;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 16px;
  outline: none;
  min-height: 50px; /* 🔹 Altura consistente */
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-btn {
  background: var(--color-pink);
  color: white;
  padding: 15px 35px;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 133, 0.3);
  white-space: nowrap;
  /* 🔹 Input submit es más confiable */
  -webkit-appearance: none;
  appearance: none;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 133, 0.4);
  background: #ff5c8d;
}

.newsletter-btn:active {
  transform: translateY(0);
}

/* 🔹 Mensajes de estado */
.newsletter-message {
  margin-top: 15px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  animation: slideDown 0.3s ease;
}

.newsletter-message.loading {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.newsletter-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.newsletter-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Perro decorativo */
.newsletter-dog {
  position: absolute;
  bottom: -120px;
  right: -350px;
  animation: float 4s ease-in-out infinite;
  z-index: 2;
}

.newsletter-dog img {
  width: 400px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* 📱 Responsive */

/* Tablet */
@media (max-width: 1024px) {
  .newsletter h2 {
    font-size: 40px;
  }

  .newsletter-dog {
    right: -150px;
    bottom: -100px;
  }

  .newsletter-dog img {
    width: 280px;
  }
}

/* Móvil */
@media (max-width: 768px) {
  .newsletter h2 {
    font-size: 32px;
  }

  .newsletter p {
    font-size: 14px;
  }

  .newsletter-dog {
    right: -80px;
    bottom: -80px;
  }

  .newsletter-dog img {
    width: 200px;
  }
}

/* Móvil pequeño */
@media (max-width: 600px) {
  .newsletter {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .newsletter h2 {
    font-size: 28px;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }

  .newsletter-input,
  .newsletter-btn {
    width: 100%;
    font-size: 14px;
    padding: 12px 16px;
    box-sizing: border-box;
  }

  .newsletter-dog {
    display: none;
  }
}

@media (max-width: 480px) {
  .newsletter h2 {
    font-size: 24px;
  }
}