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

:root {
    --primary-color: #7ED321;
    --secondary-color: #4CAF50;
    --dark-bg: #1A1A1A;
    --darker-bg: #0F0F0F;
    --text-light: #FFFFFF;
    --text-gray: #B0B0B0;
    --text-dark: #666;
    --accent-green: #00FF88;
    --gradient-green: linear-gradient(135deg, #7ED321 0%, #4CAF50 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
}

.lang-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.lang-btn.active {
    background-color: var(--secondary-color);
}

.lang-btn:hover {
    background-color: var(--secondary-color);
}

/* Sidebar Fijo - Tomado de portfolio_complete */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--darker-bg) 0%, #1a1a1a 100%);
    z-index: 1000;
    padding: 0;
    overflow-y: auto;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* --- INICIO: Estilos de scrollbar para Firefox --- */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--dark-bg);
    /* --- FIN: Estilos de scrollbar para Firefox --- */
}

.sidebar-header {
    padding: 40px 10px 40px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    background: var(--gradient-green);
}

.sidebar-logo h2 {
    font-size: 32px;
    font-weight: 900;
    color: white;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.sidebar-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    list-style: none;
    padding: 30px 20px;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-green);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(126, 211, 33, 0.3);
}

.nav-link i {
    margin-right: 15px;
    font-size: 18px;
    width: 22px;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.2);
}

.nav-link span {
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--gradient-green);
    border: none;
    padding: 15px;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(126, 211, 33, 0.4);
    display: none;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(126, 211, 33, 0.6);
}

.mobile-menu-toggle.active {
    background: #ff4757;
}

.mobile-menu-toggle i {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active i {
    transform: rotate(90deg);
}

/* Overlay para móvil */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- INICIO: Estilos de scrollbar para Webkit (Chrome, Safari, Edge) --- */
.sidebar::-webkit-scrollbar {
    width: 5px; /* Ancho de la barra de scroll */
}

.sidebar::-webkit-scrollbar-track {
    background: var(--dark-bg); /* Color del fondo de la barra */
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: var(--primary-color); /* Color del "pulgar" o la parte móvil */
    border-radius: 10px;
    border: 1px solid var(--dark-bg); /* Crea un pequeño borde alrededor del pulgar */
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-color); /* Color al pasar el mouse */
}
/* --- FIN: Estilos de scrollbar para Webkit --- */

/* Main Content */
.main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    background: 
        radial-gradient(circle at 20% 80%, rgba(126, 211, 33, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(126, 211, 33, 0.08) 0%, transparent 50%),
        var(--dark-bg);
    transition: margin-left 0.4s ease, width 0.4s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

/* Particles Background */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Ocultar partículas en la sección hero */
.hero-section ~ .particles-container {
    display: block;
}

/* Hero Section - Diseño de portfolio (3) */
.hero-section {
    min-height: 100vh;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(126, 211, 33, 0.2) 0%, 
        rgba(76, 175, 80, 0.15) 50%,
        rgba(26, 26, 26, 0.3) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: calc(100vh - 160px);
    position: relative;
    z-index: 5;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
}

.hero-text {
    order: 2;
}

.hero-image {
    order: 1;
    position: relative;
    text-align: center;
}

.hero-image img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

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

.hero-bg-elements {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    z-index: 1;
}

.hero-bg-elements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-green);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 3s ease-in-out infinite;
}

.hero-name {
    font-size: clamp(1.35rem, 3.375vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
    opacity: 1; /* Visible siempre */
    transition: opacity 0.5s ease;
    word-break: break-word;
    hyphens: auto;
   
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-green);
    color: white;
    border: 2px solid transparent;
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(126, 211, 33, 0.4);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.social-links {
    margin-top: 40px;
}

.social-links h5 {
    color: var(--text-gray);
    margin-bottom: 15px;
    font-size: 16px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--darker-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px) scale(1.1);
}

/* Section Headers */
.section {
    padding: 100px 0;
    --section-bg: var(--dark-bg); /* Variable para el color de fondo de la sección */
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.section-title {
    font-size: clamp(1.35rem, 3.375vw, 3rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    position: relative;
    text-transform: uppercase;
    word-break: break-word;
    hyphens: auto;
}

.section-title .outline-text,
.hero-name .outline-text {
    color: transparent;
    -webkit-text-stroke: 2px var(--text-light);
    text-stroke: 2px var(--text-light);
}

.section-title .highlight,
.hero-name .highlight {
    position: relative;
    display: inline-block;
    color: var(--primary-color);
    font-style: italic;
}

/* ESQUINAS DECORATIVAS - Siempre visibles */
.section-title .highlight::before,
.section-title .highlight::after,
.hero-name .highlight::before,
.hero-name .highlight::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid var(--primary-color);
}

.section-title .highlight::before,
.hero-name .highlight::before {
    top: -5px;
    left: -10px;
    border-bottom: none;
    border-right: none;
}

.section-title .highlight::after,
.hero-name .highlight::after {
    bottom: -5px;
    right: -10px;
    border-top: none;
    border-left: none;
}

/* About Section */
.about-section {
    background: var(--darker-bg);
    --section-bg: var(--darker-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: center;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-box {
    background: var(--dark-bg);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-box:hover {
    transform: translateY(-10px);
    background: var(--primary-color);
    border-color: var(--secondary-color);
}

.stat-box:hover .stat-number,
.stat-box:hover .stat-label {
    color: white;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.stat-label {
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.about-text {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.skill-item:hover {
    color: var(--primary-color);
}

.skill-item i {
    color: var(--primary-color);
    font-size: 16px;
}

/* Services Section */
.services-section {
    background: var(--dark-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
}

.service-item {
    background: var(--darker-bg);
    padding: 40px 25px;
    text-align: center;
    position: relative;
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
    transition: all 0.4s ease;
    border: 3px solid transparent;
    overflow: hidden;
    margin: 10px;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(126, 211, 33, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-item:hover::before {
    left: 100%;
}

.service-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-15px);
    background: var(--primary-color);
}

.service-item:hover .service-icon,
.service-item:hover .service-title {
    color: white;
}

.service-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
    text-transform: lowercase;
    transition: color 0.3s ease;
}

/* Skills Section */
.skills-section {
    background: var(--darker-bg);
    --section-bg: var(--darker-bg);
}

.skills-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.skill-box {
    background: var(--dark-bg);
    padding: 50px 30px;
    text-align: center;
    position: relative;
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.skill-box:hover {
    transform: translateY(-10px);
    background: var(--primary-color);
    border-color: var(--secondary-color);
}

.skill-box:hover .skill-icon-large,
.skill-box:hover .skill-name {
    color: white;
}

.skill-percentage {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.skill-icon-large {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.skill-name {
    color: var(--text-light);
    font-weight: 600;
    font-size: 16px;
    text-transform: lowercase;
    transition: color 0.3s ease;
}

/* Portfolio Section */
.portfolio-section {
    background: var(--dark-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.portfolio-item {
    background: var(--darker-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.portfolio-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(126, 211, 33, 0.2);
    border-color: var(--primary-color);
}

.portfolio-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

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

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 30px;
}

.portfolio-tag {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.portfolio-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.3;
}

.portfolio-desc {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 14px;
}

/* Education Section */
.education-section {
    background: var(--dark-bg);
    --section-bg: var(--dark-bg);
}

.education-timeline {
    position: relative;
    margin-top: 60px;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.education-item {
    display: flex;
    margin-bottom: 60px;
    position: relative;
}

.education-item:nth-child(even) {
    flex-direction: row-reverse;
}

.education-content {
    width: 45%;
    background: var(--darker-bg);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.education-item:nth-child(even) .education-content {
    margin-left: 10%;
}

.education-item:nth-child(odd) .education-content {
    margin-right: 10%;
}

.education-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(126, 211, 33, 0.2);
}

.education-date {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}

.education-institution {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
}

.education-degree {
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 15px;
}

.education-desc {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 14px;
}

/* Experience Section */
.experience-section {
    background: var(--darker-bg);
    --section-bg: var(--darker-bg);
}

.experience-timeline {
    position: relative;
    margin-top: 60px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.experience-item {
    display: flex;
    margin-bottom: 60px;
    position: relative;
}

.experience-item:nth-child(even) {
    flex-direction: row-reverse;
}

.experience-content {
    width: 45%;
    background: var(--dark-bg);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.experience-item:nth-child(even) .experience-content {
    margin-left: 10%;
}

.experience-item:nth-child(odd) .experience-content {
    margin-right: 10%;
}

.experience-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(126, 211, 33, 0.2);
}

.experience-date {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}

.experience-company {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
}

.experience-position {
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 15px;
}

.experience-desc {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 14px;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--dark-bg);
}

.testimonial-slider {
    max-width: 800px;
    margin: 60px auto 0;
    text-align: center;
}

.testimonial-item {
    background: var(--darker-bg);
    padding: 50px 40px;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(126, 211, 33, 0.2);
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 25px;
}

.testimonial-stars i {
    color: #FFD700;
    font-size: 20px;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 30px;
    font-style: italic;
}

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

/* Blog Section */
.blog-section {
    background: var(--darker-bg);
    --section-bg: var(--darker-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.blog-item {
    background: var(--dark-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.blog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(126, 211, 33, 0.2);
    border-color: var(--primary-color);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    overflow: hidden;
}

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

.blog-item:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-gray);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.blog-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.blog-link:hover {
    gap: 15px;
}

/* Contact Section */
.contact-section {
    background: var(--dark-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--darker-bg);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-item:hover {
    background: var(--primary-color);
    transform: translateX(10px);
    border-color: var(--secondary-color);
}

.contact-item:hover .contact-details h4,
.contact-item:hover .contact-details a {
    color: white;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-details h4 {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.contact-details a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.contact-form {
    background: var(--darker-bg);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
}

.contact-form h3 {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    background: var(--dark-bg);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(126, 211, 33, 0.05);
}

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

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 60px 0 30px;
    text-align: center;
    border-top: 3px solid var(--primary-color);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-social a {
    width: 50px;
    height: 50px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-5px) scale(1.1);
}

.footer-text {
    color: var(--text-gray);
    font-size: 14px;
}

/* --- Refactored Inline Styles --- */

/* Hero */
.hero-name.text-center {
    text-align: center;
}

/* Portfolio Placeholders */
.portfolio-image.portfolio-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image--gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.portfolio-image--gradient-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.portfolio-image .placeholder-content {
    text-align: center;
    color: white;
}

.portfolio-image .placeholder-content .fas {
    font-size: 48px;
    margin-bottom: 10px;
}

.portfolio-image .placeholder-content p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.portfolio-content > .btn {
    margin-top: 15px;
}

/* Contact Form */
.contact-form .btn {
    width: 100%;
}

.contact-info-section > .btn {
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .hero-content {
        gap: 60px;
    }

    .hero-image img {
        width: 350px;
        height: 350px;
    }

    .skills-display {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        line-height: 1.2;
        word-break: break-word;
        hyphens: auto;
    }

    .hero-name {
        font-size: clamp(2rem, 8vw, 2.8rem);
        line-height: 1.1;
        word-break: break-word;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 40px 0;
    }

    /* Ocultar video en móviles para mejor performance */
    .video-background {
        display: none;
    }

    .hero-section {
        background: var(--dark-bg);
    }

    /* Reducir partículas en móviles */
    .particles-container {
        opacity: 0.6;
    }

    .particle {
        animation-duration: 12s !important;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero-image img {
        width: 280px;
        height: 280px;
    }

    .hero-bg-elements {
        width: 350px;
        height: 350px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .education-timeline::before {
        left: 30px;
    }

    .education-item {
        flex-direction: column !important;
        padding-left: 60px;
    }

    .education-content {
        width: 100% !important;
        margin: 0 !important;
    }

    .experience-timeline::before {
        left: 30px;
    }

    .experience-item {
        flex-direction: column !important;
        padding-left: 60px;
    }

    .experience-content {
        width: 100% !important;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-image img {
        width: 240px;
        height: 240px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .social-icons {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .hero-name {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .skills-display {
        gap: 20px;
    }

    .skill-box,
    .service-item {
        padding: 30px 20px;
    }

    .section-title .outline-text,
    .hero-name .outline-text {
        -webkit-text-stroke: 1px var(--text-light);
        text-stroke: 1px var(--text-light);
    }

    .container {
        padding: 0 15px;
    }
}

/* Media query adicional para pantallas muy pequeñas */
@media (max-width: 360px) {
    .hero-name,
    .section-title {
        font-size: 1.3rem !important;
        line-height: 1.4;
        word-break: break-word;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        font-size: 14px;
        padding: 12px 25px;
    }
    
    .section-title .outline-text,
    .hero-name .outline-text {
        -webkit-text-stroke: 0.5px var(--text-light);
        text-stroke: 0.5px var(--text-light);
    }
}

/* Animaciones Mejoradas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-right.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-left.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Efectos específicos para diferentes elementos */
.service-item {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.skill-box {
    opacity: 0;
    transform: translateY(40px) rotateX(10deg);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-box.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.portfolio-item {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.experience-item {
    opacity: 0;
    transform: translateX(-40px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.experience-item.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.experience-item:nth-child(even) {
    transform: translateX(40px) scale(0.95);
}

.experience-item:nth-child(even).visible {
    transform: translateX(0) scale(1);
}

/* Portfolio iframe optimizations */
.portfolio-item iframe {
    transition: transform 0.3s ease;
    background: var(--darker-bg);
}

.portfolio-item:hover iframe {
    transform: scale(1.02);
}

/* Responsive iframe adjustments */
@media (max-width: 768px) {
    .portfolio-item .portfolio-image iframe {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .portfolio-item .portfolio-image iframe {
        height: 200px;
    }
}

/* === CURSOR PERSONALIZADO (CANVAS) === */
#custom-cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none; /* Allows clicks to go through the canvas */
}

/* En móviles, mostrar cursor normal */
@media (max-width: 1024px) {
    body {
        cursor: auto !important;
    }
    
    .custom-cursor,
    .cursor-trail {
        display: none !important;
    }
}