body {
    margin: 0;
    padding: 0;
    background: #f0efed;
    font-family: 'Segoe UI', Helvetica, arial, verdana, sans-serif;
    font-size: 16px;
    overflow: hidden;
    color: #2c2c2c;
    width: 100vw;
    height: 100vh;
}

#capa_logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    max-width: 250px;
    height: auto;
    display: block;
}

#capa_logo, #capa_logo path {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
}

.bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url(bg-ignatop.jpg) center center / cover no-repeat;
    z-index: -1;
    opacity: 1;
    top: 0;
    left: 0;
    transform: scale(1.1);
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.seccion.active .bg {
    transform: scale(1);
}

.seccion {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    overflow: hidden;
}

.seccion.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.seccion.exiting {
    opacity: 0;
}

/* Responsive logo */
@media (max-width: 768px) {
    #capa_logo {
        width: 70%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    #capa_logo {
        width: 80%;
        max-width: 180px;
    }
}



/* Developer Section Styles */
.content-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    z-index: 1;
    box-sizing: border-box;
}

/* Individual element animations - hidden by default */
.seccion:not(.active) .dev-title {
    opacity: 0;
    transform: translateY(-30px);
}

.seccion:not(.active) .dev-description {
    opacity: 0;
    transform: translateY(30px);
}

.seccion:not(.active) .skill-item {
    opacity: 0;
    transform: translateY(40px);
}

/* Animated when section is active */
.seccion.active .dev-title {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.seccion.active .dev-description {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.dev-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    margin: 0 0 25px 0;
    color: #1a1a1a;
    letter-spacing: -1px;
    line-height: 1.2;
}

.dev-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.7;
    color: #4a4a4a;
    margin: 0 0 50px 0;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 50px;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid for 4-item sections (2x2) */
.grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 800px !important;
}

.skill-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 15px 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    text-align: center;
}

/* Individual skill items animate with stagger */
.seccion.active .skill-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s;
}

.seccion.active .skill-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.0s;
}

.seccion.active .skill-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.2s;
}

.seccion.active .skill-item:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.4s;
}

.seccion.active .skill-item:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.6s;
}

.seccion.active .skill-item:nth-child(6) {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.8s;
}


.skill-icon {
    width: clamp(48px, 12vw, 64px);
    height: clamp(48px, 12vw, 64px);
    margin: 0 auto 20px auto;
    display: block;
    color: #667eea;
    stroke-width: 1.5;
}

.skill-item h3 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin: 0 0 10px 0;
    color: #2c2c2c;
    font-weight: 600;
    line-height: 1;
}

.skill-item p {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: #5a5a5a;
    margin: 0;
    line-height: 1.5;
}



/* Comprehensive Responsive Design */
@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .skill-item {
        padding: 28px 18px;
    }
}

@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .skill-item {
        padding: 25px 15px;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 25px 15px;
    }
    
    .dev-title {
        margin-bottom: 20px;
    }
    
    .dev-description {
        margin-bottom: 30px;
        font-size: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 30px;
    }
    
    .skill-item {
        padding: 20px 12px;
    }
    
    .skill-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }
    
    .skill-item h3 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .skill-item p {
        font-size: 0.85rem;
    }
}

@media (max-width: 580px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .skill-item {
        padding: 18px 10px;
    }
}

@media (max-width: 480px) {
    .seccion {
        padding: 12px 8px;
    }
    
    .content-wrapper {
        padding: 15px 10px;
    }
    
    .dev-title {
        margin-bottom: 15px;
    }
    
    .dev-description {
        margin-bottom: 25px;
        line-height: 1.6;
        font-size: 0.9rem;
    }
    
    .skills-grid {
        margin-top: 25px;
        gap: 8px;
    }
    
    .skill-item {
        padding: 16px 10px;
    }
    
    .skill-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
    }
    
    .skill-item h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .skill-item p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* Comprehensive Responsive Design */
@media (max-height: 500px) and (orientation: landscape) {
    .content-wrapper {
        padding: 15px;
    }
    
    .dev-title {
        margin-bottom: 8px;
    }
    
    .dev-subtitle {
        margin-bottom: 12px;
    }
    
    .dev-description {
        margin-bottom: 15px;
        font-size: 0.9rem;
    }
    
    .skills-grid {
        margin-top: 15px;
        gap: 12px;
    }
    
    .skill-item {
        padding: 15px 12px;
    }
    
    .skill-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
}


/***************************************************
PARTÍCULAS FLOTANTES
**************************************************/
.particle {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-110vh) translateX(50px);
        opacity: 0;
    }
}

/***************************************************
NAVEGACIÓN DE SECCIONES
**************************************************/
.section-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.2);
}

.nav-dot.active {
    background: rgba(102, 126, 234, 0.8);
    border-color: rgba(102, 126, 234, 1);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .section-nav {
        right: 15px;
        gap: 12px;
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
        border-width: 1.5px;
    }
}

@media (max-width: 480px) {
    .section-nav {
        right: 10px;
        gap: 10px;
    }
    
    .nav-dot {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }
    
    .nav-dot.active {
        transform: scale(1.2);
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .section-nav {
        right: 12px;
        gap: 8px;
    }
    
    .nav-dot {
        width: 8px;
        height: 8px;
    }
}


/***************************************************
ANIMACIONES SVG
**************************************************/

@-webkit-keyframes animate-svg-fill-1 {
0% {
    fill: transparent;
}

100% {
    fill: rgb(255, 255, 255);
}
}

@keyframes animate-svg-fill-1 {
0% {
    fill: transparent;
}

100% {
    fill: rgb(255, 255, 255);
}
}

/* SVG elements start invisible */
.svg-elem-1, .svg-elem-2, .svg-elem-3, 
.svg-elem-4, .svg-elem-5 {
    fill: transparent;
}

/* Animate only when section is active */
.seccion.active .svg-elem-1 {
    -webkit-animation: animate-svg-fill-1 1s ease-in-out 0.2s both;
    animation: animate-svg-fill-1 1s ease-in-out 0.2s both;
}


@-webkit-keyframes animate-svg-fill-2 {
0% {
    fill: transparent;
}

100% {
    fill: rgb(255, 255, 255);
}
}

@keyframes animate-svg-fill-2 {
0% {
    fill: transparent;
}

100% {
    fill: rgb(255, 255, 255);
}
}

.seccion.active .svg-elem-2 {
    -webkit-animation: animate-svg-fill-2 1s ease-in-out 0.4s both;
    animation: animate-svg-fill-2 1s ease-in-out 0.4s both;
}

@-webkit-keyframes animate-svg-fill-3 {
0% {
    fill: transparent;
}

100% {
    fill: rgb(255, 255, 255);
}
}

@keyframes animate-svg-fill-3 {
0% {
    fill: transparent;
}

100% {
    fill: rgb(255, 255, 255);
}
}

.seccion.active .svg-elem-3 {
    -webkit-animation: animate-svg-fill-3 1s ease-in-out 0.6s both;
    animation: animate-svg-fill-3 1s ease-in-out 0.6s both;
}

@-webkit-keyframes animate-svg-fill-4 {
0% {
    fill: transparent;
}

100% {
    fill: rgb(255, 255, 255);
}
}

@keyframes animate-svg-fill-4 {
0% {
    fill: transparent;
}

100% {
    fill: rgb(255, 255, 255);
}
}

.seccion.active .svg-elem-4 {
    -webkit-animation: animate-svg-fill-4 1s ease-in-out 0.8s both;
    animation: animate-svg-fill-4 1s ease-in-out 0.8s both;
}

@-webkit-keyframes animate-svg-fill-5 {
0% {
    fill: transparent;
}

100% {
    fill: rgb(255, 255, 255);
}
}

@keyframes animate-svg-fill-5 {
0% {
    fill: transparent;
}

100% {
    fill: rgb(255, 255, 255);
}
}

.seccion.active .svg-elem-5 {
    -webkit-animation: animate-svg-fill-5 1s ease-in-out 1s both;
    animation: animate-svg-fill-5 1s ease-in-out 1s both;
}




/***************************************************
INDICADOR DE SCROLL
**************************************************/
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 100;
    visibility: hidden;
    transition: all 0.5s ease 1.5s;
}

.seccion.active .scroll-indicator {
    visibility: visible;
}


.scroll-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4a4a4a;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Segoe UI', sans-serif;
}

.chevron {
    width: 24px;
    height: 24px;
    stroke: #001ea5;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Specific styling for the first section circular indicator */
.seccion:first-child .scroll-indicator {
    width: 120px;
    height: 120px;
    background: rgba(9, 50, 133, 0.8);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.seccion:first-child .scroll-text {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.seccion:first-child .chevron {
    stroke: #ffffff;
    width: 32px;
    height: 32px;
    margin: 0;
}

.seccion:first-child .scroll-indicator .chevron {
    animation: bounceCircle 2s infinite;
}

@keyframes bounceCircle {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(5px);
    }
    60% {
        transform: translateY(3px);
    }
}

/* Botones personalizados */
.custom-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #001ea5;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}


