@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700|Montserrat:400,700');

.cv {
    padding: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-page);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

.cv aside {
    margin-bottom: 60px;
    text-align: center;
}

.cv aside img {
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cv aside img:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 25px rgba(0, 51, 102, 0.2);
}

.cv aside h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: var(--text-main);
    margin-top: 20px;
    position: relative;
    display: inline-block;
}

.cv aside h2>span {
    color: var(--primary-color);
    /* Azul oscuro */
}

.cv aside h2:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    /* Azul oscuro */
    margin: 10px auto 0;
}

.cv aside p {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
}

.cv aside ul.info {
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.cv aside ul.info li {
    margin-bottom: 10px;
}

.cv aside ul.info a {
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cv aside ul.info a:hover {
    color: var(--primary-color);
    /* Azul oscuro */
}

.cv aside ul.info a i {
    background: var(--primary-color);
    /* Azul oscuro */
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.cv aside ul.info a:hover i {
    background: #000000;
    /* Negro */
    transform: scale(1.1);
}

.cv section {
    margin-bottom: 30px;
}

.cv h1,
.cv h3,
.cv h4 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
}

.cv h1 {
    margin: 60px 0 30px;
    font-size: 24px;
    border-bottom: 2px solid var(--title-border);
    /* Azul oscuro */
    padding-bottom: 10px;
}

.cv h3 {
    font-size: 18px;
    line-height: 22px;
}

.cv h4 {
    font-size: 14px;
    line-height: 16px;
    color: var(--text-muted);
}

.cv .skills section {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.cv .skills section:hover {
    transform: translateX(5px);
}

.cv .skills section p {
    margin: 0;
    margin-right: auto; /* Empuja las bolitas a la derecha */
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.cv .skills section span {
    display: block;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    /* Azul oscuro */
    border-radius: 50%;
    margin-left: 4px; /* Espacio entre bolitas */
}

.cv .skills section span.full {
    background: #000000;
    /* Negro */
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .cv aside {
        margin-bottom: 40px;
        padding-bottom: 30px;
        border-bottom: 1px solid #ccc;
    }
    
    .cv .skills .col-md-4 {
        margin-bottom: 25px;
    }
    .cv .skills .col-md-4:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .cv {
        padding: 20px 15px;
        margin-top: 15px;
        margin-bottom: 15px;
        border-radius: 10px;
    }
    
    .cv aside {
        margin-bottom: 30px;
        border-bottom: none;
        padding-bottom: 0;
    }

    .cv aside .profile-img {
        max-width: 200px;
        border-radius: 24px;
        margin-bottom: 20px;
    }

    .contact-card {
        padding: 12px 16px !important;
        margin-bottom: 12px !important;
    }
    .contact-card i {
        width: 38px !important;
        height: 38px !important;
        line-height: 38px !important;
        font-size: 18px !important;
        margin-right: 12px !important;
        border-radius: 12px !important;
    }
    
    .tech-stack-container,
    .languages-block .lang-card,
    .services-block .service-card {
        padding: 20px !important;
        border-radius: 12px !important;
    }

    .cv aside ul.info a {
        font-size: 13.5px;
        word-wrap: break-word;
    }

    .cv h1 {
        font-size: 20px;
        margin: 25px 0 15px;
    }
    
    .cv section h3 {
        font-size: 17px;
    }
    
    .cv section h4 {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .cv section p {
        font-size: 13px;
    }
    
    /* Premium Widgets Mobile Adjustments */
    .course-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .btn-project-link { 
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .cv aside ul.info a i {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 14px;
        margin-right: 10px;
    }
    
    .cv .skills section span {
        width: 12px;
        height: 12px;
        margin-left: 3px;
    }
    
    .cv .skills section p {
        font-size: 13px;
    }
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}
/* ==========================================================================
   PREMIUM REFINEMENT & GLASSMORPHISM
   ========================================================================== */

:root {
    --primary-color: var(--primary-color);
    --accent-color: #0070f3;
    --text-main: #1a202c;
    --text-muted: #4a5568;
    --bg-body: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    --bg-page: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.3);
    --card-bg: rgba(255, 255, 255, 0.5);
    --card-border: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --icon-bg: rgba(0, 51, 102, 0.06);
    --title-border: #003366;
    --text-btn: #ffffff;
    --text-btn-secondary: #003366;
}

body.dark-mode {
    --primary-color: #38bdf8;
    --accent-color: #818cf8;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --bg-body: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    --bg-page: rgba(15, 23, 42, 0.85);
    --border-color: rgba(255, 255, 255, 0.05);
    --card-bg: rgba(30, 41, 59, 0.4);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    --icon-bg: rgba(56, 189, 248, 0.1);
    --title-border: #38bdf8;
    --text-btn: #020617;
    --text-btn-secondary: #38bdf8;
}

body {
    background: var(--bg-body);
    color: var(--text-main);
    transition: background 0.5s ease, color 0.5s ease;
}

.cv {
    background: var(--bg-page) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px !important;
    padding: 40px !important;
    margin-top: 50px !important;
    margin-bottom: 50px !important;
    box-shadow: var(--card-shadow);
    transition: background 0.5s ease, border 0.5s ease;
}

h1, h2, h3, h4, .service-title, .lang-title {
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: -0.02em;
}

/* Profile Image */
.profile-img {
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 30px !important;
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.12);
    margin: 0 auto 25px auto;
    display: block;
    border: 6px solid #ffffff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 51, 102, 0.18);
}

/* Contact Section */
.contact-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 51, 102, 0.1), transparent);
    margin-left: 15px;
}

ul.info-rediseñada {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.info-rediseñada li {
    margin-bottom: 15px;
}

ul.info-rediseñada a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background: var(--card-bg);
    border-radius: 16px;
    color: var(--text-main) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
}

ul.info-rediseñada a:hover {
    background: #ffffff;
    color: var(--primary-color) !important;
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.08);
    transform: translateX(8px);
    border-color: var(--primary-color);
}

ul.info-rediseñada i {
    width: 36px;
    height: 36px;
    background: rgba(0, 51, 102, 0.06);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

ul.info-rediseñada a:hover i {
    background: var(--primary-color);
    color: #ffffff;
}

/* Service Cards */
.service-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-12px);
    background: #ffffff;
    box-shadow: 0 25px 50px rgba(0, 51, 102, 0.1);
}

/* Tech Stack */
.tech-stack-container {
    background: var(--card-bg) !important;
    border-radius: 20px !important;
    padding: 35px !important;
    border: 1px solid var(--card-border) !important;
    box-shadow: var(--card-shadow) !important;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tech-badge {
    filter: grayscale(0.2);
    transition: all 0.4s ease !important;
}

.tech-badge:hover {
    filter: grayscale(0);
    transform: scale(1.1) rotate(2deg) !important;
}


/* Language Cards Custom */
.lang-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 20px !important;
    transition: all 0.4s ease !important;
}

.lang-card:hover {
    background: #ffffff !important;
    transform: translateY(-8px) !important;
}

/* Download CV Button */
.btn-download-cv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
    padding: 15px 25px;
    background: var(--primary-color);
    color: #ffffff !important;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.2);
}

.btn-download-cv:hover {
    background: var(--accent-color);
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 112, 243, 0.3);
}

.btn-download-cv i {
    margin-right: 12px;
}

/* Projects Section */
.project-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #f0f4f8;
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.project-img {
    width: 100%;
    height: 200px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.project-info {
    padding: 20px;
}

.project-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.project-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}


/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered transition delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* Restoration of Language Styles */
.lang-card {
    background: var(--card-bg) !important;
    padding: 24px !important;
    border-radius: 20px !important;
    border: 1px solid var(--card-border) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease !important;
    margin-bottom: 20px;
}

.lang-card:hover {
    background: #ffffff !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.1) !important;
}

.lang-watermark {
    position: absolute;
    top: -15px;
    right: -15px;
    opacity: 0.12; /* Aumentado para que sea visible de día */
    font-size: 110px;
    color: var(--title-border);
    transition: all 0.4s ease;
    pointer-events: none;
}

.lang-card:hover .lang-watermark {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.08;
}

.lang-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.lang-icon-box {
    background: var(--primary-color);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    font-size: 20px;
    box-shadow: 0 8px 15px rgba(0, 51, 102, 0.2);
}

.lang-title { 
    margin: 0; 
    font-weight: 800; 
    color: var(--text-main); 
    font-size: 19px; 
}

.lang-subtitle { 
    font-size: 11px; 
    color: var(--text-muted); 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.lang-badge-success {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 200, 83, 0.1);
    color: #00b049;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.lang-skills { 
    display: flex; 
    gap: 12px; 
}

.lang-skill {
    background: var(--card-bg);
    border: 1px solid rgba(0, 51, 102, 0.05);
    padding: 10px 15px;
    border-radius: 12px;
    flex: 1;
    transition: all 0.3s ease;
}

.lang-card:hover .lang-skill {
    background: #f8fafc;
    border-color: rgba(0, 51, 102, 0.1);
}

.lang-skill-label { 
    font-size: 10px; 
    color: var(--text-muted); 
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px; 
}

.lang-skill-value { 
    font-weight: 700; 
    color: var(--primary-color); 
    font-size: 15px; 
}


/* Course / Education Cards */
.course-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 51, 102, 0.05);
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.course-card:hover {
    background: #ffffff;
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.06);
    border-color: rgba(0, 51, 102, 0.1);
}

.course-icon {
    min-width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.2);
}

.course-content h3 {
    font-size: 17px;
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-weight: 800;
}

.course-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}


/* Carousel Premium Styles */
#cert-carousel {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 20px;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 50px rgba(0, 51, 102, 0.1);
    margin-bottom: 50px;
    overflow: hidden;
}

.carousel-inner .item {
    text-align: center;
    padding: 20px;
}

.carousel-inner .item img {
    max-height: 450px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.5s ease;
}

.carousel-inner .item:hover img {
    transform: scale(1.02);
}

.carousel-caption {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,51,102,0.8), transparent);
    padding: 40px 20px 20px;
    border-radius: 0 0 15px 15px;
    margin-top: -60px;
    z-index: 10;
}

.carousel-caption h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.carousel-control {
    width: 8%;
    background-image: none !important;
    opacity: 0.8;
}

.carousel-control .glyphicon {
    font-size: 40px;
    color: var(--primary-color);
}

.carousel-control:hover {
    opacity: 1;
}

.carousel-indicators li {
    background-color: rgba(0, 51, 102, 0.2);
    border: none;
    width: 12px;
    height: 12px;
    margin: 3px;
}

.carousel-indicators .active {
    background-color: var(--primary-color);
    width: 14px;
    height: 14px;
    margin: 2px;
}


/* Multi-item Carousel Refinement */
#cert-carousel {
    max-width: 900px;
    margin: 0 auto 50px auto;
}

/* Single certificate per slide */
.cert-card-single {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 20px auto;
    transition: all 0.3s ease;
    text-align: center;
}

.cert-card-single:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 51, 102, 0.15);
}

.cert-card-single img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
}

.cert-card-single .cert-title-mini {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
}

/* Mobile adjustments for Certificates */
@media (max-width: 768px) {
    .cert-card-single {
        padding: 15px;
        margin: 10px auto;
        max-width: 100%;
    }
    
    .cert-card-single .cert-title-mini {
        font-size: 13px;
    }
}


/* Lightbox Premium Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border: 4px solid #ffffff;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--primary-color);
    color: #ffffff;
}


/* Experience Cards Style */
.exp-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    display: flex;
    gap: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
    overflow: hidden;
}

.exp-card:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.08);
    border-color: var(--primary-color);
}

.exp-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exp-card:hover::before {
    opacity: 1;
}

.exp-icon-box {
    min-width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.15);
}

.exp-info {
    flex: 1;
}

.exp-info h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.exp-info h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exp-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exp-info ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.exp-info ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 800;
}

@media (max-width: 768px) {
    .exp-card {
        flex-direction: column;
        padding: 20px;
    }
}


/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 10001;
    background: transparent;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    width: 0%;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
    color: white;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-muted);
}

/* Soft Skills Badges */
.soft-skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.soft-skill-badge {
    background: rgba(0, 51, 102, 0.05);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(0, 51, 102, 0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.soft-skill-badge i {
    margin-right: 8px;
    font-size: 14px;
}

.soft-skill-badge:hover {
    background: var(--primary-color);
    color: white;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 25px;
    border: 1px solid var(--card-border);
    position: relative;
}

.testimonial-card i.quote-icon {
    font-size: 30px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 14px;
}

.testimonial-pos {
    font-size: 11px;
    color: var(--text-muted);
}


/* Project Links Style */
.project-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-project-link {
    font-size: 11px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none !important;
    background: #0070f3 !important; /* Azul vibrante estándar para Demo */
    color: #ffffff !important;
    border: none;
    display: inline-flex;
    align-items: center;
}

.btn-project-link.secondary {
    background: #24292e !important; /* Color de marca GitHub */
    color: #ffffff !important;
    border: none;
}

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

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 20px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: #ffffff;
}

/* End of stylesheet */

/* Custom Cursor */
#custom-cursor {
    width: 25px;
    height: 25px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10005;
    transition: width 0.3s, height 0.3s, transform 0.1s;
    display: none; /* Hidden on mobile */
}

@media (min-width: 992px) {
    #custom-cursor { display: block; }
}

