:root{
  --primary-color:#f97316;
  --secondary-color:#111827;
  --background-color:#0a0a0a;
  --text-primary:#e5e7eb;
  --text-secondary:#9ca3af;
  --accent-color:#fb923c;
  --view-project-color:#00ff99;
}

body{
  margin: 0;
  padding: 0;
  font-family:'Roboto Mono',monospace;
  background-color:var(--background-color);
  color:var(--text-primary);
  overflow-x:hidden;
}

/* visual helpers */
.terminal-header{ background:#2d3748; }
.terminal-body{ background:#1a202c; font-family:'Source Code Pro',monospace; }
.neural-network { animation: network-animation 15s ease-in-out infinite; }
@keyframes network-animation {0%{transform:scale(1);opacity:1}50%{transform:scale(1.05);opacity:1}100%{transform:scale(1);opacity:1}}

.binary-bg { 
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px); 
    /* Puntos blancos sutiles */
    background-size: 20px 20px; 
}
/* layout */
.projects-skills-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.projects-column, .skills-column { display:flex; flex-direction:column; gap:12px; }
.section-title { font-size:1.875rem; font-weight:700; color:var(--text-primary); display:inline-block; border-bottom:2px solid var(--primary-color); padding-bottom:.5rem; margin:0; }

/* grid source (cards) */
#projects-grid { display:grid; grid-template-columns: 1fr; gap:20px; width:100%; align-items:start; grid-auto-rows:1fr; }
.project-card {
  display:flex; flex-direction:column; width:100%; max-width:460px; margin:0 auto;
  transition: transform 300ms cubic-bezier(0.2,0.8,0.2,1), box-shadow 240ms ease;
  will-change: transform; height:100%; align-self:stretch; border-radius:.5rem; overflow:hidden; min-height:360px;
}
.project-card .terminal-header { padding:.6rem .75rem; display:flex; justify-content:space-between; align-items:center; background:#2d3748; }
.project-card .terminal-body { padding:1.25rem; background:#111826; display:flex; flex-direction:column; justify-content:space-between; flex:1; }
.project-card .terminal-body img { width:100%; height:160px; object-fit:cover; border-radius:.375rem; }
.project-card .tag { display:inline-block; font-size:.75rem; font-family:'Roboto Mono',monospace; background:#374151; color:#d1d5db; padding:.25rem .5rem; border-radius:.375rem; }

/* skills aside */
#skills-aside { 
    background: rgba(17,24,39,0.6); 
    border-radius: .5rem; 
    padding: 1rem;          /* ← Reduce de 1.25rem a 1rem */
    border: 1px solid rgba(255,255,255,0.04); 
    box-shadow: 0 4px 18px rgba(2,6,23,0.6); 
    display: flex; 
    flex-direction: column; 
    gap: 10px;              /* ← Reduce de 12px a 10px */
    box-sizing: border-box; 
    padding-bottom: 12px;   /* ← Reduce de 32px a 12px */
    min-width: 0; 
}
.select-instruction { font-size:.9rem; color:var(--text-secondary); }
.skills-list { display:flex; flex-direction:column; gap:12px; }
.skill-btn { display:flex; align-items:center; gap:.75rem; padding:.75rem 1rem; border-radius:.5rem; background:#0f1724; color:var(--text-primary); border:1px solid rgba(255,255,255,0.04); font-weight:600; }
.skill-btn.selected { background: rgba(249,115,22,0.08); border-color: rgba(249,115,22,0.22); }
.reset-btn { margin-top:12px; align-self:flex-end; }
.reset-spinning { animation: reset-spin 600ms linear; }
@keyframes reset-spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }

/* breakpoints */
@media (min-width:901px) { .projects-skills-grid { grid-template-columns: 1fr 300px; gap:24px; } #projects-grid { grid-template-columns: 1fr; } .project-card { max-width:560px; } }
@media (min-width:1024px) { .projects-skills-grid { grid-template-columns: 1fr 320px; } #projects-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .project-card { max-width:100%; margin:0; } .projects-column, .skills-column { align-items: stretch; } }
@media (max-width:900px) { .projects-skills-grid { grid-template-columns:1fr; } .skills-column { order:-1; } #projects-grid { grid-template-columns:1fr; } #skills-aside { width:100%; box-sizing:border-box; min-height:auto; overflow:visible; } }
.section-title + .box { margin-top:8px; }

/* slider CSS */
.slider-viewport { overflow:hidden; width:100%; box-sizing:border-box; margin:0 auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.slider-track { display:flex; transition: transform 360ms cubic-bezier(.2,.8,.2,1); will-change: transform; }
.slider-page { flex:0 0 auto; box-sizing:border-box; display:flex; justify-content:flex-start; align-items:stretch; }
.page-grid { display:grid; gap:20px; width:100%; box-sizing:border-box; grid-auto-rows:1fr; align-items:stretch; justify-items:center; }
.page-grid.cols-2 { grid-template-columns: repeat(2, minmax(0,460px)); }
.page-grid.cols-1 { grid-template-columns: 1fr; justify-items:center; }
/* ensure single-card pages don't stretch beyond a comfortable width */
.page-grid.cols-1 .project-card { width: min(460px, 90vw); max-width:90vw; margin:0 auto; }
.slider-controls { display:flex; gap:8px; justify-content:center; align-items:center; margin-top:12px; }
.slider-btn { background:#0f1724; border:1px solid rgba(255,255,255,0.04); color:var(--text-primary); padding:8px 10px; border-radius:8px; cursor:pointer; }
.slider-dots { display:flex; gap:8px; align-items:center; }
.slider-dot { width:10px; height:10px; border-radius:999px; background:rgba(255,255,255,0.06); cursor:pointer; }
.slider-dot.active { background:var(--primary-color); }

/* boton proyect*/

.view-project-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    margin-top: 18px;
    
    border: 1px solid var(--view-project-color);
    border-radius: 8px;
    
    background: transparent;
    color: var(--view-project-color);
    
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    
    transition: .25s;
}

.view-project-btn:hover {
    background: var(--view-project-color);
    color: var(--background-color);
}

.view-project-btn:active {
    transform: scale(.98);
}




/* MOBILE: unify to 600px threshold */
@media (max-width:600px) {
  .page-grid.cols-1 .project-card { width: calc(100% - 24px); max-width: calc(100% - 24px); }
}

:root{

    --cert-width:380px;

}

.cert-grid{

    display:grid;

    justify-content:center;

    gap:25px;

    margin-top:40px;

     grid-template-columns:repeat(3, var(--cert-width));

}

.cert-card{

    background:#141414;

    border:1px solid #2b2b2b;

    border-radius:16px;

    text-decoration:none;

    color:white;

    overflow:hidden;

    transition:.35s;

    padding:25px;

}

.cert-card:hover{

    transform:translateY(-8px);

    border-color:var(--primary-color);

    box-shadow:0 10px 25px rgba(249,115,22,.20);

}

.logo-box{

    background:white;

    border-radius:12px;

    height:90px;

    display:flex;

    align-items:center;

    justify-content:center;

    margin-bottom:20px;

    padding:15px;

}

.cert-logo{

    max-width:130px;

    max-height:60px;

    object-fit:contain;

    transition:.35s;

}

.cert-card:hover .cert-logo{

    transform:scale(1.06);

}

.cert-card h3{

    margin-bottom:10px;

    font-size:1.05rem;

    line-height:1.35;

    min-height:2.8em;

    display:flex;

    align-items:flex-start;

}

.cert-card p{

    color:#9ca3af;

    margin-bottom:18px;

}

.cert-tag{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:5px 10px;

    border-radius:999px;

    background:rgba(249,115,22,.15);

    color:var(--primary-color);

    font-size:.60rem;

    font-weight:300;

    line-height:1.2;

    white-space:nowrap;

    transition:.25s;

    margin-top:auto;

}


.cert-card:hover .cert-tag{

    background:var(--primary-color);

    color:white;

}

.show-more-wrapper{

    margin-top:40px;

    text-align:center;

}

#toggleCertificates{

    background:none;

    border:1px solid var(--primary-color);

    color:var(--primary-color);

    padding:12px 24px;

    border-radius:10px;

    cursor:pointer;

    transition:.3s;

}

#toggleCertificates:hover{

    background:var(--primary-color);

    color:white;

}

.cert-filters{

    display:flex;

    justify-content:center;

    gap:12px;

    flex-wrap:wrap;

    margin-bottom:40px;

}

.cert-filter{

    background:#1b1b1b;

    color:var(--text-secondary);

    border:1px solid #333;

    border-radius:999px;

    padding:10px 18px;

    cursor:pointer;

    font-size:.9rem;

    transition:.25s;

}

.cert-filter:hover{

    color:white;

    border-color:var(--primary-color);

}

.cert-filter.active{

    background:var(--primary-color);

    color:white;

    border-color:var(--primary-color);

}

/* Tablet */
@media (max-width:1300px){

    .cert-grid{

        grid-template-columns:repeat(2, var(--cert-width));

    }

}

/* Celular */
@media (max-width:800px){

    .cert-grid{

        grid-template-columns:minmax(0, var(--cert-width));

    }

}

/* Celulares muy pequeños */
@media (max-width:360px){

    .cert-grid{

        grid-template-columns:1fr;

    }

}

/* ABOUT + CAREER | additions, preserving existing palette */
html { scroll-behavior: smooth; }
.profile-section, .career-section { scroll-margin-top: 88px; }
.profile-section { padding: 76px 20px 60px; }
.profile-container, .career-container { max-width: 1180px; margin: 0 auto; }
.profile-container { display: grid; grid-template-columns: minmax(300px,.85fr) 1.15fr; align-items: center; gap: clamp(36px,6vw,85px); }
.profile-visual { min-height: 390px; border: 1px solid #30323a; border-radius: 24px; background: radial-gradient(circle at 50% 40%, #312217 0%, #16191e 46%, #0c0d10 100%); position:relative; display:grid; place-items:center; isolation:isolate; overflow:hidden; }
.profile-visual::before { content:"";position:absolute;inset:0;opacity:.15;background-image:linear-gradient(#f97316 1px,transparent 1px),linear-gradient(90deg,#f97316 1px,transparent 1px);background-size:34px 34px;mask-image:radial-gradient(circle,#000,transparent 80%); }
.profile-orbit { position:absolute; border:1px solid rgba(249,115,22,.28);border-radius:50%;transform:rotate(-28deg); }
.profile-orbit-one { width:290px;height:290px; }
.profile-orbit-two { width:360px;height:230px; }
.profile-avatar { position:relative;z-index:1;width:190px;height:190px;border-radius:50%;background:linear-gradient(150deg,#2a2e36,#111318);border:2px solid rgba(249,115,22,.8);box-shadow:0 0 60px rgba(249,115,22,.15);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px; }
.profile-avatar span { font-size:70px;line-height:1;font-weight:700;letter-spacing:-7px;color:#f97316; }
.profile-avatar small { color:#9ca3af;font-size:15px; }
.profile-chip { position:absolute;z-index:2;font-size:12px;border:1px solid #45403c;border-radius:8px;background:#17191f;padding:9px 12px;color:#fdba74; }
.profile-chip-top { top:18%;right:9%; }
.profile-chip-bottom { bottom:18%;left:8%; }
.profile-eyebrow { color:#f97316;font-size:.8rem;font-weight:700;letter-spacing:.14em;margin:0 0 16px; }
.profile-copy h2 { font-size:clamp(2rem,3.4vw,3.4rem);line-height:1.17;letter-spacing:-.045em;font-weight:700;margin:0 0 25px;color:#f3f4f6; }
.profile-copy h2 span,.career-heading span { color:#f97316; }
.profile-copy > p:not(.profile-eyebrow) { color:#aeb5bf;font-size:.98rem;line-height:1.9;margin:0 0 16px; }
.profile-pills { display:flex;gap:9px;flex-wrap:wrap;margin:23px 0 26px; }
.profile-pills span { border:1px solid #3b414a;background:#171b22;padding:8px 11px;border-radius:999px;font-size:.76rem;color:#d1d5db; }
.profile-link { display:inline-flex;gap:12px;align-items:center;color:#fb923c;font-weight:700;text-decoration:none;border-bottom:1px solid rgba(249,115,22,.4);padding-bottom:5px; }
.profile-link:hover { color:#fff; }
.career-section { padding:65px 20px 85px;background:linear-gradient(180deg,#0a0a0a,#10131a); }
.career-heading { font-weight:700;font-size:clamp(1.9rem,3vw,2.8rem);line-height:1.2;color:#f3f4f6;margin:0 0 14px; }
.career-intro { color:#9ca3af;max-width:680px;line-height:1.75;margin-bottom:35px; }
.career-columns { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px; }
.career-column { padding:28px;border:1px solid #30343c;border-radius:18px;background:#131720; }
.career-column h3 { display:flex;gap:10px;align-items:center;color:#f3f4f6;font-size:1.2rem;margin:0 0 28px;font-weight:700; }
.career-column h3 .material-symbols-outlined { color:#f97316; }
.career-item { padding:0 0 26px 22px;margin-left:8px;border-left:1px solid #464b55;position:relative; }
.career-item:last-child { padding-bottom:0; }
.career-item::before { content:"";width:10px;height:10px;position:absolute;left:-5.5px;top:5px;border-radius:50%;background:#f97316;box-shadow:0 0 0 4px rgba(249,115,22,.13); }
.career-meta { color:#fb923c;font-size:.76rem;font-weight:700;margin:0 0 8px; }
.career-item h4 { color:#f3f4f6;font-size:1.05rem;font-weight:700;margin:0 0 6px; }
.career-place { color:#cbd5e1;font-size:.82rem;margin:0 0 12px; }
.career-item > p:last-child { color:#9ca3af;font-size:.87rem;line-height:1.75;margin:0; }
@media (max-width:850px) { .profile-container,.career-columns { grid-template-columns:1fr; }.profile-container { gap:30px; }.profile-visual { min-height:330px; }.profile-section { padding-top:44px; }.career-section { padding-top:50px; } }
@media (max-width:480px) { .profile-section,.career-section { padding-left:16px;padding-right:16px; }.profile-visual { min-height:290px; }.profile-orbit-one { width:235px;height:235px; }.profile-orbit-two { width:300px;height:190px; }.profile-avatar { width:155px;height:155px; }.profile-avatar span { font-size:56px; }.profile-chip { font-size:10px; }.career-column { padding:22px 17px; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }



.social-github-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
}
