/* Base styles */
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f8fa;
    color: #333;
    line-height: 1.5;
}

/* Header styling */
.hero {
    position: relative;
    text-align: center;
    color: #16325c;
}

.hero img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hero-text h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.hero-text p {
    margin: 0.5rem 0 0;
    font-size: 1rem;
}

/* Metrics section */
.metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #ffffff;
    padding: 2rem 1rem;
    gap: 1rem;
}

.metric-card {
    background: #fafafa;
    flex: 1 1 200px;
    max-width: 260px;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.metric-card h2 {
    margin-top: 0;
    font-size: 1rem;
    color: #555;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a5276;
    margin: 0.5rem 0 0;
}

/* Cards layout for reports */
.informes, .especiales, .otros {
    padding: 2rem 1rem;
}

.informes h2, .especiales h2, .otros h2 {
    text-align: center;
    margin-top: 0;
    color: #16325c;
}

.cards, .special-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.card, .special-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    flex: 1 1 250px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    box-sizing: border-box;
}

.card h3, .special-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #1a5276;
}

.card p, .special-card p {
    flex-grow: 1;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #0078d4;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.btn:hover {
    background-color: #005ba3;
}

.btn.disabled {
    background-color: #6c757d;
    cursor: default;
    pointer-events: none;
}

/* CTA buttons */
.cta {
    text-align: center;
    background-color: #ffffff;
    padding: 1.5rem 1rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.cta-btn {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #008951;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #006c3f;
}

/* Special cards images */
.special-card img {
    width: 100%;
    border-radius: 8px 8px 0 0;
    object-fit: cover;
    height: 180px;
}

.special-content {
    display: flex;
    flex-direction: column;
    padding-top: 0.5rem;
}

/* Footer styling */
footer {
    background-color: #16325c;
    color: #ffffff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .metric-card {
        flex: 1 1 45%;
    }
    .card, .special-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .special-card img {
        height: 160px;
    }
}