:root {
    --color-primary: #0D1B2A;
    --color-secondary: #9FB8AD;
    --color-light: #F5F5F5;
    --font-main: 'Inter', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-light);
    color: var(--color-primary);
}

h1,
h2 {
    color: var(--color-primary);
}

.button {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 10px 20px;
    border: none;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
}

/* Encabezado fijo */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 1);
    /* fondo sólido al inicio */
    transition: background-color 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.main-header.scrolled {
    background-color: rgba(0, 0, 0, 0.7);
    /* fondo semi-transparente al hacer scroll */
}


.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Branding: logo + nombre */
.branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-name {
    color: white;
    font-size: 1.2em;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* Menú */
.main-nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #9FB8AD;
}

/* Espacio para el header fijo */
body {
    padding-top: 80px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #0D1B2A;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card .icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.report-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.report-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.report-card:hover {
    transform: translateY(-5px);
}

.report-image {
    width: 240px;
    height: 240px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.report-card a:hover .report-image {
    transform: scale(1.05);
}

.report-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.report-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.report-card:hover {
    transform: translateY(-5px);
}

.report-card p {
    font-size: 0.95em;
    color: #333;
    line-height: 1.4;
}

.hero-report {
    background: linear-gradient(135deg, #0D1B2A 40%, #1C2E4A 60%);
    padding: 100px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-report::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/img/Carátulas Tableros/Centro de Control de Reportes.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    color: white;
    font-size: 4.5em;
    /* Aumentado para que se vea como en la imagen */
    margin-bottom: 30px;
    /* Más espacio debajo */
    font-weight: 800;
    /* Más grueso para mayor impacto */
    letter-spacing: -1px;
    /* Ajuste fino para que no se vea demasiado expandido */
}
/* -------------------- Sección de Llamada a la Acción (CTA) -------------------- */
.cta-section {
    text-align: center; /* Centra todo el contenido (h2 y botón) */
    padding: 3rem 1rem; /* Padding corporativo y amplio */
    margin: 3rem auto;
    background: var(--color-background-light); /* Un fondo sutil para destacarla */
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 1.5rem; /* Espacio antes del botón */
}
/* ----- Botones ----- */
.btn {
    display: inline-block;
    background: #9FB8AD; /* Tu color original */
    color: #0D1B2A; /* Tu color original */
    padding: 0.8rem 1.6rem;
    border-radius: 6px; /* Tu borde original */
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease; /* Añadí una transición para suavizar el hover */
}

.btn:hover {
    background: #7EA696; /* Tu hover original */
}
/* -------------------- Sección de Llamada a la Acción Centrada -------------------- */
.cta-section-centered {
    text-align: center; /* Esto centrará el h2 y el botón */
    padding: 3rem 1rem; /* Buen espacio interior para un look limpio */
    margin: 3rem auto; /* Espacio exterior arriba y abajo, y centrado horizontal */
    background: #f8f8f8; /* Un fondo sutil para destacarla si lo deseas */
}

.cta-section-centered h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0D1B2A; /* Color de texto que tenías inicialmente */
    margin-bottom: 1.5rem;
}

/* -------------------- Misión y Visión (2 Columnas) -------------------- */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eaeaea8a;
}

.mission-vision-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary); /* Título en Verde Oscuro */
    margin-top: 0;
    margin-bottom: 1rem;
}

.mission-vision-card p {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Adaptación para pantallas pequeñas */
@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr; /* Una sola columna en móviles */
    }
}

/* -------------------- Cifras y Métricas de Credibilidad -------------------- */
.credibility-metrics {
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
    background-color: var(--color-light); /* Fondo gris claro para destacarlo */
    border-radius: 4px;
}

.credibility-metrics h3 {
    color: var(--color-text-main);
    margin-bottom: 2.5rem;
    font-size: 2rem;
    border-bottom: none;
}

.metric-grid {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
}

.metric-item {
    flex-basis: 30%;
}

.metric-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary); /* Cifra destacada en Verde Oscuro */
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-main);
    text-transform: uppercase;
}

