* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Menu - matching consulta.css */
.nav-menu {
    background: linear-gradient(90deg, #003473 0%, #425500 100%);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5em;
    color: white;
}

.nav-links {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 5px 15px;
    margin: 0 5px;
    border-radius: 20px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
}

.container {
    max-width: 1400px;
    margin: 30px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    flex: 1;
}

.header {
    background: linear-gradient(135deg, #003473 0%, #425500 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.intro-section {
    padding: 30px 40px;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.intro-section p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.criteria-container {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.criteria-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.criteria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.criteria-card.expanded {
    grid-column: 1 / -1;
}

.card-header {
    background: linear-gradient(135deg, #003473 0%, #425500 100%);
    color: white;
    padding: 20px;
    position: relative;
}

.card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.card-title {
    font-size: 1.3em;
    font-weight: 600;
    padding-right: 60px;
}

.card-content {
    padding: 20px;
}

.card-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.expand-button {
    background: #84bd00;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.expand-button:hover {
    background: #6fa000;
    transform: translateY(-2px);
}

.card-details {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.criteria-card.expanded .card-details {
    display: block;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h4 {
    color: #003473;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.detail-section p,
.detail-section ul {
    color: #555;
    line-height: 1.6;
}

.detail-section ul {
    margin-left: 20px;
}

.detail-section li {
    margin-bottom: 8px;
}

.risk-signals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.signal-box {
    padding: 20px;
    border-radius: 10px;
    border: 2px solid;
}

.high-risk {
    background: #fee;
    border-color: #dc3545;
}

.high-risk h5 {
    color: #dc3545;
    margin-bottom: 10px;
}

.low-risk {
    background: #e6ffe6;
    border-color: #28a745;
}

.low-risk h5 {
    color: #28a745;
    margin-bottom: 10px;
}

.table-view-section {
    padding: 40px;
    background: #f8f9fa;
}

.table-view-section h2 {
    color: #003473;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
}

.table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.criteria-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.criteria-table thead {
    background: #003473;
    color: white;
}

.criteria-table th,
.criteria-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.criteria-table th {
    font-weight: 600;
    white-space: nowrap;
}

.criteria-table tbody tr:hover {
    background: #f8f9fa;
}

.criteria-table td {
    vertical-align: top;
    line-height: 1.6;
}

.criteria-table td:first-child {
    font-weight: 600;
    color: #003473;
}

/* External link section */
.external-link-section {
    text-align: center;
    margin-top: 30px;
}

.external-link {
    display: inline-block;
    background: linear-gradient(135deg, #003473 0%, #425500 100%);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 52, 115, 0.3);
}

.external-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 52, 115, 0.4);
}

/* Footer - matching consulta.css */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-menu a {
    color: #84bd00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #a4dd00;
}

.footer-credits {
    color: #999;
}

.footer-credits a {
    color: #84bd00;
    text-decoration: none;
}

.footer-credits a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(90deg, #003473 0%, #425500 100%);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .container {
        margin: 20px 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .criteria-container {
        padding: 20px;
        grid-template-columns: 1fr;
    }
    
    .risk-signals {
        grid-template-columns: 1fr;
    }
    
    .table-view-section {
        padding: 20px;
    }
    
    .criteria-table {
        font-size: 0.85em;
    }
    
    .criteria-table th,
    .criteria-table td {
        padding: 10px;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .external-link {
        font-size: 0.95em;
        padding: 12px 20px;
    }
}
