*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:#0a0a0f;color:#e2e8f0;font-family:'Inter',sans-serif;font-weight:400;line-height:1.6;overflow-x:hidden}

#particles-canvas{position:fixed;top:0;left:0;width:100%;height:100%;z-index:0;pointer-events:none}

nav{position:fixed;top:16px;left:50%;transform:translateX(-50%);z-index:100;display:flex;align-items:center;justify-content:space-between;padding:12px 24px;background:rgba(15,15,25,0.85);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,0.08);border-radius:16px;width:min(860px,92vw);gap:2rem}
.nav-logo{font-size:15px;font-weight:700;color:#fff;text-decoration:none;white-space:nowrap}
.nav-links{display:flex;gap:2rem;list-style:none}
.nav-links a{font-size:14px;color:#94a3b8;text-decoration:none;transition:color .2s}
.nav-links a:hover{color:#fff}
.nav-hamburger{display:none;background:none;border:none;cursor:pointer;color:#94a3b8;font-size:20px;padding:4px;transition:color .2s;z-index:101}
.nav-hamburger:hover{color:#fff}
.nav-hamburger:active{scale:.92}

.lang-switcher{display:flex;align-items:center;gap:2px;margin-left:auto;margin-right:.5rem}
.lang-btn{background:none;border:1px solid transparent;color:#64748b;font-size:11px;font-weight:600;padding:4px 8px;border-radius:6px;cursor:pointer;font-family:'Inter',sans-serif;letter-spacing:.04em;transition:all .2s}
.lang-btn:hover{color:#fff;border-color:rgba(255,255,255,0.15)}
.lang-btn.active{color:#fff;background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.12)}
.lang-btn:active{scale:.92}

.skip-link{position:absolute;top:-100px;left:50%;transform:translateX(-50%);z-index:10000;background:#3b82f6;color:#fff;padding:8px 16px;border-radius:0 0 8px 8px;font-size:14px;text-decoration:none;transition:top .2s}
.skip-link:focus{top:0}

section{position:relative;z-index:1}

#hero{min-height:100vh;display:flex;align-items:center;padding:7rem clamp(1.5rem,5vw,4rem) 4rem}
.hero-inner{display:flex;align-items:center;justify-content:space-between;gap:3rem;width:100%;max-width:1100px;margin:0 auto}
.hero-left{flex:1}
.hero-greeting{font-size:16px;font-weight:400;color:#94a3b8;margin-bottom:.5rem}
.hero-name{font-size:clamp(2.2rem,5vw,3.8rem);font-weight:700;background:linear-gradient(90deg,#60a5fa,#a855f7);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1.1;margin-bottom:.5rem}
.hero-role{font-size:clamp(1rem,2.5vw,1.4rem);font-weight:600;color:#a855f7;margin-bottom:1.2rem}
.hero-desc{font-size:14px;color:#94a3b8;max-width:460px;line-height:1.8;margin-bottom:1rem}
.hero-desc span{color:#60a5fa;font-weight:500}
.hero-location{display:flex;align-items:center;gap:6px;font-size:13px;color:#64748b;margin-bottom:1.8rem}
.hero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.btn-email{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(90deg,#3b82f6,#8b5cf6);color:#fff;padding:10px 20px;border-radius:8px;text-decoration:none;font-size:13px;font-weight:500;transition:opacity .2s}
.btn-email:hover{opacity:.85}
.btn-email:active{scale:.97}
.btn-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid rgba(255,255,255,0.12);border-radius:8px;color:#94a3b8;text-decoration:none;font-size:16px;transition:all .2s}
.btn-icon:hover{border-color:rgba(255,255,255,0.3);color:#fff}
.btn-icon:active{scale:.92}
.hero-right{display:flex;flex-direction:column;align-items:center;gap:1.2rem}
.hero-photo{width:200px;height:200px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,0.1)}
.hero-photo-fallback{display:flex;align-items:center;justify-content:center;font-size:3rem;font-weight:700;color:#60a5fa;background:rgba(255,255,255,0.05)}

.badge-available{display:inline-flex;align-items:center;gap:8px;background:rgba(15,15,25,0.9);border:1px solid rgba(255,255,255,0.12);border-radius:999px;padding:8px 18px;font-size:13px;color:#e2e8f0}
.badge-dot{width:8px;height:8px;border-radius:50%;background:#22c55e;animation:blink 2s infinite}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.3}}

.tech-strip{position:relative;z-index:1;max-width:1100px;margin:0 auto;overflow:hidden;padding:1.5rem 0;border:1px solid rgba(255,255,255,0.05);background:rgba(255,255,255,0.02);border-radius:15px}
.tech-strip-inner{display:flex;gap:3rem;animation:marquee 30s linear infinite;white-space:nowrap;width:max-content}
.tech-strip-item{display:flex;align-items:center;gap:8px;font-size:13px;color:#64748b;font-weight:500}
@keyframes marquee{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

.section-wrap{max-width:1100px;margin:0 auto;padding:5rem clamp(1.5rem,5vw,4rem);width:100%}
.section-header{text-align:center;margin-bottom:3rem}
.section-header h2{font-size:clamp(1.8rem,4vw,2.5rem);font-weight:700;color:#fff;margin-bottom:.75rem}
.section-divider{width:60px;height:3px;background:linear-gradient(90deg,#3b82f6,#a855f7);margin:.6rem auto 1rem;border-radius:2px}
.section-header p{font-size:14px;color:#64748b}

.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-bottom:1.5rem}
.about-card{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.07);border-radius:14px;padding:1.5rem}
.about-card h3{font-size:16px;font-weight:600;color:#fff;margin-bottom:.5rem}
.about-subtitle{margin-top:1.2rem}
.about-card-line{width:36px;height:2px;background:linear-gradient(90deg,#3b82f6,#a855f7);border-radius:2px;margin-bottom:1rem}
.about-card p{font-size:13px;color:#94a3b8;line-height:1.8;margin-bottom:.8rem}
.about-card ul{list-style:none;display:flex;flex-direction:column;gap:.4rem}
.about-card ul li{font-size:13px;color:#94a3b8;display:flex;align-items:flex-start;gap:8px}
.soft-skills{display:flex;flex-wrap:wrap;gap:8px;margin-top:.8rem}
.soft-pill{font-size:12px;border:1px solid rgba(255,255,255,0.1);border-radius:999px;padding:4px 14px;color:#94a3b8}
.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.stat-card{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.07);border-radius:14px;padding:1.5rem;text-align:center}
.stat-num{font-size:2.2rem;font-weight:700;background:linear-gradient(90deg,#60a5fa,#a855f7);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.stat-label{font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:.08em;margin-top:.25rem}

.stack-tabs{display:flex;gap:.6rem;flex-wrap:wrap;justify-content:center;margin-bottom:2rem}
.stack-tab{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border:1px solid rgba(255,255,255,0.1);border-radius:8px;font-size:13px;color:#94a3b8;cursor:pointer;background:none;transition:all .2s;font-family:'Inter',sans-serif}
.stack-tab.active{background:linear-gradient(90deg,#3b82f6,#8b5cf6);color:#fff;border-color:transparent}
.stack-tab:hover:not(.active){border-color:rgba(255,255,255,0.2);color:#fff}
.stack-tab:active:not(.active){scale:.95}
.stack-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem}
.stack-item{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.07);border-radius:10px;padding:14px 16px;font-size:13px;color:#e2e8f0;font-weight:500;cursor:default;transition:border-color .2s}
.stack-item:hover{border-color:rgba(255,255,255,0.15)}
.stack-item .icon{font-size:20px}


.project-card{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.07);border-radius:14px;overflow:hidden;transition:border-color .25s,transform .25s;display:flex;flex-direction:column}
.project-card:hover{border-color:rgba(255,255,255,0.15);transform:translateY(-4px)}
.project-img{width:100%;height:180px;display:flex;align-items:center;justify-content:center;font-size:2.5rem;position:relative}
.project-icon{font-size:3rem}

.project-badge{position:absolute;top:10px;left:10px;font-size:11px;font-weight:600;padding:4px 12px;border-radius:999px;color:#fff}
.badge-sap{background:#0a84ff}
.project-body{padding:1.25rem;flex:1;display:flex;flex-direction:column}
.project-title{font-size:16px;font-weight:600;color:#fff;margin-bottom:.5rem}
.project-desc{font-size:13px;color:#64748b;line-height:1.7;margin-bottom:1rem}
.project-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:1rem}
.project-tag{display:inline-flex;align-items:center;gap:5px;font-size:11px;border:1px solid rgba(255,255,255,0.1);border-radius:6px;padding:3px 10px;color:#94a3b8}
.project-btns{display:flex;gap:.6rem;margin-top:auto}
.btn-code{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:9px;border:1px solid rgba(255,255,255,0.1);border-radius:8px;font-size:12px;color:#94a3b8;text-decoration:none;background:none;cursor:pointer;font-family:'Inter',sans-serif;transition:all .2s}
.btn-code:hover{border-color:rgba(255,255,255,0.25);color:#fff}
.btn-code:active{scale:.95}
.btn-demo{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:9px;border-radius:8px;font-size:12px;color:#fff;text-decoration:none;background:linear-gradient(90deg,#3b82f6,#8b5cf6);border:none;cursor:pointer;font-family:'Inter',sans-serif;transition:opacity .2s}
.btn-demo:hover{opacity:.85}
.btn-demo:active{scale:.95}

.projects-carousel{display:flex;align-items:center;gap:12px;max-width:100%}
.carousel-track{display:flex;gap:1.5rem;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;flex:1;padding-bottom:8px}
.carousel-track::-webkit-scrollbar{display:none}
.carousel-track{-ms-overflow-style:none;scrollbar-width:none}
.carousel-track .project-card{flex:0 0 340px;scroll-snap-align:start;scroll-snap-stop:normal}
.carousel-prev,.carousel-next{flex-shrink:0;width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,0.12);background:rgba(15,15,25,0.85);color:#94a3b8;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;z-index:2}
.carousel-prev:hover,.carousel-next:hover{border-color:rgba(255,255,255,0.25);color:#fff}
.carousel-prev:active,.carousel-next:active{scale:.92}

.exp-list{display:flex;flex-direction:column;gap:1rem}
.exp-card{display:flex;align-items:flex-start;gap:1.25rem;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.07);border-radius:14px;padding:1.5rem;transition:border-color .2s}
.exp-card:hover{border-color:rgba(255,255,255,0.15)}
.exp-icon{width:42px;height:42px;border-radius:10px;background:rgba(255,255,255,0.06);display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}
.exp-info h3{font-size:15px;font-weight:600;color:#fff;margin-bottom:2px}
.exp-info .exp-company{font-size:13px;color:#a855f7;font-weight:500;margin-bottom:2px}
.exp-info .exp-period{font-size:12px;color:#64748b}

.cert-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.cert-card{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.07);border-radius:14px;padding:1.5rem;text-align:center;transition:border-color .25s,transform .25s;display:flex;flex-direction:column;align-items:center;gap:.3rem}
.cert-card:hover{border-color:rgba(255,255,255,0.15);transform:translateY(-4px)}
.cert-icon{font-size:2rem}
.cert-card h3{font-size:14px;font-weight:600;color:#fff}
.cert-inst{font-size:12px;color:#a855f7;font-weight:500;line-height:1.4}
.cert-year{font-size:11px;color:#64748b}

#contacto{text-align:center}
.open-label{font-size:14px;color:#60a5fa;margin-top:.5rem}


.contact-form{width:100%;max-width:500px;margin:0 auto;display:flex;flex-direction:column;gap:1rem;padding:0 1rem}
.form-group{display:flex;flex-direction:column;gap:0.3rem;text-align:left}
.form-group label{font-weight:500;font-size:0.9rem}
.form-group input,.form-group textarea{width:100%;padding:0.75rem;border:1px solid #333;border-radius:6px;background:#1a1a2e;color:#fff;font-family:inherit;font-size:1rem}
.form-group input:focus,.form-group textarea:focus{outline:none;border-color:#6366f1}
.form-group input[aria-invalid="true"],.form-group textarea[aria-invalid="true"]{border-color:#f87171}
.hp-field{position:absolute;left:-9999px;top:-9999px;opacity:0;height:0;overflow:hidden}
.optional{font-size:11px;color:#64748b;font-weight:400}
.field-error{font-size:12px;color:#f87171;display:none;margin-top:2px}
.field-error:not(:empty){display:block}
.message-footer{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.char-count{font-size:11px;color:#64748b;white-space:nowrap;margin-left:auto}
.consent-group{border:1px solid rgba(255,255,255,0.07);border-radius:8px;padding:0.75rem;background:rgba(255,255,255,0.02)}
.consent-label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;color:#94a3b8;font-weight:400}
.consent-label input[type="checkbox"]{width:auto;accent-color:#6366f1;cursor:pointer}
.btn-submit{width:100%;padding:0.75rem 1.5rem;background:#6366f1;color:#fff;border:none;border-radius:6px;font-weight:600;cursor:pointer;transition:background 0.2s}
.btn-submit:hover{background:#4f46e5}
.btn-submit:active{scale:.97}
.btn-submit:disabled{opacity:0.6;cursor:not-allowed}
.btn-submit.loading{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn-submit.loading::after{content:'';width:16px;height:16px;border:2px solid rgba(255,255,255,0.3);border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.form-message{text-align:center;padding:0.75rem;border-radius:6px;display:none}
.form-message.success{background:#065f46;color:#fff;display:block}
.form-message.error{background:#991b1b;color:#fff;display:block}

.term-window{background:#05070d;border:1px solid rgba(255,255,255,0.08);border-radius:12px;overflow:hidden;box-shadow:0 0 30px rgba(96,165,250,.08)}
.term-header{display:flex;align-items:center;gap:8px;padding:10px 16px;background:rgba(255,255,255,0.03);border-bottom:1px solid rgba(255,255,255,0.06)}
.term-dot{width:10px;height:10px;border-radius:50%}
.term-dot-red{background:#ff5f56}
.term-dot-yellow{background:#ffbd2e}
.term-dot-green{background:#27c93f}
.term-title{font-size:12px;color:#64748b;margin-left:8px;font-family:'JetBrains Mono',monospace}
.term-body{font-family:'JetBrains Mono',monospace;font-size:13px;line-height:1.7;padding:1rem 1.2rem;min-height:200px;max-height:360px;overflow-y:auto;outline:none;cursor:text}
.term-body:focus{outline:none}
.term-output div{white-space:pre-wrap;word-break:break-word;color:#94a3b8;padding:1px 0}
.term-input-line{display:flex;align-items:center;margin-top:4px;gap:6px;flex-wrap:wrap}
.term-prompt{color:#6366f1;font-weight:500;white-space:pre;flex-shrink:0}
.term-text{color:#e2e8f0;white-space:pre;min-width:1px;word-break:break-all}
.term-cursor{display:inline-block;width:8px;height:1.1em;background:#6366f1;vertical-align:text-bottom;animation:termBlink 1s step-end infinite;flex-shrink:0}
@keyframes termBlink{0%,100%{opacity:1}50%{opacity:0}}
.term-body .term-line-input{color:#6366f1}
.term-hidden-input{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0.01;cursor:text;z-index:1;font-size:16px;border:0;outline:0;background:transparent;color:transparent;caret-color:transparent;padding:0;margin:0}
footer{position:relative;z-index:1;border-top:1px solid rgba(255,255,255,0.06);padding:2rem;text-align:center}
.footer-links{display:flex;justify-content:center;gap:2rem;margin-bottom:1rem;list-style:none}
.footer-links a{font-size:13px;color:#64748b;text-decoration:none;transition:color .2s}
.footer-links a:hover{color:#94a3b8}
.footer-copy{font-size:12px;color:#64748b}
.footer-made{font-size:11px;color:#1e293b;margin-top:4px;letter-spacing:.05em;text-transform:uppercase}

.fade-in{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease}
.fade-in.visible{opacity:1;transform:translateY(0)}

.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.7);z-index:1000;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .3s;padding:1rem}
.modal-overlay.open{opacity:1;pointer-events:auto}
.modal-content{background:#12121a;border:1px solid rgba(255,255,255,0.1);border-radius:16px;max-width:600px;width:100%;max-height:85vh;overflow-y:auto;position:relative;transform:translateY(20px);transition:transform .3s}
.modal-overlay.open .modal-content{transform:translateY(0)}
.modal-close{position:sticky;top:12px;z-index:10;margin-left:auto;margin-bottom:-32px;background:rgba(15,15,25,0.85);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,0.12);color:#94a3b8;width:32px;height:32px;border-radius:8px;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;transition:all .2s}
.modal-close:hover{background:rgba(255,255,255,0.15);color:#fff}
.modal-img{width:100%;height:200px;background-size:cover;background-position:center;border-radius:16px 16px 0 0}
.modal-body{padding:1.5rem}
.modal-badge{display:inline-block;font-size:11px;font-weight:600;padding:4px 12px;border-radius:999px;color:#fff;background:#0a84ff;margin-bottom:.75rem}
.modal-body h3{font-size:1.3rem;font-weight:700;color:#fff;margin-bottom:.75rem}
.modal-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:1rem}
.modal-desc p{font-size:14px;color:#94a3b8;line-height:1.8;margin-bottom:1rem}
.modal-bullets{list-style:none;display:flex;flex-direction:column;gap:.5rem;margin-bottom:1.5rem}
.modal-bullets li{font-size:13px;color:#94a3b8;display:flex;align-items:flex-start;gap:8px}
.modal-bullets li::before{content:"•";color:#60a5fa;font-weight:700}
.modal-btns{display:flex;gap:.6rem}

@media(max-width:768px){
  .hero-inner{flex-direction:column-reverse;text-align:center}
  .hero-actions{justify-content:center}
  .hero-location{justify-content:center}
  .about-grid{grid-template-columns:1fr}
  .stack-grid{grid-template-columns:repeat(2,1fr)}
  .carousel-prev,.carousel-next{display:none}
  .carousel-track .project-card{flex:0 0 280px}
  .stats-row{grid-template-columns:repeat(3,1fr)}
  .cert-grid{grid-template-columns:repeat(2,1fr)}
  .nav-hamburger{display:block}
  .nav-links{display:none;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:rgba(15,15,25,0.95);padding:1rem;border-radius:8px;margin-top:8px;z-index:100}
  .nav-links.active{display:flex}
}
@media(max-width:480px){
  nav{padding:10px 16px}
  .stats-row{grid-template-columns:1fr}
  .cert-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .tech-strip-inner{animation:none}
  #particles-canvas{display:none}
}
