/* 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: #c56495; /* 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: 30px;
    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: 1.2em;
    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: 40px 0;
}

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

.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: 3px;
}

.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: 3.5px 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: 8px;
    text-align: center;
    margin-bottom: 15px;
}

.risk-summary p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.button-action {
    background-color: #fff;
    color: var(--color-primary);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 15px;
    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%;
          
    }
}