/* ============================================
   MODAL FLOTANTE - CONTACTO
   ============================================ */

/* Overlay del modal */
.modal-contacto-flotante {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

/* Mostrar modal */
.modal-contacto-flotante.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contenido del modal */
.modal-contacto-contenido {
    background-color: #ffffff;
    position: relative;
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
}

/* Botón cerrar */
.modal-contacto-cerrar {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 36px;
    font-weight: 300;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.modal-contacto-cerrar:hover {
    color: #5f8db2;
}

/* Header del modal */
.modal-contacto-header {
    margin-bottom: 30px;
    text-align: center;
}

.modal-contacto-titulo {
    font-size: 32px;
    font-weight: 700;
    color: #5f8db2;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-contacto-subtitulo {
    font-size: 16px;
    color: #666;
    margin-bottom: 0;
}

/* Formulario */
.formulario-contacto-flotante {
    width: 100%;
}

.form-group-flotante {
    margin-bottom: 20px;
}

.form-control-flotante {
    width: 100%;
    padding: 15px 20px;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: #f9f9f9;
}

.form-control-flotante:focus {
    outline: none;
    border-color: #5f8db2;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(95, 141, 178, 0.1);
}

.form-control-flotante::placeholder {
    color: #999;
    font-weight: 500;
    letter-spacing: 1px;
}

.textarea-flotante {
    resize: vertical;
    min-height: 120px;
}

/* Botón enviar */
.btn-enviar-flotante {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #5f8db2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-enviar-flotante:hover {
    background-color: #4a7599;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(95, 141, 178, 0.3);
}

.btn-enviar-flotante:active {
    transform: translateY(0);
}

/* Mensajes de respuesta */
.form-message-flotante {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

.form-message-flotante.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-flotante.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .modal-contacto-contenido {
        padding: 30px 20px;
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-contacto-titulo {
        font-size: 26px;
    }
    
    .modal-contacto-subtitulo {
        font-size: 14px;
    }
    
    .form-control-flotante {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .btn-enviar-flotante {
        padding: 12px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .modal-contacto-contenido {
        padding: 25px 15px;
    }
    
    .modal-contacto-titulo {
        font-size: 22px;
    }
    
    .modal-contacto-cerrar {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }
}

/* Prevenir scroll del body cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
}