
/* === MOBILE SCROLL FIX === */
body.menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
    touch-action: none;
}

/* ============================================
   VARIABLES GLOBALES - TEMA AZUL MARINO DOMINANTE
   ============================================ */

:root {
    --bg-primary: #0A1929;
    --bg-secondary: #0F2942;
    --bg-tertiary: #1A3A5C;
    --bg-card: #0F2942;
    --bg-light: #FFFFFF;
    --navy-900: #0A1929;
    --navy-800: #0F2942;
    --navy-700: #1A3A5C;
    --navy-600: #2E4A6D;
    --navy-500: #3D5A7F;
    --electric-blue: #0EA5E9;
    --electric-bright: #38BDF8;
    --electric-dark: #0284C7;
    --electric-glow: rgba(14, 165, 233, 0.5);
    --electric-soft: rgba(14, 165, 233, 0.15);
    --white: #FFFFFF;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --color-text: #FFFFFF;
    --color-text-muted: #CBD5E1;
    --color-text-dark: #94A3B8;
    --color-text-navy: #0A1929;
    --border-color: rgba(14, 165, 233, 0.2);
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-electric: 0 0 20px rgba(14, 165, 233, 0.5), 0 0 40px rgba(14, 165, 233, 0.3);
    --shadow-electric-strong: 0 0 30px rgba(14, 165, 233, 0.7), 0 0 60px rgba(14, 165, 233, 0.4);
    --gradient-navy: linear-gradient(135deg, #0A1929 0%, #1A3A5C 100%);
    --gradient-navy-light: linear-gradient(135deg, #1A3A5C 0%, #2E4A6D 100%);
    --gradient-electric: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 100%);
    --gradient-electric-dark: linear-gradient(135deg, #0284C7 0%, #0EA5E9 100%);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--color-text);
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    overflow-x: hidden;
    overscroll-behavior: none;
}


body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    line-height: 1.6;
    position: relative;
}


    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(circle at 15% 25%, rgba(14, 165, 233, 0.02) 0%, transparent 50%), radial-gradient(circle at 85% 75%, rgba(10, 25, 41, 0.02) 0%, transparent 50%);
        pointer-events: none;
        z-index: 0;
    }


    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(90deg, rgba(226, 232, 240, 0.3) 1px, transparent 1px), linear-gradient(rgba(226, 232, 240, 0.3) 1px, transparent 1px);
        background-size: 50px 50px;
        pointer-events: none;
        z-index: 0;
        opacity: 0.5;
    }


::selection {
    background: var(--electric-blue);
    color: var(--navy-900);
}


::-webkit-scrollbar {
    width: 12px;
}


::-webkit-scrollbar-track {
    background: var(--navy-800);
}


::-webkit-scrollbar-thumb {
    background: var(--gradient-electric);
    border-radius: 6px;
    border: 2px solid var(--navy-800);
    box-shadow: 0 0 10px var(--electric-glow);
}


    ::-webkit-scrollbar-thumb:hover {
        background: var(--electric-bright);
        box-shadow: var(--shadow-electric);
    }


.container, .layout-wrapper, .app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}


.section-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.section-containerabout {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.content {
    flex: 1;
    padding: 3rem 2rem;
    background: var(--white);
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    position: relative;
    overflow: visible;
}


    .content::before {
        display: none;
    }


section {
    margin-bottom: 5rem;
}


    section:last-child {
        margin-bottom: 0;
    }


/* NAVBAR */
.navbar-modern {
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(20px);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 1px 0 0 rgba(14, 165, 233, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--electric-blue);
}


.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    box-sizing: border-box;
}


.navbar-brand {
    display: flex;
    align-items: center;
    z-index: 1002;
    flex-shrink: 0;
    width: 150px;
}


.brand-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}


.brand-icon {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    color: var(--electric-blue);
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--electric-glow));
}


.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
}


.brand-link:hover .brand-icon {
    color: var(--electric-bright);
    filter: drop-shadow(0 0 15px var(--electric-blue));
    transform: scale(1.1);
}


.nav-menu-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    overscroll-behavior: contain;
}


.nav-menu-modern {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}


.nav-item {
    position: relative;
    flex-shrink: 0;
}


.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}


    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--electric-blue);
        transition: width 0.3s ease;
        box-shadow: 0 0 10px var(--electric-glow);
    }


    .nav-link:hover {
        color: var(--electric-blue);
        background: rgba(14, 165, 233, 0.1);
    }


        .nav-link:hover::after {
            width: 60%;
        }


    .nav-link.active {
        color: var(--electric-blue);
        background: rgba(14, 165, 233, 0.15);
    }


        .nav-link.active::after {
            width: 60%;
        }


.nav-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}


.nav-link:hover .nav-icon {
    transform: scale(1.15);
}


.nav-text {
    display: inline;
}


.nav-item-cta {
    margin-left: 1rem;
}


.nav-link-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gradient-electric);
    color: var(--navy-900);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-electric);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}


    .nav-link-cta::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--electric-bright);
        opacity: 0;
        transition: opacity 0.3s ease;
    }


    .nav-link-cta:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-electric-strong);
    }


        .nav-link-cta:hover::before {
            opacity: 1;
        }


    .nav-link-cta span {
        position: relative;
        z-index: 1;
    }


.navbar-toggle {
    display: none;
    background: rgba(14, 165, 233, 0.1);
    border: 2px solid var(--electric-blue);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}


    .navbar-toggle:hover {
        background: rgba(14, 165, 233, 0.2);
        box-shadow: 0 0 15px var(--electric-glow);
    }


.hamburger {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 22px;
    height: 18px;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}


    .hamburger .line {
        width: 100%;
        height: 2.5px;
        background: var(--electric-blue);
        border-radius: 2px;
        transition: all 0.3s ease;
        display: block;
        pointer-events: none;
        box-shadow: 0 0 5px var(--electric-glow);
    }


.navbar-toggle.active .line-1 {
    transform: rotate(45deg) translate(6px, 6px);
}


.navbar-toggle.active .line-2 {
    opacity: 0;
    transform: translateX(-10px);
}


.navbar-toggle.active .line-3 {
    transform: rotate(-45deg) translate(6px, -6px);
}


.mobile-overlay {
    display: none;
}


/* TÍTULOS */
.section-title {
    background: var(--gradient-navy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    margin-top: 0;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    padding-top: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}


    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: var(--gradient-electric);
        border-radius: 2px;
        box-shadow: var(--shadow-electric);
    }


.section-subtitle {
    text-align: center;
    color: var(--navy-600);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}


/* HERO SECTION */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
    background: var(--gradient-navy);
    border-radius: 16px;
    margin-bottom: 3rem;
    border: 2px solid var(--electric-blue);
    box-shadow: var(--shadow-xl), inset 0 1px 0 0 rgba(14, 165, 233, 0.2), 0 0 40px var(--electric-glow);
}


.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}


.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    animation: float 8s ease-in-out infinite;
    filter: blur(80px);
}


.hero-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #0EA5E9 0%, transparent 70%);
    top: -200px;
    right: -100px;
}


.hero-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #38BDF8 0%, transparent 70%);
    bottom: -150px;
    left: -50px;
    animation-delay: 2s;
}


.hero-circle-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #0284C7 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}


.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
}


.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 165, 233, 0.2);
    color: var(--electric-bright);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid var(--electric-blue);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px var(--electric-glow);
}


.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -0.03em;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
    border: none;
    outline: none;
}


    .hero-title span {
        color: var(--electric-blue);
        text-shadow: 0 0 30px var(--electric-glow);
    }


.hero-subtitle {
    font-size: 1.4rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
}


.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


.btn-hero {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}


.btn-primary {
    background: var(--gradient-electric);
    color: var(--navy-900);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-electric);
    position: relative;
    overflow: hidden;
}


    .btn-primary::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--electric-bright);
        opacity: 0;
        transition: opacity 0.3s ease;
    }


    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-electric-strong);
    }


        .btn-primary:hover::before {
            opacity: 1;
        }


    .btn-primary span {
        position: relative;
        z-index: 1;
    }


.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}


    .btn-secondary:hover {
        background: var(--white);
        color: var(--navy-900);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    }


.btn-arrow {
    transition: transform 0.3s ease;
}


.btn-primary:hover .btn-arrow,
.btn-submit:hover .btn-arrow {
    transform: translateX(5px);
}


/* ABOUT SECTION */
.about-section {
    padding: 4rem 0;
    background: var(--gradient-navy);
    margin: 3rem 0;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 8px 32px rgba(10, 25, 41, 0.3);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
}


    .about-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--gradient-electric);
        box-shadow: 0 0 15px var(--electric-glow);
    }


    .about-section .section-title {
        color: var(--white);
        background: none;
        -webkit-text-fill-color: var(--white);
    }


    .about-section .section-subtitle {
        color: var(--color-text-muted);
    }


.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}


.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}


    .about-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--gradient-electric);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.5s ease;
        box-shadow: 0 0 10px var(--electric-glow);
    }


    .about-card:hover::before {
        transform: scaleX(1);
    }


    .about-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-xl), 0 0 30px var(--electric-glow);
        border-color: var(--electric-blue);
    }


.about-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--electric-blue);
    filter: drop-shadow(0 0 15px var(--electric-glow));
}


.about-text {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: left;
}


/* SKILLS SECTION */
.skills-section {
    padding: 4rem 0;
    background: var(--gradient-navy);
    margin: 3rem 0;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 8px 32px rgba(10, 25, 41, 0.3);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
}


    .skills-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--gradient-electric);
        box-shadow: 0 0 15px var(--electric-glow);
    }


    .skills-section .section-title {
        color: var(--white);
        background: none;
        -webkit-text-fill-color: var(--white);
    }


    .skills-section .section-subtitle {
        color: var(--color-text-muted);
    }


.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}


.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}


    .skill-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl), 0 0 30px var(--electric-glow);
        border-color: var(--electric-blue);
    }


.skill-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--electric-blue);
    filter: drop-shadow(0 0 15px var(--electric-glow));
}


.skill-title {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}


.skill-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}


.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}


.skill-tag {
    background: rgba(14, 165, 233, 0.15);
    color: var(--electric-bright);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}


    .skill-tag:hover {
        background: var(--electric-blue);
        color: var(--navy-900);
        border-color: var(--electric-blue);
        transform: scale(1.05);
        box-shadow: 0 0 15px var(--electric-glow);
    }


/* PORTFOLIO SECTION */
.portfolio-section {
    padding: 4rem 0;
    background: var(--gradient-navy);
    margin: 3rem 0;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 8px 32px rgba(10, 25, 41, 0.3);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
}


    .portfolio-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--gradient-electric);
        box-shadow: 0 0 15px var(--electric-glow);
    }


    .portfolio-section .section-title {
        color: var(--white);
        background: none;
        -webkit-text-fill-color: var(--white);
    }


    .portfolio-section .section-subtitle {
        color: var(--color-text-muted);
    }


.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}


.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);    
    width: 100%;
    box-sizing: border-box;
}


    .project-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl), 0 0 30px var(--electric-glow);
        border-color: var(--electric-blue);
    }


.project-image {
    position: relative;
    height: 220px;
    background: var(--gradient-navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


.project-emoji {
    height: 90px;
    width: 90px;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}


.project-card:hover .project-emoji {
    transform: scale(1.2) rotate(10deg);
}


.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-electric);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}


.project-card:hover .project-overlay {
    opacity: 0.95;
}


.overlay-text {
    color: var(--navy-900);
    font-size: 1.2rem;
    font-weight: 700;
}


.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
}


.project-title {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}


.project-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}


.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}


.project-tag {
    background: rgba(14, 165, 233, 0.15);
    color: var(--electric-bright);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}


.project-actions {
    display: flex;
    gap: 0.8rem;
}


.project-btn {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}


.project-btn-primary {
    background: var(--gradient-electric);
    color: var(--navy-900);
    border: none;
    position: relative;
    overflow: hidden;
}


    .project-btn-primary::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--electric-bright);
        opacity: 0;
        transition: opacity 0.3s ease;
    }


    .project-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--electric-glow);
    }


        .project-btn-primary:hover::before {
            opacity: 1;
        }


    .project-btn-primary span {
        position: relative;
        z-index: 1;
    }


.project-btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}


    .project-btn-secondary:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--white);
        transform: translateY(-2px);
    }


/* CONTACT SECTION */
.contact-section {
    padding: 4rem 0;
    background: var(--gradient-navy);
    margin: 3rem 0;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 8px 32px rgba(10, 25, 41, 0.3);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
}


    .contact-section * {
        box-sizing: border-box; /* 🔥 NUEVO: Forzar box-sizing en todos los hijos */
        max-width: 100%; /* 🔥 NUEVO: Evitar que cualquier elemento exceda el ancho */
    }


    .contact-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--gradient-electric);
        box-shadow: 0 0 15px var(--electric-glow);
    }


    .contact-section .section-title {
        color: var(--white);
        background: none;
        -webkit-text-fill-color: var(--white);
    }


    .contact-section .section-subtitle {
        color: var(--color-text-muted);
    }


.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 100%; /* 🔥 NUEVO */
    box-sizing: border-box;
}


.contact-form-wrapper,
.contact-info-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%; /* 🔥 NUEVO */
    box-sizing: border-box;
    overflow: hidden; /* 🔥 NUEVO: Evitar que el contenido se desborde */
}


.form-header {
    margin-bottom: 2rem;
}


.form-title {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}


.form-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


label {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
}


.form-input {
    background: var(--navy-700);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    color: var(--white);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}


    .form-input:focus {
        outline: none;
        border-color: var(--electric-blue);
        box-shadow: 0 0 0 3px var(--electric-soft), 0 0 20px var(--electric-glow);
        background: var(--navy-600);
    }


    .form-input::placeholder {
        color: var(--color-text-dark);
    }


.form-textarea {
    resize: vertical;
    min-height: 120px;
}


.validation-error {
    color: #F87171;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.3rem;
}


.btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}


.btn-submit {
    background: var(--gradient-electric);
    color: var(--navy-900);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-electric);
    position: relative;
    overflow: hidden;
}


    .btn-submit::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--electric-bright);
        opacity: 0;
        transition: opacity 0.3s ease;
    }


    .btn-submit:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: var(--shadow-electric-strong);
    }


        .btn-submit:hover:not(:disabled)::before {
            opacity: 1;
        }


    .btn-submit span {
        position: relative;
        z-index: 1;
    }


    .btn-submit:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }


.spinner-submit {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(10, 25, 41, 0.3);
    border-top-color: var(--navy-900);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: relative;
    z-index: 1;
}


.success-alert {
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid var(--electric-blue);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--electric-bright);
    font-weight: 600;
    margin-top: 0.5rem;
    box-shadow: 0 0 20px var(--electric-glow);
}


.alert-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    color: var(--electric-blue);
}


.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}


.info-title {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}


.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}


    .info-card:hover {
        border-color: var(--electric-blue);
        transform: translateX(5px);
        box-shadow: var(--shadow-md), 0 0 20px var(--electric-glow);
    }


.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
    color: var(--electric-blue);
    filter: drop-shadow(0 0 15px var(--electric-glow));
}


.info-content {
    flex: 1;
}


    .info-content h4 {
        color: var(--white);
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }


    .info-content p {
        color: var(--color-text-muted);
        font-size: 0.95rem;
        margin: 0;
    }


    .info-content a {
        color: var(--electric-blue);
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        position: relative;
    }


        .info-content a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--electric-blue);
            transition: width 0.3s ease;
            box-shadow: 0 0 8px var(--electric-glow);
        }


        .info-content a:hover {
            color: var(--electric-bright);
        }


            .info-content a:hover::after {
                width: 100%;
            }


.social-links-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}


.social-btn {
    background: rgba(14, 165, 233, 0.15);
    color: var(--electric-bright);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}


    .social-btn:hover {
        background: var(--electric-blue);
        color: var(--navy-900);
        border-color: var(--electric-blue);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px var(--electric-glow);
    }


.highlight-card {
    border-color: var(--electric-blue);
    box-shadow: var(--shadow-sm), 0 0 20px var(--electric-glow);
}


    .highlight-card:hover {
        box-shadow: var(--shadow-lg), 0 0 30px var(--electric-blue);
    }


    .highlight-card .info-icon {
        animation: glow 2s ease-in-out infinite;
    }


/* FOOTER */
.footer-section {
    background: var(--navy-900);
    color: var(--gray-300);
    border-top: 2px solid var(--electric-blue);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
    box-shadow: inset 0 2px 0 var(--electric-glow);
}


.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}


.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}


.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}


.footer-icon {
    font-size: 2rem;
    color: var(--electric-blue);
    filter: drop-shadow(0 0 15px var(--electric-glow));
}


.footer-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}


.footer-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}


.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}


.footer-list {
    list-style: none;
    padding: 0;
}


    .footer-list li {
        margin-bottom: 0.7rem;
    }


    .footer-list a {
        color: var(--color-text-muted);
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 0.95rem;
    }


        .footer-list a:hover {
            color: var(--electric-bright);
            padding-left: 5px;
        }


.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}


.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.3rem;
    color: var(--electric-bright);
    transition: all 0.3s ease;
    text-decoration: none;
}


    .social-link:hover {
        background: var(--electric-blue);
        border-color: var(--electric-blue);
        color: var(--navy-900);
        transform: translateY(-3px);
        box-shadow: var(--shadow-electric);
    }


.footer-bottom {
    border-top: 1px solid rgba(14, 165, 233, 0.2);
    padding-top: 2rem;
    text-align: center;
}


    .footer-bottom p {
        color: var(--color-text-dark);
        font-size: 0.9rem;
        margin: 0.3rem 0;
    }


.footer-tech {
    color: var(--color-text-muted);
}


/* ANIMACIONES */
@keyframes fadeIn {
    from {
        opacity: 0;
    }


    to {
        opacity: 1;
    }
}


@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }


    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }


    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }


    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }


    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }


    50% {
        opacity: 1;
        transform: scale(1.05);
    }


    70% {
        transform: scale(0.9);
    }


    100% {
        transform: scale(1);
    }
}


@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }


    to {
        opacity: 1;
        transform: scale(1);
    }
}


@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }


    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}


@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }


    50% {
        transform: translateY(30px) rotate(5deg);
    }
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }


    50% {
        opacity: 0.7;
    }
}


@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 15px var(--electric-glow));
    }


    50% {
        filter: drop-shadow(0 0 25px var(--electric-blue)) drop-shadow(0 0 35px var(--electric-glow));
    }
}


.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}


.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}


.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}


.slide-up {
    animation: slideInUp 0.8s ease-out;
}


.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}


.scale-in {
    animation: scaleIn 0.6s ease-out;
}


.pop-in {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* UTILIDADES */
.text-center {
    text-align: center;
}


.mt-2 {
    margin-top: 2rem;
}


.mb-2 {
    margin-bottom: 2rem;
}


/* RESPONSIVE - TABLETS */
@media (max-width: 1024px) {
    .section-container {
        padding: 0 1.5rem;
    }


    .content {
        padding: 2rem 1.5rem;
        margin: 0;
    }


    .section-title {
        font-size: 2.3rem;
    }


    .contact-grid {
        grid-template-columns: 1fr;
    }


    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* RESPONSIVE - MÓVIL */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }


    .navbar-container {
        padding: 1rem 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }


    .section-container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%; /* 🔥 NUEVO */
        box-sizing: border-box;
    }


    /* 🔥 CONTACT GRID - FORZAR 1 COLUMNA */
    .contact-section {
        padding: 3rem 0; /* 🔥 Reducir padding vertical */
        margin: 2rem 0; /* 🔥 Reducir margen */
    }


    .contact-grid {
        grid-template-columns: 1fr !important; /* 🔥 FORZAR con !important */
        gap: 2rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }


    .contact-form-wrapper,
    .contact-info-wrapper {
        width: 100%;
        max-width: 100%; /* 🔥 NUEVO */
        padding: 1.5rem; /* 🔥 Reducir padding */
        box-sizing: border-box;
        overflow: hidden; /* 🔥 NUEVO */
    }


    .info-card {
        width: 100%;
        max-width: 100%;
        padding: 1.2rem; /* 🔥 Reducir padding */
        box-sizing: border-box;
    }


    .social-links-contact {
        flex-wrap: wrap; /* 🔥 Permitir salto de línea */
        gap: 0.5rem;
    }


    .social-btn {
        font-size: 0.8rem; /* 🔥 Texto más pequeño */
        padding: 0.4rem 0.8rem;
    }


    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }


    .project-card,
    .contact-form-wrapper,
    .contact-info-wrapper {
        width: 100%;
        box-sizing: border-box;
    }


    .navbar-toggle {
        display: flex !important;
    }


    .brand-text {
        font-size: 1.2rem;
    }


    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 25, 41, 0.98);
        backdrop-filter: blur(20px);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1001;
        padding-top: 80px;
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.6);
        border-left: 2px solid var(--electric-blue);
        overscroll-behavior: contain;
    }


        .nav-menu-wrapper.active {
            right: 0 !important;
        }


    .mobile-overlay {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.8);
        z-index: 999;
        backdrop-filter: blur(2px);
    }


    .nav-menu-modern {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: stretch;
    }




    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    }


        .nav-item:last-child {
            border-bottom: none;
        }


    .nav-link {
        width: 100%;
        padding: 1.2rem 1.5rem;
        border-radius: 0;
        justify-content: flex-start;
        gap: 1rem;
        border: none;
        border-left: 3px solid transparent;
    }


        .nav-link::after {
            display: none;
        }


        .nav-link:hover,
        .nav-link.active {
            background: rgba(14, 165, 233, 0.15);
            border-left-color: var(--electric-blue);
        }


    .nav-item-cta {
        margin: 1rem;
        margin-left: 1rem;
        border-bottom: none;
    }


    .nav-link-cta {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 8px;
        justify-content: center;
    }


    .nav-icon {
        font-size: 1.3rem;
    }


    .section-title {
        font-size: 2rem;
        padding-top: 2rem;
        margin-bottom: 2.5rem;
    }


    section[id] {
        scroll-margin-top: 70px;
    }


    .content {
        padding: 1.5rem 1rem 2rem 1rem;
    }


    section {
        margin-bottom: 4rem;
    }
}


/* RESPONSIVE - MÓVIL PEQUEÑO */
@media (max-width: 600px) {
    .section-container {
        padding: 0 0.75rem;
        max-width: 100%;
    }


    /* 🔥 CONTACT ESPECÍFICO */
    .contact-section {
        padding: 2rem 0;
        margin: 1.5rem 0;
        border-radius: 12px; /* 🔥 Reducir border-radius */
    }


    .contact-grid {
        gap: 1.5rem; /* 🔥 Gap más pequeño */
    }


    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 1.2rem; /* 🔥 Menos padding */
        border-radius: 10px; /* 🔥 Border-radius más pequeño */
    }


    .form-header {
        margin-bottom: 1.5rem;
    }


    .form-title {
        font-size: 1.3rem; /* 🔥 Título más pequeño */
    }


    .form-description {
        font-size: 0.85rem;
    }


    .info-title {
        font-size: 1.3rem; /* 🔥 Título más pequeño */
    }


    .info-card {
        padding: 1rem; /* 🔥 Menos padding */
        gap: 1rem;
    }


    .info-icon {
        font-size: 1.5rem; /* 🔥 Icono más pequeño */
    }


    .info-content h4 {
        font-size: 0.9rem;
    }


    .info-content p,
    .info-content a {
        font-size: 0.85rem;
    }


    .portfolio-grid,
    .contact-grid {
        gap: 1rem;
    }


    .navbar-container {
        padding: 1rem;
    }


    .brand-text {
        font-size: 1rem;
    }


    .brand-icon {
        font-size: 1.5rem;
    }


    .nav-menu-wrapper {
        width: 260px;
        overscroll-behavior: contain;
    }


    .nav-link {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
    }


    .nav-icon {
        font-size: 1.2rem;
    }


    .navbar-toggle {
        width: 40px;
        height: 40px;
    }


    .hamburger {
        width: 20px;
        height: 16px;
    }


        .hamburger .line {
            height: 2px;
        }


    body {
        font-size: 14px;
    }


    .section-title {
        font-size: 1.8rem;
    }


    .content {
        padding: 1.2rem;
        margin: 0;
        border-radius: 0;
    }


    .hero-title {
        font-size: 2rem;
    }


    .hero-subtitle {
        font-size: 1rem;
    }


    .hero-section {
        min-height: 450px;
    }
}


/* RESPONSIVE - MÓVIL ULTRA PEQUEÑO */
@media (max-width: 480px) {
    /* 🔥 CONTACT ULTRA ESPECÍFICO */
    .contact-section {
        padding: 1.5rem 0;
        margin: 1rem 0;
        border-radius: 8px;
    }


    .contact-grid {
        gap: 1rem;
        margin-top: 2rem;
    }


    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 1rem;
        border-radius: 8px;
    }


    .form-title,
    .info-title {
        font-size: 1.2rem;
    }


    .form-description {
        font-size: 0.8rem;
    }


    .form-input,
    .form-textarea {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }


    .btn-submit {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }


    .info-card {
        padding: 0.8rem;
        gap: 0.8rem;
    }


    .info-icon {
        font-size: 1.3rem;
    }


    .info-content h4 {
        font-size: 0.85rem;
    }


    .info-content p,
    .info-content a {
        font-size: 0.8rem;
    }


    .social-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }


    .section-title {
        font-size: 1.5rem;
    }


    section {
        margin-bottom: 2.5rem;
    }


    .nav-menu-wrapper {
        width: 240px;
        overscroll-behavior: contain;
    }


    .nav-link {
        padding: 0.9rem 1rem;
        font-size: 0.85rem;
    }


    .nav-link-cta {
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
    }


    .hero-title {
        font-size: 1.6rem;
    }


    .hero-buttons {
        gap: 0.8rem;
    }


    .btn-hero {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}


/* MODAL PROYECTO */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}


.modal-container {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    z-index: 10000;
}


@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }


    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}


.modal-title {
    color: #38BDF8;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}


.modal-close {
    background: rgba(56, 189, 248, 0.1);
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    color: #38BDF8;
}


    .modal-close:hover {
        background: rgba(248, 113, 113, 0.2);
        border-color: #F87171;
        color: #F87171;
        transform: rotate(90deg);
    }


.modal-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}


.carousel-images {
    width: 100%;
    height: 100%;
    position: relative;
}


.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}


    .carousel-image.hidden {
        opacity: 0;
        pointer-events: none;
    }


    .carousel-image.zoomed {
        cursor: grab;
        z-index: 10001;
    }


        .carousel-image.zoomed:active {
            cursor: grabbing;
        }


.carousel-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}


.modal-carousel.zoomed {
    overflow: visible !important;
    z-index: 10050 !important;
}


.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(56, 189, 248, 0.2);
    border: 2px solid rgba(56, 189, 248, 0.4);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 2rem;
    color: #38BDF8;
    z-index: 10;
}


    .carousel-btn:hover {
        background: rgba(56, 189, 248, 0.4);
        border-color: #38BDF8;
        transform: translateY(-50%) scale(1.1);
    }


.carousel-btn-prev {
    left: 1rem;
}


.carousel-btn-next {
    right: 1rem;
}


.no-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #94A3B8;
}


    .no-images span {
        font-size: 4rem;
        opacity: 0.5;
    }


.modal-thumbnails {
    display: flex;
    gap: 0.8rem;
    padding: 1.5rem 2rem;
    overflow-x: auto;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}


.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    padding: 0;
}


    .thumbnail:hover {
        border-color: #38BDF8;
        transform: translateY(-3px);
    }


    .thumbnail.active {
        border-color: #38BDF8;
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
    }


    .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


.modal-content {
    padding: 2rem;
}


.modal-description {
    color: #94A3B8;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}


.modal-technologies {
    margin-bottom: 2rem;
}


    .modal-technologies h4 {
        color: #F8FAFC;
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }


.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}


.modal-tag {
    background: rgba(56, 189, 248, 0.1);
    color: #38BDF8;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(56, 189, 248, 0.3);
}


.modal-actions {
    display: flex;
    gap: 1rem;
}


.modal-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}


.modal-btn-primary {
    background: #22C55E;
    color: #0F172A;
    border: 2px solid #22C55E;
}


    .modal-btn-primary:hover {
        background: #16A34A;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    }


.modal-btn-secondary {
    background: transparent;
    color: #38BDF8;
    border: 2px solid #38BDF8;
}


    .modal-btn-secondary:hover {
        background: rgba(56, 189, 248, 0.1);
        transform: translateY(-2px);
    }


.modal-btn-youtube {
    background: #FF0000;
    color: white;
    border: 2px solid #FF0000;
}


    .modal-btn-youtube:hover {
        background: #CC0000;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    }


.modal-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}


.content-badge {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid;
}


.video-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.4);
}


.images-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
    border-color: rgba(34, 197, 94, 0.4);
}


.modal-video-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
}


.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}


.youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


.video-info {
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    text-align: center;
}


    .video-info p {
        color: #94A3B8;
        font-size: 0.95rem;
        margin: 0;
    }


.no-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 2rem;
    color: #94A3B8;
}


    .no-content span {
        font-size: 4rem;
        opacity: 0.5;
    }


.image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
}


    .image-loader p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
        margin: 0;
    }


.fullscreen-loader p {
    font-size: 16px;
}


.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.fullscreen-close {
    position: fixed;
    top: 20px;
    right: 20px;    
    z-index: 99999;
    background: rgba(56, 189, 248, 0.1);
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    color: #38BDF8;
}


    .fullscreen-close:hover {
        background: rgba(248, 113, 113, 0.2);
        border-color: #F87171;
        color: #F87171;
        transform: rotate(90deg);
    }

    /*.fullscreen-close:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        transform: rotate(90deg) scale(1.1);
    }*/


    .fullscreen-close span {
        line-height: 1;
    }


.fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    z-index: 10101;
}


.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    cursor: zoom-out;
    animation: zoomIn 0.3s ease-in-out;
    transition: opacity 0.3s ease;
    overflow: visible !important;
    z-index: 10050 !important;
}


    .fullscreen-image.hidden {
        opacity: 0;
        pointer-events: none;
    }


.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
}


    .fullscreen-nav:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateY(-50%) scale(1.1);
    }


.fullscreen-nav-prev {
    left: 20px;
}


.fullscreen-nav-next {
    right: 20px;
}


.fullscreen-nav span {
    line-height: 1;
}


.fullscreen-counter {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10001;
}


.carousel-hint,
.fullscreen-hint {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    opacity: 0;
    animation: fadeInHint 0.5s ease-in-out 1s forwards;
}


.fullscreen-hint {
    position: fixed;
    bottom: 20px;
    z-index: 10001;
}


@keyframes fadeInHint {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }


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


@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }


    to {
        opacity: 1;
        transform: scale(1);
    }
}


@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
    }


    .modal-container {
        max-height: 95vh;
    }


    .modal-header {
        padding: 1rem;
    }


    .modal-title {
        font-size: 1.3rem;
    }


    .modal-carousel {
        height: 300px;
    }


    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }


    .carousel-btn-prev {
        left: 0.5rem;
    }


    .carousel-btn-next {
        right: 0.5rem;
    }


    .modal-thumbnails {
        padding: 1rem;
    }


    .thumbnail {
        width: 60px;
        height: 45px;
    }


    .modal-content {
        padding: 1.5rem;
    }


    .modal-actions {
        flex-direction: column;
    }


    .modal-title-section {
        flex-direction: column;
        align-items: flex-start;
    }


    .video-wrapper {
        padding-bottom: 75%;
    }


    .video-info {
        padding: 0.8rem 1rem;
    }


    .content-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }


    .fullscreen-content {
        padding: 80px 20px 60px;
    }


    .fullscreen-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 24px;
    }


    .fullscreen-nav {
        width: 50px;
        height: 50px;
        font-size: 32px;
    }


    .fullscreen-nav-prev {
        left: 10px;
    }


    .fullscreen-nav-next {
        right: 10px;
    }


    .fullscreen-counter {
        bottom: 60px;
        font-size: 14px;
        padding: 8px 16px;
    }


    .spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }


    .image-loader p {
        font-size: 12px;
    }


    .carousel-hint, .fullscreen-hint {
        font-size: 11px;
        padding: 6px 12px;
    }
}


@media (max-width: 480px) {
    .video-wrapper {
        padding-bottom: 100%;
    }
}


/* SELECTOR DE IDIOMA */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9998;
    /* Forzar aceleración por hardware */
    transform: translateZ(0);
    will-change: transform;
    /* Prevenir el movimiento */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}


.navbar-modern {
    z-index: 1000;
}


.navbar-toggle {
    z-index: 9999;
    position: relative;
}


.language-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}


    .language-button:hover {
        background: rgba(255, 255, 255, 1);
        border-color: rgba(0, 0, 0, 0.2);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }


    .language-button:active {
        transform: translateY(0);
    }


.language-flag-large {
    width: 32px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    animation: waveFlag 2s ease-in-out infinite;
}


@keyframes waveFlag {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }


    25% {
        transform: scale(1.05) rotate(-2deg);
    }


    75% {
        transform: scale(1.05) rotate(2deg);
    }
}


.language-button:hover .language-flag-large {
    animation: bounceFlag 0.6s ease;
}


@keyframes bounceFlag {
    0%, 100% {
        transform: scale(1);
    }


    50% {
        transform: scale(1.15);
    }
}


.flag-image {
    width: 28px;
    height: 21px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}


.language-option:hover .flag-image {
    transform: scale(1.1);
}


.language-code {
    font-size: 13px;
    letter-spacing: 0.5px;
}


.language-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}


    .language-arrow.open {
        transform: rotate(180deg);
    }


.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-width: 220px;
    animation: slideDown 0.3s ease;
    max-height: 400px;
    overflow-y: auto;
}


@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }


    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.language-dropdown::-webkit-scrollbar {
    width: 6px;
}


.language-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 12px 12px 0;
}


.language-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}


    .language-dropdown::-webkit-scrollbar-thumb:hover {
        background: #555;
    }


.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
    position: relative;
}


    .language-option:hover {
        background: #f5f5f5;
        transform: translateX(4px);
    }


    .language-option.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        animation: pulseActive 2s ease-in-out infinite;
    }


@keyframes pulseActive {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }


    50% {
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0);
    }
}


.language-option:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}


.language-option .flag {
    font-size: 24px;
    transition: transform 0.3s ease;
}


.language-option:hover .flag {
    transform: scale(1.2) rotate(5deg);
}


.language-option.active .flag {
    animation: bounceFlag 0.6s ease;
}


.language-option .language-name {
    flex: 1;
    text-align: left;
    font-weight: 500;
}


.language-option .check {
    font-size: 16px;
    color: white;
    font-weight: bold;
    animation: checkIn 0.4s ease;
}


@keyframes checkIn {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }


    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}


.language-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeInOverlay 0.3s ease;
}


@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }


    to {
        opacity: 1;
    }
}


.language-transition-content {
    text-align: center;
    color: white;
    animation: scaleIn 0.4s ease;
}


    .language-transition-content p {
        font-size: 18px;
        font-weight: 500;
        margin-top: 20px;
        animation: fadeInText 0.5s ease 0.2s backwards;
    }


@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }


    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.spinner-large {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid #ffffff;
    border-radius: 50%;
    animation: spinLarge 1s linear infinite;
    margin: 0 auto;
}


@keyframes spinLarge {
    0% {
        transform: rotate(0deg);
    }


    100% {
        transform: rotate(360deg);
    }
}


.language-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}


.language-option:hover::before {
    left: 100%;
}


.language-option.active::before {
    display: none;
}


@media (prefers-color-scheme: dark) {
    .language-button {
        background: rgba(30, 30, 30, 0.95);
        border-color: rgba(255, 255, 255, 0.2);
        color: #fff;
    }


        .language-button:hover {
            background: rgba(40, 40, 40, 1);
            border-color: rgba(255, 255, 255, 0.3);
        }


    .language-dropdown {
        background: #2a2a2a;
    }


    .language-option {
        background: #2a2a2a;
        color: #fff;
    }


        .language-option:hover {
            background: #3a3a3a;
        }


        .language-option.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }


        .language-option:not(:last-child) {
            border-bottom-color: #3a3a3a;
        }


    .language-dropdown::-webkit-scrollbar-track {
        background: #1a1a1a;
    }


    .language-dropdown::-webkit-scrollbar-thumb {
        background: #555;
    }


        .language-dropdown::-webkit-scrollbar-thumb:hover {
            background: #777;
        }
}


@media (max-width: 768px) {
    .language-selector {
        position: fixed;
        top: 22px;
        right: 100px;
        z-index: 9997;
        /* Forzar aceleración por hardware */
        transform: translateZ(0);
        will-change: transform;
        /* Prevenir el movimiento */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }


    .nav-menu-wrapper.active ~ * .language-selector,
    body:has(.nav-menu-wrapper.active) .language-selector {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }


    .language-dropdown {
        right: 0;
        left: auto;
        max-height: 300px;
    }


    .language-button {
        padding: 6px 10px;
        font-size: 13px;
    }


    .language-flag-large {
        width: 24px;
        height: 18px;
    }


    .language-code {
        display: none;
    }


    .language-arrow {
        font-size: 9px;
    }


    .language-icon {
        font-size: 16px;
    }


    .language-option {
        padding: 12px 16px;
        font-size: 13px;
    }


        .language-option .flag {
            font-size: 20px;
        }


    .language-transition-content p {
        font-size: 16px;
    }


    .spinner-large {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }
}


/* ESTADOS DE CARGA DEL PORTFOLIO */
.loading-container,
.error-container,
.empty-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px;
    text-align: center;
}


.loading-container {
    animation: fadeIn 0.3s ease;
}


.spinner-portfolio {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}


.loading-text {
    font-size: 18px;
    color: #666;
    font-weight: 500;
    animation: pulse 1.5s ease-in-out infinite;
}


.error-container {
    animation: shakeIn 0.5s ease;
}


@keyframes shakeIn {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }


    25% {
        transform: translateX(10px);
    }


    50% {
        transform: translateX(-5px);
    }


    75% {
        transform: translateX(2px);
    }


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


.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 2s ease infinite;
}


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


    50% {
        transform: translateY(-10px);
    }
}


.error-message {
    font-size: 18px;
    color: #e74c3c;
    margin-bottom: 20px;
    max-width: 500px;
    line-height: 1.6;
}


.retry-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}


    .retry-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    }


    .retry-button:active {
        transform: translateY(0);
    }


    .retry-button span {
        font-size: 18px;
        animation: rotate 2s linear infinite;
    }


@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }


    100% {
        transform: rotate(360deg);
    }
}


.empty-container {
    animation: fadeIn 0.5s ease;
}


.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}


.empty-message {
    font-size: 18px;
    color: #999;
    font-weight: 500;
}


.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}


.skeleton-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}


.skeleton-content {
    padding: 20px;
}


.skeleton-title {
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}


.skeleton-description {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}


    .skeleton-description:last-child {
        width: 70%;
    }


@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }


    100% {
        background-position: 200% 0;
    }
}


@media (max-width: 768px) {
    .loading-container, .error-container, .empty-container {
        min-height: 300px;
        padding: 30px 20px;
    }


    .spinner-portfolio {
        width: 50px;
        height: 50px;
    }


    .loading-text, .error-message, .empty-message {
        font-size: 16px;
    }


    .error-icon, .empty-icon {
        font-size: 48px;
    }


    .retry-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}
