/* ---------------------------------------------------
   RESET GENERAL
--------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #222;
    line-height: 1.6;
}

/* ---------------------------------------------------
   HEADER - BANNER
--------------------------------------------------- */
/* ---------------------------------------------------
   BANNER / HEADER
--------------------------------------------------- */

/* ---------------------------------------------------
   BANNER CON IMAGEN DE FONDO Y TEXTO ENCIMA
--------------------------------------------------- */

.banner {
    position: relative;
    width: 100%;
    height: 250px; 
    background-image: url("imagenes/banner.png");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Oscurecemos un poco la imagen para que el texto resalte */
.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35); /* oscurece suavemente */
    z-index: 1;
}

/* Texto encima */
.banner-content {
    position: relative;
    z-index: 2; /* encima del oscurecido */
    text-align: center;
}

.banner-content h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------------------------------------------------
   MENÚ DE NAVEGACIÓN (AZUL PRINCIPAL)
--------------------------------------------------- */

nav {
    background: #004C99; /* Azul principal */
    padding: 12px;
    position: sticky;
    top: 0;
    z-index: 20;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 10px 14px;
    border-radius: 6px;
    transition: 0.3s ease;
}

nav ul li a:hover {
    background: #0077B6; /* Azul secundario */
}

body {
    background: #F5F5F5;      /* Gris claro */
    color: #333333;           /* Texto principal */
    font-family: Arial, Helvetica, sans-serif;
}

nav, .footer {
    background: #004C99 !important; /* Mismo azul para ambos */
    /* !important asegura que no sea sobrescrito por ninguna otra regla, 
       pero se recomienda usarlo solo en casos de conflicto como este. */
    color: white; /* Asegura que el texto en ambos elementos sea blanco */
}

/* ---------------------------------------------------
   SECCIONES
--------------------------------------------------- */
section {
    padding: 60px 25px;
    max-width: 1100px;
    margin: 40px auto;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

section h2 {
    margin-bottom: 15px;
    color: #1a73e8;
    font-size: 2rem;
}

section p {
    margin-bottom: 12px;
    font-size: 1.05rem;
}


/* ---------------------------------------------------
   RESPONSIVE
--------------------------------------------------- */
@media (max-width: 750px) {

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    section {
        margin: 20px;
        padding: 40px 20px;
    }
}

/* ---------------------------------------------------
   TARJETAS CON IMAGEN + DESCRIPCIÓN AL CLIC
--------------------------------------------------- */

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.card {
    background: white;
    padding: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card:hover {
    border-color: #0077B6;
    transform: translateY(-4px);
}

.card img {
    width: 90px;        
    height: 90px;      
    object-fit: contain;  
    margin: 15px auto 5px; 
    display: block;
}


.card h3 {
    text-align: center;
    padding: 12px;
    color: #004C99;
}

.card-description {
    display: none;
    padding: 15px;
    font-size: 0.97rem;
}

/* Cuando la tarjeta está activada (clic) */
.card.active {
    background: white;    /* Toda la tarjeta gris */
    border-color: #0077B6;    /* Borde azul bonito */
}

.card.active .card-description {
    display: block;
}

/* ---------------------------------------------------
   SECCIÓN FUNDAMENTOS - DOS COLUMNAS
--------------------------------------------------- */

.fundamentos-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

/* Columna izquierda */
.left-column h3 {
    color: #004C99;
    margin-bottom: 10px;
}

.funciones-lista {
    padding-left: 18px;
}

.funciones-lista li {
    margin-bottom: 10px;
    color: #333333;
    line-height: 1.5;
}

/* Columna derecha */
.right-column .recuadro-info {
    background: #FFFFFF;
    border-left: 5px solid #0077B6;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    min-height: 200px;
}

/* Responsive */
@media (max-width: 800px) {
    .fundamentos-container {
        grid-template-columns: 1fr;
    }
}
/* ---------------------------------------------------
   RECUADRO CON IMAGEN (COLUMNA DERECHA)
--------------------------------------------------- */

.recuadro-info {
    background: #FFFFFF; /* 100% blanco */
    border-left: 5px solid #0077B6;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    min-height: 250px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s ease;
}



.recuadro-info:hover {
    background: #ffffff; /* Mantiene el fondo blanco en hover */
}



.recuadro-img {
    width: 100%;
    max-width: 180px;
    margin: 0 auto 10px;
    display: block;
}

.click-text {
    color: #004C99;
    margin-top: 10px;
}

/* ---------------------------------------------------
   MODAL (CUADRO EMERGENTE)
--------------------------------------------------- */

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 25px;
    border-radius: 10px;
    max-width: 500px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.modal-content h3 {
    color: #004C99;
    margin-bottom: 15px;
}

.modal-content ul {
    margin-left: 18px;
    margin-bottom: 15px;
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

.close:hover {
    color: #0077B6;
}

/* RECUADRO SIMPLE (SIN MODAL, SOLO IMAGEN) */
.recuadro-info-simple {
    background: #FFFFFF;
    border-left: 5px solid #FFB347; /* Naranja acento */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-top: 25px;
    min-height: 220px;
    text-align: center;
}

/* Título del recuadro simple */
.titulo-recuadro {
    color: #004C99; /* Azul principal */
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: bold;
}

.recuadro-info-simple img {
    width: 100%;
    max-width: 320px; 
    margin: 0 auto;
}

/* Corrección para alinear el bloque de modelos */
.texto-modelos {
    margin-top: 25px;          /* separa del cuadro */
    padding: 15px 5px 5px 5px; /* margen interno */
}

.texto-modelos ul {
    padding-left: 20px;        /* alinea las viñetas */
    margin-top: 10px;
}

.texto-modelos h3 {
    margin-bottom: 10px;
    color: #004C99;
}
/* Contenedor general */
.cuadros-procesos {
    display: flex;
    gap: 20px;
    margin: 25px 0;
}

/* Cuadros individuales */
.cuadro {
    flex: 1;
    background: #FFFFFF;
    border-left: 5px solid #0077B6;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    cursor: pointer;
}

/* Hover: cambia todo el color */
.cuadro:hover {
    background: #E6F2FF;
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.cuadro h3 {
    color: #004C99;
    margin-bottom: 10px;
}
.lista-simple {
    padding-left: 20px;
    margin-bottom: 25px;
    line-height: 1.6;
}
/* Títulos estilo institucional azul */
.titulo-seccion-proceso {
    color: #004C99;
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: bold;
}

/* Tarjeta suave alrededor de cada sección de texto */
.contenedor-proceso {
    background: #FFFFFF;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.10);
    margin-top: 25px;
    margin-bottom: 20px;
    transition: 0.3s ease;
}

/* Efecto hover suave para que se vea moderno */
.contenedor-proceso:hover {
    background: #F5F5F5;
    transform: translateY(-3px);
}

/* Lista alineada y agradable */
.lista-simple li strong {
    color: #004C99;
}
/* =======================
   CONTENEDOR GENERAL
======================= */
.hilos-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

/* =======================
   IZQUIERDA
======================= */

.left-hilos h3 {
    color: #004C99;
    margin-bottom: 10px;
}

.cuadro-diferencia {
    background: #E6F2FF;
    border-left: 5px solid #0077B6;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.cuadro-diferencia h4 {
    margin-bottom: 10px;
    color: #004C99;
}

/* =======================
   DERECHA
======================= */

.cuadro-problema, 
.cuadro-sinc {
    background: #FFFFFF;
    border-left: 5px solid #FFB347;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
    margin-bottom: 20px;
}

.cuadro-problema:hover {
    background: #FFF2DB;
    cursor: pointer;
    transform: translateY(-4px);
}

.cuadro-sinc:hover {
    background: #F5F5F5;
}

.click-info {
    color: #004C99;
    margin-top: 10px;
    font-weight: bold;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hilos-container {
        grid-template-columns: 1fr;
    }
}
/* GRID GENERAL */
.memoria-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

/* COLUMNAS */
.memoria-left h3, 
.memoria-right h4 {
    color: #004C99;
    margin-bottom: 10px;
}

/* TARJETAS DE OBJETIVOS */
.objetivos-grid {
    display: flex;
    gap: 15px;
}

.objetivo-card {
    flex: 1;
    background: #FFFFFF;
    border-left: 5px solid #0077B6;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.objetivo-card:hover {
    background: #E6F2FF;
}

/* CUADROS GRANDES */
.cuadro-memoria, .cuadro-simple, .warning-card {
    background: #FFFFFF;
    border-left: 5px solid #004C99;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* WARNING */
.warning-card {
    border-left: 5px solid #FFB347;
}

/* DERECHA: CUADROS SECUNDARIOS */
.cuadro-secundario, .cuadro-resumen {
    background: #FFFFFF;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 5px solid #0077B6;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.cuadro-resumen {
    border-left: 5px solid #FFB347;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .memoria-grid {
        grid-template-columns: 1fr;
    }
    .objetivos-grid {
        flex-direction: column;
    }
}
/* Corrección de alineación en listas de la columna derecha */
.memoria-right ul {
    list-style-type: disc;
    padding-left: 20px;   /* Alinea bien los puntos */
    margin-top: 8px;
}

.memoria-right ul li {
    margin-bottom: 6px;
}

/* Para evitar bullets duplicados o raros en resúmenes */
.cuadro-resumen ul,
.cuadro-secundario ul {
    list-style: disc;
    padding-left: 20px;
}
/* Alinear bullets dentro del cuadro de rendimiento */
.warning-card ul {
    list-style-type: disc;
    padding-left: 20px; 
}

.warning-card ul li {
    margin-bottom: 6px;
}
/* Subtítulos de los cuadros de la columna izquierda */
.cuadro-memoria h3,
.cuadro-simple h4,
.warning-card h4 {
    color: #004C99;
}
/* CUADRO CLICKEABLE */
.clic-modal:hover {
    background: #E6F2FF;
    cursor: pointer;
    transform: translateY(-4px);
}

/* MODAL GENERAL */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background: white;
    margin: 8% auto;
    padding: 25px;
    border-radius: 10px;
    max-width: 550px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.modal-content h3 {
    color: #004C99;
    margin-bottom: 15px;
}

.modal-content h4 {
    margin-top: 15px;
    color: #0077B6;
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

.close:hover {
    color: #0077B6;
}
/* ============================
   FOOTER FINAL DEFINITIVO
============================ */

.footer {
    background: #004C99 !important  ; /* COLOR DE FONDO */
    color: #FFFFFF;      /* TEXTO BLANCO */
    padding: 40px 0 20px;
    margin-top: 60px;
}

/* GRID DE 3 COLUMNAS */
.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

/* TITULOS CENTRADOS */
.footer-col h4 {
    text-align: center;
    color: #FFB347;
    margin-bottom: 15px;
    font-size: 1.35rem;   /* AUMENTADO */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* TEXTO ALINEADO A LA IZQUIERDA */
.footer-col p,
.footer-col li {
    text-align: left;
    font-size: 1.05rem;   /* AUMENTADO */
    color: #FFFFFF;
    line-height: 1.6;     /* mejor lectura */
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* LISTAS */
.footer-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 10px;
}

.footer-list li {
    margin-bottom: 6px;
}

/* ENLACES EN REFERENCIAS */
.footer-list a {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-list a:hover {
    color: #FFB347;
}

/* PARTE INFERIOR */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 1rem;       /* AUMENTADO */
    color: #FFFFFF;
}


.footer-subtitle {
    font-style: italic;
    opacity: 0.9;
    font-size: 0.95rem;    /* AUMENTADO */
}


/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: left !important;
        padding-left: 20px;
    }
}
