/* ===== ESTILOS DEL POP-UP NEWSLETTER ===== */

.newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.newsletter-popup.show {
    display: flex;
    opacity: 1;
}

.newsletter-content {
    background: transparent;
    border-radius: 20px;
    padding: 20px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: none;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: visible;
}

.newsletter-popup.show .newsletter-content {
    transform: scale(1);
}

.newsletter-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-close:hover {
    background: #f5f5f5;
    color: #333;
    transform: rotate(90deg);
}

.newsletter-header {
    text-align: center;
    margin-bottom: 30px;
}

.newsletter-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.newsletter-header h2 {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.newsletter-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.newsletter-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #872786;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(135, 39, 134, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    background: #fff;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #872786;
    border-color: #872786;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.newsletter-submit {
    width: 100%;
    background: linear-gradient(135deg, #872786 0%, #91298b 100%);
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(135, 39, 134, 0.3);
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(135, 39, 134, 0.4);
}

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

.newsletter-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.benefit-item i {
    font-size: 24px;
    color: #872786;
    margin-bottom: 5px;
}

.benefit-item span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    line-height: 1.3;
}

/* Responsive para tablets */
@media (max-width: 768px) {
    .newsletter-content {
        padding: 20px 25px;
        margin: 20px;
    }
    
    .newsletter-header h2 {
        font-size: 24px;
    }
    
    .newsletter-header p {
        font-size: 15px;
    }
    
    .newsletter-benefits {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .benefit-item span {
        font-size: 11px;
    }
}

/* Responsive para pantallas grandes (computadora) */
@media (min-width: 769px) {
    .newsletter-content {
        padding: 25px 30px;
    }
    
    .newsletter-header {
        margin-bottom: 20px;
    }
    
    .newsletter-logo {
        width: 80px;
        margin-bottom: 15px;
    }
    
    .newsletter-header h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .newsletter-header p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .newsletter-form {
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"] {
        padding: 12px 18px;
    }
    
    .newsletter-submit {
        padding: 14px 20px;
    }
    
    .newsletter-benefits {
        gap: 15px;
    }
    
    .benefit-item i {
        font-size: 20px;
        margin-bottom: 3px;
    }
    
    .benefit-item span {
        font-size: 11px;
    }
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .newsletter-popup {
        padding: 15px;
    }
    
    .newsletter-content {
        padding: 20px 15px;
        margin: 10px;
    }
    
    .newsletter-header h2 {
        font-size: 22px;
    }
    
    .newsletter-header p {
        font-size: 14px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"] {
        padding: 14px 16px;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .newsletter-submit {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .newsletter-benefits {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .benefit-item {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    .benefit-item i {
        font-size: 20px;
        margin-bottom: 0;
    }
    
    .benefit-item span {
        font-size: 13px;
        text-align: left;
    }
}

/* Animación de entrada para el pop-up */
@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.newsletter-popup.show .newsletter-content {
    animation: popupSlideIn 0.4s ease-out;
}

/* ===== ESTILOS DEL BOTÓN NEWSLETTER EN FOOTER ===== */

.newsletter-footer {
    margin-top: 20px;
    text-align: center;
}

.btn-newsletter-footer {
    background: linear-gradient(135deg, #872786 0%, #91298b 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(135, 39, 134, 0.3);
    text-decoration: none;
}

.btn-newsletter-footer:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(135, 39, 134, 0.4);
    color: #fff;
}

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

.btn-newsletter-footer i {
    font-size: 16px;
}

/* Responsive para el botón del footer */
@media (max-width: 480px) {
    .btn-newsletter-footer {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .btn-newsletter-footer i {
        font-size: 14px;
    }
}

/* ===== ESTILOS DEL BOTÓN DE TEST ===== */

.btn-test-newsletter {
    background: linear-gradient(135deg, #872786 0%, #91298b 100%);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(135, 39, 134, 0.3);
    white-space: nowrap;
}

.btn-test-newsletter:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(135, 39, 134, 0.4);
}

.btn-test-newsletter i {
    font-size: 12px;
}

/* Responsive para el botón de test */
@media (max-width: 768px) {
    .btn-test-newsletter {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .btn-test-newsletter i {
        font-size: 11px;
    }
}

/* ===== ESTILOS DE LA SECCIÓN NEWSLETTER SUTIL ===== */

.newsletter-section {
    background: linear-gradient(135deg, #872786 0%, #91298b 100%);
    padding: 60px 0;
    border-top: 1px solid #872786;
    border-bottom: 1px solid #91298b;
}

.newsletter-section-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-section-header h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.newsletter-section-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-section-form {
    margin-bottom: 40px;
}

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

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
}

.form-group-inline {
    flex: 1;
    max-width: 200px;
}

.form-group-inline input[type="text"],
.form-group-inline input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.form-group-inline input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group-inline input:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    color: #fff;
}

.newsletter-submit-inline {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: #872786;
    border: 3px solid #fff;
    padding: 16px 28px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    min-width: 160px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.newsletter-submit-inline:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    border-color: #fff;
    color: #872786;
}

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

.checkbox-group-inline {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.checkbox-label-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    max-width: 500px;
    font-weight: 500;
}

.checkbox-label-inline input[type="checkbox"] {
    display: none;
}

.checkmark-inline {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.checkbox-label-inline input[type="checkbox"]:checked + .checkmark-inline {
    background: #fff;
    border-color: #fff;
}

.checkbox-label-inline input[type="checkbox"]:checked + .checkmark-inline::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #872786;
    font-size: 14px;
    font-weight: bold;
}



/* Responsive para la sección newsletter */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 40px 0;
    }
    
    .newsletter-section-header h2 {
        font-size: 28px;
    }
    
    .newsletter-section-header p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group-inline {
        max-width: 100%;
    }
    
    .newsletter-submit-inline {
        width: 100%;
        max-width: 250px;
        padding: 14px 20px;
        font-size: 16px;
    }
    

}

/* ===== ESTILOS PARA FORMULARIOS DE ACTIVECAMPAIGN ===== */

/* Estilos generales para formularios de ActiveCampaign */
._form_156 {
    max-width: 600px;
    margin: 0 auto;
}

._form_156 form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Campos de entrada de ActiveCampaign */
._form_156 input[type="text"],
._form_156 input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

._form_156 input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

._form_156 input:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Botón de envío de ActiveCampaign */
._form_156 input[type="submit"],
._form_156 button[type="submit"] {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: #872786;
    border: 3px solid #fff;
    padding: 16px 28px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    min-width: 160px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 auto;
}

._form_156 input[type="submit"]:hover,
._form_156 button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    border-color: #fff;
    color: #872786;
}

/* Checkbox de ActiveCampaign */
._form_156 input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

/* Labels de ActiveCampaign */
._form_156 label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mensajes de error y éxito de ActiveCampaign */
._form_156 ._error,
._form_156 ._form_error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
}

._form_156 ._form_success,
._form_156 ._success {
    color: #51cf66;
    background: rgba(81, 207, 102, 0.1);
    border: 1px solid rgba(81, 207, 102, 0.3);
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
}

/* Responsive para formularios de ActiveCampaign */
@media (max-width: 768px) {
    ._form_156 form {
        gap: 15px;
    }
    
    ._form_156 input[type="submit"],
    ._form_156 button[type="submit"] {
        width: 100%;
        max-width: 250px;
        padding: 14px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: 30px 0;
    }
    
    .newsletter-section-header h2 {
        font-size: 24px;
    }
    
    .newsletter-section-header p {
        font-size: 15px;
        margin-bottom: 25px;
    }
    

}
