/**
 * Estilos para Modal de Formularios - Maria Green
 */

/* Modal principal */
.modal-formulario {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-formulario.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Contenido del modal */
.modal-formulario-content {
    background: #FFFFFF;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-formulario.active .modal-formulario-content {
    transform: scale(1);
}

/* Header del modal */
.modal-formulario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    background: #9FC11F;
    border-radius: 15px 15px 0 0;
}

.modal-formulario-header h2 {
    margin: 0;
    font-family: 'Helvetica Neue LT Std', 'Helvetica Neue', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.modal-formulario-close {
    background: none;
    border: none;
    font-size: 32px;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-formulario-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

/* Body del modal */
.modal-formulario-body {
    padding: 30px;
}

.modal-formulario-intro {
    font-size: 16px;
    font-family: 'Futura Std', 'Century Gothic', sans-serif;
    color: #333333;
    margin: 0 0 25px 0;
    text-align: center;
}

/* Datos del formulario */
.datos-formulario {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.tipo-formulario {
    font-family: 'Helvetica Neue LT Std', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: #9FC11F;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #9FC11F;
    letter-spacing: 0.5px;
}

.campo-formulario {
    margin-bottom: 15px;
    padding: 12px;
    background: #FFFFFF;
    border-radius: 8px;
    border-left: 4px solid #9FC11F;
}

.campo-formulario:last-child {
    margin-bottom: 0;
}

.etiqueta-campo {
    font-family: 'Futura Std', 'Century Gothic', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}

.valor-corto {
    font-size: 14px;
    font-family: 'Helvetica Neue LT Std', 'Helvetica', sans-serif;
    color: #666666;
    line-height: 1.4;
}

.valor-largo {
    font-size: 14px;
    font-family: 'Helvetica Neue LT Std', 'Helvetica', sans-serif;
    color: #666666;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Información del email */
.modal-formulario-email-info {
    background: #e8f5e8;
    border: 2px solid #9FC11F;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.modal-formulario-email-info p {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-family: 'Futura Std', 'Century Gothic', sans-serif;
    color: #333333;
}

.modal-formulario-email-info p:last-child {
    margin: 0;
}

.email-destino {
    font-family: 'Futura Std', 'Century Gothic', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #9FC11F;
    background: #FFFFFF;
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block;
}

/* Footer del modal */
.modal-formulario-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 25px 30px;
    border-top: 2px solid #f0f0f0;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

/* Botones */
.modal-formulario-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-family: 'Futura Std', 'Century Gothic', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    letter-spacing: 0.3px;
}

.modal-formulario-btn-cancelar {
    background: #6c757d;
    color: #FFFFFF;
}

.modal-formulario-btn-cancelar:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.modal-formulario-btn-enviar {
    background: #9FC11F;
    color: #000000;
}

.modal-formulario-btn-enviar:hover {
    background: #8ab018;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(159, 193, 31, 0.4);
}

/* Mensaje de confirmación */
.mensaje-confirmacion {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.mensaje-confirmacion.show {
    opacity: 1;
    transform: translateX(0);
}

.mensaje-confirmacion-content {
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    font-family: 'Futura Std', 'Century Gothic', sans-serif;
    font-size: 14px;
    font-weight: 600;
    max-width: 350px;
}

.mensaje-success .mensaje-confirmacion-content {
    background: #9FC11F;
    color: #000000;
}

.mensaje-error .mensaje-confirmacion-content {
    background: #dc3545;
    color: #FFFFFF;
}

.mensaje-confirmacion-content svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-formulario-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-formulario-header {
        padding: 20px;
    }
    
    .modal-formulario-header h2 {
        font-size: 18px;
        line-height: 1.1;
    }
    
    .modal-formulario-body {
        padding: 20px;
    }
    
    .modal-formulario-footer {
        padding: 20px;
        flex-direction: column;
    }
    
    .modal-formulario-btn {
        width: 100%;
    }
    
    .mensaje-confirmacion {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .mensaje-confirmacion-content {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .modal-formulario-header h2 {
        font-size: 16px;
    }
    
    .tipo-formulario {
        font-size: 14px;
    }
    
    .campo-formulario {
        padding: 10px;
    }
    
    .etiqueta-campo {
        font-size: 12px;
    }
    
    .valor-corto,
    .valor-largo {
        font-size: 13px;
    }
}