.newsletter-container {
    max-width: 750px;
    margin: 30px auto;
    padding: 0 15px;
}

/* Tarjeta principal manteniendo la línea visual de la municipalidad */
.newsletter-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e1e8ed;
    border-top: 5px solid #ec0000;
    padding: 35px;
    margin-bottom: 30px;
    text-align: left;
}

.newsletter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.newsletter-badge {
    background-color: red;
    color: white;
    font-size: 0.85em;
    font-weight: bold;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.newsletter-titulo {
    color: #4e2602;
    font-size: 1.5em;
    margin: 0 0 12px 0;
    line-height: 1.3;
    font-weight: 700;
}

.newsletter-descripcion {
    color: #555;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

/* Aviso informativo de medios de contacto */
.info-contacto {
    margin: 0;
    font-size: 0.9em;
    color: #006699;
    background: #f0f7fb;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid #006699;
    line-height: 1.4;
}

/* Estilos del Formulario */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group.full-width {
    grid-column: span 2;
}

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

.form-label span {
    color: #ec0000;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: #888;
    font-size: 1em;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ccd6dd;
    border-radius: 6px;
    font-size: 1em;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #006699;
    box-shadow: 0 0 0 3px rgba(0, 102, 153, 0.15);
}

/* Casilla de Términos y Condiciones */
.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0 25px 0;
    font-size: 0.92em;
    color: #555;
    line-height: 1.4;
}

.terms-group input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #ec0000;
    cursor: pointer;
    flex-shrink: 0;
}

.terms-group a {
    color: #006699;
    font-weight: 600;
    text-decoration: underline;
}

.terms-group a:hover {
    color: #ec0000;
}

/* Contenedor Captcha */
.captcha-container {
    margin-bottom: 25px;
}

.error-msg {
    color: #ec0000;
    font-size: 0.88em;
    font-weight: 600;
    margin-top: 8px;
    display: none;
}

/* Botón de envío */
.newsletter-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.btn-suscribir {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #ec0000;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-suscribir:hover {
    background-color: #c40000;
    transform: scale(1.02);
}

/* Alertas de estado (PHP GET) */
.alerta-estado {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}
.alerta-exito {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alerta-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 650px) {
    .newsletter-card {
        padding: 20px;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .btn-suscribir {
        width: 100%;
    }
}