/* Variables CSS */
:root {
    --logo-glow-color: #00ff00; /* Verde */
    --primary-color: #00d4ff;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Variables para la bola de nieve */
    --globe-size: 15vh;
    --globe-inner-size: calc(var(--globe-size) - var(--globe-glass-width));
    --globe-glass-width: calc(var(--globe-size) / 50);
    --globe-color: rgba(255, 255, 255, 0.3);
    --color-base: #8B4513;
    --color-wall-light: #D2B48C;
    --color-wall-dark: #A0522D;
    --flake-size: 0.3vh;
}

/* Transiciones suaves para el cambio de tema */
body, .glass-navbar, .navbar-nav .nav-link, .theme-toggle-button, .btn {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Overlay para animación de transición de tema */
.theme-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.theme-transition-overlay.active {
    opacity: 1;
}

/* Animación de onda circular */
.theme-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, rgba(0, 212, 255, 0.1) 50%, transparent 100%);
    transform: scale(0);
    animation: ripple-expand 0.8s ease-out;
}

@keyframes ripple-expand {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animación de partículas para el cambio de tema */
.theme-particles {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: particle-float 1s ease-out forwards;
}

@keyframes particle-float {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--random-x, 0), var(--random-y, 0)) scale(0);
        opacity: 0;
    }
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Gradiente para la sección combinada */
.combined-section {
    background: linear-gradient(135deg, #8a8a8a, #6b6b6b);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #f0f0f0;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Navegación Glass */
.glass-navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    opacity: 0;
    padding: 8px 20px;
    width: auto;
    max-width: 90%;
    min-width: 600px;
    will-change: transform, opacity; /* Optimización de rendimiento */
}

.glass-navbar.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Hacer el navbar visible por defecto en páginas que no son index */
body:not(.index-page) .glass-navbar {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    margin: 0;
    display: flex;
    align-items: center;
    height: 40px;
    width: auto;
    max-height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--primary-color)) 
            drop-shadow(0 0 20px var(--primary-color)) 
            drop-shadow(0 0 30px var(--primary-color));
    animation: logoRotate 8s linear infinite, logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoRotate {
    0% {
        transform: rotate(0deg);
    }
    62.5% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 10px var(--logo-glow-color)) 
                drop-shadow(0 0 20px var(--logo-glow-color)) 
                drop-shadow(0 0 30px var(--logo-glow-color));
    }
    100% {
        filter: drop-shadow(0 0 15px var(--logo-glow-color)) 
                drop-shadow(0 0 25px var(--logo-glow-color)) 
                drop-shadow(0 0 35px var(--logo-glow-color)) 
                drop-shadow(0 0 45px var(--primary-color));
    }
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin: 0 8px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* Estilos para el logo de navegación */
.nav-logo {
    transition: all 0.3s ease;
    filter: brightness(1);
}

.navbar-nav .nav-link:hover .nav-logo {
    transform: scale(1.1);
    filter: brightness(1.2) drop-shadow(0 0 8px var(--primary-color));
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
}

html:not(.dark-theme) .navbar-brand,
html:not(.dark-theme) .navbar-nav .nav-link {
    color: #000000;
    text-shadow: 0 0 5px rgba(119, 119, 119, 0.884);
}

html:not(.dark-theme) .navbar-brand {
    filter: drop-shadow(0 0 5px rgb(2, 82, 255));
}

html:not(.dark-theme) .navbar-nav .nav-link:hover,
html:not(.dark-theme) .navbar-nav .nav-link.active {
    color: #1037b8c9;
    text-shadow: 0 0 14px rgb(0, 89, 255);
}
.navbar-toggler {
      padding: var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);
    font-size: var(--bs-navbar-toggler-font-size);
    line-height: 1;
    color: rgba(255, 255, 255, 0.205);
    background-color: rgba(153, 152, 152, 0.678);
    border: var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);
    border-radius: var(--bs-navbar-toggler-border-radius);
    transition: var(--bs-navbar-toggler-transition);
}

/* Nuevo botón de tema fijo */
.theme-toggle-button {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border: 2px solid #60a5fa;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 8px;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
}

.theme-toggle-button:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.6);
}

.theme-toggle-button .theme-icon {
    font-size: 16px;
    color: #333;
    transition: all 0.4s ease;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* Efecto de resplandor para la luna en modo claro */
.theme-toggle-button .theme-icon.fa-moon {
    color: #60a5fa;
    text-shadow: 
        0 0 10px rgba(96, 165, 250, 0.8),
        0 0 20px rgba(96, 165, 250, 0.6),
        0 0 30px rgba(96, 165, 250, 0.4);
    animation: moon-glow 2s ease-in-out infinite alternate;
}

/* Efecto apagado para el sol en modo claro */
.theme-toggle-button .theme-icon.fa-sun {
    color: #6b7280;
    text-shadow: 
        0 0 8px rgba(107, 114, 128, 0.5),
        0 0 16px rgba(107, 114, 128, 0.3),
        0 0 24px rgba(107, 114, 128, 0.2);
    animation: none;
}

@keyframes moon-glow {
    0% {
        text-shadow: 
            0 0 10px rgba(96, 165, 250, 0.8),
            0 0 20px rgba(96, 165, 250, 0.6),
            0 0 30px rgba(96, 165, 250, 0.4);
    }
    100% {
        text-shadow: 
            0 0 15px rgba(96, 165, 250, 1),
            0 0 25px rgba(96, 165, 250, 0.8),
            0 0 35px rgba(96, 165, 250, 0.6);
    }
}

/* Mantener el estilo original para compatibilidad */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    width: 60px;
    height: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 3px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.theme-icons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 8px;
    position: relative;
    z-index: 2;
}

.theme-icons i {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

/* Estilos base para toggle-circle - se sobrescriben con selectores más específicos */
.toggle-circle {
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), #0099cc);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    left: 3px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3), inset 0 1px 3px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Secciones */
.section-full-height {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    position: relative;
}

/* Estilos específicos para la sección de inicio */
#inicio {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Mostrar animación de partículas en desktop */
#inicio .particle-animation-container {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Asegurar que el contenido esté por encima de las partículas */
#inicio header {
    position: relative;
    z-index: 2;
}

/* Ocultar animación de partículas en móviles */
@media (max-width: 768px) {
    #inicio .particle-animation-container {
        display: none !important;
    }
    
    /* Fondo específico para móviles en modo claro */
    html:not(.dark-theme) #inicio {
        background-image: url('../images/misti.jpg');
    }
    
    /* Prevenir desbordamiento en móvil */
    #inicio {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    #inicio .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
}

.section-padding {
    padding: 80px 0;
}

/* Header principal */
header {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

header h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.dark-theme .highlight {
    color: #c7ff24;
}

html:not(.dark-theme) .highlight {
    color: #119d30;
}

/* Color gris oscuro para LEXPY en modo claro */
html:not(.dark-theme) h6 {
    color: #333333 !important;
}

header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.job-title {
    color: #ffd700; /* Color por defecto para modo oscuro */
    text-shadow: 0 0 10px rgba(187, 183, 183, 0.438), 0 0 20px rgba(150, 150, 150, 0.5);
    font-size: xx-large;
}

html:not(.dark-theme) .job-title {
    color: #ffd700;
    text-shadow: 1px 1px 2px #33333388;
}

header .company {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-color);
}

header p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Botones */
.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.btn.primary {
    background: linear-gradient(45deg, transparent 30%, rgb(0 0 0 / 73%) 50%, transparent 70%), #0ab938;
    background-size: 200% 200%, 100% 100%;
    animation: shimmer 3s ease-in-out infinite;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

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

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

.btn.primary:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    border-color: white;
    color: white;
}

html:not(.dark-theme) .btn.secondary {
    background: linear-gradient(45deg, transparent 30%, rgb(0 0 0 / 73%) 50%, transparent 70%), #0ab938;
    background-size: 200% 200%, 100% 100%;
    animation: shimmer 3s ease-in-out infinite;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 2;
    border: 2px solid transparent;
}

.btn.secondary:hover {
    background: white;
    color: var(--text-color);
    transform: translateY(-2px);
}

html:not(.dark-theme) .btn.primary:hover,
html:not(.dark-theme) .btn.secondary:hover {
    background: #333;
    border-color: #333;
    color: white;
}

/* Iconos sociales */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html:not(.dark-theme) .social-icon {
    color: black;
}

.social-icon:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

html:not(.dark-theme) .social-icon:hover {
    color: white;
}

/* Estilos para el botón de cambio de idioma */
.language-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}





.flag-image {
    width: 40px;
    height: 27px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.flag-image:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}



/* Sección Sobre Mí */
.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: white;
    background: linear-gradient(45deg, #fff, #d1961c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-image-container {
    text-align: center;
    margin-bottom: 30px;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.3);
}

html:not(.dark-theme) .profile-image {
    border-color: rgb(255, 255, 255);
}

html:not(.dark-theme) .profile-image:hover {
    box-shadow: 0 25px 50px rgba(105, 105, 105, 0.3);
}

.about-content {
    color: white;
}

.about-content h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.8;
    text-align: justify;
}

/* Estilos específicos para modo claro - textos en gris oscuro y negrita */
html:not(.dark-theme) .about-content h3 {
    color: #000000;
}

html:not(.dark-theme) .about-text {
    color: #000000;
}

html:not(.dark-theme) .info-value {
    color: #000000;
}

/* Estilo para descripciones de proyectos en modo claro */
html:not(.dark-theme) .project-description {
    color: #000000;
}

/* Estilos específicos para botones de proyectos en modo claro */
html:not(.dark-theme) .project-links .btn,
html:not(.dark-theme) .project-links .btn:focus {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
    animation: none !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

html:not(.dark-theme) .project-links .btn:hover {
    background-color: #0ab938 !important;
    border-color: #0ab938 !important;
    color: white !important;
    animation: none !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* Resetear hijos del botón en modo claro */
html:not(.dark-theme) .project-links .btn *,
html:not(.dark-theme) .project-links .btn:hover *,
html:not(.dark-theme) .project-links .btn:focus * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* Mostrar el icono en hover y ocultar el texto en modo claro */
html:not(.dark-theme) .project-links .btn .btn-text {
    opacity: 1 !important;
    transform: none !important;
    transition: opacity 0.3s ease !important;
}

html:not(.dark-theme) .project-links .btn:hover .btn-text {
    opacity: 0 !important;
}

html:not(.dark-theme) .project-links .btn .btn-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 1.4rem;
}

html:not(.dark-theme) .project-links .btn:hover .btn-icon {
    opacity: 1 !important;
    transform: scale(1);
}

@media (max-width: 768px) {
    .about-text {
        text-align: justify;
    }
}

.personal-info {
    margin: 30px 0;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--glass-bg);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.info-label {
    font-weight: 600;
    margin-right: 15px;
    min-width: 120px;
    color: #ffd700;
}

.info-value {
    opacity: 0.9;
}

.about-social {
    margin-top: 30px;
    justify-content: flex-start;
}

/* Carrusel infinito para habilidades e intereses */
.carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 20px;
    animation: scroll-left 30s linear infinite;
    margin-bottom: 15px;
    width: max-content;
    will-change: transform;
}

.carousel-track.carousel-reverse {
    animation: scroll-right 35s linear infinite;
    will-change: transform;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}

/* Pausar animación al hover */
.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

/* Estilos para items del carrusel */
.carousel-track .skill-item,
.carousel-track .interest-item {
    flex-shrink: 0;
    min-width: 120px;
    padding: 15px;
    background: transparent;
    border: none;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-track .skill-item:hover,
.carousel-track .interest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

/* Secciones de habilidades e intereses */
.skills-section,
.interests-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    height: 100%;
}

.skills-title,
.interests-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.skills-title i {
    color: var(--primary-color);
}

.interests-title i {
    color: #3dd5f0;
}

.skill-icon,
.interest-icon {
    font-size: 3.5rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.skill-item:hover .skill-icon,
.interest-item:hover .interest-icon {
    transform: scale(1.1);
    color: #ffffff;
}

.skill-name,
.interest-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    text-align: center;
}

/* Colores específicos para iconos de habilidades - Devicons */
.devicon-php-plain {
    color: #777bb4;
}

.devicon-javascript-plain {
    color: #f7df1e;
}

.devicon-css3-plain {
    color: #1572b6;
}

.devicon-python-plain {
    color: #3776ab;
}

.devicon-nodejs-plain {
    color: #339933;
}

.devicon-react-original {
    color: #61dafb;
}

.devicon-html5-plain {
    color: #e34f26;
}

.devicon-mysql-plain {
    color: #00758f;
}

.devicon-android-plain {
    color: #3ddc84;
}

.devicon-sass-original {
    color: #cc6699;
}

.devicon-bootstrap-plain {
    color: #7952b3;
}

.devicon-vuejs-plain {
    color: #4fc08d;
}

.devicon-d3js-plain {
    color: #f9a03c;
}

.devicon-laravel-plain {
    color: #ff2d20;
}

.devicon-firebase-plain {
    color: #ffca28;
}

.devicon-stripe-original {
    color: #635bff;
}

.devicon-googlecloud-plain {
    color: #4285f4;
}

.devicon-npm-original-wordmark {
    color: #cb3837;
}

.devicon-readthedocs-original {
    color: #8ca1af;
}

.fa-linux {
    color: #fcc624;
}

/* Modo oscuro para iconos de habilidades */
.dark-mode .devicon-php-plain {
    color: #8892bf;
}

.dark-mode .devicon-javascript-plain {
    color: #f7df1e;
    filter: brightness(1.1);
}

.dark-mode .devicon-css3-plain {
    color: #4fc3f7;
}

.dark-mode .devicon-python-plain {
    color: #4fc3f7;
}

.dark-mode .devicon-nodejs-plain {
    color: #68d391;
}

.dark-mode .devicon-react-original {
    color: #61dafb;
    filter: brightness(1.2);
}

.dark-mode .devicon-html5-plain {
    color: #ff6b6b;
}

.dark-mode .devicon-mysql-plain {
    color: #4fc3f7;
}

.dark-mode .devicon-android-plain {
    color: #68d391;
}

.dark-mode .devicon-sass-original {
    color: #e91e63;
}

.dark-mode .devicon-bootstrap-plain {
    color: #9c27b0;
}

.dark-mode .devicon-vuejs-plain {
    color: #4fc08d;
    filter: brightness(1.2);
}

.dark-mode .devicon-d3js-plain {
    color: #ffb74d;
}

.dark-mode .devicon-laravel-plain {
    color: #ff5722;
}

.dark-mode .devicon-firebase-plain {
    color: #ffc107;
}

.dark-mode .devicon-stripe-original {
    color: #7986cb;
}

.dark-mode .devicon-googlecloud-plain {
    color: #64b5f6;
}

.dark-mode .devicon-npm-original-wordmark {
    color: #f44336;
}

.dark-mode .devicon-readthedocs-original {
    color: #90a4ae;
}

/* Colores específicos para iconos de intereses */
.fa-box {
    color: #183a61; /* VirtualBox azul */
}

.fa-layer-group {
    color: #607078; /* VMware gris */
}

.fa-shield-halved {
    color: #ee3124; /* Fortinet rojo */
}

.fa-sitemap {
    color: #1ba0d7; /* CCNA/Cisco azul */
}

.fa-terminal {
    color: #4caf50; /* Terminal verde */
}

.fa-brain {
    color: #ff6b35; /* IA naranja */
}

.skill-item:hover .devicon-php-plain,
.skill-item:hover .devicon-javascript-plain,
.skill-item:hover .devicon-css3-plain,
.skill-item:hover .devicon-python-plain,
.skill-item:hover .devicon-nodejs-plain,
.skill-item:hover .devicon-react-original,
.skill-item:hover .devicon-html5-plain,
.skill-item:hover .devicon-mysql-plain,
.skill-item:hover .devicon-android-plain,
.tech-tag:hover .devicon-sass-original,
.tech-tag:hover .devicon-bootstrap-plain,
.tech-tag:hover .devicon-vuejs-plain,
.tech-tag:hover .devicon-d3js-plain,
.tech-tag:hover .devicon-laravel-plain,
.tech-tag:hover .devicon-firebase-plain,
.tech-tag:hover .devicon-stripe-original,
.tech-tag:hover .devicon-googlecloud-plain,
.tech-tag:hover .devicon-npm-original-wordmark,
.tech-tag:hover .devicon-readthedocs-original,
.interest-item:hover .fa-linux,
.interest-item:hover .fa-box,
.interest-item:hover .fa-layer-group,
.interest-item:hover .fa-shield-halved,
.interest-item:hover .fa-sitemap,
.interest-item:hover .fa-terminal,
.interest-item:hover .fa-brain {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 992px) {
    header h1 {
        font-size: 3rem;
    }
    
    header .company {
        font-size: 2rem;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .skills-title,
    .interests-title {
        font-size: 1.6rem;
    }
    
    .carousel-track .skill-item,
    .carousel-track .interest-item {
        min-width: 100px;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    /* Navbar móvil */
    .glass-navbar {
        min-width: 90%;
        max-width: 95%;
        padding: 8px 15px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .navbar-brand {
        flex: 1;
    }
    
    /* Reposicionar el botón de tema en móviles */
    .theme-toggle-button.d-md-none {
        position: fixed;
        left: 50%;
        top: 15px;
        transform: translateX(-50%);
        margin: 0;
        width: 35px;
        height: 35px;
        z-index: 1050;
    }
    
    /* Evitar movimiento del botón al hacer hover en móviles */
    .theme-toggle-button.d-md-none:hover {
        transform: translateX(-50%) translateY(-2px) scale(1.05);
    }
    
    .theme-toggle-button.d-md-none .theme-icon {
        font-size: 14px;
    }
    
    .theme-toggle-menu.d-md-none .theme-icons i {
        font-size: 9px;
        pointer-events: none;
    }
    
    /* Ocultar el botón de tema del menú colapsable en móviles */
    .navbar-nav .nav-item:last-child {
        display: none;
    }
    
    /* Ajustar el toggler */
    .navbar-toggler {
        border: none;
        padding: 4px 8px;
        margin-left: auto;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    header h2 {
        font-size: 1.2rem;
    }
    
    header .company {
        font-size: 1.8rem;
    }
    
    .buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn {
        padding: 10px 20px;
        max-width: 200px;
        width: auto;
        min-width: 160px;
        text-align: center;
        justify-content: center;
    }
    
    /* Centrar contenido de la sección sobre mí en móviles */
    #sobre-mi .row {
        text-align: center;
    }
    
    #sobre-mi .col-md-7 {
        text-align: center;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-content h3 {
        text-align: center;
    }
    
    .about-text {
        text-align: center;
        margin: 0 auto 20px auto;
        max-width: 90%;
    }
    
    .personal-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-item {
        justify-content: center;
        text-align: center;
        max-width: 90%;
        margin: 0 auto 15px auto;
    }
    
    .about-social {
        justify-content: center;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .skills-section,
    .interests-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .carousel-track .skill-item,
    .carousel-track .interest-item {
        min-width: 90px;
        padding: 10px;
    }
    
    .skill-icon,
    .interest-icon {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .project-card,
    .skills-section,
    .interests-section,
    .glass-container {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 576px) {
    header h1 {
        font-size: 2rem;
    }
    
    header .company {
        font-size: 1.5rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
    }
    
    .about-content h3 {
        font-size: 2rem;
    }
    
    .skills-title,
    .interests-title {
        font-size: 1.4rem;
    }
    
    .carousel-track .skill-item,
    .carousel-track .interest-item {
        min-width: 80px;
        padding: 8px;
    }
    
    .skill-icon,
    .interest-icon {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 8px 16px;
        max-width: 180px;
        min-width: 140px;
        font-size: 0.9rem;
    }
}

/* Sección de Proyectos */
.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

html:not(.dark-theme) .project-card:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .project-card,
    .glass-container,
    .skills-section,
    .interests-section {
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }
}

.glass-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
}

#sobre-mi {
    position: relative;
}

.skills-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    z-index: 0;
    opacity: 0.9;
    max-width: 60%;
}

/* Posicionamiento del funco en desktop - más abajo */
#funko-right {
    top: 90% !important;
}

/* Posicionamiento para móviles - iconos detrás del perfil */
@media (max-width: 768px) {
    .skills-background {
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
        width: 90%;
        opacity: 0.9;
    }
}

#sobre-mi .row {
    position: relative;
    z-index: 1;
}

.project-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
}

.project-image:hover {
    transform: scale(1.02);
}

.project-static-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}



.project-content {
    color: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffd700;
    line-height: 1.3;
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.9;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: transparent;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 1.8rem;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 40px;
}

.tech-tag i {
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 2px 6px rgba(0, 0, 0, 0.6),
        1px 1px 2px rgba(0, 0, 0, 0.9);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}

.tech-tag:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-links .btn {
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.project-links .btn * {
    position: relative;
    z-index: 3;
}

.project-links .btn .btn-text {
    transition: none;
}

.project-links .btn .btn-icon {
    opacity: 0;
    transform: scale(0);
    transition: none;
    position: absolute;
}

.project-links .btn:hover .btn-text {
    opacity: 0;
    transform: scale(0);
}

.project-links .btn:hover .btn-icon {
    opacity: 1;
    transform: scale(1.2);
}

/* Color específico para botón Ver Demo en modo claro */
.project-links .btn-primary {
    color: white;
    border-color: #ffffff4a;
}

.project-links .btn-primary:hover {
    background-color: #0ab938;
    border-color: #00d5ff00;
    color: white;
}

/* Color específico para botón Código en modo claro */
.project-links .btn-outline-primary {
    color: white;
    border-color: #ffffff4a;
}

.project-links .btn-outline-primary:hover {
    background-color: #0ab938;
    border-color: #00d5ff00;
    color: white;
}

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

.project-links .btn:hover::before {
    left: 100%;
}

.project-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 213, 255, 0);
    border-color: rgba(0, 0, 0, 0);
}

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

/* CSS Containment para optimización de animaciones */
.project-links .btn {
    contain: layout style paint;
}

.more-projects-btn {
    contain: layout style paint;
}

.carousel-track {
    contain: layout style;
}

.glass-navbar {
    contain: layout style;
}

.more-projects-btn {
    border-radius: 25px;
    padding: 15px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid #00d4ff00;
    color: var(--primary-color);
    background: linear-gradient(45deg, transparent 30%, rgb(0 0 0 / 73%) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

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

.more-projects-btn:hover::before {
    left: 100%;
}

.more-projects-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive para proyectos */
/* Asegurar que todas las columnas de proyectos tengan la misma altura */
.row.equal-height {
    display: flex;
    flex-wrap: wrap;
}

.row.equal-height > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

@media (max-width: 992px) {
    .project-image img {
        height: 180px;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .project-card {
        padding: 20px;
        margin-bottom: 25px;
        min-height: 450px;
    }
    
    .project-image img {
        height: 160px;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 0.85rem;
    }
    
    .project-tech {
        justify-content: center;
    }
    
    .tech-tag {
        font-size: 2.2rem;
        padding: 12px 18px;
        min-width: 60px;
        min-height: 50px;
    }
    
    .project-links {
        justify-content: center;
    }
    
    .more-projects-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* Ocultar el contenedor del funco 3D en móviles */
    #funko-right {
        display: none !important;
    }
    
    /* Ajustar el título sin espacio para el funco */
    #proyectos .section-title {
        text-align: center;
        margin-bottom: 30px;
        padding-top: 20px;
    }
    
    /* Ajustar tamaño del texto LEXPY.DEV en móvil */
    h6 {
        font-size: 3.5em !important;
        letter-spacing: 3px !important;
        line-height: 1.1 !important;
        word-break: break-word;
    }
    
    h7 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 576px) {
    .project-card {
        padding: 15px;
        min-height: 400px;
    }
    
    .project-image img {
        height: 140px;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .project-tech {
        justify-content: center;
    }
    
    .tech-tag {
        font-size: 1.8rem;
        padding: 10px 15px;
        min-width: 55px;
        min-height: 45px;
    }
    
    .project-links .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    /* Ajustar tamaño del texto LEXPY.DEV en móviles pequeños */
    h6 {
        font-size: 3em !important;
        letter-spacing: 5px !important;
    }
    
    h7 {
        font-size: 1.5rem !important;
    }
}

/* Footer Compacto */
.footer-compact {
    background: rgb(17 111 149);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 0 20px;
    margin-top: 0;
}

.contact-info {
    padding: 0;
}

.contact-title {
    color: #00d4ff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.contact-details.justify-content-center {
    align-items: center;
}

.social-links-compact.justify-content-center {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.contact-item-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    color: #0ab938;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.contact-text {
    color: #ffffff;
    font-size: 0.95rem;
    margin: 0;
}

.copy-btn-small {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(255, 174, 0, 0.3);
    border-radius: 4px;
    color: #b3ff00;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.copy-btn-small:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #91ff00;
    transform: scale(1.05);
}

.social-links-compact {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-link-compact:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.qr-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-placeholder-compact {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 5px;
    text-align: center;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin: 30px auto 40px auto;
    max-width: 200px;
    overflow: hidden;
}

.qr-placeholder-compact:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.qr-placeholder-compact i {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 10px;
}

.qr-placeholder-compact p {
    color: #ffffff;
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.8;
}

.qr-image {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    object-fit: cover;
    border-radius: 10px;
}

.qr-image-standalone {
    width: var(--globe-size);
    height: var(--globe-size);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin: 30px auto 40px auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.qr-image-standalone:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: scale(1.05);
}

.qr-surprise-text {
    color: #00d4ff;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin: 10px 0 0 0;
    opacity: 0.9;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Desktop horizontal layout */
@media (min-width: 769px) {
    .mobile-contact-only {
        display: none;
    }
    
    .desktop-horizontal-layout {
        margin-top: 20px;
    }
    
    .contact-info-center {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: var(--globe-size);
    }
    
    .contact-info-center .contact-title {
        margin-bottom: 10px;
    }
    
    .contact-info-center .contact-details {
        margin-bottom: 10px;
    }
}

/* Mobile layout - show original contact info and only snow globe */
@media (max-width: 768px) {
    .contact-info-center {
        display: none;
    }
    
    .desktop-horizontal-layout .col-md-4:nth-child(1),
    .desktop-horizontal-layout .col-md-4:nth-child(2) {
        display: none;
    }
    
    .desktop-horizontal-layout .col-md-4:nth-child(3) {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Subir el snow globe en móvil */
    .desktop-horizontal-layout {
        margin-top: -30px;
    }
    
    .snow-globe-section {
        margin-bottom: -20px;
    }
    
    /* Subir el texto del footer en móvil */
    .footer-bottom {
        margin-top: -25px;
        padding-top: 20px;
    }
}

/* Responsive QR Code */
@media (max-width: 768px) {
    .qr-placeholder-compact {
        width: 120px;
        height: 120px;
        padding: 5px;
        margin: 10px auto;
    }
    
    .qr-placeholder-compact i {
        font-size: 2.5rem;
    }
    
    .qr-placeholder-compact p {
        font-size: 0.75rem;
    }
    
    .qr-image-standalone {
        width: calc(var(--globe-size) * 0.6);
        height: calc(var(--globe-size) * 0.6);
        margin: 10px auto;
    }
    
    .qr-surprise-text {
        font-size: 0.8rem;
    }
    
    .qr-section, .snow-globe-section {
        margin-bottom: 10px;
        min-height: 150px;
    }
    
    .row.justify-content-center.align-items-center {
        margin-bottom: 10px;
    }
    
    /* Mantener layout horizontal en móvil */
    .row.justify-content-center.align-items-center .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Estilos para alineación horizontal del QR y Snow Globe */
.qr-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.snow-globe-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

@media (max-width: 480px) {
    .qr-placeholder-compact {
        width: 100px;
        height: 100px;
        padding: 5px;
        margin: 15px auto 25px auto;
    }
    
    .qr-placeholder-compact i {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .qr-placeholder-compact p {
        font-size: 0.7rem;
    }
    
    .qr-image-standalone {
        width: calc(var(--globe-size) * 0.6);
        height: calc(var(--globe-size) * 0.6);
        margin: 15px auto 25px auto;
    }
    
    .qr-surprise-text {
        font-size: 0.75rem;
    }
    
    .qr-section, .snow-globe-section {
        min-height: 200px;
    }
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-compact {
        padding: 25px 0 15px;
        margin-top: 0;
    }
    
    .contact-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .contact-details {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .contact-text {
        font-size: 0.9rem;
    }
    
    .qr-placeholder-compact {
        width: 120px;
        height: 120px;
        padding: 5px;
    }
    
    .qr-placeholder-compact i {
        font-size: 2.5rem;
    }
    
    .qr-placeholder-compact p {
        font-size: 0.75rem;
    }
    
    .social-links-compact {
        gap: 12px;
        justify-content: flex-start;
    }
    
    .social-link-compact {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Botón de scroll hacia abajo */
.scroll-down-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

.scroll-down-btn {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-down-btn:hover {
    transform: translateY(-5px);
}

.mouse-icon {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.scroll-down-btn:hover .mouse-icon {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

html:not(.dark-theme) .scroll-down-btn:hover .mouse-icon {
    border-color: #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Color negro para el icono de scroll en tema claro */
html:not(.dark-theme) .mouse-icon {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.1);
}

html:not(.dark-theme) .scroll-wheel {
    background: #000000;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-animation 2s infinite;
}

.scroll-down-btn:hover .scroll-wheel {
    background: var(--primary-color);
}

html:not(.dark-theme) .scroll-down-btn:hover .scroll-wheel {
    background: #333;
}

@keyframes scroll-animation {
    0% {
        opacity: 1;
        top: 8px;
    }
    50% {
        opacity: 0.5;
        top: 20px;
    }
    100% {
        opacity: 1;
        top: 8px;
    }
}

/* Responsive para el botón de scroll */
@media (max-width: 768px) {
    .scroll-down-container {
        bottom: 20px;
    }
    
    /* Ocultar el icono de mouse en móviles */
    .mouse-icon {
        display: none !important;
    }
    
    /* Mostrar icono de mano en móviles */
    .scroll-down-btn::after {
        content: '\f25a';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        color: rgba(255, 255, 255, 0.8);
        font-size: 20px;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        animation: hand-swipe-animation 2s infinite;
    }
    
    /* Icono de mano en negro para modo claro */
    html:not(.dark-theme) .scroll-down-btn::after {
        background: rgba(0, 0, 0, 0.1) !important;
        border: 2px solid #000000 !important;
        color: #000000 !important;
        box-shadow: 0 4px 15px rgba(64, 64, 64, 0.6) !important;
    }
    
    .scroll-down-btn:hover::after {
        border-color: var(--primary-color);
        color: var(--primary-color);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
        transform: scale(1.1);
    }
    
    @keyframes hand-swipe-animation {
        0% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
        50% {
            opacity: 0.7;
            transform: translateY(8px) scale(0.95);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}
/* Estilos para el efecto de texto de seccion Menu*/
h6{
    position: relative;
    font-size: 4em;
    font-weight: 700;
    letter-spacing: 15px;
    color: #f8f8f8;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    -webkit-box-reflect: below 1px linear-gradient(transparent, #0008);
    line-height: 0.70em;
    outline: none;
    animation: animate 10s linear infinite;
}

@keyframes animate {
    0%, 18%, 20%, 50.1%, 60%, 65.5%, 80%, 90.1%, 92%{
        color:#f3f3f3;
        text-shadow: none;
    }
    18.50%,20.50%,30%,50%,60.50%,65%,80.1%,90%,92.1%,100%{
        color:#fff;
        text-shadow: 0 0 10px #ffffff67,
        0 0 20px #68686859,
        0 0 40px #5c5c5c70,
        0 0 80px #64646470,
        0 0 160px #b4f845;
    }
}

h7 {
  font-size: 3.5rem;
  background: linear-gradient(
    to right,
    #ffd700 20%,
    #ffffff 40%,
    #ffffff 60%,
    #ffd700 80%
  );
  background-size: 200%;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: shine 6s linear infinite;
  font-family: sans-serif;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Estilos para la bola de nieve */
.snow-globe-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: var(--globe-size);
  height: var(--globe-size);
  margin: -10px auto 0 auto;
}

/* Responsive Snow Globe */
@media (max-width: 768px) {
  .snow-globe-container {
    width: calc(var(--globe-size) * 0.6);
    height: calc(var(--globe-size) * 0.6);
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
    .snow-globe-container {
        width: calc(var(--globe-size) * 0.6);
        height: calc(var(--globe-size) * 0.6);
        margin: 0px auto 0 auto;
    }
}

/* Toast Message Styles */
.copy-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    font-size: 16px;
    font-weight: 600;
    z-index: 999999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
    white-space: nowrap;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.copy-toast i {
    margin-right: 8px;
    color: #fff;
}

/* Responsive toast */
@media (max-width: 768px) {
    .copy-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        right: 10px;
        text-align: center;
        transform: translateY(-100%);
    }
    
    .copy-toast.show {
        transform: translateY(0);
    }
}

.globe {
  position: absolute;
  display: flex;
  justify-content: center;
  width: var(--globe-size);
  height: var(--globe-size);
  border: calc(var(--globe-size) / 100) solid var(--globe-color);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 calc(var(--globe-size) / 6) var(--globe-color);
}

.base {
  position: absolute;
  background: var(--color-base);
  border-radius: 100% / 40%;
}

.base.behind,
.base.front {
  width: calc(var(--globe-size) * 0.75);
  height: calc(var(--globe-size) * 0.4);
  translate: 0 calc(var(--globe-size) * 0.5);
}

.base.front {
  mask: radial-gradient(100% 50% at 50% 12%, #0000 50%, #000 51%);
  -webkit-mask: radial-gradient(100% 50% at 50% 12%, #0000 50%, #000 51%);
}

.base.bottom {
  width: calc(var(--globe-size) * 0.85);
  height: calc(var(--globe-size) * 0.2);
  translate: 0 calc(var(--globe-size) * 0.6);
  border-radius: 80% / 50%;
}

.base .shine {
  position: absolute;
  width: calc(var(--globe-size) * 0.68);
  height: 8vh;
  background: linear-gradient(to right, #000 0%, #FFF6 6%, #FFF1 50%, #000 65%);
  border-radius: 100% / 50%;
  -webkit-mask: radial-gradient(120% 105% at 50% 35%, #0000 50%, #000 51%);
  mask: radial-gradient(120% 105% at 50% 35%, #0000 50%, #000 51%);
}

.base.front .shine {
  translate: 1vh 0.6vh;
}

.base.bottom .shine {
  translate: 1vh -2vh;
}

.shadow {
  width: calc(var(--globe-size) * 1.8);
  height: 10vh;
  background: radial-gradient(farthest-side, #0007, #0000);
  border-radius: 50%;
  translate: 5vh calc(var(--globe-size) * 0.65);
}

.globe .shine {
  position: absolute;
  width: calc(var(--globe-size) / 3);
  height: calc(var(--globe-size) / 7);
  background: linear-gradient(to right, #FFF6, #FFF1);
  border-radius: 50%;
  rotate: -36deg;
  translate: -11vh 6vh;
}

.globe .snow-settled-surface {
  position: absolute;
  translate: 0 calc(var(--globe-size) / 1.55);
  width: calc(var(--globe-size) / 1.175);
  height: calc(var(--globe-size) / 6);
  border-radius: 50%;
  background: radial-gradient(ellipse at bottom, #FFF, #AAA);
}

.globe .snow-settled {
  position: absolute;
  width: var(--globe-inner-size);
  height: var(--globe-inner-size);
  border-radius: 50%;
  background: #FFF;
  translate: 0 calc(var(--globe-glass-width) / 2);
  clip-path: inset(calc(var(--globe-size) / 1.375) 0 0 0);
  box-shadow: inset 0 0 calc(var(--globe-size) / 5) #000;
}

.globe .flake {
  --abs: max(var(--i), -1 * var(--i));
  --x: calc(var(--globe-size) / 18 * var(--i));
  background: white;
  border-radius: 50%;
  width: var(--flake-size);
  height: var(--flake-size);
  translate: var(--x) calc(var(--flake-size) * -1);
  animation: flake-fall calc(3s * var(--abs)) infinite ease-in;
  animation-delay: calc(var(--i) * 2s);
}

.tree {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  translate: -10vh 16vh;
}

.tree .layer {
  width: var(--width);
  height: var(--height);
  clip-path: polygon(0 100%, 100% 100%, calc(100% - var(--tilt)) 0, var(--tilt) 0);
  background: linear-gradient(to top, #061 50%, #040);
}

.tree .layer.top {
  --width: 8vh;
  --tilt: calc(var(--width) / 2);
  --height: 5vh;
}

.tree .layer.middle {
  --width: 12vh;
  --tilt: 4vh;
  --height: 6vh;
}

.tree .layer.bottom {
  --width: 14vh;
  --tilt: 3vh;
  --height: 8vh;
}

.house {
  position: absolute;
  translate: calc(var(--globe-size) / 8 * -1) calc(var(--globe-size) / 2);
}

.house .wall {
  position: inherit;
  height: calc(var(--globe-size) / 7);
  translate: var(--translate-x) calc(var(--globe-size) / 12);
}

.house .wall.front {
  --translate-x: 0;
  width: calc(var(--globe-size) / 5);
  background: var(--color-wall-light);
  overflow: hidden;
}

.house .wall.side {
  --translate-x: 0;
  width: calc(var(--globe-size) / 2.2);
  background: var(--color-wall-dark);
}

.house .roof {
  position: inherit;
  height: calc(var(--globe-size) / 5.5);
  translate: var(--translate-x) calc(var(--globe-size) / 12 * -1);
}

.house .roof.right {
  --translate-x: calc(var(--globe-size) / 9.5);
  width: calc(var(--globe-size) / 3);
  transform: skew(30deg);
  background: radial-gradient(ellipse at bottom, #EEE 30%, #AAA 100%);
}

.house .roof.left {
  --translate-x: calc(var(--globe-size) / 40 * -0.5);
  width: calc(var(--globe-size) / 4);
  transform: skew(-30deg);
  background: linear-gradient(to bottom, #000A, #0000),
    linear-gradient(to right,
    #AAA 0%, #AAA 8%,
    var(--color-wall-dark) 8%, var(--color-wall-dark) 25%,
    var(--color-wall-light) 25%, var(--color-wall-light) 100%);
}

.house .roof.top.wall {
  --translate-x: calc(var(--globe-size) / 20);
  background: #99462c;
  width: calc(var(--globe-size) / 4.5);
}

.house .window {
  position: inherit;
  border: calc(var(--globe-size) / 200) solid #99462c;
  background: linear-gradient(to right,
  #f9c76e 0%, #f9c76e 48%, #99462c 48%, #99462c 52%, #f9c76e 52%, #f9c76e 100%);
  width: calc(var(--globe-size) / 12);
  height: calc(var(--globe-size) / 16);
  translate: calc(var(--globe-size) / 3.5) calc(var(--globe-size) / 24);
}

.house .door {
  position: inherit;
  border: calc(var(--globe-size) / 200) solid #662c1b;
  background: linear-gradient(to bottom,
  #f9c76e 0%, #f9c76e 22%, #662c1b 22%, #662c1b 26%, #f9c76e 26%, #f9c76e 100%);
  width: calc(var(--globe-size) / 19);
  height: calc(var(--globe-size) / 10);
  translate: calc(var(--globe-size) / 18) calc(var(--globe-size) / 30);
}

@keyframes flake-fall {
  0%, 90% {
    opacity: 1;
  }
  
  90%, 100% {
    translate: var(--x) calc(var(--globe-size) / 1.4);
  }
  
  100% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .btn.primary,
  .btn.secondary,
  .more-projects-btn {
    background: #0ab938 !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .btn.primary::before,
  .more-projects-btn::before {
    display: none !important;
  }
}