/* Estilos para campos con error */
input.error,
.newsletter__input.error {
    border: 2px solid #ff3c3c;
    background-color: #fff8f8;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}
.modal__content,
.modal__header h2 {
    font-family: 'Verdana', Arial, sans-serif;
    letter-spacing: var(--sans-spacing);
    line-height: 1.5;
}
/* Modal overlay */
.modal__overlay {
    inset: 0;
    opacity: 0;
    display: flex;
    z-index: 1000;
    position: fixed;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    background-color: rgba(0, 0, 0, 0.8);   
}
.modal__overlay.open {
    opacity: 1;
}
/* Contenido del modal */
.modal__content {
    position: absolute;
    margin: 50%;
    background: #fff;
    padding: 1em;
    border-radius: .5em;
    text-align: start;
    max-width: 40rem;
    max-height: 70dvh;
    width: 90%;
    overflow-y: auto;
    box-shadow: var(--star-shadow);
}      
/* Encabezado del modal */
.modal__header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.modal__header h2 {
    margin: 0;
    text-align: center;
}
.modal-close {
    position: absolute;
    float: right;
    top: 0;
    right: .6em;
    margin-bottom: 5em; 
    cursor: pointer;
}
.parental-consent-message p {
    hyphens: auto;
    color: firebrick; 
    margin: .3em 0;
    border: .06em solid crimson;
}
/* Detalles de confirmación */
.confirmation__details {
    margin-bottom: 1.2em;
}
.confirmation__details p {
    margin: .5em 0;
}
#confirm-name,
#confirm-email {
    color: var(--accent-color);
}
/* Texto de confirmación */
.confirmation__text {
    margin-bottom: 1.2em;
}
.confirmation__text ul {
    padding-left: 1.5em;
    margin-left: .3em;
}
.confirmation__text li {
    margin-bottom: .5em;
    list-style-type: disc;
}
/* Botones de confirmación */
.confirmation__buttons {
    display: flex;
    justify-content: space-between;
    color: var(--f-primary-color);
    gap: .6em;
}
.confirmation__buttons button {
    flex: 1;
}
.newsletter__back {
    padding: .6em 1em;
    cursor: pointer;
}
/* Estilos específicos para el formulario de cuentos */
.form-cuentos input,
.form-cuentos textarea {
    margin-bottom: 1em;
}
/* Estilo para el mensaje */
#brevo-message {
    margin-top: 1em;
    padding: .6em;
    border-radius: .24em;
    display: none;
}
#brevo-message.success {
    background-color: #e6ffea;
    border: 1px solid #a8e6b5;
    color: #2e7d32;
}
#brevo-message.error {
    background-color: #ffebee;
    border: .06em solid #ffcdd2;
    color: #c62828;
}
/* Tamaños de fuente */
.unscribe__mesagge,
.confirmation__text p:last-child {
    font-size: var(--fs);
    font-weight: 500;
    text-align: start;
}

.confirmation__text p,
.confirmation__text li,
.confirmation__details p, 
.parental-consent-message,
.confirmation__details span {
    font-size: var(--fp);
    font-weight: 500; 
    color: var(--primary-color); 
}
.modal-close,
.modal__confirm,
.confirmation__buttons {
    font-size: var(--pabc);
    font-weight: 600; 
}
.modal-close,
.modal__confirm {
    color: var(--primary-color); 
}


