/* =========================
   RESET & BASE
========================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat';
}
        
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000; /* Cambia el fondo blanco a negro (#000) */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
        
html {
    scroll-behavior: smooth;
}

/* =========================
   HEADER / NAVBAR
========================= */
#inicio .contenido header {
    background-color: rgba(0, 0, 0, .8);
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
}
        
#inicio .contenido header .contenido-header {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
        
#inicio .contenido header .contenido-header h1 {
    text-align: center;
    color: #f9f9f9;
}
        
#inicio .contenido header .contenido-header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}
        
#inicio .contenido header .contenido-header nav ul li a {
    text-decoration: none;
    color: #fff;
    margin: 0 12px;
    font-weight: 400;
    transition: .5s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
        
#inicio .contenido header .contenido-header nav ul li a:hover {
    color: #5A0B16;
}
        
#inicio .contenido header .contenido-header .seleccionado {
    color: #5A0B16;
}

.btn-cv {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    border: 2px solid #5A0B16;
    transition: 0.3s ease;
    font-weight: 500;
    width: fit-content;
}

.btn-cv:hover {
    background: #5A0B16;
    color: #fff !important;
    border-color: #7B112C;
    transform: translateY(-2px);
}

#icono-nav {
    color: #fff;
    display: none;
    font-size: 28px;
    padding: 6px;
}

.cerrar-menu {
    position: absolute;
    top: 25px;
    right: 25px;
    display: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: 0.3s ease;
}

.cerrar-menu:hover {
    color: #5A0B16;
    transform: rotate(90deg);
}

/* =========================
   HERO
========================= */
#inicio {
    background: linear-gradient( rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url("assets/programando.jpg");
    background-size: cover;
    background-position: center center;
    height: 100vh;
}
        
#inicio .contenido .presentacion {
    max-width: 1100px;
    height: 100vh;
    margin: auto;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
        
#inicio .contenido .presentacion .bienvenida {
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
}
        
#inicio .contenido .presentacion h2 {
    font-size: 55px;
    margin-bottom: 25px;
    text-align: center;
}
        
#inicio .contenido .presentacion h2 span {
    font-size: 25px;
    color: #fffefe;
}
        
#inicio .contenido .presentacion .descripcion {
    max-width: 700px;
    margin: 25px auto;
    font-size: 18px;
    text-align: center;
}
        
#inicio .contenido .presentacion a {
    text-decoration: none;
    display: inline-block;
    margin: 25px;
    padding: 20px 25px;
    border: 2px solid #7B112C;
    border-radius: 50px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    transition: .5s;
}
        
/* BOTÓN "IR" */
#inicio .contenido .presentacion a:hover {
    background-color: #5A0B16;
}

.botones-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* =========================
   ABOUT
========================= */
#sobremi {
    max-width: 1100px;
    margin: auto;
    padding: 100px 15px;
    color: #111135;
    display: flex;
}
        
#sobremi .contenedor-foto {
    max-width: 400px;
    margin-right: 80px;
}
        
#sobremi .contenedor-foto img {
    padding: 20px;
    width: 100%;
    border-radius: 20px;
    background-color: #040404;
}
        
#sobremi .sobremi {
    margin: 0 40px;
}
        
#sobremi .sobremi .titulo-seccion {
    font-size: 22px;
    text-transform: uppercase;
    color: #646161;
    text-decoration: underline;
    text-decoration-color: #5A0B16;
    text-decoration-thickness: 5px;
}
        
#sobremi .sobremi h2 {
    font-size: 34px;
    font-weight: bold;
    margin: 20px 0;
    letter-spacing: 2px;
    color: #565656;
}
        
#sobremi .sobremi h2 span {
    color: #fcfafa;
}
        
#sobremi .sobremi h3 {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: #fcfafa;
}
        
#sobremi .sobremi p {
    font-size: 14px;
    line-height: 25px;
    color: #646161;
    margin-bottom: 12px;
}
        
#sobremi .sobremi a {
    display: inline-block;
    text-decoration: none;
    color: #000;
    border-radius: 30px;
    border: 1px solid #000;
    padding: 10px 20px;
    margin-top: 30px;
    transition: .5s;
}
        
#sobremi .sobremi a:hover {
    background-color: #ff5080;
    color: #fff;
}

/* =========================
   CAPABILITIES
========================= */
#capacidades {
    padding: 100px 15px;
    text-align: center;
    background-color: #000;
}
        
#capacidades .titulo-seccion {
    text-align: center;
    font-size: 22px;
    text-transform: uppercase;
    color: #646161;
    text-decoration: underline;
    text-decoration-color: #5A0B16;
    text-decoration-thickness: 5px;
}
        
#capacidades .fila {
    display: flex;
    justify-content: space-between;
    max-width: 1150px;
    margin: 30px auto;
}
        
#capacidades .fila .capacidad {
    max-width: 350px;
    background-color: #000000;
    padding: 30px;
    margin: 0 5px;
    border-radius: 5px;
    transition: .5s;
}
        
#capacidades .fila .capacidad:hover {
    box-shadow: 5px 5px 10px #c31010, -5px -5px 10px #8a8a8a;
}
      
/* HOVER ICONOS CAPACIDADES */
#capacidades .fila .capacidad .icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    background-color: #5A0B16;
    color: #fff;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background-color 0.35s ease;
}

#capacidades .fila .capacidad .icono i {
    font-size: 22px;
    transition: transform 0.35s ease;
}

#capacidades .fila .capacidad:hover .icono {
    transform: translateY(-6px) scale(1.06);

    box-shadow:
        0 0 15px rgba(90,11,22,.5),
        0 0 30px rgba(90,11,22,.25);

    background-color: #7B112C;
}

#capacidades .fila .capacidad:hover .icono i {
    transform: scale(1.12);
}
        
#capacidades .fila .capacidad h4 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #fff;
}
        
#capacidades .fila .capacidad hr {
    width: 30%;
    margin: auto;
    color: #000;
    margin-bottom: 25px;
}
        
#capacidades .fila .capacidad ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}
        
#capacidades .fila .capacidad p {
    font-size: 14px;
    line-height: 22px;
    color: #fff;
}

/* STACK BADGES */
.tech-stack {
    margin-top: 110px;
    text-align: center;
}

.titulo-stack {
    font-size: 32px;
    margin-bottom: 35px;
}

.titulo-stack::after {
    width: 60%;
}

.stack-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.stack-badges span {
    padding: 10px 18px;
    border: 1px solid #5A0B16;
    border-radius: 30px;
    color: #fff;
    font-size: 14px;
    background: rgba(255,255,255,0.02);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stack-badges span:hover {
    transform: translateY(-3px);
    background: rgba(90,11,22,.15);
    box-shadow:
        0 0 10px rgba(90,11,22,.4),
        0 0 20px rgba(90,11,22,.2);
}

.stack-badges span img{
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    opacity: .9;
}

.stack-badges span:hover img{
    opacity: 1;
    transform: scale(1.1);
}


/* =========================
   CERTIFICATIONS
========================= */
#certificaciones {
    padding: 100px 20px;
    background-color: #000;
}

#certificaciones .titulo-seccion {
    text-align: center;
    font-size: 22px;
    text-transform: uppercase;
    color: #646161;
    text-decoration: underline;
    text-decoration-color: #5A0B16;
    text-decoration-thickness: 5px;
    margin-bottom: 80px;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: auto;
    padding-left: 40px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255,255,255,0.12);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-dot {
    position: absolute;
    left: -39px;
    top: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #5A0B16;
    box-shadow:
        0 0 10px rgba(90,11,22,.6),
        0 0 20px rgba(90,11,22,.3);
    transition: 0.3s ease;
}

.timeline-content {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 28px;
    border-radius: 14px;
    transition: all 0.35s ease;
}

/* CERTIFICACIONES SECUNDARIAS */
.secondary-cert .timeline-content {
    padding: 22px;
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.04);
}

.secondary-cert .timeline-content h4 {
    font-size: 18px;
}

.secondary-cert .timeline-content p {
    font-size: 13px;
    margin-bottom: 18px;
}

.secondary-cert .btn-certificado {
    padding: 8px 15px;
    font-size: 13px;
}

.secondary-cert .timeline-dot {
    width: 14px;
    height: 14px;
    top: 14px;
}

.certificado-item.secondary-cert {
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.timeline-content:hover {
    transform: translateY(-6px);
    border-color: rgba(90,11,22,.6);
    box-shadow:
        0 0 15px rgba(90,11,22,.25),
        0 0 30px rgba(90,11,22,.15);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.15);
}

.timeline-date {
    display: inline-block;
    color: #7B112C;
    font-size: 13px;
    margin-bottom: 12px;
    letter-spacing: 1px;
    font-weight: 600;
}

.timeline-content h4 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 12px;
}

.timeline-content p {
    color: #b8b8b8;
    line-height: 26px;
    margin-bottom: 22px;
    font-size: 14px;
}

.btn-certificado {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid #5A0B16;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-certificado:hover {
    background: #5A0B16;
    transform: translateY(-2px);
    box-shadow:
        0 0 12px rgba(90,11,22,.4);
}


/* =========================
   PROJECTS
========================= */
#portfolio {
    max-width: 1100px;
    padding: 100px 0;
    margin: auto;
}
        
#portfolio .titulo-seccion {
    text-align: center;
    font-size: 22px;
    text-transform: uppercase;
    color: #646161;
    text-decoration: underline;
    text-decoration-color: #5A0B16;
    text-decoration-thickness: 5px;
}
        
#portfolio .fila {
    display: flex;
    justify-content: space-between;
    margin: 30px;
    flex-wrap: wrap;
    margin: 30px 0;
}

/* CARD */
#portfolio .fila .proyecto {
    max-width: 450px;
    border: 1px solid rgba(90,11,22,.15);
    margin: 0 10px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    transition: 
    transform 0.45s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}
    
#portfolio .fila .proyecto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: grayscale(0.6);
}

/* EFECTO HOVER IMAGEN */
#portfolio .fila .proyecto:hover img {
    transform: scale(1.06);
    filter: grayscale(0) brightness(0.35);
}

#portfolio .fila .proyecto:hover {
    transform: translateY(-6px);
    border-color: rgba(90,11,22,.6);
    box-shadow:
        0 10px 30px rgba(0,0,0,.55),
        0 0 18px rgba(90,11,22,.35);
}

/* OVERLAY NUEVO */
#portfolio .fila .proyecto .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 15px;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* HOVER ACTIVA OVERLAY */
#portfolio .fila .proyecto:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

/* ANIMACION TEXTO OVERLAY */
.overlay h4,
.overlay .stack,
.overlay .descripcion,
.overlay .impacto,
.overlay .botones {
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s ease;
}

.proyecto:hover .overlay h4 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.proyecto:hover .overlay .stack {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.proyecto:hover .overlay .descripcion {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.proyecto:hover .overlay .impacto {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.proyecto:hover .overlay .botones {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.overlay h4 {
    margin-bottom: 8px;
}

.overlay .stack {
    font-size: 14px;
    color: #7B112C;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(123, 17, 44, 0.5);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    margin-bottom: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stack span {
    color: #ffffff50;
    margin: 0 4px;
}

.overlay .descripcion {
    font-size: 13px;
    margin-bottom: 8px;
}

.overlay .impacto {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 15px;
}        

.overlay .botones a {
    text-decoration: none;
    color: white;
    border: 1px solid #5A0B16;
    padding: 6px 14px;
    margin: 5px;
    border-radius: 6px;
    transition: 0.3s;
    font-size: 12px;
}

.overlay .botones a:hover {
    background: #5A0B16;
}

/* BOTON GITHUB DIFERENTE */
.overlay .botones a:last-child {
    border-color: #888;
}

.overlay .botones a:last-child:hover {
    background: #333;
}        

/* =========================
   CONTACT
========================= */
#contacto {
    padding: 100px 20px;
    background: #000;
    text-align: center;
}
        
#contacto .titulo-seccion {
    font-size: 22px;
    text-transform: uppercase;
    color: #646161;
    text-decoration: underline;
    text-decoration-color: #5A0B16;
    text-decoration-thickness: 5px;
}

#contacto .subtitulo {
    color: #aaa;
    margin-top: 25px;
    margin-bottom: 60px;
    font-size: 15px;
}

.contenedor-redes {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    /*flex-direction: column;*/
    /*align-items: center;*/
}

.red-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.red-social {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid #5A0B16;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s ease;
}

.red-social i {
    font-size: 34px;
    color: #fff;
    transition: all 0.4s ease;
}

.red-social:hover {
    transform: translateY(-8px) rotate(10deg) scale(1.08);
    box-shadow:
        0 0 15px rgba(90,11,22,.6),
        0 0 30px rgba(90,11,22,.4);
}

.red-social:hover i {
    transform: scale(1.15);
}

.red-item span {
    color: #fff;
    font-size: 15px;
    letter-spacing: 1px;
}

/* =========================
   FOOTER
========================= */
footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}
        
footer a {
    text-decoration: none;
    color: #fff;
    display: inline-block;
    margin: 5px;
    font-size: 26px;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes menuFade {
    from{
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ANIMACION ICONO HAMBURGUESA */
#icono-nav i {
    transition:
        transform 0.35s ease,
        color 0.35s ease,
        text-shadow 0.35s ease;
}

#icono-nav:hover i {
    color: #5A0B16;
    transform: 
        scale(1.25) 
        rotate(16deg);
    text-shadow: 
        0 0 10px rgba(90, 11, 22, .7),
        0 0 20px rgba(90, 11, 22, .5);

}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease,
        filter 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* DELAYS */
.capacidad:nth-child(1) { transition-delay: 0.1s; }
.capacidad:nth-child(2) { transition-delay: 0.2s; }
.capacidad:nth-child(3) { transition-delay: 0.3s; }
.capacidad:nth-child(4) { transition-delay: 0.4s; }
.capacidad:nth-child(5) { transition-delay: 0.5s; }
.capacidad:nth-child(6) { transition-delay: 0.6s; }

.proyecto:nth-child(1) { transition-delay: 0.1s; }
.proyecto:nth-child(2) { transition-delay: 0.2s; }
.proyecto:nth-child(3) { transition-delay: 0.3s; }

.red-item:nth-child(1) { transition-delay: 0.1s; }
.red-item:nth-child(2) { transition-delay: 0.2s; }
.red-item:nth-child(3) { transition-delay: 0.3s; }

/* =========================
   RESPONSIVE
========================= */
@media screen and (max-width: 800px) {
    nav.responsive .cerrar-menu {
        display: block;
        position: absolute;
        top: 30px;
        right: 25px;
        font-size: 28px;
        cursor: pointer;
    }

    #inicio .contenido header .contenido-header {
        max-width: 100%;
        width: 100%;
    }
    
    #inicio .contenido {
        padding: 0;
        gap: 10px;
    }
    
    #inicio .contenido h2{
        margin-top: 40px;
        font-size: 40px;
    }

    .btn #inicio .contenido a {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .botones-hero {
        flex-direction: column;
        align-items: center;
    }
    
    
    
     nav {
        display: none;
    }
            
    nav.responsive {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;  
        margin: 0;
        padding-top: 110px;
        padding-left: 35px;
        background-color: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 25px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, .45);
        transition: right 0.4s ease;
        z-index: 9999;
    }

    nav.responsive.active {
        right: 0;
    }
    
    nav.responsive ul {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }
            
    nav.responsive ul li {
        width: 100%;
        margin: 10px 0;
        display: flex;
        justify-content: flex-start;
        opacity: 0;
        animation: menuFade 0.5s ease forwards;
    }

    nav.responsive ul li a {
        justify-content: flex-start !important;
        text-align: left !important;
    }
            
    #icono-nav {
        display: block;
    }
            
    /* seccion SOBRE MI */   
    #sobremi {
        padding: 50px 0;
        display: block;
    }
            
    #sobremi .contenedor-foto {
        max-width: 200px;
        margin: auto;
    }
            
    #sobremi .contenedor-foto img {
        padding: 8px;
    }
            
    #sobremi .sobremi .titulo-seccion {
        text-align: center;
    }
            
    #sobremi .sobremi h2 {
        font-size: 25px;
        text-align: center;
    }
            
    #capacidades {
        padding: 50px 15px;
    }
            
    #capacidades .fila {
        display: block;
    }
            
    #capacidades .fila .capacidad {
         margin: 10px auto;
    }
    
    /* seccion PROYECTOS */
    #portfolio {
        padding: 50px 0;
    }
            
    #portfolio .fila {
        display: block;
    }

    #portfolio .fila .proyecto {
        margin: 10px auto;
    }
            
    /* seccion CONTACTO */
    #contacto {
        padding: 50px 15px;
    }
            
    .contenedor-redes {
        gap: 35px;
    }
            
    .red-social {
        width: 75px;
        height: 75px;
    }
            
    .red-social i {
        font-size: 28px;
    }

    nav.responsive ul li:nth-child(1) {
        animation-delay: 0.05s;
    }

    nav.responsive ul li:nth-child(2) {
        animation-delay: 0.10s;
    }

    nav.responsive ul li:nth-child(3) {
        animation-delay: 0.15s;
    }

    nav.responsive ul li:nth-child(4) {
        animation-delay: 0.20s;
    }

    nav.responsive ul li:nth-child(5) {
        animation-delay: 0.25s;
    }

    nav.responsive ul li:nth-child(6) {
        animation-delay: 0.30s;
    }

    nav.responsive ul li:nth-child(7) {
        animation-delay: 0.35s;
    }

    nav.responsive ul li:nth-child(8) {
        animation-delay: 0.45s;
    }

    nav.responsive ul li:nth-child(9) {
        animation-delay: 0.50s;
    }

    .stack-badges {
        gap: 10px;
    }

    .stack-badges span {
        font-size: 13px;
        padding: 8px 14px;
    }

    #certificaciones {
        padding: 70px 15px;
    }

    .timeline {
        padding-left: 25px;
    }

    .timeline-content {
        padding: 22px;
    }

    .timeline-content h4 {
        font-size: 18px;
    }

    .timeline-content p {
        font-size: 13px;
        line-height: 24px;
    }
}


