:root {
    --bg-deep: #020204;
    --bg-grey: #121214;
    --primary-neon: #00f2ff;
    --secondary-neon: #7000ff;
    --border: rgba(0, 242, 255, 0.3);
    --text: #e0e0e0;
}

* { margin:0; padding:0; box-sizing:border-box; }

html{
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    background: var(--bg-deep);
}


body{
    color:var(--text);
    font-family:'Rajdhani', sans-serif;
    overflow-x:hidden;
}

#bg{
    position:fixed;
    top:0;
    left:0;
    z-index:-1;
    width:100vw;
    height:100vh;
}

/* NAV */

.main-nav{
    position:fixed;
    top:0;
    width:100%;
    height:80px;
    background:rgba(18,18,20,0.95);
    backdrop-filter:blur(15px);
    border-bottom:2px solid var(--secondary-neon);
    z-index:1000;
    display:flex;
    align-items:center;
}

.nav-container{
    width:100%;
    max-width:1300px;
    margin:auto;
    padding:0 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.nav-links{
    display:flex;
    list-style:none;
    gap:40px;
}

.nav-item{
    text-decoration:none;
    color:rgba(255,255,255,0.4);
    font-family:'Orbitron';
    font-size:0.75rem;
    letter-spacing:2px;
    transition:0.4s;
    padding-left: 10px;
}

.nav-item.active{
    color:var(--primary-neon);
    text-shadow:0 0 15px var(--primary-neon);
    transform:scale(1.1);
}

.menu-toggle{
    display:none;
}

.cv-highlight-btn{
    border:1px solid var(--primary-neon);
    padding:10px 20px;
    text-decoration:none;
}

/* SECCIONES */

.section{
    min-height: calc(100svh - 80px);
    scroll-snap-align: start;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px;
}

.panel{
    scroll-snap-stop: always;
}

.content-wrapper{
    max-width:900px;
    width:100%;
}

h2{
    font-family:'Orbitron';
    font-size:2rem;
    color:var(--primary-neon);
    margin-bottom:30px;
}

/* HERO */

.energy-core{
    position:relative;
    width:280px;
    height:280px;
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:30px;
}

.profile-pic-wrapper{
    width:180px;
    height:180px;
    border-radius:50%;
    overflow:hidden;
    border:2px solid var(--primary-neon);
}

.hero-img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.ring{
    position:absolute;
    border-radius:50%;
    border:2px solid transparent;
}

.ring-1{
    width:220px;
    height:220px;
    border-top:3px solid var(--primary-neon);
    animation:rot 4s linear infinite;
}

.ring-2{
    width:250px;
    height:250px;
    border-left:2px solid var(--primary-neon);
    animation:rot 8s linear infinite reverse;
}

.ring-3{
    width:280px;
    height:280px;
    border:1px dashed var(--primary-neon);
    animation:rot 15s linear infinite;
}

@keyframes rot{
    from{transform:rotate(0);}
    to{transform:rotate(360deg);}
}

.hero-identity{
    text-align:center;
}

.hero-identity h1{
    font-family:'Orbitron';
    font-size:3rem;
}

.highlight{
    color:var(--primary-neon);
}

.profession{
    color:var(--primary-neon);
    letter-spacing:6px;
    margin:10px 0;
}

/* SKILLS */

.skills-grid{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.power-module{
    display:flex;
    background:rgba(0,0,0,0.4);
    border:1px solid var(--border);
    height:120px;
}

.module-content{
    flex:1;
    padding:20px;
}

.power-bar-container{
    width:80px;
    background:black;
    border-left:1px solid var(--border);
    position:relative;
    display:flex;
    align-items:flex-end;
}

.power-fill{
    width:100%;
    height:0%;
    background:linear-gradient(to top,var(--secondary-neon),var(--primary-neon));
    transition:height 2s ease-out;
}

.power-label{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    font-family:'Orbitron';
}

/* GRID */

.grid-2col{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.exp-card{
    background:rgba(255,255,255,0.03);
    border:1px solid var(--border);
    padding:20px;
}

/* CONTACT */

.cyber-input{
    width:100%;
    background:rgba(255,255,255,0.05);
    border:1px solid var(--border);
    padding:15px;
    margin-bottom:15px;
}

.cyber-btn{
    width:100%;
    padding:15px;
    border:1px solid var(--primary-neon);
    background:transparent;
    color:var(--primary-neon);
}

/* RESPONSIVE */

@media(max-width:768px){

.section{
    min-height: calc(100svh - 80px);
    padding:120px 20px 80px;
}


.menu-toggle{
    display:flex;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
}

.menu-toggle span{
    width:25px;
    height:2px;
    background:var(--primary-neon);
}

.nav-links{
    position:absolute;
    top:80px;
    left:0;
    width:100%;
    background:#121214;
    flex-direction:column;
    padding:30px 0;
    display:none;
}

.nav-links.open{
    display:flex;
}

.cv-highlight-btn{
    display:none;
}

.energy-core{
    width:220px;
    height:220px;
}

.profile-pic-wrapper{
    width:120px;
    height:120px;
}

.hero-identity h1{
    font-size:1rem;
}

.grid-2col{
    grid-template-columns:1fr;
}

.power-module{
    flex-direction:column;
    height:auto;
}

.power-bar-container{
    width:100%;
    height:40px;
    border-left:none;
    border-top:1px solid var(--border);
}

.power-fill{
    width:0%;
    height:100%;
    transition:width 2s ease-out;
}

.ring-1{
    width:120px;
    height:120px;
    border-top:3px solid var(--primary-neon);
    animation:rot 4s linear infinite;
}

.ring-2{
    width:150px;
    height:150px;
    border-left:2px solid var(--primary-neon);
    animation:rot 8s linear infinite reverse;
}

.ring-3{
    width:180px;
    height:180px;
    border:1px dashed var(--primary-neon);
    animation:rot 15s linear infinite;
}

}

.contact-wrapper{
    max-width: 600px;
    width: 100%;
}

.section-title{
    margin-bottom: 10px;
}

.contact-subtitle{
    margin-bottom: 40px;
    opacity: 0.7;
    font-size: 0.95rem;
}

.contact-form{
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label{
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea{
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus{
    outline: none;
    border-color: #00f0ff;
    box-shadow: 0 0 0 2px rgba(0,240,255,0.2);
}

.contact-btn{
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(90deg,#00f0ff,#0077ff);
    color: #000;
    transition: 0.3s ease;
}

.contact-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,240,255,0.3);
}


/* BOTÓN DE DESCARGA CV (ESTILO PROTOCOLO) */
.cv-highlight-btn {
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--primary-neon);
    padding: 10px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.btn-glitch {
    font-family: 'Orbitron';
    font-size: 0.8rem;
    color: var(--primary-neon);
    letter-spacing: 2px;
}

.btn-tag {
    font-size: 0.5rem;
    color: var(--secondary-neon);
    position: absolute;
    bottom: 2px;
    right: 5px;
}

.cv-highlight-btn::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.4), transparent);
    transition: 0.5s;
}

.cv-highlight-btn:hover::before {
    left: 100%;
}

.cv-highlight-btn:hover {
    background: var(--primary-neon);
    box-shadow: 0 0 30px var(--primary-neon);
}

.cv-highlight-btn:hover .btn-glitch { color: #000; }