:root {
    --bg: #05060a;
    --surface: #0a0c12;
    --surface2: #0d1018;
    --text: #f4f7fb;
    --muted: #8f98aa;

    --line: rgba(255, 255, 255, .10);

    --cyan: #35e7ff;
    --pink: #ff4bc1;
    --green: #72f7a5;

    --radius: 26px;

    --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}


/* ==================================================
   RESET
================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);

    font-family: var(--font);

    overflow-x: hidden;
}

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

button {
    font: inherit;
}


/* ==================================================
   FONDO
================================================== */

.noise {
    position: fixed;
    inset: 0;

    pointer-events: none;

    z-index: 99;

    opacity: .025;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-bg {
    position: fixed;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            rgba(255, 255, 255, .018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .018) 1px,
            transparent 1px
        );

    background-size: 56px 56px;

    mask-image:
        linear-gradient(
            to bottom,
            #000,
            transparent 75%
        );
}


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

.site-header {
    height: 84px;

    max-width: 1380px;

    margin: auto;

    padding: 0 34px;

    display: flex;
    align-items: center;

    position: relative;

    z-index: 20;
}

.brand {
    font-size: 24px;
    font-weight: 950;

    letter-spacing: -1.5px;

    margin-right: auto;
}

.brand span {
    color: var(--pink);
}

.nav {
    display: flex;

    gap: 34px;

    color: var(--muted);

    font-size: 14px;
}

.nav a {
    transition: .2s;
}

.nav a:hover,
.nav a.active {
    color: #fff;
}

.github-link {
    margin-left: 42px;

    border: 1px solid var(--line);

    padding: 11px 17px;

    border-radius: 999px;

    font-size: 13px;
}

.menu {
    display: none;

    background: none;

    border: 0;
}

.menu span {
    width: 24px;
    height: 2px;

    background: white;

    display: block;

    margin: 5px;
}


/* ==================================================
   MAIN
================================================== */

main {
    max-width: 1380px;

    margin: auto;

    padding: 0 34px;
}


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

.hero {
    min-height: 720px;

    display: grid;

    grid-template-columns: 1.45fr .55fr;

    gap: 70px;

    align-items: center;

    padding: 88px 0 105px;

    position: relative;
}

.hero::before {
    content: "";

    position: absolute;

    width: 680px;
    height: 680px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(53, 231, 255, .12),
            transparent 64%
        );

    left: -270px;
    top: -90px;

    filter: blur(20px);

    pointer-events: none;
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;

    letter-spacing: .17em;

    text-transform: uppercase;

    color: #c9d0db;

    display: flex;
    align-items: center;

    gap: 10px;
}

.eyebrow span {
    width: 28px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            var(--pink),
            var(--cyan)
        );
}

.hero h1,
.section-heading h2,
.about-copy h2,
.contact-section h2 {
    font-size: clamp(58px, 7vw, 112px);

    line-height: .94;

    letter-spacing: -.065em;

    margin: 22px 0 28px;

    font-weight: 850;
}

.hero h1 em,
.section-heading h2 em,
.about-copy h2 em,
.contact-section h2 em {
    font-style: normal;

    color: transparent;

    -webkit-text-stroke:
        1px rgba(255, 255, 255, .72);
}

.hero-text {
    max-width: 700px;

    color: var(--muted);

    font-size: 18px;

    line-height: 1.75;
}

.hero-actions,
.contact-actions {
    display: flex;

    gap: 12px;

    margin-top: 35px;

    flex-wrap: wrap;
}


/* ==================================================
   BOTONES
================================================== */

.btn {
    padding: 15px 21px;

    border-radius: 999px;

    border: 1px solid var(--line);

    font-size: 13px;
    font-weight: 800;

    display: inline-flex;
    align-items: center;

    gap: 12px;

    transition: .25s;
}

.btn-primary {
    background: #f4f7fb;

    color: #07090d;

    border-color: #f4f7fb;
}

.btn-primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 35px rgba(255, 255, 255, .12);
}

.btn-ghost:hover {
    border-color:
        rgba(255, 255, 255, .35);

    background:
        rgba(255, 255, 255, .04);
}


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

.hero-card {
    align-self: center;

    border: 1px solid var(--line);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(16, 20, 30, .9),
            rgba(8, 10, 15, .76)
        );

    box-shadow:
        0 30px 100px rgba(0, 0, 0, .35),
        inset 0 1px rgba(255, 255, 255, .04);

    overflow: hidden;

    transform: rotate(2deg);

    animation: sacudidaEntrada .9s cubic-bezier(.16, 1, .3, 1) both;
}

.terminal-top {
    height: 44px;

    border-bottom:
        1px solid var(--line);

    display: flex;
    align-items: center;

    padding: 0 16px;

    gap: 7px;

    color: #697386;

    font-size: 11px;
}

.terminal-top i {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #343a46;
}

.terminal-top i:first-child {
    background: var(--pink);
}

.terminal-top i:nth-child(2) {
    background: #ffd95a;
}

.terminal-top i:nth-child(3) {
    background: var(--green);
}

.terminal-top span {
    margin-left: auto;
}

.terminal-body {
    padding: 30px;
}

.terminal-body p {
    color: #6e788a;

    font-size: 10px;

    letter-spacing: .15em;

    text-transform: uppercase;

    margin-bottom: 7px;
}

.terminal-body p b {
    color: var(--cyan);

    margin-right: 8px;
}

.terminal-body strong {
    display: block;

    font-size: 22px;

    line-height: 1.25;

    margin-bottom: 26px;
}

.online {
    border-top:
        1px solid var(--line);

    padding-top: 22px;

    color: #9aa3b2;

    font-size: 12px;

    display: flex;
    align-items: center;

    gap: 8px;
}

.online span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 16px var(--green);
}


/* ==================================================
   PROYECTOS
================================================== */

.projects-section {
    padding: 120px 0;

    border-top:
        1px solid var(--line);
}

.section-heading {
    display: grid;

    grid-template-columns:
        1fr 410px;

    gap: 80px;

    align-items: end;

    margin-bottom: 64px;
}

.section-heading h2 {
    font-size:
        clamp(52px, 6vw, 86px);

    margin-bottom: 0;
}

.section-heading > p {
    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;

    padding-bottom: 5px;
}


/* ==================================================
   GRID PROYECTOS
================================================== */

.featured-grid {
    display: grid;

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

    gap: 20px;
}


/* ==================================================
   CARD
================================================== */

.project-card {
    position: relative;

    min-height: 380px;

    border:
        1px solid var(--line);

    border-radius:
        var(--radius);

    overflow: hidden;

    background:
        var(--surface);

    cursor: pointer;

    transition:
        transform .35s ease,
        border-color .35s ease;
}

.project-card:hover {
    transform:
        translateY(-6px);

    border-color:
        rgba(255, 255, 255, .23);
}


/* ==================================================
   VISUAL CARD
================================================== */

.project-visual {
    height: 220px;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(53, 231, 255, .18),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #0d1119,
            #07090d
        );
}


/* rosa */

.project-card[data-accent="pink"]
.project-visual {
    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(255, 75, 193, .21),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #130b15,
            #07090d
        );
}


/* violeta */

.project-card[data-accent="violet"]
.project-visual {
    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(141, 91, 255, .25),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #100c17,
            #07090d
        );
}


/* verde */

.project-card[data-accent="green"]
.project-visual {
    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(114, 247, 165, .18),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #0c1511,
            #07090d
        );
}


/* azul */

.project-card[data-accent="blue"]
.project-visual {
    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(65, 127, 255, .22),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #0b101b,
            #07090d
        );
}


/* naranja */

.project-card[data-accent="orange"]
.project-visual {
    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(255, 145, 68, .22),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #17100b,
            #07090d
        );
}


/* cuadrícula del visual */

.project-visual::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            rgba(255, 255, 255, .035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .035) 1px,
            transparent 1px
        );

    background-size:
        35px 35px;
}


/* ==================================================
   NOMBRE GRANDE DE FONDO
================================================== */

.project-monogram {
    position: absolute;

    left: 25px;

    bottom: 15px;

    font-size: 70px;

    font-weight: 900;

    letter-spacing: -.06em;

    color:
        rgba(255, 255, 255, .05);
}


/* ==================================================
   VENTANA FALSA
================================================== */

.project-window {
    position: absolute;

    right: 8%;

    top: 18%;

    width: 54%;

    height: 55%;

    border:
        1px solid rgba(255, 255, 255, .16);

    border-radius: 14px;

    background:
        rgba(4, 6, 10, .72);

    box-shadow:
        0 25px 50px rgba(0, 0, 0, .35);

    transform:
        perspective(700px)
        rotateY(-8deg)
        rotateX(5deg);
}

.project-window::before {
    content: "•••";

    position: absolute;

    top: 8px;

    left: 12px;

    color: #465064;

    letter-spacing: 3px;

    font-size: 11px;
}

.project-window::after {
    content: "";

    position: absolute;

    left: 12px;

    right: 12px;

    top: 32px;

    bottom: 12px;

    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .07),
            rgba(255, 255, 255, .015)
        );
}


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

.project-info {
    padding:
        25px 28px 28px;
}

.project-meta {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 15px;

    margin-bottom: 13px;
}

.project-category {
    color:
        var(--muted);

    font-size: 11px;

    text-transform:
        uppercase;

    letter-spacing: .1em;
}

.project-status {
    font-size: 10px;

    text-transform:
        uppercase;

    border:
        1px solid var(--line);

    padding:
        6px 9px;

    border-radius:
        999px;

    color: #c3cad5;
}

.project-info h3 {
    font-size: 26px;

    letter-spacing: -.03em;

    margin-bottom: 10px;
}

.project-info p {
    color:
        var(--muted);

    line-height: 1.6;

    font-size: 13px;
}


/* ==================================================
   FOOTER DE CARD
================================================== */

.project-footer {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    margin-top: 22px;
}

.tech-mini {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.tech-mini span,
.modal-tech span {
    font-size: 10px;

    text-transform:
        uppercase;

    letter-spacing: .06em;

    color: #aeb7c5;
}

.open-project {
    font-size: 22px;
}


/* ==================================================
   TODOS LOS PROYECTOS
================================================== */

.all-projects-wrap {
    margin-top: 34px;
}

.text-link {
    background:
        transparent;

    color: #fff;

    border: 0;

    font-weight: 800;

    cursor: pointer;

    font-size: 14px;

    padding: 12px 0;
}

.text-link span {
    color:
        var(--cyan);

    font-size: 20px;

    margin-left: 8px;
}

.all-projects {
    display: grid;

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

    gap: 20px;

    margin-top: 22px;
}

.all-projects .project-card {
    min-height: 380px;
}

.all-projects .project-visual {
    min-height: 220px;
}

.all-projects .project-info h3 {
    font-size: 24px;
}


/* ==================================================
   SOBRE MI
================================================== */

.about-section {
    padding: 125px 0;

    border-top:
        1px solid var(--line);

    display: grid;

    grid-template-columns:
        180px 1fr 280px;

    gap: 60px;
}

.about-label {
    color: #4f5969;

    font-size: 11px;

    letter-spacing: .15em;
}

.about-copy h2 {
    font-size:
        clamp(46px, 5vw, 74px);

    margin-top: 20px;
}

.about-copy > p:last-child {
    max-width: 720px;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.8;
}

.about-stats {
    display: grid;

    align-content: center;

    gap: 26px;
}

.about-stats div {
    border-bottom:
        1px solid var(--line);

    padding-bottom: 20px;
}

.about-stats strong {
    font-size: 34px;

    display: block;
}

.about-stats span {
    font-size: 11px;

    text-transform:
        uppercase;

    color: var(--muted);

    letter-spacing: .1em;
}


/* ==================================================
   STACK
================================================== */

.stack-section {
    padding: 80px 0 110px;

    border-top:
        1px solid var(--line);
}

.stack-list {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 32px;
}

.stack-list span {
    border:
        1px solid var(--line);

    border-radius:
        999px;

    padding:
        13px 18px;

    color: #c8ced8;

    font-size: 13px;
}


/* ==================================================
   CONTACTO
================================================== */

.contact-section {
    padding: 130px 0;

    border-top:
        1px solid var(--line);

    text-align: center;
}

.contact-section .eyebrow {
    justify-content:
        center;
}

.contact-section h2 {
    font-size:
        clamp(56px, 7vw, 100px);
}

.contact-actions {
    justify-content:
        center;
}


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

.footer {
    max-width: 1380px;

    margin: auto;

    padding:
        30px 34px 45px;

    border-top:
        1px solid var(--line);

    display: flex;

    justify-content:
        space-between;

    color: #626c7c;

    font-size: 11px;

    text-transform:
        uppercase;

    letter-spacing: .1em;
}


/* ==================================================
   MODAL
================================================== */

.project-modal {
    width: min(1150px, 92vw);
    max-height: 90vh;

    margin: auto;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 24px;

    background: #090b10;
    color: #fff;

    overflow-x: hidden;
    overflow-y: auto;

    box-shadow:
        0 40px 120px rgba(0, 0, 0, .75);
}

.project-modal::backdrop {
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(8px);
}

/* Botón cerrar */

.modal-close {
    position: absolute;

    right: 18px;
    top: 18px;

    width: 44px;
    height: 44px;

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

    border-radius: 50%;

    background: rgba(5, 6, 10, .85);
    border: 1px solid rgba(255, 255, 255, .30);

    color: #fff;
    font-size: 24px;

    cursor: pointer;

    z-index: 30;

    backdrop-filter: blur(10px);

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.modal-close:hover {
    background: rgba(53, 231, 255, .12);
    border-color: rgba(53, 231, 255, .7);
    color: var(--cyan);
    transform: scale(1.06);
}

/* Zona visual */

.modal-visual {
    width: 100%;
    height: 440px;

    position: relative;

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

    padding: 20px 72px;

    overflow: hidden;

    background: #05060a;

    border-bottom: 1px solid var(--line);
}

.modal-visual::after {
    display: none;
}

/* Imagen del proyecto */

#modalImage {
    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;

    margin: auto;

    border-radius: 12px;

    background: #05060a;
}

/* Flechas del carrusel */

#prevImage,
#nextImage {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 52px;
    height: 52px;

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

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, .18);

    background: rgba(7, 9, 13, .78);

    color: #fff;

    font-size: 30px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    z-index: 20;

    pointer-events: auto;

    backdrop-filter: blur(10px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .35);

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

#prevImage {
    left: 18px;
}

#nextImage {
    right: 18px;
}

#prevImage:hover,
#nextImage:hover {
    background: rgba(53, 231, 255, .12);

    border-color: rgba(53, 231, 255, .70);

    color: var(--cyan);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, .42),
        0 0 20px rgba(53, 231, 255, .10);

    transform:
        translateY(-50%)
        scale(1.08);
}

#prevImage:active,
#nextImage:active {
    transform:
        translateY(-50%)
        scale(.96);
}

#prevImage:focus-visible,
#nextImage:focus-visible,
.modal-close:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

/* Contenido */

.modal-content {
    padding: 32px 42px 40px;
}

.modal-category {
    color: var(--cyan);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .14em;

    margin-bottom: 10px;
}

.modal-content h2 {
    font-size: clamp(34px, 4vw, 52px);

    letter-spacing: -.04em;

    margin: 0 0 20px;
}

.modal-description {
    max-width: 900px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;
}

/* Tecnologías */

.modal-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 28px;

    padding-top: 25px;

    border-top: 1px solid var(--line);
}

.modal-tech span {
    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .06em;

    color: #aeb7c5;
}

/* Links */

.modal-links {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}

.modal-links a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 10px 18px;

    border: 1px solid var(--line);

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;

    transition: .2s;
}

.modal-links a:hover {
    border-color: var(--cyan);

    color: var(--cyan);

    transform: translateY(-2px);
}

.modal-note {
    color: #707a8c;

    font-size: 12px;

    margin-top: 26px;
}


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

.reveal {
    opacity: 0;

    transform:
        translateY(22px);
}

.reveal.visible {
    opacity: 1;

    transform: none;

    transition:
        opacity .65s ease,
        transform .65s ease;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 980px) {

    .hero {
        grid-template-columns: 1fr;

        min-height: auto;

        padding: 90px 0;
    }

    .hero-card {
        max-width: 500px;

        transform: none;
    }

    .section-heading {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .featured-grid,
    .all-projects {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .about-section {
        grid-template-columns: 1fr;
    }

    .about-label {
        display: none;
    }

    .about-stats {
        grid-template-columns:
            repeat(3, 1fr);
    }
}


/* ==================================================
   MÓVIL
================================================== */

@media (max-width: 720px) {

    .site-header {
        height: 70px;

        padding: 0 18px;

        background:
            rgba(5, 6, 10, .86);

        backdrop-filter:
            blur(14px);

        position: sticky;

        top: 0;
    }

    .menu {
        display: block;

        margin-left: 18px;
    }

    .github-link {
        display: none;
    }

    .nav {
        position: absolute;

        top: 70px;

        left: 14px;

        right: 14px;

        display: grid;

        gap: 6px;

        background: #0a0c12;

        border:
            1px solid var(--line);

        border-radius: 16px;

        padding: 12px;

        opacity: 0;

        transform:
            translateY(-8px);

        pointer-events: none;

        transition: .2s;
    }

    .nav.open {
        opacity: 1;

        transform: none;

        pointer-events: auto;
    }

    .nav a {
        padding:
            11px 10px;
    }

    main {
        padding:
            0 18px;
    }

    .hero {
        padding:
            75px 0 85px;

        gap: 50px;
    }

    .hero h1 {
        font-size:
            clamp(50px, 15vw, 78px);
    }

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

    .hero-card {
        width: 100%;
    }

    .projects-section,
    .about-section,
    .contact-section {
        padding:
            90px 0;
    }

    .section-heading {
        gap: 25px;

        margin-bottom: 42px;
    }

    .section-heading h2,
    .about-copy h2 {
        font-size:
            clamp(44px, 13vw, 66px);
    }

    .section-heading > p {
        font-size: 14px;
    }


    /* UNA CARD POR FILA */

    .featured-grid,
    .all-projects {
        grid-template-columns: 1fr;
    }


    .project-card {
        min-height: 380px;
    }

    .project-visual {
        height: 210px;

        min-height: 210px;
    }

    .project-window {
        width: 64%;

        right: 7%;

        top: 20%;
    }

    .project-monogram {
        font-size: 52px;
    }

    .project-info {
        padding: 22px;
    }

    .project-info h3 {
        font-size: 23px;
    }


    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-section h2 {
        font-size:
            clamp(48px, 14vw, 72px);
    }


    /* FOOTER */

    .footer {
        padding:
            25px 18px 35px;

        display: grid;

        gap: 8px;

        text-align: center;
    }


    /* MODAL */

    .project-modal {
        width: 95vw;
        max-height: 92vh;

        border-radius: 18px;
    }

    .modal-visual {
        height: 260px;

        padding: 12px 48px;
    }

    #modalImage {
        width: 100%;
        height: 100%;

        object-fit: contain;
    }

    #prevImage,
    #nextImage {
        width: 40px;
        height: 40px;

        font-size: 24px;
    }

    #prevImage {
        left: 8px;
    }

    #nextImage {
        right: 8px;
    }

    .modal-content {
        padding: 24px 20px 30px;
    }

    .modal-content h2 {
        font-size: 32px;
    }

    .modal-description {
        font-size: 14px;
    }

    .modal-close {
        width: 40px;
        height: 40px;

        right: 12px;
        top: 12px;
    }
}


/* ==================================================
   HOVER IMAGEN DE PROYECTOS
================================================== */

.project-visual {
    position: relative;
    overflow: hidden;
}

.project-hover-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

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

    opacity: 0;
    visibility: hidden;

    transform: scale(1.08);

    transition:
        opacity .35s ease,
        transform .45s ease,
        visibility .35s ease;

    z-index: 10;

    pointer-events: none;
}

.project-card:hover .project-hover-image {
    opacity: 1;
    visibility: visible;

    transform: scale(1);
}


/* ==================================================
   ANIMACIÓN HERO CARD - SACUDIDA DE ENTRADA
================================================== */

@keyframes sacudidaEntrada {

    0% {
        opacity: 0;

        transform:
            translateX(100px)
            rotate(8deg)
            scale(.92);

        filter: blur(12px);
    }

    35% {
        opacity: 1;

        transform:
            translateX(-18px)
            rotate(-4deg)
            scale(1.03);

        filter: blur(4px);
    }

    50% {
        transform:
            translateX(12px)
            rotate(5deg);
    }

    65% {
        transform:
            translateX(-8px)
            rotate(0deg);
    }

    78% {
        transform:
            translateX(5px)
            rotate(3deg);
    }

    90% {
        transform:
            translateX(-2px)
            rotate(1deg);
    }

    100% {
        opacity: 1;

        transform:
            translateX(0)
            rotate(2deg)
            scale(1);

        filter: blur(0);
    }
}
