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


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: rgb(217, 255, 0);
    --lowermain-color: rgb(136, 158, 9);
    --blacktext: #000000;

}

html {
    font-size: 62,5%;
}

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

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* Header Section */ 
.header {
    position: fixed;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky {
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
    transition: .3s;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 2rem;
    white-space: nowrap;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

/* End of Header Section */ 
/* Home Section */ 
.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    width: 32vw;
    border: solid 2px var(--lowermain-color);
    border-radius: 6%;
    box-shadow: 10px 10px 40px var(--lowermain-color);
    background-image: linear-gradient(to bottom right, var(--bg-color), var(--main-color));
    background-blend-mode: multiply;
    position: relative;
    margin-bottom: 100px;
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.4rem);
    }
    100% {
        transform: translateY(0);
    }
}

.home-content h3 {
    font-size: 2.8rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 4.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.4rem;
    text-align: justify;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.2rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: none;
}

.btnback {
    display: block;
    margin: auto;
    width: fit-content;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.2rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btnback:hover {
    box-shadow: none;
}


/* End of Home Section */ 
/* About Section */ 

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--second-bg-color);
}

.about-img img {
    width: 32vw;
    border: solid 2px var(--lowermain-color);
    border-radius: 6%;
    box-shadow: -10px -10px 40px var(--lowermain-color);
    background-image: linear-gradient(to bottom right, var(--main-color), var(--bg-color));
    background-blend-mode: multiply;
    position: relative;
}
.about-imgs {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 18vw;
}

.about-imgs img {
    width: 32vw;
    border: solid 2px var(--lowermain-color);
    border-radius: 6%;
    box-shadow: -10px -10px 40px var(--lowermain-color);
    background-image: linear-gradient(to bottom right, var(--main-color), var(--bg-color));
    background-blend-mode: multiply;
    position: relative;
}
.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-top: -0.5rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.2rem;
    margin: 2rem 0 3rem;
    text-align: justify;
    text-decoration: none;

}
.about-courses span {
    color: var(--main-color);
    text-align: center;
    display: block;
    margin: 0 auto;
    text-decoration: none;

} 

.about-courses a {
    text-decoration: none;
    color: var(--main-color);
}


/* End of About Section */  
/* Services Section */ 

.services h2 {
    margin-bottom: 5rem;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-container .services-box {
    flex: 1 1 30rem;
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
}

.services-container .services-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
    transition: .5s ease;
}

.services-box i,
.services-box ion-icon {
    font-size: 3rem;
    color: var(--main-color);
}



.services-box h3 {
    font-size: 2.3rem;
}

.services-box p {
    font-size: 1.3rem;
    margin: 1rem 0 3rem;
}

.project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.project-item {
    flex-basis: calc(50% - 20px);
    text-align: center;
}

.project-item img {
    max-width: 100%;
    height: auto;
    border: var(--main-color); 
    border-radius: 4px; 
    margin-bottom: 10px;
}

.project-item a {
    display: block;
    color: var(--main-color); 
    text-decoration: none; 
    font-weight: bold;
}

.project-item a:hover {
    color: var(--main-color); 
}

.disclaimer {
    color: var(--main-color);
    font-size: 0.9em; 
    margin-top: 20px; 
    margin-bottom: 20px; 
    text-align: center; 
    line-height: 1.4; 
    border-top: 1px solid var(--main-color); 
    border-bottom: 1px solid var(--main-color); 
    padding: 10px; 
    width: 100%;
}

.disclaimer a {
    color: inherit; 
    text-decoration: underline; 
    font-weight: normal; 
}

.disclaimer a:hover,
.disclaimer a:active,
.disclaimer a:focus {
    text-decoration: none; 
}


.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
}

.services-box {
    flex: 0 1 calc(50% - 2rem); /* Para que haya dos tarjetas por fila por defecto */
    margin-bottom: 2rem;
}


/* End of Services Section */ 
/*Portfolio Section */

.portfolio {
    background: var(--second-bg-color); 
}

.portfolio h2 {
    margin-bottom: .5rem;
}

.portfolio p {
    font-size: 1.3rem;
    margin: 1rem 0 4rem;
    text-align: center;
}

.portfolio-shell {
    position: relative;
    --accent: var(--main-color);
    max-width: 900px;
    margin: 0 auto;
    background: rgba(31, 36, 45, 0.65);
    border: 1px solid rgba(217, 255, 0, 0.28);
    border-radius: 1.8rem;
    padding: 2rem;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.portfolio-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    top: -120px;
    right: -90px;
    background: radial-gradient(circle, rgba(217, 255, 0, 0.35) 0%, rgba(217, 255, 0, 0) 65%);
    pointer-events: none;
}

.portfolio-mesh {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, transparent, black 12%, black 85%, transparent);
    pointer-events: none;
}

.portfolio-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
    position: relative;
    z-index: 1;
}

.portfolio-kicker {
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: .18rem;
    font-size: .8rem !important;
    color: rgba(255, 255, 255, 0.7);
}

.portfolio-counter {
    margin: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700;
    color: var(--accent);
}

.portfolio-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.portfolio-tab {
    position: relative;
    z-index: 1;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(217, 255, 0, 0.4);
    background: transparent;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: .25s ease;
}

.portfolio-tab:hover,
.portfolio-tab.active {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem rgba(217, 255, 0, 0.45);
}

.project-panel {
    display: none;
    background: linear-gradient(160deg, rgba(31, 36, 45, 1) 0%, rgba(31, 36, 45, 0.84) 60%);
    border-radius: 1.4rem;
    padding: 2rem;
    border: 1px solid rgba(217, 255, 0, 0.16);
    animation: panelFade .35s ease;
    position: relative;
}

.project-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, rgba(217, 255, 0, 0.35), rgba(217, 255, 0, 0.02));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.project-panel.active {
    display: block;
}

.project-panel h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-panel p {
    margin: 0 0 1rem;
    text-align: left;
}

.project-panel ul {
    margin: 1rem 0 2rem 1.2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1.2rem;
}

.project-tags span {
    color: var(--text-color);
    border: 1px solid rgba(217, 255, 0, 0.35);
    background: rgba(217, 255, 0, 0.08);
    padding: 0.35rem .75rem;
    border-radius: 999px;
    font-size: .9rem;
}

.project-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.project-links a {
    color: var(--main-color);
    font-size: 1.05rem;
}

.project-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin: 0 0 1.6rem;
}

.project-metrics div {
    border: 1px solid rgba(217, 255, 0, 0.22);
    border-radius: .9rem;
    padding: .7rem .8rem;
    background: rgba(217, 255, 0, 0.05);
}

.project-metrics strong {
    display: block;
    color: var(--main-color);
    font-size: 1rem;
}

.project-metrics span {
    color: rgba(255, 255, 255, 0.8);
    font-size: .8rem;
}

.portfolio-controls {
    display: flex;
    justify-content: flex-end;
    gap: .8rem;
    margin-top: 1.2rem;
}

.portfolio-control {
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(217, 255, 0, 0.35);
    border-radius: 999px;
    padding: .7rem 1.2rem;
    cursor: pointer;
    transition: .25s ease;
}

.portfolio-control:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

.portfolio-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    margin-top: 1.4rem;
    overflow: hidden;
}

.portfolio-progress-bar {
    width: 20%;
    height: 100%;
    background: linear-gradient(90deg, var(--lowermain-color), var(--accent));
    border-radius: inherit;
    transition: transform .3s ease;
}

@keyframes panelFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* End of Portfolio Section */ 


/* Footer Section */ 
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--bg-color);
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a ion-icon {
    font-size: 2.4rem;
    color: var(--bg-color);
}

/* End of Footer Section */ 

/* BREAKPOINT */

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

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }
    section {
        padding: 10rem 3% 2rem;
    }
    .services {
        padding-bottom: 7rem;
    }
    .portfolio {
        padding-bottom: 7rem;
    }
    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }
    .navbar {
        position: absolute;
        top: 100%;
        left: 0%;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }
    .navbar.active {
        display: block;
    }
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    .home {
        flex-direction: column;
    }
    .home-content h3 {
        font-size: 2.6rem;
    }
    .home-content h1 {
        font-size: 5rem;
    }
    .home-img img {
        width: 80vw;
        margin-top: 4rem;
    }
    .about {
        flex-direction: column-reverse;
    }
    .about img {
        width: 80vw;
        margin-top: 4rem;
    }
    .services h2 {
        margin-bottom: 3rem;
    }
    .portfolio h2 {
        margin-bottom: 3rem;
    }
    .portfolio-shell {
        padding: 1.4rem;
    }
    .portfolio-headline {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }
    .project-metrics {
        grid-template-columns: 1fr;
    }
    .project-tags span {
        font-size: .82rem;
    }
    .project-links {
        grid-template-columns: 1fr;
    }
    .portfolio-controls {
        justify-content: center;
    }
    .btn {
        display: block;
        margin: auto;
        width: fit-content;
        padding: 1rem 2.8rem;
        background: var(--main-color);
        border-radius: 4rem;
        box-shadow: 0 0 1rem var(--main-color);
        font-size: 1.2rem;
        color: var(--second-bg-color);
        letter-spacing: .1rem;
        font-weight: 600;
        transition: .5s ease;
    }
    
    .btn:hover {
        box-shadow: none;
    }

    .social-media {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        margin-bottom: 3rem;
        margin-top: 3rem;
      }
      
      .social-media a {
        margin: 1rem;
      }
}

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

@media (max-width: 365px) {
    .home-img img {
        width: 90vw;
    }
    .about-img img {
        width: 90vw;
    }
    .footer {
        flex-direction: column-reverse;
    }
    .footer p {
        text-align: center;
        margin-top: 2rem;
    }
}
