body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    color: white;
}

.background-gradient {
    position: fixed;
    inset: 0;
    z-index: -10;
    height: 100%;
    width: 100%;
    background: radial-gradient(125% 125% at 50% 10%, #000 40%, #63e 100%);
}

.navbar {
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1.2rem 0;
}

.navbar .container-fluid {
    padding: 0 2rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    color: white !important;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}

.tag-open,
.tag-close {
    color: #8b5cf6;
    opacity: 0.9;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logo-text {
    background: linear-gradient(90deg, #63e 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 0 0.1rem;
}

.brand-logo:hover {
    transform: translateY(-2px);
}

.brand-logo:hover .tag-open {
    transform: translateX(-2px);
}

.brand-logo:hover .tag-close {
    transform: translateX(2px);
}

.brand-logo i {
    font-size: 1.5rem;
    background: linear-gradient(90deg, #63e 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: transform 0.3s ease;
}

.brand-logo span {
    background: linear-gradient(90deg, #63e 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-logo:hover {
    transform: translateY(-2px);
}

.brand-logo:hover i {
    transform: rotate(-10deg);
}

.navbar-nav {
    gap: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.8rem 1.5rem;
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #63e 0%, #8b5cf6 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 0.2;
}

.nav-link.active {
    color: white !important;
    font-weight: 600;
    background: linear-gradient(90deg, rgba(102, 51, 238, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    box-shadow: 0 4px 15px rgba(102, 51, 238, 0.15);
}

.nav-link.active::before {
    opacity: 0.3;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler .bi-list {
    font-size: 2rem;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(102, 51, 238, 0.1);
        backdrop-filter: blur(10px) saturate(180%);
        -webkit-backdrop-filter: blur(10px) saturate(180%);
        border: 1px solid rgba(102, 51, 238, 0.2);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1.5rem;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    }

    .navbar-nav {
        gap: 0.8rem;
    }

    .nav-link {
        padding: 0.8rem 1.2rem;
        margin: 0.4rem 0;
    }

    .navbar .container-fluid {
        padding: 0 1rem;
    }

    .brand-logo {
        font-size: 1.1rem;
    }

    .brand-logo i {
        font-size: 1.3rem;
    }
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 0 5rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0;
    padding: 0 2rem;
}

.hero-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3.5rem;
    justify-content: flex-start;
}

.hero-text-container {
    max-width: 800px;
    margin: 0;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.35rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 750px;
    margin-left: 0;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-left: 0;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 0 4rem;
        min-height: auto;
    }

    .hero-header {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 2.75rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        gap: 1rem;
    }

    .status-badge {
        width: 100%;
        justify-content: center;
    }

    .hero-content {
        padding: 0 1rem;
    }
}

.status-badge {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    margin-bottom: 0;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
    transform-origin: center;
    animation: badgePulse 2s infinite;
}

.status-badge:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    transform: scale(1.05);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: #22c55e;
    opacity: 0.4;
    animation: ripple 2s infinite;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-section {
        padding: 5rem 0 2rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .status-badge {
        margin-bottom: 2rem;
    }

    .hero-buttons {
        margin-top: 2rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.btn-primary-custom,
.btn-outline-custom {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
}

.btn-primary-custom {
    background: linear-gradient(90deg, #63e 0%, #8b5cf6 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 51, 238, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 51, 238, 0.4);
}

.btn-outline-custom {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-outline-custom:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-buttons {
        gap: 0.8rem;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
}

.section-custom {
    padding: 5rem 0;
    position: relative;
}

.section-custom:first-of-type {
    padding-top: 3rem;
}

.section-custom:last-of-type {
    padding-bottom: 6rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, #63e 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.experience-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 51, 238, 0.1);
}

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

.experience-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #8b5cf6;
}

.company-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

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

.achievement-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.achievement-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #8b5cf6;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.education-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
}

.education-icon {
    font-size: 2.5rem;
    color: #8b5cf6;
    margin-bottom: 1rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.course-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.course-card:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .experience-card {
        padding: 1.5rem;
    }

    .company-info {
        flex-direction: column;
        gap: 0.5rem;
    }

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

.complementary-education {
    margin-top: 4rem;
}

.subsection-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #8b5cf6;
}

.platforms-info {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.course-card i {
    font-size: 1.5rem;
    color: #8b5cf6;
    flex-shrink: 0;
}

.course-card span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.4;
}

.course-card:hover {
    transform: translateY(-3px);
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .course-card {
        padding: 1rem;
    }
}

.tech-categories {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.tech-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.category-title {
    color: #8b5cf6;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-card i {
    font-size: 2.5rem;
    color: #8b5cf6;
    transition: transform 0.3s ease;
}

.tech-card .tech-icon {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tech-card .powerbi-icon {
    width: 3rem;
    height: 3rem;
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
    transition: all 0.3s ease;
}

.tech-card:hover .powerbi-icon {
    filter: drop-shadow(0 4px 8px rgba(255, 193, 7, 0.5));
    transform: scale(1.1);
}

.tech-card .powerbi-icon {
    width: 2.8rem;
    height: 2.8rem;
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.2));
    transition: all 0.3s ease;
}

.tech-card:hover .powerbi-icon {
    filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.4));
    transform: scale(1.1);
}

.tech-card:hover i,
.tech-card:hover .tech-icon {
    transform: scale(1.1);
}

.tech-card span {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

.tech-card:hover {
    transform: translateY(-5px);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.devicon-github-original.colored {
    color: #fff !important;
}

.tech-card:hover .devicon-github-original.colored {
    color: #8b5cf6 !important;
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    .tech-card {
        padding: 1rem;
    }

    .tech-card i,
    .tech-card .tech-icon {
        font-size: 2rem;
        width: 2rem;
        height: 2rem;
    }

    .tech-card .powerbi-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.hero-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    justify-content: flex-start;
}

.profile-image {
    flex-shrink: 0;
    position: relative;
}

.rounded-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.profile-image::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(102, 51, 238, 0.5), rgba(139, 92, 246, 0.5));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.profile-image:hover::after {
    opacity: 1;
}

.rounded-image:hover {
    transform: scale(1.05) rotate(5deg);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

@media (max-width: 768px) {
    .hero-header {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .status-badge {
        height: 36px;
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .status-dot {
        width: 6px;
        height: 6px;
    }

    .rounded-image {
        width: 70px;
        height: 70px;
        border-width: 2px;
        padding: 2px;
    }
}

#experiencia {
    padding-top: 4rem;
}

#tecnologias {
    padding-top: 4rem;
}

#educacion {
    padding-top: 4rem;
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
    .section-custom {
        padding: 4rem 0;
    }

    .section-custom:first-of-type {
        padding-top: 2rem;
    }

    .section-custom:last-of-type {
        padding-bottom: 5rem;
    }

    .hero-section {
        padding: 5rem 0 2rem;
    }

    #experiencia, #tecnologias, #educacion {
        padding-top: 3rem;
    }

    #educacion {
        padding-bottom: 4rem;
    }
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.scroll-top-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

.brand-logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.3s ease;
}

.logo-bracket {
    font-size: 1.5rem;
    font-weight: 600;
    color: #8b5cf6;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
    line-height: 1;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0.2rem;
    background: linear-gradient(90deg, #63e 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.5px;
}

.brand-logo:hover .logo-container {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.brand-logo:hover .logo-bracket {
    opacity: 1;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.brand-logo:hover .logo-bracket.logo-left {
    transform: translateX(-3px);
}

.brand-logo:hover .logo-bracket.logo-right {
    transform: translateX(3px);
}

@media (max-width: 991px) {
    .logo-container {
        padding: 0.5rem 0.8rem;
    }

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

    .logo-bracket {
        font-size: 1.4rem;
    }
}

.custom-toggler {
    border: none !important;
    padding: 0.5rem !important;
    background: rgba(139, 92, 246, 0.1) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.custom-toggler:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    transform: translateY(-2px);
}

.hamburger-icon {
    stroke: url(#gradient);
    stroke-width: 2;
    stroke-linecap: round;
}

.custom-toggler .line {
    fill: none;
    transition: all 0.3s ease;
    stroke: #8b5cf6;
}

.custom-toggler:hover .line {
    stroke: #63e;
}

.navbar-toggler[aria-expanded="true"] .line-1 {
    transform: translateY(5px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .line-2 {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .line-3 {
    transform: translateY(-5px) rotate(-45deg);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.status-badge {
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.status-badge:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-header {
        margin-bottom: 2rem;
    }

    .profile-info {
        width: 100%;
        gap: 1.2rem;
    }

    .status-badge {
        height: 34px;
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .profile-info {
        align-items: center;
        text-align: center;
    }

    .status-badge {
        width: auto;
        min-width: 200px;
        justify-content: center;
    }
}

.profile-wrapper {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: nowrap;
}

.hero-header {
    margin-bottom: 3rem;
}

.status-badge {
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .profile-wrapper {
        gap: 1rem;
        width: 100%;
        justify-content: flex-start;
    }

    .status-badge {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
}

@media (max-width: 480px) {
    .profile-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .status-badge {
        width: auto;
        min-width: auto;
    }
}

.profile-wrapper {
    margin-bottom: 2rem;
}

.profile-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: nowrap;
    width: fit-content;
    position: relative;
}

.profile-image {
    width: 90px;
    display: flex;
    align-items: center;
}

.status-badge {
    position: relative;
    left: 1rem;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .profile-row {
        gap: 0.8rem;
    }

    .profile-image {
        width: 70px;
    }

    .status-badge {
        left: 0.8rem;
        height: 34px;
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .profile-row {
        gap: 0.6rem;
    }

    .status-badge {
        left: 0.6rem;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

.profile-row {
    display: flex;
    align-items: center;
    width: auto;
    position: relative;
}

.profile-image {
    display: inline-flex;
    align-items: center;
    margin-right: -10px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0.5rem 1.25rem;
    position: relative;
    margin-left: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .profile-row {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }

    .profile-image {
        margin-right: -8px;
    }

    .status-badge {
        margin-left: 16px;
        height: 34px;
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .profile-row {
        flex-direction: row;
        width: auto;
    }

    .profile-image {
        margin-right: -6px;
    }

    .status-badge {
        margin-left: 14px;
        font-size: 0.85rem;
    }
}

.profile-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.profile-image {
    position: relative;
    z-index: 2;
}

.status-badge {
    position: absolute;
    left: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    transition: all 0.3s ease;
    z-index: 1;
}

.status-badge:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
    transform: translateY(-50%) scale(1.02);
}

@media (max-width: 768px) {
    .profile-container {
        display: inline-flex;
    }

    .status-badge {
        left: calc(100% + 12px);
        height: 34px;
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .status-badge {
        left: calc(100% + 10px);
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

.coming-soon-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.coming-soon-content {
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-icon {
    font-size: 4rem;
    color: #8b5cf6;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
    transform-origin: center;
    will-change: transform;
}

.coming-soon-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #63e 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.coming-soon-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.code-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Consolas', monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
    position: relative;
    min-height: 100px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.code-line.typing {
    color: #8b5cf6;
    position: relative;
    animation: typing 3s steps(30) infinite;
}

.code-line.typing::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 1s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes typing {
    0%, 100% { width: 0; }
    50% { width: 100%; }
}

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

@media (max-width: 768px) {
    .coming-soon-container {
        padding: 3rem 1.5rem;
    }

    .coming-soon-icon {
        font-size: 3rem;
    }

    .coming-soon-title {
        font-size: 2rem;
    }

    .coming-soon-text {
        font-size: 1.1rem;
    }

    .code-animation {
        padding: 1rem;
    }

    .code-line {
        font-size: 0.9rem;
    }
}

.footer-section {
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

.footer-text i {
    color: #8b5cf6;
    margin: 0 0.3rem;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

::-webkit-scrollbar {
    width: 10px;
    background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #63e 0%, #8b5cf6 100%);
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8b5cf6 0%, #63e 100%);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 rgba(255, 255, 255, 0.03);
}

.about-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-description {
    margin-bottom: 3rem;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.highlight-box {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #8b5cf6;
    margin-top: 2rem;
}

.highlight { 
    color: #8b5cf6;
    
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card i {
    font-size: 2rem;
    color: #8b5cf6;
}

.stat-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stat-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

@media (max-width: 768px) {
    .about-container {
        padding: 1.5rem;
    }

    .about-text {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .highlight-box {
        padding: 1.2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.company-main, .company-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.company-name, .location, .date, .job-type {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.company-name {
    color: #8b5cf6;
    font-weight: 500;
}

.company-divider {
    color: rgba(255, 255, 255, 0.3);
}

.job-type {
    background: rgba(139, 92, 246, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .company-main, .company-details {
        gap: 0.5rem;
    }

    .company-info {
        gap: 0.75rem;
    }

    .company-name, .location, .date {
        font-size: 0.9rem;
    }

    .job-type {
        font-size: 0.8rem;
    }
}

.coming-soon-wrapper {
    min-height: 500px;
    position: relative;
    margin: 3rem 0;
}

.coming-soon-container {
    width: 100%;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.coming-soon-icon {
    display: inline-block;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@media (max-width: 768px) {
    .coming-soon-wrapper {
        min-height: 450px;
    }
}

.code-animation-wrapper {
    height: 120px;
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}

.code-animation {
    position: relative;
    width: 100%;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.code-line {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Consolas', monospace;
    font-size: 1rem;
    line-height: 1.5;
}

.code-line.static {
    opacity: 0.8;
}

.code-line.typing {
    color: #8b5cf6;
    position: relative;
    width: fit-content;
}

.code-editor {
    width: 100%;
    max-width: 500px;
    margin: 2rem auto;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.code-header {
    background: #2d2d2d;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.filename {
    color: #858585;
    font-size: 0.9rem;
    margin-left: 1rem;
    font-family: 'Consolas', monospace;
}

.code-content {
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    min-height: 180px;
}

.line-numbers {
    display: flex;
    flex-direction: column;
    color: #858585;
    font-family: 'Consolas', monospace;
    user-select: none;
}

.code-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.code-line {
    font-family: 'Consolas', monospace;
    font-size: 1rem;
    line-height: 1.5;
    color: #d4d4d4;
}

.keyword { color: #569cd6; }
.variable { color: #9cdcfe; }
.operator { color: #d4d4d4; }
.string { color: #ce9178; }
.comment { color: #6a9955; }

.typing {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(30) infinite;
}

.blink {
    animation: blink 1s step-end infinite;
    color: #8b5cf6;
}

@keyframes typing {
    0%, 100% { width: 0; }
    50% { width: 100%; }
}

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

@media (max-width: 768px) {
    .code-editor {
        max-width: 100%;
        margin: 1.5rem auto;
    }

    .code-content {
        padding: 1rem;
        min-height: 150px;
    }

    .code-line {
        font-size: 0.9rem;
    }
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.certificate-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.2);
}

.certificate-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.certificate-overlay {
    position: absolute;
    inset: 0;
    background: rgba(102, 51, 238, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.view-certificate {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.view-certificate:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    color: white;
}

.certificate-info {
    padding: 1.5rem;
}

.certificate-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.certificate-issuer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #8b5cf6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.certificate-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.certificate-date,
.certificate-type {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .certificate-info {
        padding: 1.2rem;
    }

    .certificate-info h3 {
        font-size: 1.1rem;
    }

    .certificate-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.certificate-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    position: relative;
    padding: 2rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.certificate-viewer {
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.certificate-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.modal-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.zoom-control {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-control:hover {
    background: rgba(139, 92, 246, 0.3);
}

/* Animación de entrada para el modal */
@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    animation: modalIn 0.3s ease forwards;
}

.certificates-category {
    margin-bottom: 4rem;
}

.certificates-category:last-child {
    margin-bottom: 0;
}

.certificates-category .category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #8b5cf6;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.certificates-category .category-title i {
    font-size: 1.6rem;
}

.coming-soon-certificate {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    grid-column: 1 / -1;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-content {
    color: rgba(255, 255, 255, 0.7);
}

.coming-soon-content i {
    font-size: 3rem;
    color: #8b5cf6;
    margin-bottom: 1rem;
    display: block;
    animation: pulse 2s infinite;
}

.coming-soon-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.coming-soon-content p {
    font-size: 1rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .certificates-category .category-title {
        font-size: 1.5rem;
    }

    .certificates-category .category-title i {
        font-size: 1.4rem;
    }

    .coming-soon-certificate {
        padding: 2rem 1rem;
        min-height: 250px;
    }

    .coming-soon-content i {
        font-size: 2.5rem;
    }

    .coming-soon-content h4 {
        font-size: 1.3rem;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* Proyectos Styles - Mejorados y corregidos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.project-card {
    background: rgba(20, 20, 30, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Altura mínima pero permitiendo crecer */
    min-height: 540px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(30, 30, 40, 0.5);
}

.project-image {
    position: relative;
    height: 200px; /* Altura fija para las imágenes */
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(102, 51, 238, 0.7); /* Ajustado para mejor visibilidad */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.project-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.view-live {
    background: rgba(255, 255, 255, 0.9);
    color: #8b5cf6;
}

.view-code {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.view-live:hover {
    background: rgba(255, 255, 255, 1);
}

.view-code:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.project-info {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #8b5cf6;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95); /* Mayor opacidad para mejor legibilidad */
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Eliminar restricción de altura para mostrar texto completo */
    min-height: 4.8rem; /* Mínimo de altura igual a 3 líneas */
}

/* Estilo para descripciones de proyectos enfocadas a código */
.project-description {
    font-family: 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(220, 220, 220, 0.95);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    min-height: 4.8rem;
    padding: 0.8rem;
    position: relative;
    background: rgba(20, 20, 30, 0.3);
    border-radius: 6px;
    border-left: 3px solid rgba(139, 92, 246, 0.4);
}

.project-description::before {
    content: '/**';
    display: block;
    color: #6a9955;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.project-description::after {
    content: '*/';
    display: block;
    color: #6a9955;
    margin-top: 0.5rem;
    font-weight: 500;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-tag {
    background: rgba(139, 92, 246, 0.15);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.tech-tag:hover {
    background: rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
}

/* Icono Astro monocromo blanco para tech-tags */
.tech-tag .icon-astro {
    width: 18px;
    height: 18px;
    vertical-align: text-bottom;
    margin-right: 6px;
    filter: brightness(0) invert(1);
    display: inline-block;
}

/* Project Card Code-Themed Styles - Mejorados */
.project-card.code-themed {
    background: rgba(25, 25, 35, 0.6); /* Mejor contraste pero manteniendo transparencia */
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-card-header {
    background: rgba(45, 45, 55, 0.7);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.window-dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-title-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #8b5cf6;
    font-family: 'Consolas', monospace;
    font-size: 0.95rem;
    font-weight: 500;
}

.project-title-bar i {
    font-size: 1.1rem;
    color: #8b5cf6;
}

.code-comment {
    color: #6a9955;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.project-card.code-themed .project-info {
    padding: 1.5rem;
    background: rgba(25, 25, 35, 0.5); 
}

.project-card.code-themed .project-info h3 {
    color: #8b5cf6;
    font-family: 'Consolas', monospace;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-card.code-themed .project-info h3::before {
    content: 'function';
    color: #569cd6;
    font-size: 0.85rem;
    font-weight: normal;
}

.project-card.code-themed .project-info h3::after {
    content: '()';
    color: #d4d4d4;
}

.project-card.code-themed .project-description {
    color: rgba(220, 220, 220, 0.95);
    font-size: 0.95rem;
    min-height: 4.56rem;
    background: rgba(30, 30, 40, 0.4);
    border-left: 3px solid #6a9955;
}

.code-highlight {
    color: #ce9178;
    font-weight: 500;
}

.code-method {
    color: #dcdcaa;
}

.code-keyword {
    color: #569cd6;
}

.code-variable {
    color: #9cdcfe;
}

.code-string {
    color: #ce9178;
}

.project-card.code-themed .tech-tag.active-tag {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.4);
}

.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    animation: typingSlowly 8s steps(50, end) infinite;
    display: inline-block;
    color: #dcdcaa;
}

@keyframes typingSlowly {
    0%, 100% { width: 0; }
    20%, 80% { width: 100%; }
}

@media (max-width: 768px) {
    .project-description {
        padding: 0.6rem;
        font-size: 0.9rem;
        min-height: 3.8rem;
    }
    
    .project-card.code-themed .project-description {
        min-height: 4rem;
    }
    
    .project-card.code-themed .project-info h3::before {
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }

    .project-card {
        min-height: 520px;
    }

    .project-image {
        height: 180px;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    .project-description {
        font-size: 0.95rem;
        min-height: 3.8rem; /* Ajustado para móviles pero sin restricción fija */
    }

    .project-overlay {
        flex-direction: column;
        gap: 0.8rem;
    }

    .project-card.code-themed .project-info {
        padding: 1.2rem;
    } 
    
    .project-card-header {
        padding: 0.5rem 0.8rem;
    }
    
    .project-title-bar {
        font-size: 0.85rem;
    }
}

/* Estilos para las animaciones AOS */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Aseguramos que las animaciones no afecten negativamente a la navegación */
.navbar [data-aos] {
    pointer-events: auto !important;
}

/* Prevenir el efecto de "salto" que puede ocurrir con AOS */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Mejora para el efecto de fade */
[data-aos="fade-up"], 
[data-aos="fade-down"], 
[data-aos="fade-left"], 
[data-aos="fade-right"] {
    transition-property: opacity, transform;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    [data-aos-delay] {
        transition-delay: 0s !important; /* Elimina retrasos en móviles para una experiencia más rápida */
    }
}

/* Estilo para hacer visible el botón de cerrar */
.btn-custom-visible {
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #dee2e6;
    color: #6c757d;
}

.btn-custom-visible:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #495057;
}

/* Estilos para el formulario de contacto */
.contact-form-wrapper {
    padding: 0.5rem;
}

.contact-form-wrapper p {
    color: white !important;
}

.form-floating > .form-control,
.form-floating > .form-select {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3) !important;
}

.form-floating > label {
    color: rgba(255, 255, 255, 0.7) !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: rgba(255, 255, 255, 0.9) !important;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem) !important;
}

.form-floating > textarea.form-control {
    height: 150px;
}

.form-floating > textarea.form-control:focus ~ label,
.form-floating > textarea.form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-1rem) translateX(0.15rem) !important;
}

.invalid-feedback {
    color: #ff6b6b !important;
    font-weight: 500 !important;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.form-control.is-valid,
.was-validated .form-control:valid {
    border-color: #198754 !important;
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.form-response .alert {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 0.75rem !important;
    border-radius: 8px !important;
}

.form-response .alert-success {
    background-color: rgba(25, 135, 84, 0.2) !important;
    border-color: rgba(25, 135, 84, 0.3) !important;
    color: #d1e7dd !important;
}

.form-response .alert-danger {
    background-color: rgba(220, 53, 69, 0.2) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
    color: #f8d7da !important;
}

/* Estilos adicionales para el modal de contacto */
#contactModal .modal-content {
    background-color: rgba(30, 30, 40, 0.95) !important;
    color: white !important;
}

#contactModal .modal-header,
#contactModal .modal-footer {
    border-color: rgba(255, 255, 255, 0.1) !important;
}