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


/* =========================
   GENERAL
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    background: #080808;
    color: #ffffff;

    font-family:
        'Inter',
        Arial,
        sans-serif;
}


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


img {
    display: block;
}


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

.header {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100px;

    padding: 0 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 20;
}


.logo img {

    width: 125px;
    height: auto;

}


nav {

    display: flex;
    gap: 40px;

}


nav a {

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;

}


.nav-button {

    background: #ff5a00;

    padding: 13px 22px;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1px;

    transition: .25s;

}


.nav-button:hover {

    background: #ffffff;

    color: #000000;

}


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

.hero {

    position: relative;

    height: 100vh;

    min-height: 700px;

    overflow: hidden;

    display: flex;

    align-items: center;

    padding: 0 8%;

}


.hero-background {

    position: absolute;

    inset: 0;

    background-image:
        url("images/hero/hero.jpg");

    background-size: cover;

    background-position: center;

}


.hero-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            90deg,
            rgba(0,0,0,.9) 0%,
            rgba(0,0,0,.55) 55%,
            rgba(0,0,0,.2) 100%
        );

}


.hero-content {

    position: relative;

    z-index: 2;

    max-width: 1100px;

}


.eyebrow {

    margin-bottom: 25px;

    color: #ff5a00;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 3px;

}


.hero h1 {

    font-size:
        clamp(
            70px,
            11vw,
            170px
        );

    line-height: .82;

    letter-spacing: -8px;

    font-weight: 900;

}


.hero h1 span {

    display: block;

    margin-top: 18px;

    font-size:
        clamp(
            27px,
            4vw,
            58px
        );

    letter-spacing: -2px;

}


.hero-text {

    max-width: 500px;

    margin-top: 35px;

    font-size: 18px;

    line-height: 1.5;

    color:
        rgba(
            255,
            255,
            255,
            .8
        );

}


.hero-button {

    display: inline-flex;

    align-items: center;

    gap: 30px;

    margin-top: 35px;

    padding: 18px 25px;

    background: #ff5a00;

    color: #080808;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1px;

    transition: .25s;

}


.hero-button span {

    font-size: 20px;

}


.hero-button:hover {

    background: #ffffff;

}


.hero-bottom {

    position: absolute;

    bottom: 35px;

    left: 8%;

    right: 8%;

    z-index: 3;

    display: flex;

    justify-content: space-between;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

}


/* =========================
   EXPERIENCES
========================= */

.experiences {

    padding: 150px 5%;

    background: #f2f2f2;

    color: #080808;

}


.section-heading {

    margin-bottom: 80px;

}


.section-heading > span {

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 3px;

}


.section-heading h2 {

    margin-top: 35px;

    font-size:
        clamp(
            60px,
            9vw,
            130px
        );

    line-height: .82;

    letter-spacing: -7px;

    font-weight: 900;

}


.experience-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            1fr
        );

    gap: 25px;

}


.experience-card {

    background: #ffffff;

}


.experience-link {

    display: block;

}


.experience-image {

    position: relative;

    height: clamp(500px, 42vw, 620px);

    overflow: hidden;

    background-size: cover;

    background-position: center;

}


.experience-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(0,0,0,.55),
            transparent 60%
        );

}


.campus-image {

    background-image:
        url("images/hero/medina.jpg");

}


.tech-image {

    background-image:
        url("images/hero/alicante.jpg");

    background-position: center 32%;
    background-size: cover;
}


.experience-number {

    position: absolute;

    top: 25px;

    left: 25px;

    z-index: 2;

    color: white;

    font-size: 12px;

    font-weight: 900;

}


.experience-location {

    position: absolute;

    bottom: 25px;

    left: 25px;

    z-index: 2;

    color: white;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

}


.experience-arrow {

    position: absolute;

    right: 25px;

    bottom: 20px;

    z-index: 2;

    color: white;

    font-size: 40px;

    font-weight: 300;

    transition: .3s;

}


.experience-card:hover
.experience-arrow {

    transform:
        translateX(8px);

}


.experience-content {

    padding: 40px;

}


.experience-content > span {

    color: #ff5a00;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 2px;

}


.experience-content h3 {

    margin: 20px 0;

    font-size:
        clamp(
            45px,
            5vw,
            75px
        );

    line-height: .85;

    letter-spacing: -4px;

    font-weight: 900;

}


.experience-content p {

    max-width: 500px;

    margin-bottom: 30px;

    font-size: 16px;

    line-height: 1.6;

    color: #555555;

}


.experience-cta {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1px;

}


.experience-cta span {

    color: #ff5a00;

    font-size: 20px;

}


/* =========================
   PLAYERS
========================= */

.players {

    padding: 150px 5%;

    background: #080808;

}


.players-heading {

    margin-bottom: 80px;

}


.players-heading > span {

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 3px;

}


.players-heading h2 {

    margin-top: 35px;

    font-size:
        clamp(
            55px,
            8vw,
            120px
        );

    line-height: .85;

    letter-spacing: -6px;

    font-weight: 900;

}


.players-heading p {

    max-width: 600px;

    margin-top: 35px;

    font-size: 18px;

    line-height: 1.6;

    color: #aaaaaa;

}


.players-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            1fr
        );

    gap: 25px;

}


.player-image {

    position: relative;

    height: clamp(600px, 48vw, 760px);

    overflow: hidden;

    background: #222222;

}


.player-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 18%;

    transition:
        transform .6s;

}


.player-card:nth-child(1) .player-image img {
    object-position: center 15%;
}

.player-card:nth-child(2) .player-image img {
    object-position: center 15%;
}


.player-card:hover
.player-image img {

    transform:
        scale(1.04);

}


.player-number {

    position: absolute;

    top: 25px;

    right: 25px;

    font-size: 12px;

    font-weight: 900;

}


.player-info {

    padding:
        25px 0 60px;

}


.player-info > span {

    color: #ff5a00;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

}


.player-info h3 {

    margin:
        15px 0 25px;

    font-size:
        clamp(
            40px,
            5vw,
            70px
        );

    line-height: .85;

    letter-spacing: -3px;

    font-weight: 900;

}


.player-info a {

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

}


/* =========================
   INFO
========================= */

.info {

    padding: 150px 10%;

    background: #ff5a00;

    color: #080808;

}


.info > span {

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 3px;

}


.info h2 {

    margin-top: 60px;

    font-size:
        clamp(
            70px,
            12vw,
            180px
        );

    line-height: .78;

    letter-spacing: -10px;

    font-weight: 900;

}


.info h2 strong {

    color: #ffffff;

}


.info p {

    max-width: 550px;

    margin-top: 50px;

    font-size: 18px;

    line-height: 1.6;

}


.info-experiences {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            1fr
        );

    gap: 1px;

    margin-top: 70px;

    background:
        rgba(
            0,
            0,
            0,
            .2
        );

}


.info-experiences a {

    display: flex;

    flex-direction: column;

    padding: 35px 25px;

    background: #ff5a00;

    transition: .25s;

}


.info-experiences a:hover {

    background: #ffffff;

}


.info-experiences span {

    font-size: 11px;

    font-weight: 900;

}


.info-experiences strong {

    margin-top: 35px;

    font-size: 25px;

    font-weight: 900;

}


.info-experiences small {

    margin-top: 15px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

}


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

footer {

    padding: 40px 5%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    background: #080808;

}


footer strong {

    color: #ff5a00;

    font-size: 20px;

    font-weight: 900;

}


footer span {

    font-size: 9px;

    letter-spacing: 2px;

    opacity: .6;

}


/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {


    .header {

        height: 80px;

        padding:
            0 20px;

    }


    .logo img {

        width: 95px;

    }


    nav {

        display: none;

    }


    .nav-button {

        padding:
            11px 15px;

    }


    .hero {

        min-height: 650px;

        padding:
            0 25px;

    }


    .hero h1 {

        letter-spacing: -4px;

    }


    .hero h1 span {

        letter-spacing: -1px;

    }


    .hero-bottom {

        left: 25px;

        right: 25px;

    }


    .experiences {

        padding:
            100px 20px;

    }


    .section-heading h2 {

        letter-spacing: -3px;

    }


    .experience-grid {

        grid-template-columns:
            1fr;

    }


    .experience-image {

        height: 460px;

    }


    .experience-content {

        padding: 30px;

    }


    .players {

        padding:
            100px 20px;

    }


    .players-grid {

        grid-template-columns:
            1fr;

    }


    .player-image {

        height: 520px;

    }


    .info {

        padding:
            100px 25px;

    }


    .info h2 {

        letter-spacing: -5px;

    }


    .info-experiences {

        grid-template-columns:
            1fr;

    }


    footer {

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

    }

    /* ========================================
   FRESH SCROLL ANIMATIONS
======================================== */

.scroll-reveal {

    opacity: 0;

    transform: translateY(70px);

    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(.16, 1, .3, 1);

}


.scroll-reveal.visible {

    opacity: 1;

    transform: translateY(0);

}


/* EXPERIENCIAS */

.experience-card {

    transition:
        transform .5s cubic-bezier(.16, 1, .3, 1);

}


.experience-card:hover {

    transform: translateY(-10px);

}


/* FOTOS */

.experience-image {

    transition:
        transform .8s cubic-bezier(.16, 1, .3, 1);

}


.experience-card:hover .experience-image {

    transform: scale(1.02);

}


/* JUGADORES */

.player-card {

    transition:
        transform .5s cubic-bezier(.16, 1, .3, 1);

}


.player-card:hover {

    transform: translateY(-10px);

}


/* ========================================
   FRESH ANIMATIONS
======================================== */


/* ----------------------------------------
   ENTRADA DEL HERO
---------------------------------------- */

.hero-content {

    opacity: 0;

    transform:
        translateY(100px);

    animation:
        freshHeroContent
        1.4s
        cubic-bezier(.16, 1, .3, 1)
        forwards;

}


@keyframes freshHeroContent {

    from {

        opacity: 0;

        transform:
            translateY(100px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


/* ----------------------------------------
   ENTRADA DE LA IMAGEN
---------------------------------------- */

.hero-background {

    animation:
        freshHeroImage
        1.8s
        ease-out
        forwards;

}


@keyframes freshHeroImage {

    from {

        opacity: 0;

        transform:
            scale(1.08);

    }

    to {

        opacity: 1;

        transform:
            scale(1);

    }

}


/* ----------------------------------------
   ELEMENTOS AL HACER SCROLL
---------------------------------------- */

.scroll-reveal {

    opacity: 0;

    transform:
        translateY(70px);

    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(.16, 1, .3, 1);

}


.scroll-reveal.visible {

    opacity: 1;

    transform:
        translateY(0);

}


/* ----------------------------------------
   EXPERIENCIAS
---------------------------------------- */

.experience-card {

    transition:
        transform .5s cubic-bezier(.16, 1, .3, 1);

}


.experience-card:hover {

    transform:
        translateY(-10px);

}


/* ----------------------------------------
   IMÁGENES DE EXPERIENCIAS
---------------------------------------- */

.experience-card
.experience-image {

    transition:
        transform .8s cubic-bezier(.16, 1, .3, 1);

}


.experience-card:hover
.experience-image {

    transform:
        scale(1.03);

}


/* ----------------------------------------
   JUGADORES
---------------------------------------- */

.player-card {

    transition:
        transform .5s cubic-bezier(.16, 1, .3, 1);

}


.player-card:hover {

    transform:
        translateY(-10px);

}


.player-image img {

    transition:
        transform .8s cubic-bezier(.16, 1, .3, 1);

}


.player-card:hover
.player-image img {

    transform:
        scale(1.04);

}


/* ----------------------------------------
   FLECHAS
---------------------------------------- */

.experience-arrow {

    transition:
        transform .3s ease;

}


.experience-card:hover
.experience-arrow {

    transform:
        translateX(10px);

}


/* ----------------------------------------
   BOTONES
---------------------------------------- */

.hero-button,
.nav-button {

    transition:
        transform .25s ease,
        background .25s ease,
        color .25s ease;

}


.hero-button:hover,
.nav-button:hover {

    transform:
        translateY(-3px);

}


/* ----------------------------------------
   ENLACES
---------------------------------------- */

.player-info a {

    position: relative;

}


.player-info a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -7px;

    width: 0;

    height: 2px;

    background:
        #ff5a00;

    transition:
        width .3s ease;

}


.player-info a:hover::after {

    width: 100%;

}


/* ----------------------------------------
   NÚMEROS
---------------------------------------- */

.experience-number,
.player-number {

    transition:
        transform .3s ease;

}


.experience-card:hover
.experience-number {

    transform:
        translateX(5px);

}


.player-card:hover
.player-number {

    transform:
        translateX(-5px);

}

}

/* =========================================================
   PLAYER HISTORY MODAL
========================================================= */

body.modal-open {
    overflow: hidden;
}

.player-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity .35s ease,
        visibility .35s ease;
}

.player-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.player-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(8px);
}

.player-modal-panel {
    position: relative;
    z-index: 2;
    width: min(1100px, 100%);
    max-height: min(820px, 90vh);
    display: grid;
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
    background: #101010;
    color: #fff;
    overflow: hidden;
    transform: translateY(35px) scale(.97);
    transition: transform .45s cubic-bezier(.16,1,.3,1);
    box-shadow: 0 30px 100px rgba(0,0,0,.55);
}

.player-modal.is-open .player-modal-panel {
    transform: translateY(0) scale(1);
}

.player-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(8,8,8,.65);
    color: #fff;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: .25s;
}

.player-modal-close:hover {
    background: #ff5a00;
    color: #080808;
    border-color: #ff5a00;
}

.player-modal-media {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: #222;
}

.player-modal-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(0,0,0,.65),
        transparent 55%
    );
    pointer-events: none;
}

.player-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}

.player-modal-number {
    position: absolute;
    left: 30px;
    bottom: 25px;
    z-index: 2;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
}

.player-modal-content {
    min-width: 0;
    overflow-y: auto;
    padding: 65px 60px 55px;
}

.player-modal-label {
    display: block;
    color: #ff5a00;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 3px;
}

.player-modal-content h2 {
    margin-top: 20px;
    font-size: clamp(48px, 6vw, 82px);
    line-height: .82;
    letter-spacing: -5px;
    font-weight: 900;
}

.player-modal-rule {
    width: 55px;
    height: 3px;
    margin: 30px 0;
    background: #ff5a00;
}

.player-modal-intro {
    max-width: 650px;
    color: #aaa;
    font-size: 16px;
    line-height: 1.7;
}

.player-modal-section {
    margin-top: 45px;
}

.player-modal-section > span {
    display: block;
    margin-bottom: 20px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 3px;
}

.player-modal-timeline {
    border-top: 1px solid #333;
}

.player-modal-timeline-item {
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 20px;
    padding: 17px 0;
    border-bottom: 1px solid #292929;
}

.player-modal-timeline-item > span {
    color: #ff5a00;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.player-modal-timeline-item p {
    color: #ddd;
    font-size: 13px;
    line-height: 1.55;
}

.player-history {
    cursor: pointer;
}

/* MOBILE */

@media (max-width: 800px) {

    .player-modal {
        padding: 15px;
        align-items: flex-end;
    }

    .player-modal-panel {
        max-height: 92vh;
        grid-template-columns: 1fr;
        grid-template-rows: 250px minmax(0, 1fr);
    }

    .player-modal-media {
        min-height: 250px;
    }

    .player-modal-media img {
        object-position: center 20%;
    }

    .player-modal-content {
        padding: 35px 25px 40px;
    }

    .player-modal-content h2 {
        font-size: clamp(42px, 12vw, 65px);
        letter-spacing: -4px;
    }

    .player-modal-intro {
        font-size: 14px;
    }

    .player-modal-timeline-item {
        grid-template-columns: 95px 1fr;
        gap: 12px;
    }

    .player-modal-close {
        top: 12px;
        right: 12px;
    }
}
