/**
 * Componente Newsletter RESCOP - ANCHO MÁXIMO 1280px
 */

/* === CONTENEDOR PRINCIPAL === */
.rescop-newsletter-component {
    /* Ancho completo */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 0;
    
    /* Altura mínima */
    min-height: 240px;
    
    /* Fondo gris claro */
    background: #F5F5F5;
    overflow: hidden;
    
    /* Flex container */
    display: flex;
    position: relative;
    padding: 0;
}

/* === CONTENEDOR INTERNO - MÁXIMO 1280px === */
.rescop-newsletter-container {
    width: 100%;
    max-width: 1280px !important; /* CAMBIO: 1280px como organizaciones */
    margin: 0 auto;
    
    /* Flexbox horizontal: texto + botón */
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* Padding reducido para 1280px */
    padding: 76px 4rem; /* Reducir padding lateral */
    gap: 2rem;
}

/* === CONTENIDO/TEXTO === */
.rescop-newsletter-content {
    /* Flex item que crece pero limitado */
    flex: 1;
    max-width: 700px; /* REDUCIR: de 943px a 700px para 1280px container */
}

/* === TÍTULO === */
.rescop-newsletter-title {
    /* Tipografía exacta pero responsive */
    color: rgba(0, 0, 0, 0.80) !important;
    font-size: clamp(20px, 2.5vw, 36px) !important; /* MÁS RESPONSIVE */
    font-family: var(--rescop-font-primary, 'Merriweather Sans', serif) !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    word-wrap: break-word;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none;
}

/* === CTA CONTAINER === */
.rescop-newsletter-cta {
    /* Flex item fijo */
    flex: 0 0 auto;
}

/* === BOTÓN SUSCRIPCIÓN === */
.rescop-newsletter-button {
    /* Medidas exactas pero responsive */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: clamp(160px, 15vw, 192px); /* RESPONSIVE */
    height: clamp(44px, 5vw, 52px); /* RESPONSIVE */
    
    /* Color exacto de Figma */
    background: linear-gradient(0deg, #BE252D 0%, #BE252D 100%), #ED2E38;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.rescop-newsletter-button:hover {
    background: linear-gradient(0deg, #A0212A 0%, #A0212A 100%), #ED2E38;
    transform: translateY(-2px);
}

/* === TEXTO DEL BOTÓN === */
.rescop-newsletter-button span {
    /* Tipografía exacta */
    color: white !important;
    font-size: clamp(15px, 1.5vw, 17px) !important; /* RESPONSIVE */
    font-family: var(--rescop-font-primary, 'Merriweather Sans', serif) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
}

/* === RESPONSIVE ESPECÍFICO === */
@media (max-width: 1280px) {
    .rescop-newsletter-container {
        padding: 76px 3rem;
        gap: 1.5rem;
    }
    
    .rescop-newsletter-content {
        max-width: 600px;
    }
}

@media (max-width: 1024px) {
    .rescop-newsletter-container {
        padding: 3rem 2rem;
        gap: 2rem;
    }
    
    .rescop-newsletter-content {
        max-width: 500px;
    }
    
    .rescop-newsletter-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 768px) {
    .rescop-newsletter-component {
        min-height: auto;
    }
    
    .rescop-newsletter-container {
        /* Stack vertical en móvil */
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        gap: 2rem;
    }
    
    .rescop-newsletter-content {
        max-width: 100%;
    }
    
    .rescop-newsletter-title {
        font-size: 22px !important;
        line-height: 1.4 !important;
        text-align: center;
    }
    
    .rescop-newsletter-button {
        width: 180px;
        height: 48px;
    }
    
    .rescop-newsletter-button span {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .rescop-newsletter-container {
        padding: 1.5rem 1rem;
    }
    
    .rescop-newsletter-title {
        font-size: 20px !important;
    }
    
    .rescop-newsletter-button {
        width: 160px;
        height: 44px;
    }
}

/* === ELIMINAR RESTRICCIONES DEL TEMA === */
.entry-content .rescop-newsletter-component,
.wp-block-post-content .rescop-newsletter-component,
.site-main .rescop-newsletter-component {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: none !important;
}