@import url(https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap); @import url(https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap); *,*::before,*::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
    scroll-behavior: smooth
}

/* Breakpoints responsivos estandarizados */
@media (max-width: 1500px) {
    html {
        font-size: 57.25%
    }
}

@media (max-width: 1200px) {
    html {
        font-size: 50%
    }
}

@media (max-width: 1024px) {
    html {
        font-size: 47%
    }
}

@media (max-width: 768px) {
    html {
        font-size: 43.75%
    }
}

@media (max-width: 480px) {
    html {
        font-size: 40%
    }
}

@media (max-width: 320px) {
    html {
        font-size: 35%
    }
}

body {
    min-height: 100vh;
    color: #fafafa;
    font-family: montserrat, sans-serif;
    background-color: #1a1a1a;
    overflow-x: hidden
}

li {
    list-style: none
}

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

button {
    border: none;
    outline: none;
    background-color: transparent;
    color: inherit
}

.about {
    width: 1300px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center
}

@media (max-width: 1500px) {
    .about {
        width:1100px
    }
}

@media (max-width: 1200px) {
    .about {
        width:auto
    }
}

.about__heading:before {
    position: absolute;
    content: '';
    border-bottom: 18px solid #ff4d5a;
    width: 16rem;
    display: block;
    margin: 0 auto;
    position: relative;
    left: 3.5rem;
    top: 6.3rem;
    z-index: -1
}

@media (max-width: 768px) {
    .about__heading:before {
        border-bottom: 14px solid #ff4d5a
    }
}

.about__content {
    display: flex;
    justify-content: space-between;
    width: 100%
}

@media (max-width: 1200px) {
    .about__content {
        flex-direction: column
    }
}

.profile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 500;
    left: -300px;
    opacity: 0;
    transition: all 1.1s
}

@media (max-width: 1200px) {
    .profile {
        margin-bottom: 10rem;
        left: 0;
        opacity: 1
    }
}

@media (max-width: 1024px) {
    .profile {
        margin-bottom: 7rem
    }
}

.profile__picture {
    height: 24rem;
    margin-bottom: 4rem;
    display: flex;
    justify-content: flex-start;
    align-items: center
}

.profile__picture svg {
    transition: all 1.1s
}

.profile__blurb {
    font-size: 1.8rem;
    width: 500px;
    line-height: 1.8
}

@media (max-width: 768px) {
    .profile__blurb {
        width: 80vw;
        margin-left: auto;
        margin-right: auto
    }
}

.profile__fade-in {
    opacity: 1;
    transform: translateX(300px)
}

@media (max-width: 1200px) {
    .profile__fade-in {
        transform: translateX(0)
    }
}

.skills {
    display: flex;
    justify-content: center
}

.skills__row {
    display: flex;
    flex-direction: column;
    justify-content: center
}

.skills__row:not(:last-child) {
    margin-right: 25px
}

@media (max-width: 480px) {
    .skills__row:not(:last-child) {
        margin-right: 15px
    }
}

@media (max-width: 320px) {
    .skills__row:not(:last-child) {
        margin-right: 10px
    }
}

.skills__item {
    opacity: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    height: 100px;
    width: 160px;
    border: double 3px transparent;
    border-image-slice: 1;
    border-width: 3px;
    background-image: linear-gradient(#1a1a1a, #1a1a1a),radial-gradient(circle at top left, #51a2e9, #ff4d5a);
    border-radius: 10px;
    background-origin: border-box;
    background-clip: content-box, border-box;
    transition: transform 0.2s, opacity 1.2s;
    overflow: hidden
}

@media (max-width: 1500px) {
    .skills__item {
        height:90px;
        width: 145px
    }
}

@media (max-width: 1200px) {
    .skills__item {
        opacity: 1;
        border-width: 2px
    }
}

@media (max-width: 1024px) {
    .skills__item {
        height: 80px;
        width: 130px
    }
}

@media (max-width: 768px) {
    .skills__item {
        height: 70px;
        width: 115px
    }
}

@media (max-width: 480px) {
    .skills__item {
        height: 60px;
        width: 100px
    }
}

@media (max-width: 320px) {
    .skills__item {
        height: 50px;
        width: 80px
    }
}

.skills__item:not(:last-child) {
    margin-bottom: 3rem
}

@media (max-width: 480px) {
    .skills__item:not(:last-child) {
        margin-bottom: 15px
    }
}

.skills__item img {
    height: 60px;
    width: auto;
    transition: all 0.2s
}

@media (max-width: 1500px) {
    .skills__item img {
        height:55px
    }
}

@media (max-width: 1024px) {
    .skills__item img {
        height: 50px
    }
}

@media (max-width: 768px) {
    .skills__item img {
        height: 45px
    }
}

@media (max-width: 480px) {
    .skills__item img {
        height: 35px
    }
}

@media (max-width: 320px) {
    .skills__item img {
        height: 26px
    }
}

.skills__item-name {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s;
    letter-spacing: 1px
}

@media (max-width: 1200px) {
    .skills__item-name {
        font-size:1.4rem
    }
}

.skills__item-fade-in {
    opacity: 1
}

.skills__item--js img {
    border-radius: 5px
}

.skills__item--webpack img {
    border-radius: 50%
}

@keyframes moveInLeft {
    0% {
        opacity: 0;
        transform: translateX(-10rem)
    }

    100% {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes moveInRight {
    0% {
        opacity: 0;
        transform: translateX(10rem)
    }

    100% {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes moveInBottom {
    0% {
        opacity: 0;
        transform: translateY(4rem)
    }

    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-1rem)
    }

    100% {
        transform: translateY(0)
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

.contact {
    position: relative;
    display: flex;
    width: 500px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    flex: 0 0 auto; /* No se expande, mantiene su tamaño */
}

@media (max-width: 1024px) {
    .contact {
        width: 450px;
    }
}

@media (max-width: 768px) {
    .contact {
        width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .contact {
        width: 320px;
    }
}

@media (max-width: 320px) {
    .contact {
        width: 280px;
    }
}

.contact__heading {
    margin-top: -4rem !important;
    margin-bottom: 6rem !important
}

.contact__heading:before {
    position: absolute;
    content: '';
    border-bottom: 18px solid #ff4d5a;
    width: 21rem;
    display: block;
    margin: 0 auto;
    position: relative;
    left: 3.5rem;
    top: 6.3rem;
    z-index: -1
}

@media (max-width: 768px) {
    .contact__heading:before {
        border-bottom: 14px solid #ff4d5a;
        width: 18rem;
    }
}

@media (max-width: 480px) {
    .contact__heading:before {
        width: 16rem;
        border-bottom: 12px solid #ff4d5a;
    }
}

.contact__text {
    font-size: 1.8rem;
    margin-bottom: 6rem
}

.contact__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.contact__form-name,.contact__form-email {
    margin-bottom: 6px;
    padding: 1rem;
    height: 4rem
}

.contact__form-message {
    height: 12rem;
    padding: 1rem
}

.contact__form-submit-2 {
    align-self: flex-start;
    margin-top: 0 !important
}

.contact__form-submit {
    align-self: flex-start;
    position: relative;
    padding: 0.6rem 1rem;
    width: fit-content;
    font-size: 1.6rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    z-index: 9;
    cursor: pointer
}

.contact__form-submit:hover {
    color: #1a1a1a;
    font-weight: 700
}

.contact__form-submit:after {
    position: absolute;
    content: '';
    border-bottom: 2px solid #ff4d5a;
    width: calc(100% + 2rem);
    left: -14%;
    top: 0.5rem;
    display: block;
    margin: 0 auto;
    position: relative;
    transform-origin: bottom;
    transition: all 0.2s;
    z-index: -1
}

.contact__form-submit:hover:after {
    transform: scaleY(17.5)
}

@media (max-width: 1500px) {
    .contact__form-submit:hover:after {
        transform:scaleY(16.5)
    }
}

@media (max-width: 1200px) {
    .contact__form-submit:hover:after {
        transform:scaleY(14)
    }
}

@media (max-width: 770px) {
    .contact__form-submit:hover:after {
        transform:scaleY(12.5)
    }
}

.contact input,.contact textarea {
    width: 500px;
    resize: none;
    border: none;
    color: inherit;
    background-color: #282828;
    font-size: 1.6rem;
    font-family: monserrat, sans-serif;
    border-left: 2px solid transparent;
    border-radius: 0
}

@media (max-width: 1024px) {
    .contact input, .contact textarea {
        width: 450px;
    }
}

@media (max-width: 768px) {
    .contact input, .contact textarea {
        width: 400px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact input, .contact textarea {
        width: 320px;
        font-size: 1.4rem;
        padding: 0.8rem;
    }
}

@media (max-width: 320px) {
    .contact input, .contact textarea {
        width: 280px;
    }
}

.contact input:focus,.contact textarea:focus {
    outline: none
}

.contact input::placeholder,.contact textarea::placeholder {
    color: rgba(250,250,250,0.6);
    opacity: 1
}

.contact input :-ms-input-placeholder,.contact textarea :-ms-input-placeholder {
    color: rgba(250,250,250,0.6)
}

.contact input ::-ms-input-placeholder,.contact textarea ::-ms-input-placeholder {
    color: rgba(250,250,250,0.6)
}

.contact__form-error-submit {
    margin-top: 1.5rem;
    height: 7rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.form-error {
    align-self: start;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.5
}

.form-error>* {
    display: none
}

.input-error {
    border-left: 2px solid #ff4d5a !important
}

.footer {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 160px;
    background-color: #282828
}

.socials {
    display: flex;
    margin-bottom: 20px
}

.socials__github,.socials__email {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 35px;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s
}

.socials__github:hover,.socials__email:hover {
    transform: scale(1.2)
}

.socials__github {
    margin-right: 1rem
}

.socials__email {
    margin-left: 1rem
}

.socials img {
    height: 100%
}

.copyright {
    color: #fafafa;
    font-size: 10px;
    font-weight: 500
}

.return-home {
    position: absolute;
    top: -25px;
    width: 40px;
    height: 45px;
    margin-right: auto;
    margin-left: auto;
    left: 0;
    right: 0;
    text-align: center;
    background-color: #ff4d5a;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    -webkit-animation-iteration-count: infinite
}

.return-home:hover {
    cursor: pointer;
    animation-name: bounce;
    -moz-animation-name: bounce
}

.return-home svg {
    width: 100%
}

.hero {
    position: relative;
    display: flex;
    height: 100vh;
    width: 100%;
    z-index: 999
}

.canvas {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background-color: #1a1a1a;
    overflow: hidden
}

.connecting-dots {
    height: 100%;
    width: 100%
}

.heading {
    position: relative;
    align-self: center;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: normal;
    width: fit-content;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    color: #fafafa;
    font-weight: 300;
    z-index: 999
}

.heading__line-1 {
    animation-name: moveInLeft
}

.heading__line-1 span {
    color: #ff4d5a;
    font-weight: 400
}

.heading__line-2 {
    animation-name: moveInRight
}

.heading__line-1,.heading__line-2 {
    font-size: 6rem;
    background-color: rgba(26,26,26,0.25);
    animation-duration: 1.4s;
    animation-timing-function: cubic-bezier(0.21, 1.11, 0.81, 0.99)
}

@media (max-width: 768px) {
    .heading__line-1, .heading__line-2 {
        font-size: 4.5rem;
        text-align: center;
        margin-left: 2rem;
        margin-right: 2rem;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .heading__line-1, .heading__line-2 {
        font-size: 3.5rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

@media (max-width: 320px) {
    .heading__line-1, .heading__line-2 {
        font-size: 3rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
}

.heading-cta {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 2.4rem;
    padding: 0.8rem 3rem;
    width: 27.5rem;
    height: 4.8rem;
    background-color: rgba(26,26,26,0.6);
    border: 2px solid #ff4d5a;
    border-radius: 2px;
    color: #ff4d5a;
    font-size: 2.4rem;
    font-weight: 500;
    cursor: pointer;
    animation: moveInBottom 0.7s 1.2s;
    animation-fill-mode: backwards;
    animation-timing-function: cubic-bezier(0.21, 1.11, 0.81, 0.99)
}

@media (max-width: 1500px) {
    .heading-cta {
        width:auto
    }
}

@media (max-width: 768px) {
    .heading-cta {
        margin-top: 2rem;
        width: auto;
        font-size: 2rem;
        padding: 0.8rem 2.5rem;
    }
}

@media (max-width: 480px) {
    .heading-cta {
        padding: 0.8rem 2rem;
        font-size: 1.8rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 320px) {
    .heading-cta {
        padding: 0.6rem 1.5rem;
        font-size: 1.6rem;
    }
}

.heading-cta:before,.heading-cta:after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 27.5rem;
    height: 4.8rem;
    border-radius: 3px;
    border: 2px solid #ff4d5a;
    filter: blur(0);
    transform-origin: 50%;
    z-index: -1
}

@media (max-width: 1500px) {
    .heading-cta:before,.heading-cta:after {
        width:27.8rem
    }
}

@media (max-width: 1200px) {
    .heading-cta:before, .heading-cta:after {
        width: calc(100% + 4px);
        border: 2px solid transparent
    }
}

@media (max-width: 768px) {
    .heading-cta:before, .heading-cta:after {
        width: calc(100% + 4px);
        height: 100%;
    }
}

.heading-cta:hover {
    transform: translateY(-2px)
}

.heading-cta:hover:before,.heading-cta:hover:after {
    border-color: transparent;
    filter: blur(2px);
    transform: scaleX(1.3) scaleY(2.2);
    transition: 800ms transform ease, 1900ms blur ease, 700ms border-color ease;
    pointer-events: none
}

.heading-cta:hover:after {
    transition-delay: 150ms
}

.heading-cta:active {
    transform: translateY(-1px)
}

.heading__arrow {
    display: inline-block;
    height: 24px;
    width: 24px;
    margin-left: 15px;
    transform: rotate(90deg);
    fill: #ff4d5a;
    transition: all 0.3s
}

@media (max-width: 770px) {
    .heading__arrow {
        height:20px;
        width: 20px
    }
}

@media (max-width: 615px) {
    .heading__arrow {
        margin-left:10px
    }
}

@media (max-width: 550px) {
    .heading__arrow {
        height:16px;
        width: 16px
    }
}

.main-bg {
    height: 100vh;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: royalblue
}

.navigation {
    display: flex;
    margin-right: 10rem;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 1px
}

@media (max-width: 1200px) {
    .navigation {
        margin-right:3rem
    }
}

@media (max-width: 768px) {
    .navigation {
        margin-right: 0;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .navigation {
        font-size: 1.6rem;
    }
}

.navigation-bar {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 6rem;
    border-bottom: 1px solid #1a1a1a;
    background-color: rgba(40,40,40,0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 4px rgba(0,0,0,0.3);
    z-index: 99999999999
}

@media (max-width: 768px) {
    .navigation-bar {
        justify-content: center;
        height: 5rem;
    }
}

@media (max-width: 480px) {
    .navigation-bar {
        height: 4.5rem;
    }
}

.navigation__item {
    transition: all 0.2s
}

.navigation__item:not(:last-child) {
    margin-right: 3rem
}

.navigation__item--active {
    color: #ff4d5a
}

.navigation__item:hover {
    color: #ff4d5a
}

.projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}

.projects__heading:before {
    position: absolute;
    content: '';
    border-bottom: 18px solid #ff4d5a;
    width: 22.5rem;
    display: block;
    margin: 0 auto;
    position: relative;
    left: 3.5rem;
    top: 6.3rem;
    z-index: -1
}

@media (max-width: 768px) {
    .projects__heading:before {
        border-bottom: 14px solid #ff4d5a
    }
}

.project {
    position: relative;
    display: flex;
    margin-bottom: 14rem;
    justify-content: flex-start
}

@media (max-width: 768px) {
    .project {
        margin-bottom: 10rem;
        justify-content: center; /* Centrar proyectos en móviles */
    }
}

@media (max-width: 480px) {
    .project {
        margin-bottom: 8rem;
    }
}

@media (max-width: 320px) {
    .project {
        margin-bottom: 6rem;
    }
}

.project__image-container {
    position: relative;
    height: 70rem;
    width: 100rem;
    background-color: #3216bb;
    transition: all 0.2s;
    cursor: pointer
}

@media (max-width: 1200px) {
    .project__image-container {
        height: 60rem;
        width: 85rem;
    }
}

@media (max-width: 1024px) {
    .project__image-container {
        height: 55rem;
        width: 75rem;
    }
}

@media (max-width: 768px) {
    .project__image-container {
        height: 45rem;
        width: 60rem;
    }
}

@media (max-width: 480px) {
    .project__image-container {
        height: 35rem;
        width: 45rem;
    }
}

@media (max-width: 320px) {
    .project__image-container {
        height: 28rem;
        width: 35rem;
    }
}

.project__image-container:hover {
    transform: scale(0.95)
}

.project__image-image {
    width: 85%;
    position: relative
}

.project__image-image img {
    width: 100%
}

.project__info {
    position: relative;
    top: 8rem;
    height: fit-content;
    padding: 1rem;
    z-index: 9999999
}

@media (max-width: 1024px) {
    .project__info {
        width: fit-content;
        top: 6rem;
    }
}

@media (max-width: 768px) {
    .project__info {
        background-color: rgba(26, 26, 26, 0.8);
        top: 4rem;
        border-radius: 8px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

@media (max-width: 480px) {
    .project__info {
        top: 2rem;
        padding: 0.8rem;
    }
}

@media (max-width: 320px) {
    .project__info {
        top: 0;
        padding: 0.6rem;
    }
}

.project__title {
    position: relative;
    z-index: 66;
    font-size: 3.5rem
}

@media (max-width: 1024px) {
    .project__title {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .project__title {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    .project__title {
        font-size: 2.4rem;
    }
}

@media (max-width: 320px) {
    .project__title {
        font-size: 2rem;
    }
}

.project__description {
    position: relative;
    margin-top: 3rem;
    font-size: 1.8rem;
    font-weight: 500;
    z-index: 999909999
}

@media (max-width: 768px) {
    .project__description {
        margin-top: 2rem;
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .project__description {
        margin-top: 1.5rem;
        font-size: 1.5rem;
    }
}

.project__live-2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: fit-content;
    padding: 1rem 1.2rem;
    position: relative;
    margin-top: 3rem;
    cursor: pointer
}

@media (max-width: 768px) {
    .project__live-2 {
        margin-top: 2rem;
        font-size: 1.4rem;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .project__live-2 {
        margin-top: 1.5rem;
        font-size: 1.3rem;
    }
}

.project__live-2:after {
    position: absolute;
    content: '';
    height: 2px;
    background-color: #ff4d5a;
    width: 100%;
    bottom: 1px;
    display: block;
    transform-origin: bottom;
    transition: all 0.25s;
    z-index: -1
}

.project__live-2:hover {
    color: #1a1a1a
}

.project__live-2:hover:after {
    height: 100%
}

.project__live,.project__code {
    position: relative;
    margin-top: 3rem;
    padding: 0.6rem 1rem;
    width: fit-content;
    font-size: 1.6rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    z-index: 9;
    transition: all 0.2s;
    cursor: pointer
}

@media (max-width: 768px) {
    .project__live, .project__code {
        margin-top: 2rem;
        font-size: 1.4rem;
        padding: 0.5rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .project__live, .project__code {
        margin-top: 1.5rem;
        font-size: 1.3rem;
    }
}

.project__live:hover,.project__code:hover {
    color: #1a1a1a;
    font-weight: 700
}

.project__live:after,.project__code:after {
    position: absolute;
    content: '';
    border-bottom: 2px solid #ff4d5a;
    width: calc(100% + 2rem);
    left: -10%;
    top: 0.5rem;
    display: block;
    margin: 0 auto;
    position: relative;
    transform-origin: bottom;
    transition: all 0.2s;
    z-index: -1
}

.project__live:hover:after,.project__code:hover:after {
    transform: scaleY(17.5)
}

@media (max-width: 1500px) {
    .project__live:hover:after,.project__code:hover:after {
        transform:scaleY(16.5)
    }
}

@media (max-width: 1200px) {
    .project__live:hover:after,.project__code:hover:after {
        transform:scaleY(14)
    }
}

@media (max-width: 770px) {
    .project__live:hover:after,.project__code:hover:after {
        transform:scaleY(12.5)
    }
}

.project__code:after {
    width: calc(100% + 2rem);
    left: -8%
}

.project-left {
    align-self: flex-start;
    margin-left: 22rem
}

@media (max-width: 1700px) {
    .project-left {
        margin-left:11rem
    }
}

@media (max-width: 1500px) {
    .project-left {
        margin-left:0
    }
}

.project-left .project__info {
    left: -8rem;
    margin-right: -2rem
}

@media (max-width: 800px) {
    .project-left .project__info {
        margin-right:-4rem
    }
}

@media (max-width: 770px) {
    .project-left .project__info {
        margin-right:-4rem
    }
}

@media (max-width: 600px) {
    .project-left .project__info {
        margin-right:-6rem
    }
}

@media (max-width: 440px) {
    .project-left .project__info {
        left:-10rem;
        margin-right: -7rem
    }
}

.project-right {
    align-self: flex-end;
    margin-right: 22rem
}

@media (max-width: 1700px) {
    .project-right {
        margin-right:11rem
    }
}

@media (max-width: 1500px) {
    .project-right {
        margin-right:0
    }
}

.project-right .project__info {
    right: -8rem;
    margin-left: -2rem
}

@media (max-width: 770px) {
    .project-right .project__info {
        margin-left:-4rem
    }
}

@media (max-width: 600px) {
    .project-right .project__info {
        margin-left:-6rem
    }
}

@media (max-width: 440px) {
    .project-right .project__info {
        right:-10rem;
        margin-left: -7rem
    }
}

.retro {
    display: flex;
    align-items: flex-end;
    justify-content: center
}

.retro img {
    margin-bottom: -3px
}

.todo {
    display: flex;
    align-items: center;
    justify-content: flex-end
}

.weather {
    display: flex;
    align-items: center;
    justify-content: flex-start
}

.section-heading {
    position: relative;
    font-size: 5.5rem;
    font-weight: 700;
    margin-top: 9rem;
    margin-bottom: 13rem;
    z-index: 9999
}

@media (max-width: 1200px) {
    .section-heading {
        margin-bottom:10rem
    }
}

@media (max-width: 1000px) {
    .section-heading {
        margin-top:6rem
    }
}

body {
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}

.audio-player {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 180px;
  background: linear-gradient(135deg, #444 80%, #bbb 100%);
  box-shadow: 2px 4px 16px rgba(60, 60, 60, 0.15);
  border-radius: 0 10px 10px 0;
  padding: 8px 4px 8px 10px;
  z-index: 1000;
  display: flex;
  align-items: center;
  opacity: 0.5; /* 50% traslúcido */
}

audio {
  width: 100%;
  filter: grayscale(100%) brightness(1.1) drop-shadow(0 2px 8px #bbb);
  accent-color: #888;
  background: #e0e0e0;
  border-radius: 6px;
}

/* Contenedor para contact e imagen de fondo */
.contact-image-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  overflow: visible;
  min-height: 600px;
}

/* Imagen mb.gif a la derecha del contact */
.floating-image {
  position: relative;
  z-index: 1;
  opacity: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  transform: translateX(50px);
}

.floating-image:hover {
  opacity: 1; /* Mantiene opacidad completa al pasar el mouse */
}

.floating-image img {
  width: 500px;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: contain;
  image-rendering: auto;
  max-height: 300px;
}

/* Responsividad para dispositivos móviles */
@media (max-width: 1024px) {
  .contact-image-container {
    gap: 60px;
    max-width: 1200px;
  }
  
  .floating-image {
    transform: translateX(30px);
  }
  
  .floating-image img {
    width: 400px;
    max-height: 240px;
  }
}

@media (max-width: 768px) {
  .contact-image-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    min-height: 0;
  }
  
  .floating-image {
    order: 2;
    transform: translateX(0);
    margin-left: 0;
    justify-content: center;
  }
  
  .contact {
    order: 1;
  }
  
  .floating-image img {
    width: 350px;
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .contact-image-container {
    padding: 0 15px;
    gap: 20px;
  }
  
  .floating-image img {
    width: 280px;
    max-height: 160px;
  }
}

@media (max-width: 320px) {
  .floating-image img {
    width: 250px;
    max-height: 140px;
  }
}