/* css/clientes.css - VERSIÓN MAESTRA FINAL (Sólida y Verificada) */

/* ==========================================================================
   1. SISTEMA DE LOGIN (ESTILO SÓLIDO & TÉCNICO)
   ========================================================================== */

   #login-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh; height: 100dvh; 
    z-index: 2000;
    
    /* Nuevo Fondo */
    background-color: #050a0e;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 255, 157, 0.15), transparent 50%),
        linear-gradient(180deg, rgba(5, 10, 14, 0) 0%, #050a0e 100%);
    
    /* Centrado con Grid */
    display: grid;
    place-items: center;
    
    padding: 20px;
    overflow-y: auto;
    transition: opacity 0.4s ease;
}

/* --- CAJA DE LOGIN --- */
.login-box {
    background: #0e151b; 
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 20px 50px rgba(0, 0, 0, 0.7);
    
    border-radius: 16px;
    padding: 40px;
    
    width: 100%;
    max-width: 400px;
    
    position: relative;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- BOTÓN VOLVER --- */
.login-back-btn {
    position: absolute; top: 20px; left: 20px;
    color: #8b949e; font-size: 0.85rem; font-weight: 600;
    text-decoration: none; display: flex; align-items: center; gap: 8px;
    transition: color 0.2s; z-index: 10;
}
.login-back-btn:hover { color: var(--color-accent); }

/* --- HEADER Y LOGO --- */
.login-header { text-align: center; margin-bottom: 30px; }
.login-logo-link { display: inline-block; margin-bottom: 20px; transition: transform 0.2s; }
.login-brand-logo { height: 50px; width: auto; display: block; }
.login-header h2 { color: #fff; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 5px; }
.login-header p { color: #6e7681; font-size: 0.9rem; }

/* --- INPUTS Y BOTÓN (SIMETRÍA FORZADA) --- */
.login-input {
    width: 100%;
    height: 52px; /* ALTURA FIJA PARA IGUALAR EL BOTÓN */
    padding: 0 16px;
    
    background: #050a0e;
    border: 1px solid #30363d;
    border-radius: 8px;
    
    color: #fff; font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box; /* Fundamental para que el padding se incluya en el 100% */
}

.login-input:focus {
    outline: none; border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.1);
    background: #0a1016;
}

#login-btn {
    width: 100%;
    height: 52px; /* IDÉNTICO AL INPUT */
    
    /* Centrado de Texto/Contenido */
    display: flex; justify-content: center; align-items: center;
    
    /* Estilo de Borde Cuadrado */
    border-radius: 8px !important; 
    border: none; /* Eliminar cualquier conflicto de grosor de borde heredado */
    
    /* Estilo del Botón */
    background: var(--color-accent);
    color: #050a0e;
    font-weight: 700; font-size: 1rem; letter-spacing: 0.5px;
    text-transform: uppercase;
    
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 15px; /* Espacio separador del input */
    padding: 0 16px; /* Mismo padding horizontal que el input */
}

#login-btn:hover { background: #00e68e; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 255, 157, 0.2); }

/* --- OTRAS FUNCIONES LOGIN --- */
.password-wrapper { position: relative; width: 100%; }
.password-wrapper .login-input { padding-right: 45px; }

#togglePassword {
    position: absolute; right: 0; top: 0; height: 52px; width: 45px;
    display: flex; align-items: center; justify-content: center;
    color: #6e7681; cursor: pointer; transition: color 0.2s;
}
#togglePassword:hover { color: #fff; }

.input-group label {
    display: block; color: #8b949e; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 8px; margin-left: 2px;
}
.login-error-message { color: #ff5252; font-size: 0.85rem; text-align: center; margin-bottom: 20px; min-height: 20px; font-weight: 500; }
.login-help { text-align: center; margin-top: 20px; }
.login-help a { color: #6e7681; font-size: 0.8rem; text-decoration: none; }

/* Animación Shake */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
.login-box.shake { animation: shake 0.3s ease-in-out; }


/* ==========================================================================
   2. CONTENIDO INTERNO (DISEÑO TÉCNICO LIMPIO)
   ========================================================================== */

.client-zone-container {
    padding-top: 100px; padding-bottom: 80px;
    background-color: #050a0e;
    background-image: radial-gradient(#1c252e 1px, transparent 1px);
    background-size: 30px 30px;
    min-height: 100vh; opacity: 0; transition: opacity 0.5s ease-in;
}

.client-section { margin-bottom: 80px; }
.client-section-title {
    font-size: 1.8rem; color: #fff; margin-bottom: 30px;
    display: flex; align-items: center; gap: 15px;
}
.client-section-title i { color: var(--color-accent); font-size: 1.5rem; }

/* GRID VIDEOS */
.video-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 25px;
}

.video-card {
    background: #0e151b; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 25px; transition: all 0.3s ease;
    display: flex; flex-direction: column;
}
.video-card:hover {
    transform: translateY(-5px); border-color: var(--color-accent);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.video-thumbnail-placeholder {
    width: 100%; height: 140px; background: #050a0e; border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; color: #2d353d; transition: color 0.3s;
}
.video-card:hover .video-thumbnail-placeholder i { color: var(--color-accent); }
.video-thumbnail-placeholder i { font-size: 3rem; }

.video-card h4 { font-size: 1.1rem; color: #fff; margin-bottom: 10px; font-weight: 600; }
.video-card p { font-size: 0.9rem; color: #8b949e; line-height: 1.5; margin-bottom: 20px; flex-grow: 1; }

.video-card .btn-modern { width: 100%; border-radius: 8px; font-size: 0.9rem; padding: 12px; display: flex; justify-content: center; gap: 8px; align-items: center; }

/* FAQ Estilo Lista */
.faq-accordion { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #0e151b; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; overflow: hidden; }
.faq-question { padding: 20px; width: 100%; text-align: left; background: transparent; border: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-question span { color: #fff; font-weight: 500; font-size: 1rem; }
.faq-question i { color: #6e7681; transition: 0.3s; }
.faq-question.active i { transform: rotate(180deg); color: var(--color-accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.3s ease-out; background: #050a0e; }
.faq-answer p { padding: 20px; color: #b0b8c1; font-size: 0.95rem; line-height: 1.6; margin: 0; border-top: 1px solid rgba(255,255,255,0.05); }


/* ==========================================================================
   3. MODAL VIDEO
   ========================================================================== */

#video-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    display: flex; align-items: center; justify-content: center;
    z-index: 3000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
#video-modal-overlay.active { opacity: 1; pointer-events: auto; }

.video-modal-content {
    width: 90%; max-width: 900px; background: #0e151b; border-radius: 12px;
    border: 1px solid #30363d; padding: 20px; position: relative;
    transform: scale(0.95); transition: transform 0.3s ease;
}
#video-modal-overlay.active .video-modal-content { transform: scale(1); }

#video-modal-close {
    position: absolute; top: -15px; right: -15px; width: 36px; height: 36px;
    background: #fff; color: #000; border-radius: 50%; border: none; cursor: pointer;
    font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
}
#video-modal-title { color: #fff; margin: 0 0 15px 0; font-size: 1.2rem; }

/* Tabs Idioma */
#video-lang-tabs { display: flex; gap: 10px; border-bottom: 1px solid #30363d; padding-bottom: 15px; margin-bottom: 15px; }
.lang-tab {
    background: transparent; border: 1px solid #30363d; color: #8b949e;
    padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 0.85rem;
}
.lang-tab.active { background: var(--color-accent); color: #000; border-color: var(--color-accent); }

.video-player-wrapper { border-radius: 6px; overflow: hidden; background: #000; }
#video-player { width: 100%; display: block; }


/* ==========================================================================
   4. RESPONSIVE QUERIES
   ========================================================================== */

/* Tablet y Móvil Grande */
@media (max-width: 768px) {
    .login-back-btn { top: 20px; left: 20px; }
    .video-modal-content { width: 95%; padding: 1.5rem; }
    #video-modal-title { font-size: 1.2rem; }
    .lang-tab { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
}

/* Móvil Pequeño */
@media (max-width: 480px) {
    #login-overlay { padding: 15px; }
    .login-box { padding: 2rem 1.5rem; max-width: 100%; }
    .login-back-btn { top: 15px; left: 15px; font-size: 0.8rem; padding: 8px 12px; }
    .login-brand-logo { height: 45px; }
    .login-header h2 { font-size: 1.4rem; }
    .client-section-title { font-size: 1.5rem; }
}

/* Landscape Móvil */
@media (max-height: 600px) {
    #login-overlay { align-items: flex-start; padding-top: 70px; }
    .login-back-btn { position: fixed; top: 10px; left: 10px; background: rgba(10, 25, 32, 0.95); z-index: 3000; }
    .login-box { margin-bottom: 30px; }
}