﻿/* ==========================================================
   ENVÍO MAIL NUEVO SOCIO — Unificado con HABECU-theme.css
   ========================================================== */

/* === OVERLAY === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* === CONTENEDOR PRINCIPAL === */
.modal-content-mail {
    background: #f9fff9;
    border: 3px solid var(--HABECU-verde-oscuro);
    border-radius: 14px;
    width: 820px;
    max-width: 95%;
    padding: 30px 40px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.35);
    font-family: "Segoe UI", Arial, sans-serif;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === TÍTULO === */
.modal-content-mail h3 {
    text-align: center;
    color: var(--HABECU-verde-oscuro);
    font-weight: 700;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === SECCIONES === */
.seccion-mail {
    background: #ffffff;
    border: 1px solid #c7dfc7;
    border-radius: 10px;
    margin-bottom: 18px;
    padding: 16px 20px 10px 20px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

    .seccion-mail legend {
        font-weight: 700;
        color: #084c0f;
        padding: 0 6px;
        font-size: 14px;
    }

/* === FILAS === */
.fila-mail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 7px 0;
    flex-wrap: wrap;
}

.etiqueta {
    font-weight: 600;
    color: var(--HABECU-verde-oscuro);
    min-width: 80px;
    text-align: left;
}


/* ==========================================================
   CAMPOS NUMÉRICOS – alineados a la derecha con símbolo € interior dinámico
   ========================================================== */
.input-numero {
    flex: 1;
    border: 1px solid #cbdcc9;
    border-radius: 6px;
    padding: 6px 26px 6px 10px; /* espacio extra para el símbolo € */
    font-size: 0.96rem;
    background: #f6faf6;
    color: #244a24;
    text-align: right; /* 🔹 números alineados a la derecha */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

    /* símbolo € por defecto (gris suave tipo placeholder) */
    .input-numero::after {
        content: "€";
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #b7b7b7; /* 🔸 gris placeholder */
        font-weight: 500;
        pointer-events: none;
        transition: color 0.2s ease;
    }

    /* al enfocar o escribir, el símbolo se vuelve del color normal */
    .input-numero:focus::after,
    .input-numero:not(:placeholder-shown)::after {
        color: #244a24; /* verde oscuro HABECU */
        font-weight: 600;
    }

    /* efecto de foco */
    .input-numero:focus {
        outline: none;
        border-color: #198754;
        box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.2);
    }

    /* quita flechas del input number */
    .input-numero::-webkit-outer-spin-button,
    .input-numero::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .input-numero[type=number] {
        -moz-appearance: textfield; /* Firefox */
    }

/* bloquea letras: solo números, punto y coma */
.input-numero {
    ime-mode: disabled;
}

/* === CAMPOS DE TEXTO === */
._txt {
    flex: 1;
    border: 1px solid #cbdcc9;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.96rem;
    background: #f6faf6;
    color: #244a24;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    ._txt:focus {
        outline: none;
        border-color: var(--HABECU-verde-medio);
        box-shadow: 0 0 3px var(--HABECU-verde-claro);
    }

/* === BOTONERA === */
.botonera-centro {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 22px;
}

/* --- Botón principal (verde) --- */
.bt-enlace {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(180deg, var(--HABECU-verde-medio) 0%, var(--HABECU-verde-oscuro) 100%);
    color: #fff;
    transition: all 0.2s ease;
}

    .bt-enlace:hover {
        background: linear-gradient(180deg, #3f883f 0%, #2b662b 100%);
        transform: translateY(-2px);
    }

/* --- Botón cancelar (rojo) --- */
.bt-enlace-cancelar {
    background: linear-gradient(180deg, #c53d3d 0%, #8f2a2a 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .bt-enlace-cancelar:hover {
        background: linear-gradient(180deg, #d9534f 0%, #a83c3c 100%);
        transform: translateY(-2px);
    }

/* === TRANSICIÓN SUAVE AL CERRAR === */
.modal-overlay[style*="display: none"] .modal-content-mail {
    animation: fadeOutModal 0.2s ease forwards;
}

@keyframes fadeOutModal {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.96);
    }
}

/* === VISTA PREVIA DE CORREO === */
.visor-report {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d7e6d7;
    border-radius: 10px;
    padding: 20px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    min-height: 850px;
}

/* === FIELDSET GENERAL === */
fieldset legend {
    font-weight: 700;
    color: #084c0f;
    padding: 0 6px;
    font-size: 14px;
}

/* === MODAL PDF === */
.modal-content-pdf {
    background: #fff;
    border-radius: 14px;
    width: 80%;
    max-width: 1000px;
    height: 80%;
    padding: 15px 20px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--HABECU-verde-oscuro);
    margin-bottom: 8px;
    background: linear-gradient(180deg, var(--HABECU-verde-oscuro) 0%, #0b320b 100%);
    color: var(--HABECU-dorado);
    padding: 8px 14px;
    border-radius: 8px 8px 0 0;
}

    .modal-header h3 {
        margin: 0;
        font-weight: 700;
    }

.close-modal {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--HABECU-rojo);
    font-weight: bold;
    transition: transform 0.2s ease;
}

    .close-modal:hover {
        transform: scale(1.2);
    }

.iframe-pdf {
    flex: 1;
    width: 100%;
    border: none;
    border-radius: 8px;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.1);
    margin-bottom: 12px;
}
