:root{
  --bg0:#050512;
  --bg1:#07172d;
  --bg2:#07132a;

  --text:#EAF0FF;
  --muted: rgba(234,240,255,.74);

  --c1:#20e3b2; /* aqua */
  --c2:#2ea0ff; /* blue */
  --c3:#6a5cff; /* violet */

  --card: rgba(12, 16, 38, .62);
  --card2: rgba(12, 16, 38, .42);
  --border: rgba(255,255,255,.10);
  --shadow: 0 22px 50px rgba(0,0,0,.45);

  --r: 22px;
}

html { scroll-behavior: smooth; }

body{
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 18% 0%, rgba(32,227,178,.18), transparent 60%),
    radial-gradient(900px 520px at 82% 5%, rgba(46,160,255,.20), transparent 58%),
    radial-gradient(900px 620px at 70% 90%, rgba(106,92,255,.18), transparent 60%),
    linear-gradient(135deg, var(--bg0), var(--bg1) 45%, var(--bg2));
  min-height: 100vh;
}

.noise{
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='90' height='90' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* NAV */
.topbar{
  backdrop-filter: blur(12px);
  background: rgba(5,5,18,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.navbar .nav-link{
  color: rgba(234,240,255,.78);
}
.navbar .nav-link:hover,
.navbar .nav-link.active{
  color: var(--text);
  font-weight: 700;
}

/* Typography */
.kicker{
  color: rgba(234,240,255,.68);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .82rem;
}
.display-tight{
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.lead{ color: var(--muted); }

/* Sections */
section{ scroll-margin-top: 92px; padding: 64px 0; }

/* Glow cards */
.glow-card{
  position: relative;
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.glow-card::before{
  content:"";
  position:absolute; inset:-2px;
  background: linear-gradient(90deg, rgba(32,227,178,0), rgba(32,227,178,.45), rgba(46,160,255,.45), rgba(106,92,255,.35), rgba(32,227,178,0));
  filter: blur(10px);
  opacity: .55;
  pointer-events:none;
}
.glow-card::after{
  content:"";
  position:absolute; inset:0;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.08);
  pointer-events:none;
}
.glow-inner{ position: relative; padding: 26px; }

/* Sub cards / stats */
.stat{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 18px;
  height: 100%;
}
.stat .num{
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.stat .label{ color: rgba(234,240,255,.86); font-weight: 700; }
.stat .hint{ color: var(--muted); font-size: .95rem; margin: 0; }

/* Badges */
.badge-soft{
  border-radius: 999px;
  padding: .55rem .75rem;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(234,240,255,.85);
  font-weight: 600;
}
.badge-soft.c1{ border-color: rgba(32,227,178,.25); }
.badge-soft.c2{ border-color: rgba(46,160,255,.25); }
.badge-soft.c3{ border-color: rgba(106,92,255,.25); }

/* Project cards */
.thumb{
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
.project-card{ height: 100%; }
.project-card .card-body{ color: rgba(234,240,255,.86); }
.project-card .small-muted{ color: var(--muted); }

/* Buttons */
.btn-glow{
  border: 0;
  color: #08111f;
  font-weight: 800;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  box-shadow: 0 16px 38px rgba(46,160,255,.22);
}
.btn-glow:hover{ filter: brightness(1.04); color:#08111f; }
.btn-outline-glow{
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(234,240,255,.9);
  background: rgba(255,255,255,.03);
}
.btn-outline-glow:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}

/* Reveal */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.show{ opacity: 1; transform: translateY(0); }

/* Footer */
footer{
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(5,5,18,.45);
  backdrop-filter: blur(12px);
}

/* Floating LinkedIn (mobile only) */
.floating-linkedin{
  position: fixed;
  right: 16px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  z-index: 1200;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 40px rgba(0,0,0,.20);
  background: rgba(13,110,253,.95);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: transform .15s ease, filter .15s ease;
}
.floating-linkedin:hover{ transform: translateY(-2px); filter: brightness(1.05); color:#fff; }
.floating-linkedin i{ font-size: 22px; }

/* Improve focus */
:focus-visible{
  outline: 2px solid rgba(46,160,255,.75) !important;
  outline-offset: 2px;
}

/* ====== Flags ====== */
.flag-btn{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  width: 40px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  transition: transform .12s ease, background .12s ease;
}
.flag-btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.06); }
.flag-btn.active{ border-color: rgba(32,227,178,.45); box-shadow: 0 0 0 3px rgba(32,227,178,.10); }

/* ====== Hero avatar ====== */

.hero-avatar{
  width: 180px;
  height: 180px;
  border-radius: 999px;

  /* ✅ centra la imagen dentro del círculo */
  object-fit: cover;
  object-position: center center;




  margin-left: -20px; /* si ya lo estabas usando para acercar al borde */
}




/* muted helper */
.text-muted-2{ color: var(--muted) !important; }

/* small cards */
.mini-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 16px;
  height: 100%;
}

/* Timeline */
.timeline{ display: grid; gap: 14px; }
.tl-item{ display: grid; grid-template-columns: 18px 1fr; gap: 14px; align-items: start; }
.tl-dot{
  width: 12px; height: 12px; margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  box-shadow: 0 10px 18px rgba(46,160,255,.25);
}

/* Modal */
.modal-glow{
  background: linear-gradient(180deg, rgba(10,12,28,.92), rgba(10,12,28,.86));
  border: 1px solid rgba(255,255,255,.10);
}
.modal-glow .modal-header, .modal-glow .modal-footer{
  border-color: rgba(255,255,255,.10);
}

/* Odoo button */
.btn-odoo{
  border: 0;
  color: #120918;
  font-weight: 900;
  background: linear-gradient(90deg, #875A7B, #B87AAE);
  box-shadow: 0 16px 38px rgba(135,90,123,.28);
}
.btn-odoo:hover{ filter: brightness(1.05); }

/* ===== Education timeline (like screenshot) ===== */
.edu-timeline{
  position: relative;
  padding: 28px 0 10px;
  max-width: 1000px;
  margin: 0 auto;
}

/* línea vertical central */
.edu-timeline::before{
  content:"";
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(234,240,255,.22);
  border-radius: 999px;
}

/* item base */
.edu-item{
  position: relative;
  display: flex;
  margin: 28px 0;
}

/* lado */
.edu-item.left{ justify-content: flex-end; padding-right: 70px; }
.edu-item.right{ justify-content: flex-start; padding-left: 70px; }

/* burbuja numerada */
.edu-item::before{
  content: counter(edu);
  counter-increment: edu;
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgba(234,240,255,.92);
  background: rgba(5,5,18,.55);
  border: 2px solid rgba(32,227,178,.70); /* verde */
  box-shadow: 0 0 0 6px rgba(32,227,178,.10);
}

/* numeración */
.edu-timeline{
  counter-reset: edu;
}

/* “palito” hacia el card */
.edu-item.left::after,
.edu-item.right::after{
  content:"";
  position:absolute;
  top: 35px;
  height: 3px;
  width: 54px;
  background: rgba(32,227,178,.65);
}

.edu-item.left::after{
  right: calc(50% + 22px);
}
.edu-item.right::after{
  left: calc(50% + 22px);
  background: rgba(46,160,255,.60); /* azul en la derecha (como contraste) */
}

/* tarjeta */
.edu-card{
  width: min(420px, 100%);
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 18px 18px 16px;
  box-shadow: 0 22px 50px rgba(0,0,0,.28);
}

.edu-year{
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.edu-title{
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.edu-meta{
  color: rgba(234,240,255,.72);
  font-size: 1rem;
}

/* responsive: en móvil se apila a un solo lado */
@media (max-width: 768px){
  .edu-timeline::before{ left: 20px; transform: none; }

  .edu-item{
    margin: 18px 0;
  }

  .edu-item.left,
  .edu-item.right{
    justify-content: flex-start;
    padding-left: 60px;
    padding-right: 0;
  }

  .edu-item::before{
    left: 20px;
    transform: none;
  }

  .edu-item.left::after,
  .edu-item.right::after{
    left: 42px;
    right: auto;
    width: 30px;
  }

  .edu-card{
    text-align: left;
  }
}

/* --- Pro navbar fixes --- */
.navbar-nav .nav-link{ white-space: nowrap; }          /* evita "AI \n Automation" */
.navbar-nav{ flex-wrap: nowrap; }                      /* no rompe en desktop */

@media (min-width: 992px){
  #navLinks{ align-items: center; }
}

/* icon buttons (social) */
.icon-btn{
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(234,240,255,.92);
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.icon-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(32,227,178,.45);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

/* flags a tamaño pro (más compactas) */
.flag-btn{
  width: 42px; height: 42px;
  border-radius: 12px;
}

/* dropdown look */
.dropdown-menu{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,14,25,.92);
  backdrop-filter: blur(10px);
}
.dropdown-item{ white-space: nowrap; }


/* SAFETY: que la web no quede en blanco si falla JS */
.reveal { opacity: 1 !important; transform: none !important; }

