/* ============================================
   NEWSLETTER / MAILING SUBSCRIPTION - MÁXIMO COMPACTO
   ============================================ */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '📧';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 80px;
    opacity: 0.05;
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter-header {
    text-align: center;
    margin-bottom: 0.7rem;
}

.newsletter-header h2 {
    font-size: 1.2rem;
    margin-bottom: 0.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.newsletter-header p {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-bottom: 0;
    line-height: 1.2;
}

.newsletter-description {
    display: none;
}

.newsletter-form {
    max-width: 750px;
    margin: 0 auto;
}

/* Email + Captcha + Botón en una sola línea */
.newsletter-top-row {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
    margin-bottom: 0.7rem;
}

.newsletter-form-group {
    flex: 1;
    margin: 0;
}

.newsletter-email-input {
    width: 100%;
    height: 100%;
    padding: 0.6rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.newsletter-email-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-email-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.newsletter-captcha {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0 0.9rem;
    border-radius: 10px;
    flex-shrink: 0;
}

.newsletter-captcha-label {
    font-weight: 500;
    font-size: 0.8rem;
    white-space: nowrap;
}

.newsletter-captcha-input {
    width: 45px;
    padding: 0.35rem 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 700;
    -moz-appearance: textfield; /* Firefox */
}

/* Ocultar flechas en Chrome, Safari, Edge, Opera */
.newsletter-captcha-input::-webkit-outer-spin-button,
.newsletter-captcha-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.newsletter-submit-btn {
    padding: 0.6rem 1.3rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    flex-shrink: 0;
}

.newsletter-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

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

/* Checkboxes en línea horizontal */
.newsletter-options {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

.newsletter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    margin: 0;
}

.newsletter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.newsletter-checkbox-label {
    font-size: 0.82rem;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}

.newsletter-privacy {
    text-align: center;
    font-size: 0.68rem;
    opacity: 0.65;
    margin-top: 0.4rem;
}

.newsletter-message {
    padding: 0.6rem;
    border-radius: 10px;
    margin-bottom: 0.7rem;
    font-weight: 500;
    text-align: center;
    font-size: 0.82rem;
}

.newsletter-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid rgba(76, 175, 80, 0.5);
}

.newsletter-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid rgba(244, 67, 54, 0.5);
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 0.9rem 1.2rem;
        margin: 1rem 0;
    }
    
    .newsletter-header h2 {
        font-size: 1.1rem;
    }
    
    .newsletter-header p {
        font-size: 0.75rem;
    }
    
    .newsletter-top-row {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .newsletter-captcha {
        justify-content: center;
        padding: 0.5rem 1rem;
    }
    
    .newsletter-submit-btn {
        width: 100%;
    }
    
    .newsletter-options {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .newsletter-checkbox-label {
        white-space: normal;
        font-size: 0.78rem;
    }
}
