/* Importar fuente moderna y limpia */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* Variables de Color (Basadas en la imagen original y un toque moderno) */
:root {
    --color-primary: #fa52e4; /* Morado/Guinda fuerte del INE */
    --color-secondary: #9c9999; /* Rosa/Fucsia del ISO */
    --color-background: #f4f7f6; /* Fondo muy claro, casi blanco */
    --color-text: #333;
    --color-link: #1A73E8; /* Azul para enlaces, más visible */
    --color-hr: #bbb7b7;
}

/* Estilos Globales */
body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
}

/* Encabezado */
.header {
    background-color: #fff;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px solid var(--color-primary);
}

.logo-container, .iso-container {
    display: flex;
    align-items:center;
    padding: 5px;
    padding-left: 30px;
}

.logo, .iso-logo {
    height: 55px; /* Ajusta el tamaño según tus imágenes */
}

.header-info {
    text-align: right;
    font-size: 1em;
    font-style: bold;
    color: #666;
    flex-grow: 1;
    margin-left: 20px;
}

.subtitle {
    margin: 0;
    font-weight: 400;
}

/* Títulos */
h1 {
    font-size: 2em;
    color: var(--color-primary);
    text-align: center;
    margin-top: .8px;
    margin-bottom: 20px;
    font-weight: 700;
}

h2 {
    font-size: 1.3em;
    color: var(--color-text);
    border-left: 5px solid var(--color-primary);
    padding-left: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 700;
}

h3 {
    color: var(--color-primary);
    font-size: 1em;
    margin-top: 0;
    border-bottom: 2px solid var(--color-hr);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: 700;
}

hr {
    border: 0;
    border-top: 1px solid var(--color-hr);
    margin: 20px 0;
}

/* Diseño de Tarjetas (Cards) para Indicadores y Objetivos */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.card {
    background: #f5d4f1;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.05); /* Sombra sutil */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-link {
    display: block;
    color: var(--color-link);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    margin-top: 1px;
}

.card-link:hover {
    text-decoration: underline;
    color: var(--color-secondary);
}

/* Diseño de Módulos para Auditorías */
.audits-container {
    display: flex;
    gap: 25px;
    flex-wrap: wrap; /* Para que sea responsivo */
}

.audit-card {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border-radius: 8px;
    padding: .2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.audit-card ul {
    list-style: none;
    padding: 0;
}

.audit-card li {
    margin-bottom: 1px;
}

.audit-card a {
    color: var(--color-link);
    text-decoration: none;
}

.audit-card a:hover {
    text-decoration: underline;
}

.status-text {
    font-size: 1.1em;
    font-weight: 700;
    padding: 5px 0;
}

/*.en-proceso {
    color: orange; /* Color distintivo para estado */
/*}*/

.external-link {
    display: inline-block;
    margin-top: 10px;
    padding: 25px 0;
    /*border-top: 1px dashed var(--color-hr);*/
    width: 100%;
    color: var(--color-link);
    text-decoration: none;
}
/* Sección de Riesgos */
.risk-summary {
    background-color: var(--color-primary);
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 10px;
}

.risk-summary p {
    font-size: 1.1em;
    margin-bottom: 20px;
}


.risks-section {
    padding: 20px 10px;
    text-align: center;
}

.risks-section h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
    color: #333333;
}



/* Contenedor de los botones */
.risk-summary {
    display: flex;
    flex-direction: column;      /* Siempre en columna en móvil */
    gap: 10px;                   /* Espacio bonito entre botones */
    align-items: center;
    max-width: 1350px;
    margin: 0 auto;
}

/* Estilos base de cada botón */
.button-action {
    display: inline-block;
    width: 90%;                 /* Ocupa todo el ancho disponible en móvil */
    max-width: 250px;            /* Limita el ancho en pantallas grandes */
    padding: 14px 20px;
    background-color: #0d6efd;   /* Color azul bootstrap, cámbialo si usas otro */
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 350;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.button-action:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}



.riesgos{
    align-items: center;
    text-decoration: none;
}

.button-action {
    margin-right: 20px; /* Ajusta este valor (20px) al espacio que necesites */
    background-color: #fff;
    color: var(--color-primary);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #fff;
    
}

.button-action:hover {
    background-color: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}

/* Pie de Página con Icono Central */
.footer {
    text-align: center;
    padding: 20px;
}

.footer-icon svg {
    fill: var(--color-primary);
    height: 35px;
    width: 35px;
}


.btn {
    background: transparent;
    text-align: center;
    justify-items: center;
    justify-content: center;
    align-content: center;
}


.btn:hover{

    transform: scale(1.3);
}

.salir img {
  width: 60px;
  cursor: pointer;
  
}

.cerrar{
background: transparent;
border: none;
}

/* Media Query para Responsividad (ejemplo básico) */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .header-info {
        text-align: center;
        margin-left: 0;
    }
    .cards-grid {
        grid-template-columns: 1fr;
          
    }
    .audit-card {
        min-width: 100%;
          
    }
   
}

@media (min-width: 769px) {
    .risk-summary {
        flex-direction: row;        /* En escritorio los pones en fila */
        flex-wrap: wrap;            /* Si la pantalla es mediana, permite salto */
        justify-content: center;
        padding: 20px;

    .button-action {
        width: auto;                /* En escritorio ya no ocupan 100% */
        min-width: 280px;           /* Ancho mínimo para que no queden muy angostos */
        padding: 16px 24px;
    }
}

/* Opcional: ajuste extra para pantallas muy pequeñas */
@media (max-width: 480px) {
    
    .risks-section h2 {
        font-size: 1.5rem;
    }
    .button-action {
        font-size: 0.95rem;
        padding: 14px 16px;
    }
}}
