* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Montserrat;
    background-color: #e2eaff;
}

body,
div,
ul,
nav,
header,
footer,
a,
li,
label,
body,
h1,
h2,
h3,
img {
    margin: 0;
    padding: 0;
}

/* *********** HEADER SECTION ************ */


.header {
    /* background-color: #fff; */
    /* animation: header-movement both;
    animation-timeline: scroll();
    animation-range: 10px 100px; */
    animation: header-movement 2s infinite alternate;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    /* padding: 15px 10px; */
    z-index: 10;
    color: #fff;
    /* font-size: .9rem; */
}

.header__open-nav-button {
    color: #e2eaff;
    background-color: #03924d;
    font-size: 1.3rem;
    font-weight: 400;
    position: absolute;
    right: 15px;
    padding: 2px 10px;
    box-shadow: 0 0 15px #0003
}

.header__checkbox {
    display: none;
}

.header__nav {
    display: none;
    background-color: #03924d;
    /* color: #fff; */
    position: absolute;
    height: fit-content;
    width: 100vw;
    top: 59px;
    border-bottom: 1px solid #0003;
    /* color: #00BF63; */
    /* para que se posicione arriba */
    z-index: -1;
    /* para que no esté encima del nav */
}

.header__nav-list {
    display: flex;
    flex-direction: column;
    height: 40vh;
    margin: auto;
    justify-content: space-evenly;

}

.header__checkbox:checked~.header__nav {
    /* si el checkbox está en checked, entonces se le aplica estilo al .header__nav (menu del encabezado) */
    display: flex;
}

.header__logo {
    max-width: 40%;
    /* width: 64px; */
    margin: 15px 10px;
    padding-top: 7px;
    filter: brightness(0) invert(1);
    animation: logo-movement both;
    animation-timeline: scroll();
    animation-range: 10px 100px;
}


.header__nav-item {
    list-style: none;
}

.header__nav-link {
    color: #fff;
}

.header__nav-link:not(:is(:hover, :active)) {
    text-decoration: none;
}

/* *********** HEADER QUERIES ************ */

@media screen and (min-width:800px) {
    .header {
        animation: header-movement both;
        animation-timeline: scroll();
        animation-range: 10px 100px;
        padding: 20px 0;
        position: fixed;
        top: 0;
        justify-content: space-evenly;
        align-items: center;
        color: #fff;
    }

    .header__nav {
        display: flex;
        flex-direction: column;
        position: relative;
        height: auto;
        width: auto;
        justify-content: space-between;
        background-color: transparent;
        top: 0;
        border-bottom: 0;
    }


    .header__nav-list {
        flex-direction: row;
        width: auto;
        height: auto;
        gap: 30px;
        margin-right: 40px;
        color: inherit;
    }

    .header__nav-link {
        color: inherit;
    }


    .header__open-nav-button {
        display: none;
    }
}

/* *********** HEADER END ************ */

/* *********** HOME SECTION ************ */

.home {
    height: 100vh;
    min-width: 100%;
    position: relative;
    background-image: url('img/6-fondo-page.jpg');
    background-size: cover;
    background-position: center;

}

.home__background-overlay:before {
    content: '';
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.home__container {
    display: flex;
    height: calc(100% - 53.58px);
    width: 100%;
    position: absolute;
    flex-direction: column;
    justify-content: end;
    color: #ffffff;
    text-align: center;
    padding: 0 20px;
    font-weight: 200;
    gap: 80px;
}

.home__title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    font-weight: 500;
    gap: 40px;
}

.home__greeting {
    background-color: #03924d;
    padding: 15px;
    width: fit-content;
}

.home__description {
    font-size: .9rem;
    letter-spacing: 8px;
}

.typed-cursor {
    color: #03924d;
    /* Color del cursor */
}

.scrollbar-link {
    text-decoration: none;
    color: #fff;
    background-color: #03924d;
    padding: 15px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(3, 146, 77, 0.3);
}

.scrollbar-link:hover {
    background-color: #00BF63;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3, 146, 77, 0.4);
}

/* *********** HOME QUERIES ************ */

@media screen and (min-width:600px) {
    .home {
        height: 100dvh;
    }
}

/* *********** HOME END ************ */

/* *********** ABOUT SECTION ************ */

.about {
    height: fit-content;
    width: 100%;
    position: relative;
    background-color: #fff;
    animation: show-section both;
    animation-timeline: view();
    animation-range: cover 10% contain 30%;
}

.about__container {
    height: fit-content;
    max-width: 100dvw;
    padding: 90px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about__image {
    display: none;
}

.section__description {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.section__subtitle {
    text-transform: uppercase;
    text-wrap: balance;
    font-size: 1.8rem;
    color: #03924d;
    text-align: center;
}

.section__text {
    font-weight: 400;
    font-size: .9rem;
    line-height: 1.5rem;
    text-wrap: balance;
}

.about__logo {
    border-radius: 16px;
}

.about__logo img {
    width: clamp(200px, 50%, 400px);
    /* background-color: #2b2a2a */
    /* border-radius: 16px; */
}

.about__button a {
    border: 1px solid #03924d;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 24px;
    font-size: 1.3rem;
    color: #03924d;
}

.about__button a:hover {
    background-color: #00BF63;
    color: #fff;
}

.about__footer {
    background-color: #03924d;
    display: flex;
    justify-content: space-around;
    color: #fff;
    padding: 15px;
    text-transform: uppercase;
    font-size: .9rem;
}

.about__footer-item {
    width: 100%;
    text-align: center;
}

.about__footer-item:first-child {
    border-right: 1px solid #fff;
}

/* *********** ABOUT QUERIES ************ */

@media screen and (min-width:800px) {
    .about {
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
    }

    .about__container {
        flex-grow: 1;
    }

    .section__description {
        max-width: 1200px;
    }

    .about__footer {

        justify-content: center;
        padding: 60px 40px;
    }

    .about__footer-item {
        width: fit-content;
        /* text-align: center; */
        padding: 0 40px;
    }
}

/* *********** ABOUT END ************ */

/* ========== SKILLS SECTION ========== */
.skills {
    position: relative;
    min-height: 100vh; /* Ocupa toda la pantalla */
    background-color: #fff;
    padding: 80px 0;
    animation: show-section both;
    animation-timeline: view();
    animation-range: cover 10% contain 30%;
    display: flex;
    align-items: center; /* Centra verticalmente el contenido */
}

.skills__container {
    max-width: 100dvw;
    padding: 0 20px; /* Quito el padding vertical */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.skills__tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin-top: 40px;
}

/* ========== TECH CATEGORY ========== */
.tech-category {
    background: #fff;
    border: none;
    border-top: 6px solid #03924d;
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    min-height: 450px;
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(3, 146, 77, 0.15);
    border-top-color: #00BF63;
}

.tech-category__header {
    margin-bottom: 25px;
}

.tech-category__header i {
    font-size: 3.5rem;
    color: #03924d;
    margin-bottom: 10px;
}

.tech-category__header h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin: 0;
    font-weight: 600;
}

/* ========== TECH ICONS ========== */
.tech-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-items: center;
}

.tech-icons--large {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.icon-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.icon-name img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.icon-name p {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
    text-align: center;
}

/* ========== METHODOLOGY TAGS ========== */
.methodology-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.methodology-tag {
    background: #03924d;
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.methodology-tag:hover {
    background: #00BF63;
    transform: translateY(-2px);
}

/* ========== SKILLS QUERIES ========== */
@media (max-width: 1200px) {
    .skills__tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-category {
        padding: 30px;
        min-height: auto;
    }
    
    .tech-category__header i {
        font-size: 3rem;
    }
}

@media (max-width: 800px) {
    .tech-icons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tech-icons--large {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .tech-icons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-icons--large {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .methodology-tags {
        flex-direction: column;
        align-items: center;
    }
}
/* ========== SKILLS END ========== */

/* ========== PORTFOLIO SECTION ========== */
.portfolio {
    min-height: 100vh;
    position: relative;
    background-color: #03924d;
    color: #fff;
}

.portfolio__container {
    height: fit-content;
    max-width: 100dvw;
    padding: 110px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.portfolio__container .section__subtitle {
    color: #fff;
}

.portfolio__wrapper {
    width: 100%;
    max-width: 1200px;
    position: relative;
    overflow: visible; /* Cambio: permite que se salgan los cards en hover */
    min-height: 500px;
}

/* ========== TRANSICIONES DE PÁGINAS ========== */
.portfolio__page {
    position: absolute; /* Todas en la misma posición */
    width: 100%;
    padding-top: 40px;
    opacity: 0; /* Invisibles por defecto */
    transform: translateX(50px); /* Desplazadas hacia la derecha */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* Transición suave */
    pointer-events: none; /* No interactúan cuando están ocultas */
}

.portfolio__page.active {
    position: relative; /* La activa vuelve al flujo normal */
    opacity: 1; /* Visible */
    transform: translateX(0); /* En su posición */
    pointer-events: auto; /* Puede interactuar */
}

.portfolio__project-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

/* ========== PROJECT CARDS ========== */
.portfolio__project {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: show-section both;
    animation-timeline: view();
    animation-range: cover 10% contain 30%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.portfolio__project:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
    z-index: 10;
}

.project-preview {
    height: 180px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

/* ========== OVERLAY CON BOTONES EN LA IMAGEN ========== */
.project-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-preview:hover .project-preview-overlay {
    opacity: 1;
}

.project-preview:hover img {
    transform: scale(1.1);
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: #03924d;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.project-link:hover {
    background: #fff;
    color: #03924d;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.project-details {
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content {
    flex: 1;
}

.project-meta {
    font-size: 0.8rem;
    color: #00BF63;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.project-type {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #e2eaff;
    opacity: 0.9;
}

.project-role {
    font-size: 0.85rem;
    margin-bottom: 15px;
    color: #00BF63;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== NUEVA SECCIÓN PARA DESCRIPCIÓN ========== */
.project-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e2eaff;
    margin-bottom: 15px;
    opacity: 0.9;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px; /* Menos margen ya que no hay botones abajo */
}

.tech-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ========== INFORMACIÓN ADICIONAL ========== */
.project-features {
    margin-top: 15px;
}

.project-features h4 {
    font-size: 0.8rem;
    color: #00BF63;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.project-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-features li {
    font-size: 0.8rem;
    color: #e2eaff;
    margin-bottom: 4px;
    opacity: 0.8;
    position: relative;
    padding-left: 12px;
}

.project-features li::before {
    content: "•";
    color: #00BF63;
    position: absolute;
    left: 0;
}

.project-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-shrink: 0;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-link:hover {
    background: #fff;
    color: #03924d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* ========== PAGINACIÓN CON ANIMACIONES ========== */
.portfolio__pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination__btn {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pagination__btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.pagination__btn:hover::before {
    width: 100%;
    height: 100%;
}

.pagination__btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px) scale(1.05);
}

.pagination__btn.active {
    background: #fff;
    color: #03924d;
    border-color: #fff;
    transform: scale(1.1);
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 1000px) {
    .portfolio__project-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio__wrapper {
        min-height: 600px; /* Más altura en tablet */
    }
}

@media screen and (max-width: 700px) {
    .portfolio__project-container {
        grid-template-columns: 1fr;
    }
    
    .project-details {
        padding: 20px;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .tech-badge {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
    
    .portfolio__wrapper {
        min-height: 450px; /* Menos altura en móvil */
    }
    
    .portfolio__page {
        transform: translateX(30px); /* Menos desplazamiento en móvil */
    }
}
/* *********** PORTFOLIO END ************ */


/* *********** CONTACT SECTION ************ */

.contact {
    position: relative;
    min-height: auto;
    background-color: #fff;
    padding: 0px 0 60px 0;
}

.contact__container {
    max-width: 100dvw;
    padding: 110px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.contact__info {
    max-width: 1200px; /* Mismo ancho que Skills */
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: none;
    border-top: 6px solid #03924d;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact__info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(3, 146, 77, 0.15);
    border-top-color: #00BF63;
}

.contact__photo {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

.contact__photo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 4px solid #03924d;
    box-shadow: 0 8px 24px rgba(3, 146, 77, 0.3);
}

.contact__social-button {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.social-button {
    flex-shrink: 0;
}

.social-button a {
    text-decoration: none;
    color: #03924d;
    border-radius: 50%;
    border: 1px solid #03924d;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.social-button a:hover {
    transform: translateY(-2px);
}

.whatsapp a:hover {
    background-color: #25d366;
    color: #e2eaff;
    border: none;
}

.youtube a:hover {
    background-color: #ec0303;
    color: #e2eaff;
    border: none;
}

.linkedin a:hover {
    background-color: #0077b5;
    color: #e2eaff;
    border: none;
}

.tiktok a:hover {
    background-color: #000;
    color: #e2eaff;
    border: none;
}

.email a:hover {
    background-color: #d44638;
    color: #e2eaff;
    border: none;
}

.instagram a:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #e2eaff;
    border: none;
}

.github a:hover {
    background-color: #ddd;
    color: #2b2a2a;
    border: none;
}

/* ========== RESPONSIVE ========== */
@media screen and (min-width:800px) {
    .contact__info {
        flex-direction: row;
        align-items: center;
        animation: show-section both;
        animation-timeline: view();
        animation-range: cover 10% contain 30%;
    }

    .contact__photo {
        min-width: 380px;
        max-height: 480px;
        margin-bottom: 0;
        margin-right: 40px;
    }

    .contact__photo img {
        width: 250px;
        height: 250px;
    }

    .contact__info .section__description {
        justify-content: center;
        flex: 1;
    }
}


/* *********** CONTACT END ************ */


/* *********** FOOTER SECTION ************ */

/* Footer */
.footer {
    background-color: #2b2a2a;
    color: #fff;
    padding: 40px;
    display: flex;
    justify-content: center;
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.footer__logo {
    display: flex;
    align-items: center;
    justify-content: end;
}

.footer__logo-img {
    max-width: 120px;
    opacity: 0.5;
}

.footer__text {
    text-align: left;
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.5;
    text-transform: uppercase;
    font-weight: 300;
}



/* *********** FOOTER QUERIES ************ */

/* *********** FOOTER END ************ */

/* ------------- ANIMACIONES ------------- */

@keyframes header-movement {
    from {
        padding: inherit inherit;
        /* background-color: #fff; */
    }

    to {
        padding: 0;
        background-color: #fff;
        color: #03924d;
        border-bottom: 1px solid #0002;
    }
}

@keyframes logo-movement {
    from {
        filter: brightness(0) invert(1);
    }

    to {
        filter: none;
    }
}

@keyframes show-section {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}