/* public_html/DISEÑO/estilos.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #334e68;
}

/* Empresa Principal */
.main-header {
    background-color: #102a43; /* Tu color de fondo oscuro */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2);
    /* Redujimos el padding vertical a 10px para adelgazar el header */
    padding: 10px 20px; 
    display: flex;
    justify-content: center;
}

.company-main {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre el logo y el nombre */
}

.logo-main {
    height: 85px; /* Aumentamos notablemente la altura del logo */
    width: auto;
    object-fit: contain;
    /* Mantenemos el filtro si lo estabas usando, o quítalo si ya es blanco */
}

.company-main h1 {
    color: #ffffff; 
    font-size: 24px; /* Un tamaño de fuente equilibrado para que el logo destaque más */
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Contenedor principal */
.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-box {
    background: #ffffff;
    padding: 45px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(16, 42, 67, 0.08), 0 4px 10px rgba(0,0,0,0.03);
    width: 100%;
    max-width: 420px;
}

/* Empresa Secundaria (MitralPet) */
.company-secondary {
    text-align: center;
    margin-bottom: 35px;
}

.logo-secondary {
    height: 90px; /* Logo notablemente más grande */
    margin-bottom: 15px;
    object-fit: contain;
}

.company-secondary h2 {
    color: #243b53;
    font-size: 26px;
    margin-bottom: 8px;
}

.welcome-message {
    font-size: 14.5px;
    color: #627d98;
    line-height: 1.5;
}

/* Formulario e Inputs con Iconos */
.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #486581;
    font-weight: 600;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.icon-input {
    position: absolute;
    left: 15px;
    color: #9fb3c8;
    font-size: 18px;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 45px; /* Espacio izquierdo para el icono */
    border: 2px solid #e4e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: #102a43;
    background-color: #f8fbfd;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    border-color: #3e8ed0;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(62, 142, 208, 0.15);
}

.input-wrapper input::placeholder {
    color: #9fb3c8;
}

/* Botón Ojo de Contraseña */
.btn-eye {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #829ab1;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.btn-eye:hover {
    color: #3e8ed0;
}

/* Acciones y Botón Submit */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    margin-top: 10px;
}

.btn-submit {
    background-color: #3e8ed0;
    color: white;
    border: none;
    padding: 14px 20px;
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-submit:hover {
    background-color: #2b7cb7;
}

.btn-submit:active {
    transform: scale(0.98);
}

.link-recover {
    color: #627d98;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.link-recover:hover {
    color: #3e8ed0;
    text-decoration: underline;
}

/* =========================================
   ESTILOS DEL PANEL PRINCIPAL (DASHBOARD)
   ========================================= */

.dashboard-body {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Encabezado del Panel */
.dashboard-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #3e8ed0;
}

.dashboard-company {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dashboard-logo {
    height: 60px;
    object-fit: contain;
}

.user-greeting h2 {
    color: #102a43;
    font-size: 22px;
    margin-bottom: 2px;
}

.user-greeting p {
    color: #627d98;
    font-size: 14px;
}

/* Botón de Cerrar Sesión */
.btn-logout {
    background-color: #e12d39;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-logout:hover {
    background-color: #c92a33;
}

.btn-logout:active {
    transform: scale(0.95);
}

/* Grilla del Menú */
.dashboard-container {
    flex: 1;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1px));
    gap: 30px;
    max-width: 1000px;
    width: 100%;
    justify-content: center;
}

/* Tarjetas (Botones grandes) */
.menu-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 20px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(16, 42, 67, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border: 1px solid transparent;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(16, 42, 67, 0.12);
    border-color: #3e8ed0;
}

.icon-large {
    font-size: 50px;
    color: #3e8ed0;
    transition: transform 0.3s;
}

.menu-card:hover .icon-large {
    transform: scale(1.1);
}

.menu-card h3 {
    color: #243b53;
    font-size: 18px;
    font-weight: 600;
}

/* Tarjeta especial (Descargar Base) */
.card-special .icon-large {
    color: #28a745; /* Verde tipo Excel */
}
.card-special:hover {
    border-color: #28a745;
}

/* =========================================
   DISEÑO RESPONSIVO (Móviles y Tablets)
   ========================================= */
@media (max-width: 768px) {
    /* Ajustes del Login (los que ya tenías) */
    .company-main { flex-direction: column; gap: 5px; }
    .logo-main { height: 65px; }
    .company-main h1 { font-size: 20px; }
    .login-container { padding: 20px 15px; }
    .login-box { padding: 30px 20px; }
    .logo-secondary { height: 70px; }
    .company-secondary h2 { font-size: 22px; }
    .welcome-message { font-size: 13.5px; }

    /* Nuevos Ajustes del Panel para Celular */
    .dashboard-header {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        text-align: center;
    }
    
    .dashboard-company {
        flex-direction: column;
        gap: 10px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr; /* Una columna en celulares */
        gap: 20px;
    }
    
    .dashboard-container {
        padding: 30px 20px;
    }
}