/* Reset y variables - Updated */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: auto;
    margin: 0;
    padding: 0;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    height: auto;
    margin: 0;
    padding: 0;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 40px rgba(99, 102, 241, 0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f3a 100%);
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-light);
    padding: 10px 10px 0 10px;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding-bottom: 0 !important;
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
}

body.loading {
    overflow: hidden;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-switcher:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.lang-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
}

.lang-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

@media (max-width: 768px) {
    .language-switcher {
        top: 15px;
        right: 15px;
        padding: 8px 15px;
    }
    
    .lang-text {
        font-size: 1rem;
    }
    
    .lang-label {
        font-size: 0.8rem;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Header */
.header {
    text-align: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.6s ease-out forwards;
    animation-delay: 0.1s;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
}

@media (min-width: 1024px) {
    .header {
        padding: 12px 20px;
        margin-bottom: 8px;
    }
    
    .title {
        font-size: 2.8rem;
        margin-bottom: 3px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}

/* Sección de Círculos con Transición de Profundidad */
.circles-section {
    position: relative;
    width: 100%;
    height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 5px 20px 5px 20px;
    margin-bottom: 0;
    min-height: 580px;
    max-height: 580px;
    overflow: hidden;
    box-sizing: border-box;
    perspective: 1500px;
    perspective-origin: center center;
}

/* Contenedor de Círculos */
.circles-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    margin-top: -80px;
}

/* Círculo Principal: Información Personal */
.main-circle {
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(45, 55, 72, 0.98));
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(99, 102, 241, 0.4),
        inset 0 0 30px rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(15px);
    border: 3px solid rgba(99, 102, 241, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    transform: translateZ(0) scale(1);
    opacity: 1;
    filter: blur(0px);
    z-index: 10;
}

.main-circle:hover {
    transform: translateZ(30px) scale(1.05);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(99, 102, 241, 0.5),
        inset 0 0 40px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
}

.main-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotateGlow 8s linear infinite;
    pointer-events: none;
}

.main-circle.active {
    transform: translateZ(0) scale(1);
    opacity: 1;
    filter: blur(0px);
    z-index: 10;
}

.main-circle.hidden {
    transform: translateZ(-400px) scale(0.7);
    opacity: 0.4;
    filter: blur(3px);
    z-index: 1;
    pointer-events: none;
}

.main-circle .circle-content {
    width: 100%;
    height: 100%;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}


.about-image-container {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        0 12px 35px rgba(99, 102, 241, 0.5),
        0 0 20px rgba(99, 102, 241, 0.3),
        inset 0 0 15px rgba(99, 102, 241, 0.1);
    border: 2.5px solid var(--primary-color);
    transition: all 0.4s ease;
    margin-bottom: 10px;
    flex-shrink: 0;
    z-index: 2;
}

.about-image-container:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.about-image-container:hover .about-image {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    pointer-events: none;
}

.about-title {
    font-size: 0.85rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.2;
}

.about-role {
    font-size: 0.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    text-align: center;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    justify-content: center;
}


.skill-tag {
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 18px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Círculos de Proyectos */
.circles-container .project-circle {
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-card), #2d3748);
    border: 3px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(-400px) scale(0.7);
    opacity: 0.4;
    filter: blur(3px);
    z-index: 1;
    pointer-events: none;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(99, 102, 241, 0.3),
        inset 0 0 30px rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(15px);
}

.circles-container .project-circle.active {
    transform: translateZ(0) scale(1);
    opacity: 1;
    filter: blur(0px);
    z-index: 10;
    pointer-events: all;
}

.circles-container .project-circle.hidden {
    transform: translateZ(-400px) scale(0.7);
    opacity: 0.4;
    filter: blur(3px);
    z-index: 1;
    pointer-events: none;
}

.circles-container .project-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.circles-container .project-circle:hover::before {
    animation: shine 1.5s infinite;
}

.circles-container .project-circle:hover {
    transform: translateZ(30px) scale(1.05);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(99, 102, 241, 0.5),
        inset 0 0 40px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
    filter: blur(0px);
}

/* Estilos adicionales para círculos */
.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    margin-bottom: 12px;
    justify-content: center;
}

.tech-mini {
    padding: 3px 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 0.65rem;
    font-weight: 500;
}

.project-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.4;
    max-width: 90%;
    text-align: center;
}

@media (min-width: 1024px) {
    .project-description {
        font-size: 0.85rem;
        margin-top: 12px;
        margin-bottom: 12px;
    }
}

@media (min-width: 1024px) {
    .circles-section {
        height: 620px;
        min-height: 620px;
        max-height: 620px;
        padding: 5px 20px 5px 20px;
    }
    
    .circles-container {
        margin-top: -100px;
    }
}
    
    .main-circle {
        width: 600px;
        height: 600px;
    }
    
    .circles-container .project-circle {
        width: 600px;
        height: 600px;
    }
    
    .main-circle .circle-content {
        padding: 45px 40px;
    }
    
    .about-image-container {
        width: 100px;
        height: 100px;
        margin-bottom: 18px;
    }
    
    .about-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .about-role {
        font-size: 1.1rem;
        font-weight: 800;
        letter-spacing: 1px;
        margin-bottom: 18px;
    }
}

@media (max-width: 1023px) {
    .circles-section {
        height: 520px;
        min-height: 520px;
        max-height: 520px;
        padding: 5px 15px 5px 15px;
    }
    
    .circles-container {
        margin-top: -70px;
    }
}
    
    .main-circle {
        width: 450px;
        height: 450px;
    }
    
    .circles-container .project-circle {
        width: 450px;
        height: 450px;
    }
    
    .circles-navigation {
        bottom: 100px;
        gap: 12px;
        padding: 8px 15px;
    }
    
    .nav-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
    
    .main-circle {
        width: 320px;
        height: 320px;
    }
    
    .circles-container .project-circle {
        width: 320px;
        height: 320px;
    }
    
    .main-circle .circle-content {
        padding: 30px 25px;
    }
    
    .about-image-container {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
    }
    
    .about-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .about-role {
        font-size: 0.85rem;
        font-weight: 800;
        letter-spacing: 0.8px;
        margin-bottom: 12px;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.circle-content {
    text-align: center;
    z-index: 1;
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circles-container .project-circle .circle-content {
    padding: 35px 30px;
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .circles-container .project-circle .circle-content {
        padding: 40px 35px;
        gap: 12px;
    }
}

/* Botones de Proyecto */
.project-buttons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    border-radius: 20px;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    white-space: nowrap;
}

.project-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.project-btn:active {
    transform: translateY(0);
}

.project-btn i {
    font-size: 0.85rem;
}

.btn-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
}

.btn-info:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
}

.btn-visit {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(99, 102, 241, 0.2));
    border-color: rgba(236, 72, 153, 0.4);
}

.btn-visit:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.4), rgba(99, 102, 241, 0.4));
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.3);
}

@media (min-width: 1024px) {
    .project-btn {
        padding: 7px 14px;
        font-size: 0.8rem;
        gap: 7px;
    }
    
    .project-btn i {
        font-size: 0.9rem;
    }
    
    .project-buttons {
        gap: 10px;
        margin-top: 15px;
    }
}

.circle-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: all 0.3s;
}

@media (min-width: 1024px) {
    .circle-icon {
        font-size: 3.5rem;
        margin-bottom: 18px;
    }
}

.circles-container .project-circle:hover .circle-icon {
    transform: scale(1.15) rotate(5deg);
    color: var(--accent-color);
}

.default-icon {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
}

@media (min-width: 1024px) {
    .default-icon {
        font-size: 2.2rem;
        width: 50px;
        height: 50px;
        line-height: 50px;
    }
}

.project-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 5px;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 1024px) {
    .project-name {
        font-size: 1.4rem;
        margin-bottom: 12px;
        margin-top: 8px;
    }
}

/* Controles de Navegación */
.circles-navigation {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 100;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(45, 55, 72, 0.8));
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 2px solid rgba(99, 102, 241, 0.4);
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
}

.nav-button:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.nav-button:active {
    transform: scale(0.95);
}

.nav-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.nav-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 25px 20px 12px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0;
    flex-shrink: 0;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.6s;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.3) 50%, rgba(15, 23, 42, 0.5) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.3) 20%, 
        rgba(99, 102, 241, 0.6) 50%, 
        rgba(99, 102, 241, 0.3) 80%, 
        transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.footer p {
    margin: 0;
    padding: 0 0 12px 0;
    background: linear-gradient(135deg, var(--text-muted), var(--text-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Animación de entrada inicial */
.main-circle:not(.active):not(.hidden) {
    opacity: 0;
    transform: translateZ(0) scale(0.8);
    animation: fadeInScale 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpScale {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes subtleGlow {
    0%, 100% {
        box-shadow: 
            0 25px 70px rgba(0, 0, 0, 0.6),
            0 0 50px rgba(99, 102, 241, 0.4),
            inset 0 0 30px rgba(99, 102, 241, 0.1);
    }
    50% {
        box-shadow: 
            0 25px 70px rgba(0, 0, 0, 0.6),
            0 0 60px rgba(99, 102, 241, 0.5),
            inset 0 0 40px rgba(99, 102, 241, 0.15);
    }
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive - Tablets y móviles (permiten scroll) */
@media (max-width: 1023px) {
    body {
        overflow-y: auto;
    }
    
    .container {
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .circle-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .circles-section {
        height: 460px;
        min-height: 460px;
        max-height: 460px;
        padding: 5px 15px 5px 15px;
    }
    
    .circles-container {
        margin-top: -50px;
    }
}
    
    .main-circle {
        width: 380px;
        height: 380px;
    }
    
    .circles-container .project-circle {
        width: 380px;
        height: 380px;
    }
    
    .circles-navigation {
        bottom: 80px;
        gap: 10px;
        padding: 6px 12px;
    }
    
    .nav-button {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
}

/* Efecto de partículas de fondo (opcional) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Estilos para notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: var(--bg-card);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-warning {
    border-left-color: #f59e0b;
}

.notification-success {
    border-left-color: #10b981;
}

/* Efecto ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(20);
        opacity: 0;
    }
}

/* Estado de carga */

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    position: relative;
    width: 80%;
    max-width: 1200px;
    max-height: 90vh;
    background: linear-gradient(135deg, var(--bg-card), #2d3748);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(99, 102, 241, 0.3);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.modal-content {
    padding: 50px 40px;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.modal-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-align: justify;
}

.modal-section {
    margin-bottom: 35px;
}

.modal-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section-title i {
    color: var(--primary-color);
}

.modal-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.tech-badge {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 25px;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

.modal-features {
    list-style: none;
    padding: 0;
}

.modal-features li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.modal-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    margin-top: 20px;
}

.modal-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.modal-button:active {
    transform: translateY(-1px);
}

.modal-button-container {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-content {
        padding: 40px 25px;
    }
    
    .modal-title {
        font-size: 2rem;
    }
    
    .modal-description {
        font-size: 1rem;
    }
    
    .modal-icon {
        font-size: 3rem;
    }
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    overflow: hidden;
}

.loader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    display: none !important;
}

.loader-container {
    text-align: center;
}

.loader-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
    animation-delay: 0s;
    border-top-color: var(--primary-color);
}

.spinner-ring:nth-child(2) {
    animation-delay: 0.3s;
    border-top-color: var(--secondary-color);
    width: 85%;
    height: 85%;
    top: 7.5%;
    left: 7.5%;
}

.spinner-ring:nth-child(3) {
    animation-delay: 0.6s;
    border-top-color: var(--accent-color);
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    margin-top: 20px;
}

.loader-quote {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out;
}

.loader-author {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.loader-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
    animation: fadeInOut 2s ease-in-out infinite;
    margin-top: 10px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .loader-spinner {
        width: 90px;
        height: 90px;
    }
    
    .loader-quote {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .loader-author {
        font-size: 0.9rem;
    }
    
    .loader-subtitle {
        font-size: 0.85rem;
    }
}

