:root {
    --primary-color: #0a0f1c;
    --secondary-color: #ffffff;
    --accent-color: #00f7ff;
    --text-color: #ffffff;
    --background-color: #0a0f1c;
    --section-padding: 80px 0;
    --gradient-blue: linear-gradient(135deg, #00f7ff 0%, #0066ff 100%);
    --neon-glow: 0 0 5px rgba(0, 247, 255, 0.4),
                 0 0 10px rgba(0, 247, 255, 0.2),
                 0 0 15px rgba(0, 247, 255, 0.1);
    --neon-text-glow: 0 0 3px rgba(0, 247, 255, 0.8),
                      0 0 6px rgba(0, 247, 255, 0.5),
                      0 0 9px rgba(0, 247, 255, 0.3);
    --pink-accent: #ff69b4;
    --pink-glow: 0 0 3px rgba(255, 105, 180, 0.8),
                 0 0 6px rgba(255, 105, 180, 0.5),
                 0 0 9px rgba(255, 105, 180, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(10, 15, 28, 0.8);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 15, 28, 0.8);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-blue);
    border-radius: 5px;
    border: 2px solid rgba(0, 247, 255, 0.2);
    box-shadow: var(--neon-glow);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00f7ff 0%, #00a2ff 100%);
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.4),
                0 0 20px rgba(0, 247, 255, 0.2);
}

html {
    scroll-behavior: smooth;
    background-color: var(--primary-color);
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-color);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ0MCIgaGVpZ2h0PSI5MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjMDBGN0ZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzAwNjZGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZD0iTTAgMGgxNDQwdjkwMEgweiIgZmlsbD0iIzBhMGYxYyIvPjxwYXRoIGQ9Ik0wIDBoMTQ0MHY5MDBIMHoiIGZpbGw9InVybCgjYSkiIGZpbGwtb3BhY2l0eT0iLjEiLz48L3N2Zz4=');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    font-size: 18px; /* Aumentado de 16px por defecto */
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader-content {
    display: flex;
    gap: 0.5rem;
}

.loader-content span {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    text-shadow: var(--neon-text-glow);
}

.loader-content span:nth-child(1) { animation-delay: 0.1s; }
.loader-content span:nth-child(2) { animation-delay: 0.2s; }
.loader-content span:nth-child(3) { animation-delay: 0.3s; }
.loader-content span:nth-child(4) { animation-delay: 0.4s; }

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    background: transparent;
    transition: all 0.3s ease;
    height: 80px;
    opacity: 0;
    visibility: hidden;
}

.nav.loaded {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.nav.scrolled {
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 247, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: var(--neon-text-glow);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 9999;
}

.nav-links a:hover {
    color: var(--accent-color);
    text-shadow: var(--neon-text-glow);
}

/* Language Toggle */
.language-toggle {
    background: rgba(0, 247, 255, 0.1);
    border: 1px solid rgba(0, 247, 255, 0.2);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.language-toggle:hover {
    background: rgba(0, 247, 255, 0.2);
    border-color: rgba(0, 247, 255, 0.4);
    box-shadow: var(--neon-glow);
}

.lang-icon {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: var(--neon-text-glow);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

/* Modo 3D activo - ocultar todo excepto el visor 3D */
body.mode-3d-active .nav,
body.mode-3d-active main,
body.mode-3d-active footer,
body.mode-3d-active .hero-content,
body.mode-3d-active .discover-btn,
body.mode-3d-active .home-background::before {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

/* Asegurar que solo el three-container sea visible */
body.mode-3d-active .header {
    z-index: 10000 !important;
}

body.mode-3d-active #three-container {
    z-index: 10001 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.mode-3d-active #three-container canvas {
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
}

body.mode-3d-active #three-container.is-dragging canvas {
    cursor: grabbing;
}

body.mode-3d-active #three-container.has-active-section canvas {
    cursor: default;
}

/* Mantener el filtro azul en modo 3D */
body.mode-3d-active #three-container::after {
    display: block !important;
    opacity: 1 !important;
    background: radial-gradient(circle at center, rgba(0, 247, 255, 0.25) 0%, rgba(0, 102, 255, 0.25) 50%, transparent 100%);
}

/* Asegurar que los controles 3D sean visibles */
body.mode-3d-active .nav-buttons-container {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Los botones del menú OPTIONS solo cuando está abierto */
body.mode-3d-active .section-nav-buttons.active .section-nav-button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.mode-3d-active .section-nav-buttons:not(.active) {
    display: none !important;
    pointer-events: none !important;
}

.home-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: transparent;
    pointer-events: none;
}

.home-background::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: var(--gradient-blue);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
    z-index: 0;
}

main {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    background: transparent;
    pointer-events: auto;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 2rem 0;
    margin: 0;
    background: transparent;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: var(--neon-text-glow);
}

.hero-content h2 {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    text-shadow: var(--neon-text-glow);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.95;
}

.mode-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: var(--accent-color);
    background: rgba(0, 247, 255, 0.1);
    border: 1px solid rgba(0, 247, 255, 0.2);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: var(--neon-text-glow);
    box-shadow: var(--neon-glow);
}

.discover-btn {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 247, 255, 0.15);
    border: 2px solid rgba(0, 247, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: var(--neon-text-glow);
    box-shadow: var(--neon-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    margin-bottom: 20px;
}

.discover-btn:hover {
    background: rgba(0, 247, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.3),
                0 0 20px rgba(0, 247, 255, 0.2);
    border-color: rgba(0, 247, 255, 0.4);
}

.discover-btn .arrow-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

#exit-3d {
    position: static;
    display: none;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff4444;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

#exit-3d:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

#three-container.fullscreen + #exit-3d {
    display: block;
}

.mode-btn:hover {
    background: rgba(0, 247, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.2),
                0 0 20px rgba(0, 247, 255, 0.1);
    border-color: rgba(0, 247, 255, 0.3);
}

#three-container {
    position: absolute;
    width: 100%;
    height: 100vh;
    z-index: 0;
    display: block !important;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 16/9;
    pointer-events: none;
    opacity: 0.3;
    transform-origin: center center;
    overflow: hidden;
    visibility: visible !important;
    background: var(--primary-color);
}

#three-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 247, 255, 0.15) 0%, rgba(0, 102, 255, 0.15) 50%, transparent 100%);
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
}

#three-container canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important;
    visibility: visible !important;
    position: relative;
    z-index: 1;
}

#three-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    transform: none !important;
    aspect-ratio: auto;
    pointer-events: auto;
    opacity: 1;
    z-index: 10000 !important;
    transform-origin: center center;
    overflow: hidden;
    background: var(--primary-color);
}

#three-container.fullscreen::after {
    background: radial-gradient(circle at center, rgba(0, 247, 255, 0.25) 0%, rgba(0, 102, 255, 0.25) 50%, transparent 100%);
    mix-blend-mode: screen;
}

/* Sections */
.section {
    padding: 4rem 0;
    position: relative;
    margin: 3rem auto;
    background: transparent;
    max-width: 1400px;
    width: 100%;
    scroll-margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.section::before {
    display: none;
}

.section::after {
    content: '';
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: var(--gradient-blue);
    border-radius: 2px;
    box-shadow: var(--neon-glow);
}

.section h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--accent-color);
    text-shadow: var(--neon-text-glow);
    position: relative;
    top: -1rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 1.5rem 3rem;
    z-index: 1;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.section h2::before {
    content: '';
    position: absolute;
    inset: -1rem;
    background-image: 
        repeating-linear-gradient(to right,
            transparent,
            transparent calc(25px - 1px),
            rgba(0, 247, 255, 0.08) calc(25px - 1px),
            rgba(0, 247, 255, 0.08) 25px
        ),
        repeating-linear-gradient(to bottom,
            transparent,
            transparent calc(25px - 1px),
            rgba(0, 247, 255, 0.08) calc(25px - 1px),
            rgba(0, 247, 255, 0.08) 25px
        );
    background-size: 25px 25px;
    background-position: center;
    z-index: -1;
    border-radius: 10px;
    -webkit-mask-image: radial-gradient(
        ellipse 70% 70% at 50% 50%,
        black,
        transparent
    );
    mask-image: radial-gradient(
        ellipse 70% 70% at 50% 50%,
        black,
        transparent
    );
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    max-width: 600px;
    margin-bottom: 2rem;
    margin-top: -0.5rem;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 2rem;
}

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

.skills {
    margin-top: 2rem;
    padding: 0 1rem;
}

.skills h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-shadow: var(--neon-text-glow);
}

.skills-category {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.skills-category h4 {
    color: #ff69b4;
    font-size: 1rem;
    text-shadow: 0 0 3px rgba(255, 105, 180, 0.8),
                 0 0 6px rgba(255, 105, 180, 0.5),
                 0 0 9px rgba(255, 105, 180, 0.3);
    opacity: 1;
    white-space: nowrap;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 105, 180, 0.1);
    border: 1px solid rgba(255, 105, 180, 0.2);
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(255, 105, 180, 0.4),
                0 0 10px rgba(255, 105, 180, 0.2),
                0 0 15px rgba(255, 105, 180, 0.1);
    width: fit-content;
    text-align: center;
}

.skills ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0;
    flex: 1;
}

.skills li {
    padding: 0.6rem 1.2rem;
    background: rgba(0, 247, 255, 0.1);
    color: var(--accent-color);
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(0, 247, 255, 0.2);
    text-shadow: none;
    box-shadow: var(--neon-glow);
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
    box-sizing: border-box;
}

.skills li:hover {
    background: rgba(0, 247, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0, 247, 255, 0.2),
                0 0 15px rgba(0, 247, 255, 0.1);
    border-color: rgba(0, 247, 255, 0.3);
}

/* Enlaces rosita (mismo tono que categorías de skills) */
.about-content a:link,
.about-content a:visited,
.about-text a:link,
.about-text a:visited,
.timeline-content a:link,
.timeline-content a:visited,
.project-content a:link,
.project-content a:visited,
.section-3d-overlay a:link,
.section-3d-overlay a:visited {
    color: var(--pink-accent);
    text-shadow: var(--pink-glow);
    text-decoration: underline;
    text-decoration-color: rgba(255, 105, 180, 0.45);
    text-underline-offset: 3px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease, text-shadow 0.3s ease;
}

.about-content a:hover,
.about-text a:hover,
.timeline-content a:hover,
.project-content a:hover,
.section-3d-overlay a:hover {
    color: #ff8dc7;
    text-decoration-color: var(--pink-accent);
    text-shadow: 0 0 4px rgba(255, 105, 180, 0.9),
                 0 0 8px rgba(255, 105, 180, 0.6);
}

.about-content a:active,
.about-text a:active,
.timeline-content a:active,
.project-content a:active,
.section-3d-overlay a:active {
    color: #f91788;
}

.about-content a:focus-visible,
.about-text a:focus-visible,
.timeline-content a:focus-visible,
.project-content a:focus-visible,
.section-3d-overlay a:focus-visible {
    outline: 2px solid rgba(255, 105, 180, 0.6);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Experience Timeline */
.timeline {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient-blue);
    opacity: 0.5;
    box-shadow: var(--neon-glow);
}

.timeline-item {
    margin: 4rem 0;
    position: relative;
    width: 100%;
}

.timeline-content {
    background: rgb(9 26 42);
    border: 1px solid rgba(0, 247, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(5px);
    box-shadow: var(--neon-glow);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgb(9 26 42);
    border-color: rgba(0, 247, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.2),
                0 0 25px rgba(0, 247, 255, 0.1);
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: var(--neon-text-glow);
}

.timeline-content .date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.timeline-content ul {
    list-style: none;
    margin-top: 1rem;
}

.timeline-content ul li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.7;
}

.timeline-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    text-shadow: var(--neon-text-glow);
}

/* Projects Grid */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    padding: 0 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background: rgba(10, 15, 28, 0.6);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 247, 255, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: var(--neon-glow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    min-height: 250px;
    height: auto;
    width: 100%;
}

a.project-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 247, 255, 0.45);
    box-shadow: 0 0 24px rgba(0, 247, 255, 0.35);
}

.project-image {
    width: 40%;
    min-height: 250px;
    align-self: stretch;
    overflow: hidden;
    position: relative;
    background: rgba(10, 15, 28, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.8rem;
    width: 60%;
    min-width: 0;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--accent-color);
    text-shadow: var(--neon-text-glow);
}

.project-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1rem;
}

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

.project-technologies span {
    background: rgba(0, 247, 255, 0.1);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 247, 255, 0.2);
    text-shadow: var(--neon-text-glow);
    box-shadow: var(--neon-glow);
    transition: all 0.3s ease;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.contact-content p {
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info a {
    text-decoration: none;
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-shadow: var(--neon-text-glow);
    padding: 0.5rem 2rem;
    border: 1px solid rgba(0, 247, 255, 0.2);
    border-radius: 30px;
    background: rgba(0, 247, 255, 0.1);
    box-shadow: var(--neon-glow);
}

.contact-info a:hover {
    background: rgba(0, 247, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.2),
                0 0 20px rgba(0, 247, 255, 0.1);
    border-color: rgba(0, 247, 255, 0.3);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(10, 15, 28, 0.9);
    color: var(--secondary-color);
    border-top: 1px solid rgba(0, 247, 255, 0.1);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
}

/* Circular sections */
.circular-section {
    position: relative;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
    margin: 8rem auto;
}

.circular-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: var(--gradient-blue);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
}

/* Media Queries */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px; /* Tamaño normal en móvil */
    }

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 15, 28, 0.95);
        backdrop-filter: blur(5px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .language-toggle {
        margin-left: 0;
        margin-top: 1rem;
    }

    .hero-section {
        min-height: calc(100vh - 60px);
        padding: 1rem;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 1.2rem;
        text-align: center;
    }

    .hero-content p {
        text-align: center;
        max-width: 80%;
        margin: 0 auto;
    }

    #three-container {
        width: 100%;
        height: 100vh;
        opacity: 0.3;
    }

    .section {
        margin: 2rem auto;
        padding: 3rem 0;
    }

    .section::before {
        display: none;
    }

    .section h2 {
        font-size: 2.8rem;
        top: -1rem;
        padding: 1rem 2rem;
        margin-bottom: 1rem;
    }

    .section h2::before {
        inset: -0.8rem;
        background-size: 20px 20px;
        background-image: 
            repeating-linear-gradient(to right,
                transparent,
                transparent calc(20px - 1px),
                rgba(0, 247, 255, 0.08) calc(20px - 1px),
                rgba(0, 247, 255, 0.08) 20px
            ),
            repeating-linear-gradient(to bottom,
                transparent,
                transparent calc(20px - 1px),
                rgba(0, 247, 255, 0.08) calc(20px - 1px),
                rgba(0, 247, 255, 0.08) 20px
            );
        -webkit-mask-image: radial-gradient(
            ellipse 75% 75% at 50% 50%,
            black,
            transparent
        );
        mask-image: radial-gradient(
            ellipse 75% 75% at 50% 50%,
            black,
            transparent
        );
    }

    .section h2::after {
        width: 120px;
        bottom: -1.5rem;
    }

    .section-subtitle {
        margin-bottom: 2rem;
        margin-top: -0.3rem;
    }

    .timeline {
        padding: 0 2rem;
        width: 100%;
        box-sizing: border-box;
    }

    .timeline-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }

    .timeline-content ul li {
        font-size: 0.95rem;
    }
    
    .projects-grid {
        padding: 0 1rem;
    }

    .project-card {
        flex-direction: column;
        height: auto;
    }

    .project-image {
        width: 100%;
        height: 200px;
    }

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .project-content {
        width: 100%;
        padding: 1.5rem;
        border-top: none;
        margin-top: 0;
    }

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

    .project-content p {
        font-size: 0.95rem;
    }

    .project-technologies {
        gap: 0.4rem;
    }

    .project-technologies span {
        font-size: 0.85rem;
        padding: 0.25rem 0.6rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-info a {
        width: 100%;
        text-align: center;
    }

    .about-content {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-content {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    html {
        scroll-padding-top: 60px;
    }

    .circular-section {
        padding: 4rem 0;
        margin: 4rem auto;
    }

    .circular-section::before {
        width: 400px;
        height: 400px;
    }

    .company-header {
        gap: 1rem;
    }

    .company-logo {
        width: 40px;
        height: 40px;
    }

    .hero::before {
        width: 100%;
        height: 100%;
        max-width: 500px;
        max-height: 500px;
    }

    .skills ul {
        gap: 0.6rem;
    }

    .skills li {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .skills-category h4 {
        font-size: 1.1rem;
    }

    .section::after {
        bottom: -2rem;
        width: 120px;
    }

    .discover-btn {
        bottom: 1.5rem;
        width: 45px;
        height: 45px;
    }

    .discover-btn .arrow-icon {
        width: 20px;
        height: 20px;
    }

    #about {
        scroll-margin-top: 60px;
    }

    .skills-category {
        flex-direction: column;
        gap: 1rem;
    }

    .skills-category h4 {
        width: fit-content;
    }

    .skills ul {
        width: 100%;
    }

    .section-nav-buttons {
        flex-direction: column;
        align-items: center;
        bottom: 5.5rem;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        padding: 1.2rem;
        width: 90%;
        max-width: 300px;
        min-width: 180px;
        gap: 0.8rem;
    }

    .section-nav-buttons.active {
        transform: translateX(-50%) translateY(0);
    }

    .section-nav-buttons .section-nav-button {
        width: 100%;
        min-width: unset;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    #three-container.fullscreen .section-nav-buttons.active {
        bottom: 5.5rem;
    }

    #exit-3d {
        bottom: 0.8rem;
        right: 0.8rem;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

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

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

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        max-width: 90%;
    }

    .skills ul {
        gap: 0.5rem;
    }

    .skills li {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .project-card {
        margin: 0;
    }

    .section {
        margin: 0;
        padding: 2rem 0;
    }

    .section::before {
        display: none;
    }

    .section::after {
        display: none;
    }

    .section h2 {
        font-size: 2.2rem;
        top: -0.5rem;
        padding: 0.8rem 1.5rem;
        margin-bottom: 0.8rem;
    }

    .section-subtitle {
        margin-bottom: 1.5rem;
        margin-top: 0;
    }

    .timeline-content {
        padding: 1.2rem;
    }

    .project-content {
        padding: 1rem;
    }

    .company-header {
        gap: 1rem;
    }

    .company-logo {
        width: 40px;
        height: 40px;
    }

    .project-image {
        height: 160px;
    }

    .timeline {
        padding: 0 1rem;
        width: 100%;
    }

    .section h2::after {
        width: 100px;
        bottom: -1.5rem;
    }

    .section::after {
        bottom: -1.5rem;
        width: 100px;
    }

    .discover-btn {
        bottom: 1rem;
        width: 40px;
        height: 40px;
    }

    .discover-btn .arrow-icon {
        width: 18px;
        height: 18px;
    }

    .skills-category {
        gap: 0.8rem;
    }

    .skills-category h4 {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }
}

.company-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.company-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    border: 1px solid rgba(0, 247, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
}

main {
    width: 100%;
    max-width: 100vw;
}

#about {
    scroll-margin-top: 80px;
    padding: 3rem 0;
}

#about .section h2 {
    margin-bottom: 0.8rem;
    top: -0.8rem;
}

#about .section-subtitle {
    margin-bottom: 1.5rem;
    margin-top: 0;
}

#about .about-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 2rem;
}

#about .skills {
    margin-top: 1rem;
}

#about .skills h3 {
    margin-bottom: 1rem;
}

#about .skills-category {
    margin-bottom: 1.5rem;
}

#about .skills-category h4 {
    margin-bottom: 0.5rem;
}

#about .skills ul {
    gap: 0.6rem;
    margin-top: 0.3rem;
}

#about .skills li {
    padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
    #about {
        padding: 2rem 0;
    }

    #about .section h2 {
        font-size: 2.8rem;
        top: -1.5rem;
        padding: 1.5rem 2rem;
    }

    #about .about-content {
        gap: 1rem;
        padding: 0 1rem;
    }

    #about .skills-category {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    #about {
        padding: 1.5rem 0;
    }

    #about .section h2 {
        font-size: 2.2rem;
        top: -1rem;
        padding: 1rem 1.5rem;
        margin-bottom: 0.5rem;
    }

    #about .section-subtitle {
        margin-bottom: 1.5rem;
    }

    #about .about-content {
        gap: 0.8rem;
    }

    #about .skills ul {
        gap: 0.4rem;
    }

    #about .skills li {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

.three-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    background: #000;
}

.three-container.active {
    display: block;
}

.nav-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1001;
    display: none;
}

#three-container.fullscreen .nav-button {
    display: block;
}

.button-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.arrow-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.nav-button:hover .arrow-icon {
    transform: translateX(-5px);
}

.section-nav-buttons {
    position: fixed;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 10003;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(0, 247, 255, 0.3);
    border-radius: 15px;
    padding: 1.2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.2),
                inset 0 0 20px rgba(0, 247, 255, 0.1);
    width: 90%;
    max-width: 300px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease, visibility 0.3s ease;
}

.section-nav-buttons.active {
    display: flex;
    transform: translateX(-50%) translateY(0);
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 10003 !important;
}

#three-container.fullscreen .section-nav-buttons {
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#three-container.fullscreen .section-nav-buttons.active {
    display: flex;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 10002;
    position: fixed;
    bottom: 6rem;
    left: 50%;
}

.section-nav-buttons::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(0, 247, 255, 0.3);
}

.section-nav-buttons .section-nav-button {
    position: static;
    transform: none;
    background: rgba(0, 247, 255, 0.1);
    border: 1px solid rgba(0, 247, 255, 0.3);
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(0, 247, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.2);
    width: 100%;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    min-width: unset;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.section-nav-buttons .section-nav-button:hover {
    background: rgba(0, 247, 255, 0.2);
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.3);
}

@media (max-width: 768px) {
    .section-nav-buttons {
        bottom: 5.5rem;
    }

    #three-container.fullscreen .section-nav-buttons.active {
        bottom: 5.5rem;
    }
}

@media (max-width: 480px) {
    .section-nav-buttons {
        bottom: 5rem;
    }
}

.nav-buttons-container {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    z-index: 10002;
    display: none;
}

#three-container.fullscreen .nav-buttons-container,
body.mode-3d-active .nav-buttons-container {
    display: block !important;
}

.button-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
    width: fit-content;
}

#exit-3d {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.5);
    color: #ff3333;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

#options-3d {
    height: 45px;
    padding: 0 1.5rem;
    border-radius: 50px;
    background: rgba(0, 247, 255, 0.2);
    border: 2px solid rgba(0, 247, 255, 0.5);
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
    text-shadow: var(--neon-text-glow);
}

#exit-3d:hover {
    background: rgba(255, 0, 0, 0.2);
}

#options-3d:hover {
    background: rgba(0, 247, 255, 0.2);
}

@media (max-width: 768px), (max-width: 480px) {
    .nav-buttons-container {
        bottom: 1.5rem;
    }
    
    #exit-3d {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 24px;
    }
    
    #options-3d {
        height: 45px;
        padding: 0 1.5rem;
        font-size: 0.9rem;
    }
}

.section-nav-buttons::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(0, 247, 255, 0.3);
}

/* Estilos para las secciones en modo 3D */
.section-3d-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 95%;
    max-width: 800px;
    height: 85vh;
    max-height: 85vh;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 0;
    z-index: 10003;
    color: white;
    border: 1px solid #f91788;
    box-shadow: 0 0 20px rgba(249, 23, 136, 0.5);
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.section-3d-overlay.active {
    display: flex;
    opacity: 1;
}

.section-3d-overlay .overlay-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 2rem;
    padding-top: 3.25rem;
}

.section-3d-overlay h2 {
    color: #f91788;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-3d-overlay .close-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #f91788;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.section-3d-overlay .close-overlay:hover {
    background: rgba(249, 23, 136, 0.2);
    transform: scale(1.1);
}

/* Ajustes para el contenedor 3D cuando hay una sección activa */
.three-container.has-active-section {
    pointer-events: none;
}

.three-container.has-active-section .section-3d-overlay,
.three-container.has-active-section .section-3d-overlay .overlay-scroll,
.three-container.has-active-section .nav-buttons-container {
    pointer-events: auto;
} 