html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.493);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.342);
    border-radius: 50px;
    padding: 12px 30px;
    z-index: 1000;
    transition: all 0.3s ease;
    width: auto;
    max-width: 90vw;
}

.navbar:hover {
    background: rgba(49, 49, 49, 0.562);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #ffffffc4;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
}


.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: #888;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, #888888);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

/* === MOBILE STYLES (sidebar solo en pantallas pequeñas) === */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: rgba(20, 20, 20, 0.97);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    /* Ocultar menú horizontal en móvil */
    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 18px;
        padding: 12px;
        width: 100%;
        display: block;
    }
}


/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 40px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    min-height: 100vh;
}

/* Left Column - Profile */
.profile-card-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    perspective: 1000px;
}
.profile-card {
    width: 320px;
    height: 440px;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(120deg, #cacaca, #5c5c5c, #ffffff, #505050, #696969);
    background-size: 400% 400%;
    animation: aurora-border 8s ease infinite;
    position: relative;
    transition: transform 0.5s, box-shadow 0.5s;
    transform-style: preserve-3d;
}
@keyframes aurora-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.card-content {
    width: 100%;
    height: 100%;
    background-color: #000000;
    color: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
}
.profile-card:hover {
    transform: translateZ(20px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(96, 239, 255, 0.2), 0 15px 30px rgba(167, 126, 255, 0.3);
}
.profile-picture-container {
    margin-bottom: 0.5rem;
}
.profile-picture {
    width: 240px;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #686868;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}
.profile-card .name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}
.profile-card .title {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}
.profile-card .skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.profile-card .skill-badge {
    background-color: rgba(0, 255, 255, 0.1);
    color: #c7c7c7;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
    border: 1px solid rgba(243, 243, 243, 0.658);
}



/* Right Column - Main Content */
.main-content {
    padding-left: 20px;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.459);
}

.badge {
    color: #b5b5b5a4;
    /* Adjust this color to change intensity/style */
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0) 60%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    0% {
        background-position: 100%;
    }

    100% {
        background-position: -100%;
    }
}

.shiny-text.disabled {
    animation: none;
}


.main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-title .highlight {
    color: #888;
    font-weight: 400;
}

.description {
    font-size: 18px;
    color: #9b9b9b;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.skill-tag {
    background: rgba(25, 25, 25, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-tag {
    color: #b5b5b5c5;

    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0) 60%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    0% {
        background-position: 100%;
    }

    100% {
        background-position: -100%;
    }
}

.shiny-text.disabled {
    animation: none;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Projects Section */
.projects-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.section-title .primary-text {
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.section-title .secondary-text {
    color: #6b7280;
    font-weight: 400;
}

.section-subtitle {
    font-size: 18px;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.project-card {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, #888888, #444444);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a, #0a0a0a);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    text-align: center;
    z-index: 1;
    font-weight: 500;
}

.project-content {
    padding: 30px;
}

.project-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 15px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
    line-height: 1.3;
}

.project-description {
    color: #9ca3af;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 400;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-link {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-link.primary {
    background: linear-gradient(135deg, #ffffff, #888888);
    color: #000000;
}

.project-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.project-link.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-link.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}



/* Modern Typography Styles */
.modern-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text {
    background: linear-gradient(135deg, #000000 0%, #4b5563 50%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .main-content {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 10px;
        left: 20px;
        right: 10px;
        transform: none;
        border-radius: 15px;
        padding: 10px 20px;
        width: calc(100% - 20px);
    }

    .nav-content {
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: block;
    }

    .container {
        padding: 80px 20px 20px;
        gap: 30px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        margin: 0;
    }

    .project-content {
        padding: 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        padding: 2px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
    }
}

/* Animations */
.container>* {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.profile-section {
    animation-delay: 0.2s;
}

.main-content {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(128, 128, 128, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

footer {
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    margin-bottom: 20px;
}

/* CSS adicional */
.experiencia-section {
    padding: 100px 20px;
    background: transparent;
    color: #fff;
}

.experiencia-container {
    max-width: 1200px;
    margin: 0 auto;
}

.experiencia-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 10px;
}

.gray-text {
    color: #999;
}

.experiencia-subtitle {
    color: #aaa;
    font-size: 16px;
    margin-bottom: 50px;
    max-width: 700px;
}

.experiencia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.experiencia-card {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.199);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experiencia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.cargo {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.fecha {
    color: #888;
    font-size: 14px;
    margin-bottom: 12px;
}

.descripcion {
    font-size: 15px;
    color: #ccc;
    margin-bottom: 16px;
    line-height: 1.6;
}

.etiquetas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.etiquetas span {
    background: #222;
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 0, 0, 0.05);
    transition: background 0.3s ease;
}

.etiquetas span:hover {
    background: #333;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(6px);
}

.image-modal img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    animation: zoomIn 0.3s ease;
}

.image-modal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.tech-card {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #1f1f1f;
    color: white;
    padding: 6px 10px;
    border-radius: 14px;
    font-size: 12px;
    min-width: 100px;
    justify-content: center;
    text-align: center;
}

.tech-card img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
}

.tech-card img.dark-icon {
    filter: invert(100%);
}


.skill-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.skill-tag img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    display: block;
}

.skills-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.75rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background-color: #ffffff27;
    border: 1px solid #fff;
}

.tech-icon {
    width: 32px;
    height: 32px;
    transition: opacity 0.2s ease;
}


.tech-name {
    color: #d1d5db;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    text-align: center;
    line-height: 1.25;
    max-width: 64px;
}

.fa-smartphone,
.fa-globe,
.fa-database,
.fa-server,
.fa-code {
    font-size: 14px !important;
}

