﻿html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

header {
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
}

/* ====== PANEL SUPERIOR  ====== */
.top-panel {
    position: relative;
    padding: 2rem 1.5rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2%;
}

    .top-panel h2 {
        font-size: clamp(1.2rem, 2.5vw, 1.8rem);
        font-weight: 700;
        margin: 0 0 0.5rem 0;
        letter-spacing: 1px;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
        animation: fadeInDown 0.6s ease-out;
        position: relative;
        z-index: 2;
    }

    .top-panel h1 {
        color: #FFF;
        font-size: clamp(1.4rem, 4vw, 2rem);
        font-family: Arial, sans-serif;
        font-weight: bold;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
        position: relative;
        margin: 0;
        text-align: center;
        max-width: 90%;
        line-height: 1.3;
    }

.top-panel h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 4px 0 0 0;
}

.line {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    flex-wrap: wrap;
}

.top-panel h1 {
    color: #ffffff;
    font-size: 1.9em;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.top-panel h2 {
    color: #FFF;
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 45px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}




/* Panels */

.content {
    display: grid;
    grid-template-columns: 250px 1fr 90px;
    gap: 1rem;
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.panel {
    color: white;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .panel.panel-izq {
        font-size: 1.2rem;
        font-weight: 600;
    }

    .panel.panel-content {
        font-size: 1rem;
        font-weight: 400;
        padding: 2rem;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 600px;
        align-items: flex-start;
        justify-content: flex-start;
        position: relative;
    }


/* Glassmorphism */
.glass {
    background: rgba(240, 248, 255, .12);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    backdrop-filter: blur(14px) saturate(130%);
    border: 0;
}



/* ====== NAVEGACIÓN LATERAL ====== */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.nav-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.9rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    letter-spacing: 0.3px;
}

    /* Efecto de brillo sutil en hover */
    .nav-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent );
        transition: left 0.5s ease;
    }

    .nav-button:hover::before {
        left: 100%;
    }

    /* Estado hover */
    .nav-button:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        color: #ffffff;
        transform: translateX(4px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* Estado activo */
    .nav-button.active {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        color: #ffffff;
        font-weight: 600;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

        /* Indicador lateral en botón activo */
        .nav-button.active::after {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 60%;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4) );
            border-radius: 0 2px 2px 0;
        }

    /* Estado focus para accesibilidad */
    .nav-button:focus {
        outline: none;
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    }

    /* Estado pressed */
    .nav-button:active {
        transform: translateX(2px) scale(0.98);
    }

/* Ajuste del panel izquierdo */
.panel.panel-izq {
    padding: 1.5rem 1rem;
    justify-content: flex-start;
}

.panel-lateral {
    display: flex;
    flex-direction: column;
}

/* Profile image */

/* ====== IMAGEN DE PERFIL ====== */
.profile-section {
    width: 100%;
    padding: 0 1rem 1.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-container {
    width: 140px;
    height: 140px;
    position: relative;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

    .profile-image-container:hover {
        transform: scale(1.05);
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    }

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

    .profile-image:hover {
        opacity: 1;
    }

.panel.panel-izq {
    padding: 1.5rem 1rem;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}

/* Partial Views */

.panel-content {
    position: relative;
    overflow: hidden;
}

.content-section {
    display: none;
    opacity: 0;
    width: 100%;
    height: auto;
    transition: opacity 0.4s ease-in-out;
    text-align: center;
}

    .content-section.active {
        display: block;
        opacity: 1;
        animation: fadeIn 0.4s ease-in-out;
    }

.content-section h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

    .content-section > h2 {
        color: #ffffff;
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        text-shadow: 0 2px 10px rgba(255, 255, 255, 0.4);
    }

    .content-section h3 {
        color: rgba(255, 255, 255, 0.95);
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1rem;
        text-shadow: 0 1px 6px rgba(255, 255, 255, 0.25);
    }

    .content-section h4 {
        color: rgba(255, 255, 255, 0.92);
        font-size: 1.25rem;
        font-weight: 600;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
        text-shadow: 0 1px 4px rgba(255, 255, 255, 0.2);
    }
    }

    .content-section h5 {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.1rem;
        font-weight: 600;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        text-shadow: 0 1px 3px rgba(255, 255, 255, 0.15);
    }

.content-section span,
.content-section strong {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

.content-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 400;
}

.content-section section {
    margin-bottom: 2rem;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

    .content-section ul li {
        color: rgba(255, 255, 255, 0.85);
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 0.75rem;
        padding-left: 1.5rem;
        position: relative;
    }

        .content-section ul li::before {
            content: "▹";
            position: absolute;
            left: 0;
            color: rgba(255, 255, 255, 0.6);
            font-size: 1.2rem;
        }

        .content-section ul li span,
        .content-section ul li strong {
            color: #ffffff;
            font-weight: 600;
        }

        .content-section ul li p {
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 0.5rem;
        }

/* Education partial View */

.academic-training-card,
.professional-development-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

    .academic-training-card:hover,
    .professional-development-card:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateX(4px);
    }

    .academic-training-card h4,
    .professional-development-card h5 {
        margin-top: 0;
    }

.credentials-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

    .credentials-container:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateX(4px);
    }

    .credentials-container > p {
        margin-bottom: 1rem;
    }

    .credentials-container ul {
        margin-top: 0.5rem;
        padding-left: 1rem;
    }

/* _Skills */

/* ====== FILTROS (Botones superiores) ====== */
.skill-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

    .skill-filter button {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: rgba(255, 255, 255, 0.85);
        padding: 0.9rem 1.8rem;
        border-radius: 12px;
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(8px);
        letter-spacing: 0.3px;
    }

        /* Efecto de brillo al pasar el mouse */
        .skill-filter button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transition: left 0.5s ease;
        }

        .skill-filter button:hover::before {
            left: 100%;
        }

        .skill-filter button:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .skill-filter button.active {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.4);
            color: #ffffff;
            font-weight: 600;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .skill-filter button:focus {
            outline: none;
            border-color: rgba(255, 255, 255, 0.5);
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
        }

/* ====== CONTENEDOR GENERAL SKILLS ====== */
.skills-content {
    position: relative;
    min-height: 300px;
}

.hard-skills-content,
.soft-skills-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    .hard-skills-content.active,
    .soft-skills-content.active {
        display: block;
        opacity: 1;
        animation: fadeIn 0.3s ease-in-out;
    }


    /* ====== HARD SKILLS ====== */

    .hard-skills-content > ul {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
        list-style: none;
        padding: 0;
        margin-top: 1rem;
    }

        .hard-skills-content > ul > li {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 1.5rem;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
        }

            .hard-skills-content > ul > li:hover {
                background: rgba(255, 255, 255, 0.06);
                border-color: rgba(255, 255, 255, 0.2);
                transform: translateY(-5px);
                box-shadow: 0 8px 24px rgba(0,0,0,0.2);
            }

            .hard-skills-content > ul > li h5 {
                color: #fff;
                font-size: 1.1rem;
                margin-top: 0;
                margin-bottom: 1rem;
                padding-bottom: 0.5rem;
                border-bottom: 1px solid rgba(255,255,255,0.1);
                font-weight: 700;
            }

            .hard-skills-content > ul > li ul {
                display: flex;
                flex-wrap: wrap;
                gap: 0.6rem;
                padding: 0;
                list-style: none;
                margin: 0;
            }

                .hard-skills-content > ul > li ul li {
                    background: rgba(255, 255, 255, 0.1);
                    border: 1px solid rgba(255, 255, 255, 0.05);
                    border-radius: 8px;
                    padding: 0.4rem 0.9rem;
                    font-size: 0.85rem;
                    color: rgba(255, 255, 255, 0.9);
                    transition: all 0.2s ease;
                    width: auto;
                    display: inline-flex;
                    margin: 0;
                }

                    .hard-skills-content > ul > li ul li:hover {
                        transform: scale(1.05);
                        cursor: default;
                    }

                    .hard-skills-content > ul > li ul li p {
                        margin: 0;
                        padding: 0;
                    }


    /* ====== SOFT SKILLS ====== */
    .soft-skills-content ul {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        list-style: none;
        padding: 0;
    }

        .soft-skills-content ul li {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 1rem 1.25rem;
            color: rgba(255, 255, 255, 0.85);
            font-size: 0.95rem;
            transition: all 0.3s ease;
        }

            .soft-skills-content ul li:hover {
                background: rgba(255, 255, 255, 0.08);
                border-color: rgba(255, 255, 255, 0.2);
                transform: translateX(4px);
            }

            .soft-skills-content ul li strong {
                color: #ffffff;
                font-weight: 600;
            }

/* _Education */

.academic-training-card h4,
.professional-development-card h5,
.credentials-container h4 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.15);
}

    .academic-training-card h4 span,
    .credentials-container p span {
        color: rgba(255, 255, 255, 0.75);
        font-weight: 500;
        font-size: 0.95rem;
    }

.credentials-container > p {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-bottom: 1rem;
}

.credentials-container ul li p {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

    .credentials-container ul li p span {
        color: rgba(255, 255, 255, 0.7);
        font-weight: 400;
    }

.professional-development-card h5 {
    margin-bottom: 0.5rem;
}

/* _Project */

.project-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.project-filter-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    letter-spacing: 0.3px;
}

    .project-filter-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .project-filter-btn:hover::before {
        left: 100%;
    }

    .project-filter-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .project-filter-btn.active {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        color: #ffffff;
        font-weight: 600;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .project-filter-btn:focus {
        outline: none;
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    }

/* Modal Dialogs*/

/* ====== MODAL DE IMAGEN COMPLETA ====== */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .image-modal.active {
        display: flex;
        opacity: 1;
        animation: fadeIn 0.3s ease-in-out;
    }

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: modalZoom 0.3s ease-out;
}

@keyframes modalZoom {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content img {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.modal-close-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
}

    .modal-close-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.5);
        transform: rotate(90deg) scale(1.1);
    }

    .modal-close-btn svg {
        width: 20px;
        height: 20px;
        stroke: white;
        stroke-width: 2;
        stroke-linecap: round;
    }