/* ===========================
   RESULTADOS PAGE STYLES
   =========================== */

:root {
    --color-primary: #FF6B35;
    --color-secondary: #4ECDC4;
    --color-tertiary: #1A535C;
    --color-light: #F7F9FC;
    --color-dark: #1a1a1a;
    --color-text: #333;
    --color-border: #e0e0e0;
    --color-success: #48bb78;
    --color-warning: #f6ad55;
    --color-danger: #f56565;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    background-color: #fff;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, rgba(26, 83, 92, 0.95) 0%, rgba(78, 205, 196, 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.btn-cta-nav {
    background: linear-gradient(135deg, var(--color-primary) 0%, #FF8C42 100%);
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Hero Section */
.hero-resultados {
    background: linear-gradient(135deg, #1A535C 0%, #4ECDC4 50%, #FF6B35 100%);
    color: white;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-resultados::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero-features {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--color-primary);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    background: rgba(255, 107, 53, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-tertiary);
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

/* Chart Cards */
.chart-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.chart-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-tertiary);
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.chart-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
    font-style: italic;
}

/* Error Table */
.error-table {
    margin: 0;
}

.error-table thead {
    background: linear-gradient(135deg, var(--color-tertiary) 0%, var(--color-secondary) 100%);
    color: white;
}

.error-table th {
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.error-table td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--color-border);
}

.error-table tbody tr {
    transition: all 0.3s ease;
}

.error-table tbody tr:hover {
    background-color: rgba(255, 107, 53, 0.05);
    transform: scale(1.01);
}

.severity-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.severity-critical {
    background-color: rgba(245, 101, 101, 0.2);
    color: #c53030;
}

.severity-high {
    background-color: rgba(246, 173, 85, 0.2);
    color: #c05621;
}

.severity-medium {
    background-color: rgba(237, 137, 54, 0.2);
    color: #7c2d12;
}

.impact-badge {
    background: linear-gradient(135deg, var(--color-primary) 0%, #FF8C42 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Action Section */
.action-section {
    background: linear-gradient(135deg, rgba(26, 83, 92, 0.05) 0%, rgba(78, 205, 196, 0.05) 100%);
    border: 2px solid var(--color-secondary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.action-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-tertiary);
    font-family: 'Poppins', sans-serif;
}

.action-section p {
    color: #666;
    font-size: 1.05rem;
}

/* Buttons */
.btn-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, #FF8C42 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    color: white;
}

.btn-outline-primary {
    color: var(--color-tertiary);
    border: 2px solid var(--color-tertiary);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--color-tertiary);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    color: #666;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #f5f5f5;
    border-color: #999;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--color-tertiary) 0%, #2a6f7f 100%);
    color: white;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .error-table th,
    .error-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chart-card,
.stat-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .action-section {
        display: none;
    }

    .chart-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
