/* ===============================================
   GCLA - Sección de Newsletter
   Componente Modular - Alertas de Nuevos Lotes
   =============================================== */

/* Contenedor Principal */
.newsletter-section {
  background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
  position: relative;
  padding: 60px 0;
  overflow: hidden;
  color: #1F2937;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(0,0,0,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(0,0,0,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(0,0,0,0.01)"/><circle cx="10" cy="60" r="0.5" fill="rgba(0,0,0,0.01)"/><circle cx="90" cy="40" r="0.5" fill="rgba(0,0,0,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
}

.newsletter-container {
  position: relative;
  z-index: 2;
}

/* Badge de la sección */
.newsletter-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

/* Contenido del newsletter */
.newsletter-content {
  padding-right: 20px;
}

.newsletter-title {
  font-size: 32px;
  font-weight: 800;
  color: #1F2937;
  margin-bottom: 16px;
  line-height: 1.2;
}

.newsletter-description {
  font-size: 18px;
  color: #4B5563;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Beneficios del newsletter */
.newsletter-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit-item i {
  font-size: 18px;
  color: #10B981;
  flex-shrink: 0;
}

.benefit-item span {
  font-size: 16px;
  color: #374151;
  font-weight: 500;
}

/* Contenedor del formulario */
.newsletter-form-container {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Header del formulario */
.form-header {
  text-align: center;
  margin-bottom: 24px;
}

.form-header h4 {
  font-size: 24px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 8px;
}

.form-header p {
  font-size: 14px;
  color: #6B7280;
  margin: 0;
}

/* Grupos del formulario */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.form-control,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #D1D5DB;
  border-radius: 12px;
  background: #FFFFFF;
  color: #1F2937;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: #9CA3AF;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: #10B981;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-select option {
  background: #FFFFFF;
  color: #1F2937;
}

/* Checkbox personalizado */
.form-check {
  margin-bottom: 24px;
}

.form-check-input {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: transparent;
  margin-right: 12px;
  position: relative;
  cursor: pointer;
}

.form-check-input:checked {
  background: #10B981;
  border-color: #10B981;
}

.form-check-input:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.form-check-label {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.4;
  cursor: pointer;
}

.form-check-label a {
  color: #10B981;
  text-decoration: none;
  font-weight: 600;
}

.form-check-label a:hover {
  text-decoration: underline;
}

/* Botón de envío */
.btn-primary {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

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

/* Nota del formulario */
.form-note {
  font-size: 12px;
  color: #6B7280;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.form-note i {
  color: #10B981;
}

/* Responsive Design */
@media (max-width: 768px) {
  .newsletter-section {
    padding: 40px 0;
  }
  
  .newsletter-content {
    padding-right: 0;
    margin-bottom: 32px;
  }
  
  .newsletter-title {
    font-size: 28px;
  }
  
  .newsletter-description {
    font-size: 16px;
  }
  
  .newsletter-form-container {
    padding: 24px 20px;
  }
  
  .form-header h4 {
    font-size: 20px;
  }
  
  .form-control,
  .form-select {
    padding: 10px 14px;
    font-size: 15px;
  }
  
  .btn-primary {
    padding: 14px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .newsletter-badge {
    padding: 10px 20px;
    font-size: 12px;
  }
  
  .newsletter-title {
    font-size: 24px;
  }
  
  .newsletter-description {
    font-size: 15px;
  }
  
  .newsletter-form-container {
    padding: 20px 16px;
  }
  
  .form-header h4 {
    font-size: 18px;
  }
  
  .form-control,
  .form-select {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .btn-primary {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .benefit-item {
    gap: 8px;
  }
  
  .benefit-item i {
    font-size: 16px;
  }
  
  .benefit-item span {
    font-size: 14px;
  }
}

/* Modo de alto contraste */
@media (prefers-contrast: high) {
  .newsletter-section {
    background: #000000;
  }
  
  .newsletter-form-container {
    border-color: #10B981;
  }
  
  .form-control,
  .form-select {
    border-color: #10B981;
  }
}

/* Reducir animaciones para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
  .form-control,
  .form-select,
  .btn-primary {
    transition: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}