/* ==========================================================================
   ESTILOS METRO PARA PERFIL DE USUARIO
   ========================================================================== */

.client-manager-metro-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

/* Header del perfil */
.profile-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.profile-avatar .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.profile-info h1.profile-name {
    margin: 0 0 5px 0;
    font-size: 2.2em;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.profile-info .profile-welcome {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1em;
}

.profile-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Botones Metro */
.metro-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.metro-button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.metro-button-secondary {
    background: rgba(0,0,0,0.2);
}

.metro-button-secondary:hover {
    background: rgba(0,0,0,0.3);
}

/* Grid Metro */
.metro-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.metro-section {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.metro-section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 25px 0;
    font-size: 1.5em;
    font-weight: 600;
    color: #2c3e50;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.metro-section-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.metro-section-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Tiles Metro */
.metro-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.metro-tile {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.metro-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.metro-tile-inner {
    padding: 25px;
}

.metro-tile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.metro-tile-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.metro-tile-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.metro-tile-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
}

.metro-tile-content {
    min-height: 60px;
}

.metro-tile-value {
    font-size: 1.4em;
    font-weight: 300;
    color: #495057;
    line-height: 1.4;
    word-break: break-word;
}

.metro-tile-value a {
    color: #667eea;
    text-decoration: none;
}

.metro-tile-value a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.metro-tile-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-style: italic;
}

/* Tamaņos de tiles */
.metro-tile-large {
    grid-column: span 2;
}

.metro-tile-medium {
    grid-column: span 1;
}

/* Notices Metro */
.metro-notice {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #2196f3;
    margin: 30px 0;
}

.metro-notice-icon {
    background: #2196f3;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.metro-notice-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.metro-notice-content h3 {
    margin: 0 0 10px 0;
    color: #1976d2;
    font-size: 1.3em;
}

.metro-notice-content p {
    margin: 0;
    color: #546e7a;
    line-height: 1.6;
}

/* Footer del perfil */
.profile-footer {
    margin-top: 50px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.profile-footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.profile-last-update {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 0.95em;
}

.profile-support {
    margin: 0;
    color: #495057;
}

.profile-support a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.profile-support a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .metro-tiles {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .metro-tile-large {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .profile-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .profile-actions {
        justify-content: center;
    }
    
    .metro-section {
        padding: 20px;
    }
    
    .metro-tiles {
        grid-template-columns: 1fr;
    }
    
    .metro-tile-inner {
        padding: 20px;
    }
    
    .metro-notice {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .client-manager-metro-profile {
        padding: 15px;
    }
    
    .profile-header {
        padding: 20px;
    }
    
    .profile-avatar .avatar {
        width: 80px;
        height: 80px;
    }
    
    .profile-info h1.profile-name {
        font-size: 1.8em;
    }
    
    .metro-button {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    .metro-section-title {
        font-size: 1.3em;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metro-tile {
    animation: fadeInUp 0.6s ease forwards;
}

.metro-tile:nth-child(1) { animation-delay: 0.1s; }
.metro-tile:nth-child(2) { animation-delay: 0.2s; }
.metro-tile:nth-child(3) { animation-delay: 0.3s; }
.metro-tile:nth-child(4) { animation-delay: 0.4s; }
.metro-tile:nth-child(5) { animation-delay: 0.5s; }
.metro-tile:nth-child(6) { animation-delay: 0.6s; }

/* Efectos de hover mejorados */
.metro-tile {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.metro-tile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .metro-tile {
        animation: none;
        transition: none;
    }
    
    .metro-tile:hover {
        transform: none;
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    .metro-section {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .metro-section-title {
        color: #e2e8f0;
        border-bottom-color: #4a5568;
    }
    
    .metro-tile {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
        border-color: #4a5568;
    }
    
    .metro-tile-title {
        color: #e2e8f0;
    }
    
    .metro-tile-value {
        color: #cbd5e0;
    }
    
    .profile-footer {
        background: #2d3748;
    }
    
    .profile-last-update,
    .profile-support {
        color: #a0aec0;
    }
}