/* ================================
   VARIABLES GENERALES
   ================================ */

:root {

    /* Colores */
    --color-fondo: #bdbdbd;
    --color-principal: #08089c;
    --color-secundario: #a8ff00;
    --color-texto: #08089c;
    --color-borde: #08089c;
    --color-cuadro: #ffffff;

    /* Tipografías */
    --fuente-principal: Arial, sans-serif;
    --fuente-titulos: "Arial Black", Arial, sans-serif;
    --fuente-pixel: "Courier New", monospace;

    /* Espaciado */
    --espaciado-base: 1rem;

    /* Sombra */
    --sombra-caja: 4px 4px 0 #08089c;
}


/* ================================
   CONFIGURACIÓN GENERAL
   ================================ */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background-color: var(--color-fondo);

    color: var(--color-texto);

    font-family: var(--fuente-principal);

    line-height: 1.6;
}


/* ================================
   ENCABEZADO
   ================================ */

.encabezado {

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 3rem;

    background-color: #bdbdbd;

    border-bottom: 4px solid var(--color-principal);
}


/* Logo de DGPC */

.logo {

    display: flex;

    align-items: center;

    height: 100%;
}


.logo img {

    width: 95px;

    height: auto;

    display: block;

    border: 2px solid var(--color-principal);
}


/* ================================
   NAVEGACIÓN
   ================================ */

.navegacion {

    display: flex;

    align-items: center;

    gap: 4rem;
}


.navegacion a {

    color: #000;

    text-decoration: none;

    font-family: var(--fuente-pixel);

    font-size: 1rem;

    font-weight: bold;

    letter-spacing: 1px;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;

    padding: 0.2rem 0.4rem;
}


.navegacion a.activo {

    color: var(--color-principal);

    background-color: var(--color-secundario);
}


.navegacion a:hover {

    color: var(--color-secundario);

    background-color: var(--color-principal);
}


/* ================================
   PRESENTACIÓN PRINCIPAL
   ================================ */

.presentacion {

    min-height: 500px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 4rem 1.5rem 5rem;
}


/* Rótulo principal */

.rotulo {

    display: block;

    width: min(520px, 80%);

    height: auto;

    margin-bottom: 2rem;
}


/* Texto debajo del rótulo */

.descripcion {

    max-width: 650px;

    margin: 0;

    color: #69708b;

    font-family: var(--fuente-titulos);

    font-size: 1.25rem;

    font-weight: 600;

    line-height: 1.8;
}


/* ================================
   POSTER DEL PROYECTO
   ================================ */

.proyecto {

    width: 100%;

    max-width: none;

    margin: 0;

    padding: 5rem 5% 6rem;

    text-align: center;

    background-color: var(--color-principal);
}


/* ================================
   VENTANA DEL SIMULADOR
   ================================ */

.ventana {

    width: min(1100px, 100%);

    margin: 0 auto;

    background-color: var(--color-fondo);

    border: 3px solid var(--color-principal);

    box-shadow: 8px 8px 0 #000;

    text-align: left;
}


/* Barra superior */

.barra-ventana {

    height: 46px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 0.7rem;

    background-color: var(--color-secundario);

    color: #000;

    border-bottom: 3px solid var(--color-principal);

    font-family: var(--fuente-pixel);

    font-size: 1rem;

    font-weight: bold;
}


/* Botones */

.botones-ventana {

    display: flex;

    gap: 4px;
}


.botones-ventana span {

    width: 27px;

    height: 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    background-color: var(--color-fondo);

    border: 2px solid var(--color-principal);

    color: #000;

    font-family: Arial, sans-serif;

    font-size: 16px;

    line-height: 1;
}


/* Contenido de la ventana */

.contenido-ventana {

    padding: 1.5rem;

    background-color: var(--color-principal);

    overflow: hidden;
}


/* Poster */

.poster {

    display: block;

    width: 100%;

    max-width: 1000px;

    height: auto;

    margin: 0 auto;

    border: 3px solid var(--color-principal);
}


/* ================================
   LOGLINE
   ================================ */

.logline {

    max-width: 850px;

    margin: 3rem auto 0;

    padding: 1rem 1.5rem;

    color: var(--color-principal);

    background-color: var(--color-secundario);

    border: 3px solid var(--color-principal);

    box-shadow: 6px 6px 0 #000;

    font-family: var(--fuente-pixel);

    font-size: 1.2rem;

    font-weight: bold;

    line-height: 1.5;

    text-align: center;
}


/* ================================
   EQUIPO
   ================================ */

.equipo {

    max-width: 1200px;

    margin: 0 auto;

    padding: 5rem 5%;

    border-top: 0;

    background-color: var(--color-secundario);
}


.equipo > h1 {

    display: inline-block;

    margin: 0 0 3rem;

    padding: 0.4rem 1rem;

    color: var(--color-secundario);

    background-color: var(--color-principal);

    font-family: var(--fuente-pixel);

    font-size: 2rem;

    text-align: center;
}


/* Contenedor de integrantes */

.integrantes {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 2rem;
}


/* Cuadro individual */

.integrante {

    min-height: 250px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 2rem;

    background-color: var(--color-fondo);

    border: 4px solid var(--color-principal);

    border-radius: 0;

    box-shadow: 8px 8px 0 var(--color-principal);

    text-decoration: none;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


/* Fotos de los integrantes */

.integrante img {

    width: 110px;

    height: 110px;

    object-fit: cover;

    border-radius: 0;

    margin-bottom: 1.5rem;

    border: 4px solid var(--color-principal);
}


/* Efecto al pasar el mouse */

.integrante:hover {

    transform: translate(4px, 4px);

    box-shadow: 4px 4px 0 var(--color-principal);
}


/* Nombre */

.integrante h2 {

    margin: 0 0 0.4rem;

    color: var(--color-principal);

    font-family: var(--fuente-pixel);

    font-size: 1.35rem;
}


/* Texto */

.integrante p {

    margin: 0;

    color: #000;

    font-family: var(--fuente-pixel);

    font-size: 0.9rem;

    text-align: center;
}


/* ================================
   INSTITUCIONES
   ================================ */

.instituciones {

    max-width: none;

    margin: 0;

    padding: 5rem 5%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 2rem;

    background-color: var(--color-fondo);
}


/* Cada recuadro institucional */

.institucion {

    min-height: 350px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 2rem;

    /* CUADRO BLANCO */

    background-color: #ffffff;

    /* BORDE AZUL */

    border: 4px solid var(--color-principal);

    border-radius: 0;

    text-align: center;

    text-decoration: none;

    /* SOMBRA AZUL */

    box-shadow: 8px 8px 0 var(--color-principal);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


/* Logos de las instituciones */

.institucion img {

    width: 90px;

    height: 90px;

    object-fit: contain;

    margin-bottom: 1.5rem;

    /* SIN RECUADRO VERDE */

    border: none;
}


/* Efecto al pasar el mouse */

.institucion:hover {

    transform: translate(4px, 4px);

    box-shadow: 4px 4px 0 var(--color-principal);
}


/* Nombre de la institución */

.institucion h2 {

    margin: 0 0 0.6rem;

    /* TIPOGRAFÍA AZUL */

    color: var(--color-principal);

    font-family: var(--fuente-pixel);

    font-size: 1.8rem;
}


/* Descripción */

.institucion h3 {

    max-width: 300px;

    margin: 0 0 0.7rem;

    /* TIPOGRAFÍA AZUL */

    color: var(--color-principal);

    font-family: var(--fuente-pixel);

    font-size: 0.9rem;

    line-height: 1.35;
}


.institucion p {

    margin: 0;

    /* TIPOGRAFÍA AZUL */

    color: var(--color-principal);

    font-family: var(--fuente-pixel);

    font-size: 0.75rem;

    line-height: 1.5;
}


/* ================================
   ADAPTACIÓN PARA CELULAR
   ================================ */

@media (max-width: 700px) {

    .encabezado {

        height: auto;

        flex-direction: column;

        gap: 1rem;

        padding: 1rem;
    }


    .logo img {

        width: 100px;
    }


    .navegacion {

        gap: 0.7rem;

        flex-wrap: wrap;

        justify-content: center;
    }


    .navegacion a {

        font-size: 0.8rem;
    }


    .presentacion {

        min-height: 400px;

        padding-top: 3rem;
    }


    .rotulo {

        width: min(420px, 90%);
    }


    .descripcion {

        font-size: 1rem;
    }


    /* Poster */

    .proyecto {

        padding: 3rem 1rem 4rem;
    }


    .ventana {

        width: 100%;

        box-shadow: 5px 5px 0 #000;
    }


    .barra-ventana {

        font-size: 0.75rem;
    }


    .botones-ventana span {

        width: 22px;

        height: 21px;

        font-size: 13px;
    }


    .contenido-ventana {

        padding: 0.7rem;
    }


    .poster {

        width: 100%;

        max-width: 100%;
    }


    .logline {

        font-size: 0.85rem;

        padding: 0.8rem;
    }


    /* Integrantes */

    .integrantes {

        grid-template-columns: 1fr;
    }


    /* Instituciones */

    .instituciones {

        grid-template-columns: 1fr;

        padding: 3rem 1rem;
    }


    .institucion {

        min-height: 280px;

        background-color: #ffffff;
    }


    .institucion img {

        border: none;
    }


    .institucion h2,
    .institucion h3,
    .institucion p {

        color: var(--color-principal);
    }

}


/* ================================
   MAPA
   ================================ */

.mapa {

    display: block;

    width: 70%;

    max-width: 700px;

    height: auto;

    margin: 30px auto;
}


/* ================================
   PLAN
   ================================ */

.plan-contenido {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 2rem;

    padding: 2rem;

    align-items: start;
}

.plan-contenido .imagen-plan {
    display: block;

    width: 100%;
    max-width: 100%;

    height: auto;

    margin: 0;

    border: 3px solid var(--color-principal);
}


/* Arquetipo */

.plan-contenido .imagen-plan:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}


/* MVP */

.plan-contenido .imagen-plan:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}


/* Mapa de empatía */

.plan-contenido .imagen-plan:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 2;
}


/* ================================
   PLAN EN CELULAR
   ================================ */

@media (max-width: 700px) {

    .plan-contenido {
        display: flex;

        flex-direction: column;

        gap: 1.5rem;

        padding: 1rem;
    }

    .plan-contenido .imagen-plan {
        width: 100%;
        max-width: 100%;

        height: auto;

        margin: 0;
    }

}
