@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&family=Manrope:wght@200..800&display=swap');
/* =========================================
   VARIABLES
========================================= */

:root {
    --navy: #323e48;
    --navy-2: #ea0029;
    /*--blue: #0082ca;*/
    --blue: #ea0029;
    --sky: #eaf3fc;
    --ink: #18283b;
    --muted: #64748b;
    --line: #e4eaf1;
    --paper: #fff;
    --soft: #f5f8fc;
    --teal: #43b7b0;
}

/* =========================================
   ESTILOS GENERALES
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: 'Lexend Deca', sans-serif;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

/* =========================================
   HEADER
========================================= */

.topline {
    height: 4px;
    background: #ea0029;
}

.site-header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(228, 234, 241, .8);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    padding: 15px 0;
}

.nav-wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand img {
    width: 100%;
    max-width: 80px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-copy strong {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: .04em;
    color: var(--navy); 
}

.brand-copy small {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--navy-2);
}

.main-nav {
    display: flex;
    gap: 34px;
    margin-left: auto;
    margin-right: 38px;
}

.main-nav a,
.footer-links a {
    font-size: 17px;
    font-weight: 500;
    color: var(--navy);
    transition: color .2s;
}

.main-nav a:hover,
.footer-links a:hover {
    color: var(--blue);
}

.nav-cta {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: var(--navy-2);
    padding: 13px 18px;
    border-radius: 8px;
    transition: .2s;
}

.nav-cta:hover,
.button-primary:hover {
    background: var(--navy);
    transform: translateY(-2px);
}

.nav-cta span {
    margin-left: 8px;
}

.menu-toggle {
    display: none;
}

/* =========================================
   HERO
========================================= */

.hero {
    position: relative;
    overflow: hidden;
    /*background: linear-gradient(115deg, #0e2949 0%, #153b65 57%, #1b527c 100%);*/
    background: linear-gradient(115deg, #323e48 0%, #1d1d1b 57%, #ea0029 100%);
    color: white;
    min-height: 590px;
    display: flex;
    align-items: center;
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) .8px, transparent .8px);
    background-size: 24px 24px;
    opacity: .18;
    mask-image: linear-gradient(90deg, black, transparent 85%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.glow-one {
    width: 520px;
    height: 520px;
    right: -90px;
    top: -220px;
    background: radial-gradient(circle, rgba(76, 176, 190, .23), transparent 68%);
}

.glow-two {
    width: 460px;
    height: 460px;
    left: 30%;
    bottom: -390px;
    background: radial-gradient(circle, rgba(49, 113, 183, .4), transparent 70%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 52px;
    padding-top: 65px;
    padding-bottom: 72px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    color: #a9c8e5;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--navy-2);
    box-shadow: 0 0 0 6px rgba(234, 0, 41, 0.33);
    margin-right: 5px;
}

.hero h1 {
    font: 800 clamp(40px, 5vw, 62px)/1.1 'Lexend Deca', sans-serif;
    letter-spacing: -.055em;
    margin: 25px 0 20px;
    max-width: 600px;
}

.hero h1 span {
    color: var(--blue);
}

.hero-text {
    max-width: 475px;
    font-size: 17px;
    line-height: 1.8;
    color: #c5d5e5;
    margin: 0;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 27px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 15px 20px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: .2s;
}

.button-primary {
    background: #e8f2fb;
    color: var(--navy);
}

.button-primary:hover {
    background: #fff;
    color: var(--navy);
}

.text-link {
    font-size: 15px;
    font-weight: 500;
    color: #d4e4f2;
}

.text-link span {
    margin-left: 7px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 40px;
    font-size: 14px;
    color: #a9bfd4;
}

.shield {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border: 3px solid #00b15a;
    background: #00b15a;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
}

/* =========================================
   HERO - ELEMENTOS VISUALES
========================================= */

.hero-visual {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-orbit {
    position: absolute;
    border: 1px solid rgba(188, 222, 242, .13);
    border-radius: 50%;
    transform: rotate(-24deg);
}

.orbit-a {
    width: 500px;
    height: 300px;
}

.orbit-b {
    width: 420px;
    height: 390px;
    transform: rotate(32deg);
}

.portal-card {
    position: relative;
    z-index: 2;
    width: min(365px, 85%);
    padding: 23px 24px 17px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 17px;
    color: var(--ink);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
    transform: rotate(1.5deg);
}

.portal-card-head,
.portal-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    font: 800 13px 'Lexend Deca';
    color: var(--navy);
}

.brand-mark.small {
    width: 23px;
    height: 23px;
    border-radius: 7px;
    gap: 2px;
}

.brand-mark.small span {
    width: 2.5px;
}

.brand-mark.small span:nth-child(1) {
    height: 8px;
}

.brand-mark.small span:nth-child(2) {
    height: 13px;
}

.brand-mark.small span:nth-child(3) {
    height: 10px;
}

.status {
    font-size: 9px;
    color: #508075;
    background: #eaf7f2;
    padding: 6px 8px;
    border-radius: 20px;
}

.status i {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #48b68c;
    margin-right: 4px;
    vertical-align: middle;
}

.portal-welcome {
    padding: 25px 0 17px;
}

.mini-label,
.card-kicker {
    font-size: 12px;
    letter-spacing: .15em;
    font-weight: 700;      
    color: var(--ink);
}

.mini-label {
    color: var(--line) !important; 
}

.portal-welcome h2 {
    font: 800 27px/1.15 'Lexend Deca';
    letter-spacing: -.04em;
    color: var(--navy);
    margin: 9px 0 7px;
}

.portal-welcome p {
    font-size: 11px;
    color: #8190a1;
    margin: 0;
}

.portal-options {
    display: grid;
    gap: 8px;
}

.portal-option {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border: 1px solid #edf1f5;
    border-radius: 9px;
}

.option-icon {
    width: 31px;
    height: 31px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 17px;
}

.student {
    background: #e8f2fc;
    color: #3476b6;
}

.teacher {
    background: #e8f6f3;
    color: #31978c;
}

.admin {
    background: #f0edfb;
    color: #7a69b8;
}

.portal-option b,
.portal-option small {
    display: block;
}

.portal-option b {
    font-size: 10px;
    color: #243b55;
}

.portal-option small {
    font-size: 8px;
    color: #91a0b0;
    margin-top: 2px;
}

.option-arrow {
    margin-left: auto;
    color: #7890a8;
    font-size: 13px;
}

.portal-card-foot {
    border-top: 1px solid #edf1f5;
    margin-top: 15px;
    padding-top: 12px;
    font-size: 8px;
    color: #9aa7b4;
}

.tiny-lock {
    color: #7a8b9e;
}

.floating-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .18);
    color: #29415b;
}

.floating-chip b,
.floating-chip small {
    display: block;
}

.floating-chip b {
    font-size: 12px;
}

.floating-chip small {
    font-size: 11px;
    color: #8a99a9;
    margin-top: 3px;
}

.chip-top {
    top: 70px;
    right: -3px;
}

.chip-bottom {
    bottom: 30px;
    left: -20px;
}

.chip-icon,
.chip-check {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: #e9f5f4;
    color: #329a91;
}

.chip-check {
    background: #edf6ef;
    color: #4d9b68;
}

.hero-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, .12);
}

/* =========================================
   SECCIONES GENERALES
========================================= */

.section-pad {
    padding: 150px 0 250px;
}

/* =========================================
   SECCIÓN ACCESOS
========================================= */

.access-section {
    background: #fff;
    padding-bottom: 150px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 38px;
}

.eyebrow.dark {
    color: #67809b;
}

.section-heading h2,
.services-intro h2 {
    font: 800 clamp(30px, 3.4vw, 42px) / 1.2 'Lexend Deca';
    letter-spacing: -.03em;
    color: var(--navy);
    margin: 17px 0 0;
}

.section-heading h2 span,
.services-intro h2 span {
    color: var(--blue);
}

.section-heading > p {
    max-width: 400px;
    font-size: 15px;
    line-height: 1.8;
    color: #718096;
    margin: 0 0 4px;
    text-align: right;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 19px;
}

.access-card {
    position: relative;
    overflow: hidden;
    min-height: 315px;
    padding: 27px 27px 24px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.access-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(26, 57, 89, .1);
    border-color: #c9d9e9;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.access-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #eaf3fc;
    color: #2864a5;
}

.access-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.teacher-card .access-icon {
    background: #eaf6f3;
    color: #32978c;
}

.academic-card .access-icon {
    background: #f0edfb;
    color: #7968b7;
}

.card-number {
    font: 700 12px 'Manrope';
    color: #c0cad5;
    font-size: 40px;
    font-weight: 100;
}

.card-copy {
    margin-top: 27px;
}

.card-copy h3 {
    font: 800 23px 'Lexend Deca';
    letter-spacing: -.03em;
    color: var(--navy);
    margin: 8px 0 35px;

}

.card-copy p {
    font-size: 15px;
    line-height: 1.8;
    color: #758499;
    margin: 0;
    max-width: 290px;
}

.card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 24px;
    font-size: 14px;
    font-weight: 700;
    color: #2864a5;
}

.card-link span {
    font-size: 16px;
    transition: transform .2s;
}

.card-link:hover span {
    transform: translate(3px, -3px);
}

.teacher-card .card-link {
    color: #278e83;
}

.academic-card .card-link {
    color: #7766b4;
}

.card-decoration {
    position: absolute;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(57, 119, 177, .07);
    border-radius: 50%;
    right: -75px;
    top: 70px;
    pointer-events: none;
}

.card-decoration:after {
    content: "";
    position: absolute;
    inset: 13px;
    border: 1px solid rgba(57, 119, 177, .07);
    border-radius: 50%;
}

.access-hint {
    margin: 23px 0 0;
    text-align: center;
    color: #8795a5;
    font-size: 14px;
}

.access-hint span {
    color: #3977b1;
    margin-right: 5px;
}

/* =========================================
   SERVICIOS
========================================= */

.services-section {
    background: #f5f8fc;
}

.services-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 100px;
    align-items: center;
}

.services-intro h2 {
    max-width: 430px;
}

.services-intro > p {
    font-size: 15px;
    line-height: 1.9;
    color: #728196;
    max-width: 390px;
    margin: 19px 0 25px;
}

.dark-link {
    color: var(--blue);
}

.service-list {
    border-top: 1px solid #dfe7ef;
}

.service-item {
    display: grid;
    grid-template-columns: 43px 1fr 28px;
    gap: 17px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid #dfe7ef;
}

.service-icon {
    width: 39px;
    height: 39px;
    border-radius: 10px;
    background: #e7f0f9;
    color: #3678b5;
    display: grid;
    place-items: center;
    font-size: 19px;
}

.service-item h3 {
    font: 700 18px 'Lexend Deca';
    color: var(--navy);
    margin: 0 0 5px;
}

.service-item p {
    font-size: 14px;
    color: #7b899a;
    line-height: 1.6;
    margin: 0;
}

.service-index {
    font-size: 35px;
    color: #a9b6c4;
    text-align: right;
    font-weight: 200;
    font-family: 'Manrope';
}

/* =========================================
   SECCIÓN AYUDA
========================================= */

.help-section {
    padding: 65px 0;
    /*background: linear-gradient(110deg, #14375e, #1b527c);*/
    background: var(--ink);
    color: #fff;
}

.help-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--blue);
    padding: 40px 70px;
    border-radius: 15px;
    margin-top: -170px;
}

.help-symbol {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    font: 600 25px 'Lexend Deca';
    color: var(--blue);
    background: #fff;
}

.help-copy {
    flex: 1;
}

.help-copy .card-kicker {
    color: var(--line);
}

.help-copy h2 {
    font: 800 22px 'Lexend Deca';
    margin: 8px 0;
}

.help-copy p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--line);
    margin: 25px 0 0;
    max-width: 580px;    
}

.button-light {
    background: #fff;
    color: var(--navy);
    white-space: nowrap;
}

.button-light:hover {
    background: #e9f3fb;
    transform: translateY(-2px);
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
    /*background: #0b2039;*/
    background: var(--ink);
    color: #fff;
    padding: 37px 0 20px;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 31px;
}

.footer-brand .brand-copy strong {
    color: #fff;
}

.footer-brand .brand-copy small {
    color: #9aadc1;
}

.footer-main > p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--line);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    font-size: 15px;
    color: var(--line);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 17px;
    display: flex;
    justify-content: space-between;
    color: #71869c;
    font-size: 15px;
    padding-bottom: 15px;  
}

/* =========================================
   ANIMACIONES
========================================= */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE - TABLETS
========================================= */

@media (max-width: 900px) {

    .main-nav {
        gap: 20px;
        margin-right: 20px;
    }

    .hero-grid {
        gap: 25px;
    }

    .hero-visual {
        transform: scale(.9);
    }

    .services-layout {
        gap: 50px;
    }

}

/* =========================================
   RESPONSIVE - MÓVILES
========================================= */

@media (max-width: 700px) {
    body {
        overflow-x: hidden;
    }
    .container {
        width: 100%;
        padding: 2% 8%;
    }

    .site-header {
        height: 70px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: 0;
        padding: 9px;
        cursor: pointer;
        margin-left: auto;
        margin-right: 10px;
    }

    .menu-toggle span {
        width: 21px;
        height: 2px;
        background: var(--navy);
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 69px;
        left: 0;
        right: 0;
        margin: 0;
        padding: 18px 24px 22px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        gap: 18px;
    }

    .brand img {
        max-width: 60px;
    }

    .brand-copy strong {
        font-size: 22px;
    }

    .brand-copy small {
        font-size: 10px;
        display: none;
    }
    .main-nav.open {
        display: flex;
    }

    .nav-cta {
        font-size: 10px;
        padding: 11px 12px;
    }

    .hero {
        min-height: auto;
    }

    .button {
        gap: 8px;
        font-size: 12px;
        padding: 11px 8px;
    }

    .text-link {
        gap: 8px;
        font-size: 12px;
        text-align: center;
        display: block;
        padding-top: 25px;
        display: none;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: 68px;
        padding-bottom: 48px;
        gap: 12px;
    }

    .hero h1 {
        font-size: 43px;
        max-width: 500px;
    }

    .hero-text {
        font-size: 14px;
    }

    .hero-visual {
        min-height: 380px;
        transform: none;
        margin-top: 5px;
    }

    .eyebrow {
        justify-content: center;
    }

    .portal-card {
        width: min(350px, 82%);
    }

    .chip-top {
        right: -2px;
        top: 25px;
    }

    .chip-bottom {
        left: -2px;
        bottom: 15px;
    }

    .orbit-a {
        width: 380px;
        height: 260px;
    }

    .orbit-b {
        width: 340px;
        height: 340px;
    }

    .section-pad {
        padding: 130px 0 180px;
    }

    .section-heading {
        display: block;
        margin-bottom: 28px;
    }

    .section-heading h2,
    .services-intro h2 {
        font-size: 25px;
        text-align: center;
    }

    .section-heading > p {
        margin-top: 15px;
        text-align: center;
        margin-bottom: 70px;
    }

    .access-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .access-card {
        min-height: 275px;
        padding: 23px;
    }

    .card-copy {
        margin-top: 21px;
    }

    .card-copy p {
        max-width: 450px;
    }

    .services-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .services-intro > p {
        max-width: 90%;
        text-align: center;
        margin: 25px auto;
    }

    .service-item {
        grid-template-columns: 40px .9fr 40px;
        gap: 13px;
    }

    .help-wrap {
        display: flex;
        align-items: center;
        gap: 24px;
        background: var(--blue);
        padding: 20px;
        border-radius: 15px;
        margin-top: -170px;
        flex-direction: column;
        text-align: center;
        width: 80% !important;
    }

    .help-symbol {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, .3);
        border-radius: 50%;
        font: 600 25px 'Lexend Deca';
        color: var(--blue);
        background: #fff;
    }

    .help-copy {
        flex: 1 1 calc(100% - 65px);
    }

    .help-copy h2 {
        font-size: 19px;
    }

    .help-wrap .button {
        margin-left: 0;
    }

    .footer-brand {
        gap: 0;
    }

    .footer-main {
        display: flex;
        gap: 23px;
        flex-wrap: wrap;
        justify-content: center;
        padding-bottom: 30px;

    }
    .footer-main a  {
        display: block;
        width: 100%;
        text-align: center;
    }

    .footer-main > p {
        display: block;
        text-align: center;
    }

    .footer-links {
        grid-column: 1 / -1;
        gap: 20px;
        justify-content: center;
        margin-top: 25px;
    }

    .footer-bottom {
        gap: 10px;
        line-height: 1.5;
        flex-direction: column;
        font-size: 13px;
        text-align: center;
    }

    .footer-bottom span:last-child {
        text-align: center;
    }
    .site-footer {
        padding: 0;
    }
}

/* =========================================
   RESPONSIVE - MÓVILES PEQUEÑOS
========================================= */

@media (max-width: 390px) {

    .hero h1 {
        font-size: 37px;
    }

    .hero-actions {
        gap: 15px;
        flex-wrap: wrap;
    }

    .button {
        padding: 14px 15px;
    }

    .portal-card {
        width: 88%;
        padding: 19px;
    }

    .floating-chip {
        padding: 9px;
    }

    .chip-top {
        right: -4px;
    }

    .chip-bottom {
        left: -4px;
    }

}

/* =========================================
   ACCESIBILIDAD - MOVIMIENTO REDUCIDO
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *:before,
    *:after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 8px;
    color: #102b4e;
    cursor: pointer;
}

.menu-toggle svg {
    display: block;
    width: 26px;
    height: 26px;
}

@media (max-width: 700px) {
    .menu-toggle {
        display: flex;
    }
}
