 :root {
            --primary-color: #007BFF;
            --secondary-color: #0056b3;
            --accent-color: #28a745;
            --dark-color: #2c3e50;
            --light-color: #f8f9fa;
            --text-color: #333;
            --white: #ffffff;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            overflow-x: hidden;
        }
        
        .hero-section {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            padding: 120px 0 80px;
            position: relative;
            overflow: hidden;
        }
        
        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" fill-opacity="0.1"><polygon points="0,100 1000,0 1000,100"/></svg>');
            animation: wave 20s linear infinite;
        }
        
        @keyframes wave {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }
        
        .profile-img {
            width: 210px;
            height: 210px;
            max-width: 100%;
            display: block;
            object-fit: cover;
            border-radius: 50%;
            border: 5px solid rgba(255,255,255,0.3);
            margin: 0 auto 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            animation: float 4s ease-in-out infinite;
            transition: transform 0.3s ease;
            will-change: transform;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-6px); }
        }

        @media (prefers-reduced-motion: reduce) {
            .profile-img {
                animation: none !important;
                transition: none !important;
            }
        }
        
        .lang-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1050;
        }
        
        .lang-btn {
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: none;
            padding: 10px 20px;
            margin: 0 5px;
            border-radius: 50px;
            font-weight: 500;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            will-change: transform;
        }
        
        .lang-btn.active {
            background: var(--primary-color);
            color: white;
            padding: 10px 22px;
        }
        
        .lang-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        }
        
        .section-title {
            position: relative;
            margin-bottom: 50px;
            text-align: center;
        }
        
        .section-title h2 {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--dark-color);
            margin-bottom: 20px;
            position: relative;
        }
        
        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
            border-radius: 2px;
        }
        
        .card {
            border: none;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            overflow: hidden;
            background: white;
        }
        
        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 60px rgba(0,0,0,0.15);
        }
        
        .skill-bar {
            height: 10px;
            background: var(--light-color);
            border-radius: 10px;
            overflow: hidden;
            margin-top: 10px;
        }
        
        .skill-progress {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
            border-radius: 10px;
            transition: width 2s ease;
        }
        
        .experience-item {
            position: relative;
            padding-left: 40px;
            margin-bottom: 30px;
        }
        
        .experience-item::before {
            content: '';
            position: absolute;
            left: 15px;
            top: 0;
            width: 2px;
            height: 100%;
            background: var(--primary-color);
        }
        
        .experience-item .date {
            color: var(--primary-color);
            font-weight: 600;
        }
        
        .contact-item i {
            width: 50px;
            height: 50px;
            background: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-size: 1.2rem;
        }
        
        .cta-button {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            border: none;
            padding: 15px 40px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 50px;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(0,123,255,0.4);
        }
        
        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(0,123,255,0.6);
            color: white;
            text-decoration: none;
        }
        
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease;
        }
        
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        footer {
            background: var(--dark-color);
            color: white;
            padding: 50px 0 30px;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .hero-section {
                padding: 80px 0 60px;
                text-align: center;
            }
            
            .profile-img {
                width: 140px;
                height: 140px;
                object-fit: cover;
            }
            
            .lang-toggle {
                top: 10px;
                right: 10px;
            }
            
            .lang-btn {
                padding: 8px 15px;
                font-size: 0.9rem;
            }
        }
        /*Diseño para certificados*/
        .certs-wrapper {
            width: 70%;
            max-width: 900px;
            margin: 0 auto;
            padding: 0 20px;
            display: block;
            box-sizing: border-box;
            position: relative;
            left: 0;
            right: 0;
        }

        @media (max-width: 768px) {
            .certs-wrapper {
                width: 95%;
                max-width: 100%;
                padding: 0 15px;
            }
        }

        .cert-item {
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 20px;
            border-radius: 15px;
            background: white;
            margin-bottom: 20px;
            border-left: 5px solid var(--primary-color);
            display: block;
            width: 100%;
            box-sizing: border-box;
            will-change: transform;
        }
        
        .cert-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        }
        
        .cert-title {
            font-weight: 700;
            color: var(--dark-color);
            margin-bottom: 10px;
            font-size: 1.3rem;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        
        .cert-date {
            color: var(--primary-color);
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        .cert-emitter, .cert-location {
            color: #666;
            font-size: 0.85rem;
        }
        
        /* Modal para diplomas */
        .cert-modal {
            display: none;
            position: fixed;
            z-index: 1060;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.8);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(10px);
        }
        
        .modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            opacity: 0;
            max-width: 70vw;
            max-height: 70vh;
            width: 90%;
            height: auto;
            background: white;
            border-radius: 15px;
            overflow: hidden;
            animation: modalSlide 0.3s ease forwards;
            will-change: transform, opacity;
        }
        
        @keyframes modalSlide {
            to { 
                opacity: 1;
                transform: translate(-50%, -50%);
            }
        }
        
        .modal-header {
            background: var(--primary-color);
            color: white;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .close-modal {
            font-size: 2rem;
            cursor: pointer;
            transition: color 0.3s ease;
        }
        
        .close-modal:hover {
            color: var(--accent-color);
        }
        
        .modal-image {
            width: 100%;
            height: 60vh;
            object-fit: contain;
            background: #f8f9fa;
        }
        
        @media (max-width: 768px) {
            .modal-content {
                max-width: 95vw !important;
                max-height: 80vh !important;
                width: 95vw !important;
                height: auto !important;
            }
        }

        /* Estilos para PDF modal */
        .modal-pdf {
            width: 100%;
            height: 60vh;
            border: none;
            background: #f8f9fa;
        }

        @media (max-width: 768px) {
            .modal-pdf {
                height: 70vh;
            }
        }
      /* Estilos para Chatbot modal */
      /* CHATBOT MODAL */
        #chatModal {
            display: none;
            position: fixed;
            z-index: 9999;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(10px);
            animation: fadeInBackdrop 0.3s ease;
        }

        @keyframes fadeInBackdrop {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        #chatModal > div {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: 90vw;
            max-height: 90vh;
            width: 95%;
            height: 80%;
            background: white;
            border-radius: 15px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
            animation: slideInModal 0.3s ease forwards;
            will-change: transform;
        }

        @keyframes slideInModal {
            from {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }
        }

        #chatModal .chat-header {
            background: var(--primary-color);
            color: white;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }

        #chatModal .chat-header h5 {
            margin: 0;
            font-weight: 600;
        }

        #chatModal .close-chat {
            font-size: 2rem;
            cursor: pointer;
            color: white;
            transition: color 0.3s ease;
            line-height: 1;
            padding: 0;
            background: none;
            border: none;
            width: auto;
            height: auto;
        }

        #chatModal .close-chat:hover {
            color: var(--accent-color);
        }

        #chatFrame {
            width: 100%;
            flex: 1;
            border: none;
            background: #f8f9fa;
        }

        /* Responsive para Chatbot Modal */
        @media (max-width: 768px) {
            #chatModal > div {
                width: 100%;
                max-width: 100vw;
                height: 100%;
                max-height: 100vh;
                border-radius: 0;
                top: 0;
                left: 0;
                transform: translate(0, 0);
            }

            @keyframes slideInModalMobile {
                from {
                    opacity: 0;
                    transform: translateY(100%);
                }
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }

            #chatModal > div {
                animation: slideInModalMobile 0.3s ease forwards;
            }
            
            #chatFrame {
                height: 100%;
            }
        }