/* =========================================================
   Archivo: estilos.css
   1-Paleta de diseño
   =========================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Orbitron:wght@400;500;600;700&display=swap');

:root {
    --azul-oscuro: #315f9e;
    --azul: #4e9bd6;
    --azul-claro: #9ed9f5;
    --celeste: #dff6ff;
    --blanco: #ffffff;
    --gris: #6f8291;
    --texto: #536976;
    --borde: #b5cbd7;
    --sombra: rgba(47, 94, 125, 0.25);
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    min-height: 100vh;
    color: var(--texto);
    font-family: 'Nunito', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;

    /* Fondo */
    background:
        radial-gradient(circle at 15% 25%, rgba(220, 255, 174, 0.8) 0 2%, transparent 18%),
        radial-gradient(circle at 85% 8%, rgba(193, 204, 252, 0.8) 0 2%, rgba(220, 255, 174, 0.8), transparent 19%),
        linear-gradient(180deg, #bce8fa 0%, #8ea1da 35%, #ffffff 100%);
    background-attachment: fixed;
}

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

header {
    position: relative;
    z-index: 2;
    width: min(68.75em, calc(100% - 1.75rem));
    margin: 1em auto 0;
    padding: 1em 2em 1.4em 0;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap:2em; 
    
     
    .logo{
    width: 2.8rem;
    height: auto;
    display: block;
    transform: translate(2em, 5%); 
    }

    border: 1px solid #a8c7d8;
    border-bottom: 0;
    border-radius: 1.5rem 1.5rem 0 0;
    
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.96),
        rgba(222,244,253,.93)
    );
    
     box-shadow:
        0 5px 0 rgba(255,255,255,.8) inset,
        0 10px 24px rgba(49,95,128,.14);
}
header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 7px;
    background: linear-gradient(
        90deg,
        #7dc8ed,
        #ffffff 30%,
        #7dc8ed 55%,
        #ffffff 80%,
        #7dc8ed
    );
    border-top: 1px solid #a4cce1;
}
.menu {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: clamp(0.4rem, 1.2vw, 0.9rem);
}
.botones {
    position: relative;
    width: clamp(4.06rem, 10vw, 5.75rem);
    aspect-ratio: 2.6 / 1;
    flex-shrink: 1;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.62rem, 1.5vw, 0.81rem);
    font-weight: 600;

    border: 1px solid #8bbbd5;
    border-radius: 1.25rem;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #dff5ff 18%,
            #72bce4 50%,
            #4c9fd2 52%,
            #bfe8f8 100%
        );

    text-shadow: 0 1px 2px #47718a;

    box-shadow:
        0 2px 0 #ffffff inset,
        0 -2px 0 rgba(7, 67, 107, 0.25) inset,
        0 3px 5px rgba(46,94,123,.25);
}
.botones:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}
.botones:active {
    transform: translateY(1px);
}
/* ---------------------------------------------------------
   CONTENIDO
   --------------------------------------------------------- */
main {
    position: relative;
    z-index: 1;
    width: min(1100px, calc(100% - 28px));
    max-width: 100%;
    margin: 0 auto 24px;
    padding: 25px;

    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, .85fr);
    gap: 20px;

    border: 1px solid #a9c7d7;
    border-radius: 0 0 25px 25px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.97),
            rgba(238,249,253,.96)
        );

    box-shadow:
        0 8px 0 rgba(255,255,255,.8) inset,
        0 14px 30px rgba(44,90,120,.18);
}
section {
    min-width: 0;
    max-width: 100%;
}
.presentacion {
    position: relative;
    padding: 21px;

    border: 1px solid var(--borde);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98),
            rgba(225,246,253,.93)
        );

    box-shadow:
        0 3px 0 #ffffff inset,
        0 5px 12px rgba(65,107,132,.13);

    grid-column: 1 / -1;
    min-height: 230px;
    min-width: 0;

    padding-left: 250px;
}

.perfil {
    position: absolute;
    left: 22px;
    top: 22px;

    width: 190px;
    height: 190px;
    object-fit: cover;

    padding: 8px;
    border: 1px solid #a8c5d4;
    border-radius: 18px;

    background: linear-gradient(145deg, #ffffff, #d8f0fa);

    box-shadow:
        0 0 0 5px rgba(255,255,255,.8),
        0 5px 13px rgba(43,90,119,.2);
}

.presentacion::before,
.onu::before {
    content: "";
    display: block;
    width: 100%;
    height: 9px;
    margin-bottom: 13px;

    border-radius: 8px;
    background:
        linear-gradient(
              180deg,
            #ffffff 0%,
            #dff5ff 18%,
            #72bce4 50%,
            #4c9fd2 52%,
            #bfe8f8 100%
        );
    border: 1px solid #b1d5e5;
    box-shadow: 0 1px 2px rgba(63,115,145,.2);
}
/* ---------------------------------------------------------
   TIPOGRAFÍA
   --------------------------------------------------------- */

.titulo, h2, h3, h4 {
    margin-top: 0;
    color: #66b5db;
    font-family: 'Orbitron', 'Nunito', sans-serif;
    font-weight: 600;
    line-height: 1.25;
    text-shadow: 1px 1px 0 #ffffff;
}
.titulo {
    margin-bottom: 8px;
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: .5px;
}
h2 {
    font-size: 22px;
    color: #568fac;
}
h3 {
    font-size: 18px;
    color: #4f91b3;
}
h4 {
    font-size: 15px;
    color: #60869a;
}
p {
    margin: 8px 0 12px;
}
a {
    color: #378bb9;
    font-weight: 700;
}
a:hover {
    color: #226e98;
}
/* ---------------------------------------------------------
   MATERIAS APROBADAS
   --------------------------------------------------------- */

.materias {
   position: relative;
    padding: 21px;

    border: 1px solid var(--borde);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98),
            rgba(225,246,253,.93)
        );

    box-shadow:
        0 3px 0 #ffffff inset,
        0 5px 12px rgba(65,107,132,.13);

    display: grid;
    gap: 18px;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 18px) / 2);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-left: 21px;
    scroll-padding-left: 21px;
}
.año {
    scroll-snap-align: start;
    box-sizing: border-box;
    margin: 0;
    padding: 15px;

    border: 1px solid #bdd3de;
    border-radius: 13px;
    
    background: linear-gradient(180deg, #ffffff, #edf9fd);

    box-shadow:
        0 2px 0 #ffffff inset,
        0 3px 7px rgba(52,101,128,.1);
}
.lista {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}
li {
    position: relative;
    padding: 4px 5px 4px 22px;
    border-bottom: 1px dotted #b5ccd8;
}
.final {
    border-bottom: 0;
}
li::before {
    content: "○";
    position: absolute;
    left: 4px;
    color: #56afd7;
    font-weight: 800;
}
/* ---------------------------------------------------------
   MI COMPAÑERA
   --------------------------------------------------------- */

.compañera {
    grid-column: 2;
}
.nicole {
    text-decoration: none;
    text-align: center;
}
.otrop{
    display: block;
    width: min(100%, 220px);
    height: 220px;
    margin: 10px auto 0;
    object-fit: cover;
    
    padding: 7px;
    border: 1px solid #aac7d5;
    border-radius: 18px;

    background: #ffffff;
    box-shadow:
        0 0 0 4px #e7f6fc,
        0 5px 10px rgba(49,95,125,.2);
}
/* ---------------------------------------------------------
   ONU
   --------------------------------------------------------- */
.onu {
    grid-column: 1 / -1;
    position: relative;
    padding: 21px;

    border: 1px solid var(--borde);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98),
            rgba(225,246,253,.93)
        );

    box-shadow:
        0 3px 0 #ffffff inset,
        0 5px 12px rgba(65,107,132,.13);

}
.onutitulo {
    margin-bottom: 8px;
}
.onusub {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 13px;

    border: 1px solid #a9cfe2;
    border-radius: 14px;

    background: linear-gradient(180deg, #ffffff, #ccecf8);
    box-shadow: 0 2px 0 #fff inset;
}
/* ---------------------------------------------------------
   BLOQUE INSTITUCIONAL
   --------------------------------------------------------- */

.institucional {
    grid-column: 1 / -1;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
}
.institucional::after {
     grid-column: 1 / -1;
}
.bloque {
    position: relative;
    min-height: 12.8em;
    padding: 18px;
    font-size: clamp(12px, 1.5vw, 16px);
    text-align: center;
    align-content: center;
    
    border: 1px solid #b7d0dc;
    border-radius: 15px;

    background: linear-gradient(180deg, #ffffff, #e7f7fc);

    box-shadow:
        0 3px 0 #ffffff inset,
        0 4px 8px rgba(52,101,128,.12);
}
.logosinsti {
    display: block;
    max-height: 65px;
    margin: 0 auto 15px;
}
/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

footer {
    position: relative;
    z-index: 1;
    width: min(1100px, calc(100% - 28px));
    margin: 0 auto 24px;
    padding: 18px 25px;

    color: #718793;
    font-size: 12px;
    text-align: center;

    border: 1px solid #aec9d7;
    border-radius: 18px;

    background: linear-gradient(180deg, #f9fdff, #dceff7);

    box-shadow:
        0 3px 0 #ffffff inset,
        0 5px 15px rgba(45,91,119,.12);
}
.pfooter {
    margin: 0;
}
/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 800px) {
    main {
        grid-template-columns: 1fr;
    }
  
    .ma,
    .compañera,
    .onu,
    .institucional {
        grid-column: 1;
    }

    .institucional {
        grid-template-columns: 1fr;
    }

    .institucional::before {
        grid-column: 1;
    }
}

@media (max-width: 520px) {
     header {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
  }
 .logo {
    transform: translate(0, 0) !important;
    margin: 0 auto;
 }
 .presentacion {
        grid-column: 1;
        padding-left: 21px;
        padding-top: 200px;
    }
    main {
        padding: 12px;
    }

    section {
        padding: 15px;
    }


 .perfil {
        width: 150px;
        height: 150px;
        left: 50%;
        transform: translateX(-50%);
    }
   
    .materias {
        grid-auto-columns: 100%;
        padding-left: 15px;
        scroll-padding-left: 15px;
    }

    
    .año,
    .presentacion,
    .onu,
    .bloque,
    footer {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .bloque {
        min-height: auto;
    }

    .logosinsti {
        max-width: 100%;
        height: auto;
    }

    .pfooter {
        line-height: 1.45;
    }
}

@media (max-width: 380px) {
   
    body {
        font-size: 14px;
    }

    section {
        padding: 13px;
    }

    .presentacion {
        padding-top: 200px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 16px;
    }
}
