/*
Theme Name:   Hello Elementor Child
Theme URI:    https://inmosequoia.com
Description:  Tema hijo profesional y extendido para Inmobiliaria Sequoia. Incluye sistema de Intranet seguro con visualizador modal.
Author:       Techsac
Author URI:   https://inmosequoia.com
Template:     hello-elementor
Version:      1.0.3
Text Domain:  hello-elementor-child
*/

/* ==========================================================================
   DISEÑO INTEGRAL - INTRANET SEQUOIA (ALTA PRIORIDAD)
   ========================================================================== */

.sequoia-intranet-app { 
    max-width: 1000px; 
    margin: 60px auto; 
    padding: 20px; 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important; 
    min-height: 500px;
}

/* Pantalla de Login - Estilo Premium */
.sequoia-intranet-app .intranet-login-container { 
    background: #1e1e1e !important; 
    padding: 50px 40px; 
    border-radius: 16px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.7) !important;
    max-width: 420px; 
    margin: 0 auto; 
    border: 1px solid #333 !important;
    color: #ffffff !important;
    text-align: center;
}

.sequoia-intranet-app .intranet-login-container h2 { 
    color: #D7D0C5 !important; 
    font-size: 32px !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sequoia-intranet-app .intranet-login-container p { 
    color: #888 !important;
    margin-bottom: 35px;
    font-size: 15px;
}

/* Inputs con estilo "Dark" */
.sequoia-intranet-app .form-group { 
    text-align: left; 
    margin-bottom: 25px; 
}

.sequoia-intranet-app .form-group label { 
    color: #D7D0C5 !important; 
    display: block; 
    margin-bottom: 8px; 
    font-size: 14px; 
    font-weight: 600;
}

.sequoia-intranet-app .form-group input { 
    width: 100% !important; 
    padding: 14px !important; 
    background: #2a2a2a !important; 
    color: #ffffff !important; 
    border: 1px solid #444 !important; 
    border-radius: 8px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.sequoia-intranet-app .form-group input:focus {
    border-color: #D7D0C5 !important;
    background: #333 !important;
    box-shadow: 0 0 10px rgba(215, 208, 197, 0.2);
}

/* Botón Sequoia Dorado */
.sequoia-intranet-app .btn-login { 
    width: 100% !important; 
    padding: 16px !important; 
    background: #D7D0C5 !important; 
    color: #1a1a1a !important; 
    border: none !important; 
    border-radius: 8px !important;
    font-weight: 800 !important; 
    font-size: 16px !important;
    text-transform: uppercase;
    cursor: pointer; 
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sequoia-intranet-app .btn-login:hover { 
    background: #ffffff !important; 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* Dashboard Estilo Moderno */
.intranet-dashboard { 
    display: none; 
    animation: fadeIn 0.5s ease; 
}

.dashboard-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 2px solid #D7D0C5; 
    padding-bottom: 25px; 
    margin-bottom: 45px;
}

.dashboard-header h2 { 
    color: #D7D0C5 !important; 
    margin: 0 !important; 
    font-size: 28px !important; 
}

.user-meta { 
    color: #aaa; 
    font-size: 14px; 
}

.user-meta span { 
    color: #D7D0C5; 
    font-weight: bold; 
}

.btn-logout { 
    background: #ff4d4d !important; 
    color: white !important; 
    border: none !important; 
    padding: 10px 22px !important; 
    border-radius: 6px !important; 
    cursor: pointer; 
    font-weight: 700;
    transition: 0.3s;
}

.btn-logout:hover { 
    background: #ff1a1a !important; 
    transform: scale(1.05); 
}

/* Grid de Documentos */
.docs-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
}

.doc-card { 
    background: #252525; 
    padding: 30px; 
    border-radius: 12px; 
    border: 1px solid #333; 
    text-align: center; 
    text-decoration: none !important; 
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.doc-card:hover { 
    border-color: #D7D0C5; 
    transform: translateY(-8px); 
    background: #2a2a2a;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.doc-icon { 
    font-size: 50px; 
    margin-bottom: 15px; 
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.3)); 
}

.doc-card h3 { 
    color: #D7D0C5 !important; 
    font-size: 18px !important; 
    margin: 10px 0 !important; 
    font-weight: 700 !important; 
}

.doc-card p { 
    color: #888; 
    font-size: 14px; 
    margin: 0; 
    line-height: 1.4; 
}

/* Mensajes de Alerta */
.alert-error { 
    color: #ff6b6b; 
    background: #3a2020; 
    padding: 15px; 
    border-radius: 8px; 
    margin-top: 20px; 
    display: none; 
    text-align: center; 
    border: 1px solid #ff6b6b;
    font-weight: 600;
}

@keyframes fadeIn { 
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

/* ==========================================================================
   ESTILOS DEL MODAL (VISUALIZADOR)
   ========================================================================== */
.sq-modal-overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

.sq-modal-content {
    width: 90%;
    height: 90%;
    background: #1a1a1a;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid #D7D0C5;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.sq-modal-close {
    position: absolute;
    top: 15px; 
    right: 20px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 50%;
}

.sq-modal-close:hover { 
    color: #ff4d4d; 
    background: rgba(26, 26, 26, 0.9);
}

.sq-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .sequoia-intranet-app {
        margin: 30px auto;
        padding: 15px;
    }
    
    .sequoia-intranet-app .intranet-login-container {
        padding: 30px 20px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .docs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sq-modal-content {
        width: 95%;
        height: 85%;
    }
    
    .sq-modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}