/* OPCIÓN 4: GLASS MORPHISM (Efecto cristal esmerilado - Fondo Blanco) */

.glass-design {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background: #f5f5f5;
}

/* Background sutil con elementos decorativos */
.glass-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 50%, #f0f4f8 100%);
}

.glass-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #667eea;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #4facfe;
    top: 50%;
    right: 10%;
    animation-delay: 5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: #43e97b;
    bottom: 10%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
}

/* Glass Header */
.glass-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25);
    text-align: center;
    color: white;
}

.glass-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 8px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.glass-header p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

/* Glass KPI */
.glass-kpi {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.glass-kpi:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(102, 126, 234, 0.2);
}

.purple-glass { border: 1px solid rgba(102, 126, 234, 0.4); }
.blue-glass { border: 1px solid rgba(79, 172, 254, 0.4); }

.glass-kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.glass-kpi-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.glass-kpi-icon i {
    font-size: 22px;
    color: white;
}

.glass-kpi-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.glass-kpi-number {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-kpi-number sup {
    font-size: 22px;
    margin-left: 2px;
}

.glass-kpi-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.glass-kpi-footer {
    padding-top: 15px;
    border-top: 1px solid #e8ecf1;
    font-size: 12px;
    color: #7f8c8d;
}

.glass-kpi-footer i {
    font-size: 14px;
    vertical-align: middle;
}

/* Section Divider */
.glass-section-divider {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 35px 0 25px 0;
    border: 2px solid #e8ecf1;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.glass-section-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.glass-section-content h5 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
}

.glass-section-content p {
    font-size: 12px;
    color: #7f8c8d;
    margin: 2px 0 0 0;
}

/* Metric Cards */
.glass-metric-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.glass-metric-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/* Bordes de colores característicos para cada card individual */
.card-border-red { border: 1px solid rgba(245, 87, 108, 0.4); min-height: 300px; }
.card-border-red .glass-metric-value { background: linear-gradient(135deg, #f5576c, #f093fb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.card-border-cyan { border: 1px solid rgba(0, 188, 212, 0.4); min-height: 300px; }
.card-border-cyan .glass-metric-value { background: linear-gradient(135deg, #00bcd4, #4facfe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.card-border-green { border: 1px solid rgba(67, 233, 123, 0.4); min-height: 300px; }
.card-border-green .glass-metric-value { background: linear-gradient(135deg, #43e97b, #38f9d7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.card-border-orange { border: 1px solid rgba(255, 152, 0, 0.4); }
.card-border-orange .glass-metric-value { background: linear-gradient(135deg, #ff9800, #fee140); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.card-border-purple { border: 1px solid rgba(102, 126, 234, 0.4); }
.card-border-purple .glass-metric-value { background: linear-gradient(135deg, #667eea, #764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.card-border-pink { border: 1px solid rgba(240, 147, 251, 0.4); }
.card-border-pink .glass-metric-value { background: linear-gradient(135deg, #f093fb, #f5576c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.card-border-blue { border: 1px solid rgba(79, 172, 254, 0.4); }
.card-border-blue .glass-metric-value { background: linear-gradient(135deg, #4facfe, #00f2fe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.card-border-violet { border: 1px solid rgba(156, 39, 176, 0.4); }
.card-border-violet .glass-metric-value { background: linear-gradient(135deg, #9c27b0, #e91e63); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.card-border-teal { border: 1px solid rgba(0, 150, 136, 0.4); }
.card-border-teal .glass-metric-value { background: linear-gradient(135deg, #009688, #3cba92); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.glass-metric-header {
    text-align: center;
    margin-bottom: 15px;
}

.glass-metric-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-metric-icon i {
    font-size: 28px;
    color: white;
}

.red-glow { background: linear-gradient(135deg, #f5576c, #f093fb); box-shadow: 0 5px 20px rgba(244, 67, 54, 0.4); }
.cyan-glow { background: linear-gradient(135deg, #4facfe, #00f2fe); box-shadow: 0 5px 20px rgba(0, 188, 212, 0.4); }
.green-glow { background: linear-gradient(135deg, #43e97b, #38f9d7); box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4); }
.orange-glow { background: linear-gradient(135deg, #fa709a, #fee140); box-shadow: 0 5px 20px rgba(255, 152, 0, 0.4); }
.purple-glow { background: linear-gradient(135deg, #667eea, #764ba2); box-shadow: 0 5px 20px rgba(156, 39, 176, 0.4); }
.pink-glow { background: linear-gradient(135deg, #f093fb, #f5576c); box-shadow: 0 5px 20px rgba(233, 30, 99, 0.4); }
.teal-glow { background: linear-gradient(135deg, #0ba360, #3cba92); box-shadow: 0 5px 20px rgba(0, 150, 136, 0.4); }

.glass-metric-body {
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid #e8ecf1;
    margin-bottom: 12px;
}

.glass-metric-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.glass-metric-value span {
    font-size: 20px;
    margin-left: 2px;
}

.glass-metric-title {
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    color: #2c3e50;
    min-height: 34px;
}

.glass-metric-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.glass-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #2c3e50;
}

.glass-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 6px currentColor;
}

.red-dot { background: #ff5252; }
.orange-dot { background: #ff9800; }
.green-dot { background: #4caf50; }
.blue-dot { background: #2196f3; }
.purple-dot { background: #9c27b0; }
.pink-dot { background: #e91e63; }
.cyan-dot { background: #00bcd4; }
.teal-dot { background: #009688; }
.grey-dot { background: #9e9e9e; }

.glass-stat-label {
    flex: 1;
    color: #7f8c8d;
}

.glass-stat-value {
    font-weight: 700;
    color: #2c3e50;
}

/* Responsive */
@media (max-width: 992px) {
    .glass-header {
        padding: 20px 15px;
    }
    
    .glass-header h2 {
        font-size: 24px;
    }
    
    .glass-kpi-number {
        font-size: 32px;
    }
    
    .glass-metric-value {
        font-size: 28px;
    }
    
    .glass-metric-icon {
        width: 45px;
        height: 45px;
    }
    
    .glass-metric-icon i {
        font-size: 22px;
    }
    
    .glass-blob {
        display: none;
    }
}
