/* === Tech marquee (carrusel infinito) === */
.tech-marquee{ overflow:hidden; width:100%; }
.tech-marquee .track{
  display:flex;
  gap:16px;
  flex-wrap:nowrap;
  will-change:transform;
  animation: tech-marquee 28s linear infinite;
}
.tech-marquee .sequence{ display:flex; gap:16px; }

/* Importante: que las cards NO se achiquen ni salten de línea */
.tech-marquee .tech-card{ flex:0 0 150px; }

/* Pausa al pasar el mouse (o con foco por teclado) */
.tech-marquee:hover .track,
.tech-marquee:focus-within .track{ animation-play-state: paused; }

/* La animación */
@keyframes tech-marquee{
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* 50% porque duplicamos la lista */
}
/* :root {
  --color-fondo-oscuro: #0F1B2B;
  --color-circuitos: #2CCCD3;
  --color-principal: #1C2C48;
  --color-acento: #3DE8D1;
  --color-piel: #F5D6C6;
  --color-cabello: #1A1A1A;
  --color-sombra: #2B2B2B;
}

body {
  background-color: var(--color-fondo-oscuro);
  color: var(--color-acento);
}

.avatar {
  border-color: var(--color-circuitos);
}

.card {
  background-color: var(--color-principal);
  box-shadow: 0 0 10px var(--color-sombra);
}
body {
  font-family: 'Space Grotesk', sans-serif;
}

.profileImg img {
  display: flex;
  justify-content: flex-end; 
  align-items: center;
  width: 300px; 
  height: 300px;
  border: 4px solid gainsboro;
  object-fit: cover;
  margin: 3vw;
  border-radius: 25%;
  background-color: white;

}


header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 30px;
  border-radius: 15px;
}

main h1 {
  font-size: 65px;
  font-weight: bold; 
  margin-bottom: 5px; 
}

main h2 {
  font-size: 20px; 
  font-weight: normal; 
  margin-left: 1vw;
  margin-top: 0px;
}

.presentacion {
  display: flex;
  align-items: center; 
  justify-content: space-between; 
}

.texto {
  flex: 1;
}

.header-content {
  display: flex;
  flex-direction: column;
 
  flex: 1;
}

nav {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
  
}

nav a {
  color: white;
  padding: 8px 60px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: var(--color-circuitos);
  color: #0F1B2B;
  transform: scale(1.05);
}


.aparece-izquierda {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s ease forwards;
}


.aparece-derecha {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 1s ease forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.typed-text::after {
  content: "|";
  animation: blink 0.7s infinite;
  margin-left: 4px;
  color: var(--color-acento);
}

.typed-text.done::after {
  content: ""; 
  animation: none;
}




@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .presentacion {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profileImg img {
    width: 200px;
    height: 200px;
    margin: 10px 0;
  }

  .texto h1 {
    font-size: 40px;
  }

  .texto h2 {
    font-size: 18px;
  }

  section {
    padding: 20px;
  }

  nav a {
    padding: 8px 20px;
    font-size: 16px;
  }

  main {
    padding: 10px;
  }
}
.fade-in {
  opacity: 0;
  animation: fade 1.5s ease forwards;
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

.proyectos {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background-color: var(--color-principal);
  border-radius: 15px;
  box-shadow: 0 0 10px var(--color-sombra);
  padding: 20px;
  max-width: 300px;
  width: 100%;
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.card h4 {
  margin: 10px 0 5px 0;
}

.card p {
  font-size: 14px;
  margin-bottom: 15px;
}

.card-buttons a {
  display: inline-block;
  margin: 5px;
  padding: 8px 15px;
  background-color: var(--color-circuitos);
  color: var(--color-fondo-oscuro);
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.card-buttons a:hover {
  background-color: var(--color-acento);
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px 0;
}

    .tech-icons i {
        font-size: 50px;
        color: #ccc;
        transition: transform 0.3s ease, color 0.3s ease;
        cursor: pointer;
    }

        .tech-icons i:hover {
            transform: scale(1.2) rotate(5deg);
            color: #00ffcc;
        } */


        :root{
  --bg:#0b0f14;         /* Fondo base */
  --elev:#111722;       /* Elevación/card */
  --line:#1c2433;       /* Bordes suaves */
  --text:#e6edf3;       /* Texto principal */
  --muted:#9aa7bd;      /* Texto secundario */
  --brand:#00ffc3;      /* Acento */
  --radius:16px;        /* Radios consistentes */
  --shadow:0 12px 30px rgba(0,0,0,.35);
  --container: min(1100px, 92vw);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; color:var(--text); background: radial-gradient(1200px 600px at 10% -10%, rgba(0,255,195,.08), transparent 60%),
                                radial-gradient(900px 500px at 110% -20%, rgba(133,76,230,.06), transparent 60%),
                                var(--bg);
  font-family:'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Header */
header{ position:sticky; top:0; z-index:50; backdrop-filter:saturate(1.2) blur(8px); background:rgba(11,15,20,.6); border-bottom:1px solid rgba(255,255,255,.06); }
.wrap{ width:var(--container); margin-inline:auto; padding-inline:14px; }
.nav{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.4px; }
.brand .dot{ width:10px; height:10px; border-radius:999px; background:var(--brand); box-shadow:0 0 18px rgba(0,255,195,.6); }
nav a{ color:var(--text); text-decoration:none; margin-left:18px; font-size:.95rem; opacity:.9; border-bottom:1px solid transparent; }
nav a:hover{ opacity:1; border-bottom-color:rgba(0,255,195,.35); }

.lang-switch{ display:flex; align-items:center; gap:8px; }
.lang-btn{ border:1px solid rgba(255,255,255,.14); background:transparent; color:var(--text); padding:8px 10px; border-radius:10px; cursor:pointer; font:inherit; }
.lang-btn[aria-pressed="true"]{ border-color:rgba(0,255,195,.45); box-shadow:0 0 0 3px rgba(0,255,195,.15) inset; }

/* Hero */
.hero{ width:var(--container); margin:40px auto 18px; padding:24px 14px; display:grid; grid-template-columns: 1.1fr .9fr; gap:26px; align-items:center; }
.hero h1{ font-size:clamp(2rem, 5vw, 3.2rem); line-height:1.1; margin:4px 0 10px; }
.hero p{ color:var(--muted); margin:0 0 18px; max-width:56ch; }
.typed{ font-family:'JetBrains Mono', monospace; font-weight:600; color:var(--brand); display:block; min-height:1.6em; }

.cta{ display:flex; gap:12px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:8px; padding:12px 16px; border-radius:12px; text-decoration:none; color:var(--text);
  border:1px solid rgba(255,255,255,.14); box-shadow:var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover{ transform:translateY(-2px); border-color:rgba(0,255,195,.35); box-shadow:0 10px 26px rgba(0,255,195,.18); }
.btn.primary{ background:linear-gradient(180deg, rgba(0,255,195,.08), rgba(0,255,195,.02)); border-color:rgba(0,255,195,.3); }

.pfp{ display:flex; justify-content:center; }
.pfp img{ width:min(360px, 80%); border-radius:20px; border:1px solid rgba(255,255,255,.08); box-shadow: 0 30px 60px rgba(0,0,0,.45); }

/* Secciones base */
section{ width:var(--container); margin:48px auto 0; padding:0 14px; }
 h3{ letter-spacing:.12em; font-size:.95rem; color:#c7d2e0; margin:0 0 14px; text-transform:uppercase; }

/* Cards genéricas */
.panel, .card, .tech-card, .tool-card{
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

/* Technologies (Grid en cards) */
.tech-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(150px,1fr)); gap:16px; }
.tech-card{
  padding:18px 14px; display:flex; flex-direction:column; align-items:center; gap:10px;
  color:#b6c2d2; transition:transform .25s ease, border-color .25s ease, color .25s ease; cursor:default;
}
.tech-card i{ font-size:44px; filter:grayscale(100%) opacity(.9); transition:filter .25s ease, transform .25s ease, color .25s ease; }
.tech-card span{ font-size:.95rem; }
.tech-card:hover{ transform:translateY(-4px) scale(1.02); border-color:rgba(0,255,195,.35); color:var(--text); }
.tech-card:hover i{ filter:grayscale(0%) opacity(1); transform:scale(1.08) rotate(2deg); }

/* Hover por color oficial (tecnologías) */
.tech-card.js:hover i{ color:#F7DF1E; }         /* JavaScript */
.tech-card.node:hover i{ color:#83CD29; }       /* Node.js */
.tech-card.vue:hover i{ color:#42B883; }        /* Vue */
.tech-card.html:hover i{ color:#E34F26; }       /* HTML5 */
.tech-card.css:hover i{ color:#1572B6; }        /* CSS3 */
.tech-card.mssql:hover i{ color:#CC2927; }      /* SQL Server */
.tech-card.csharp:hover i{ color:#9B4F96; }     /* C# */
.tech-card.dotnet:hover i{ color:#512BD4; }     /* .NET brand */
.tech-card.mongodb:hover i{ color:#47A248; }    /* MongoDB */

.xp{ margin-top:16px; color:var(--muted); }
.xp h4{ margin:10px 0 6px; color:var(--text); }

/* Tools (mismo estilo que tecnologías) */
.tool-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(150px,1fr)); gap:16px; }
.tool-card{ padding:18px 14px; display:flex; flex-direction:column; align-items:center; gap:10px; color:#b6c2d2; transition:transform .25s ease, border-color .25s ease, color .25s ease; }
.tool-card i{ font-size:40px; filter:grayscale(100%) opacity(.9); transition:filter .25s ease, transform .25s ease, color .25s ease; }
.tool-card:hover{ transform:translateY(-4px) scale(1.02); border-color:rgba(0,255,195,.35); color:var(--text); }
.tool-card:hover i{ filter:none; transform:scale(1.08) rotate(2deg); }

/* Hover por color oficial (herramientas) */
.tool-card.jira:hover i{ color:#2684FF; }
.tool-card.slack:hover i{ color:#4A154B; }
.tool-card.trello:hover i{ color:#0052CC; }
.tool-card.git:hover i{ color:#F05033; }
.tool-card.github:hover i{ color:#ffffff; }

/* Experience timeline */
.timeline{ display:grid; gap:16px; }
.timeline .item{ padding:16px; }
.timeline .item .when{ color:var(--muted); margin:.2rem 0 .4rem; }

/* Projects */
.card-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:18px; }
.card{ overflow:hidden; display:flex; flex-direction:column; transition: transform .25s ease, border-color .25s ease; }
.card:hover{ transform: translateY(-4px); border-color:rgba(0,255,195,.28); }
.card img{ width:100%; height:160px; object-fit:cover; background:#0f141c; }
.card .content{ padding:14px; display:flex; flex-direction:column; gap:6px; }
.card h4{ margin:4px 0; }
.card p{ margin:0; color:var(--muted); }
.card .actions{ display:flex; gap:10px; margin-top:10px; }
.badge{ font-size:.72rem; border:1px solid rgba(255,255,255,.12); padding:4px 8px; border-radius:999px; color:#cfe6de; }

/* Perfil/Experiencia/Formación */
.two{ display:grid; grid-template-columns: 1fr 1fr; gap:22px; }
.panel{ border:1px solid rgba(255,255,255,.08); border-radius:var(--radius); padding:16px; }
.panel p{ color:var(--muted); margin:0; }
.list{ margin:10px 0 0; padding-left:18px; color:var(--text); }

/* Footer */
footer{ width:var(--container); margin:48px auto; padding:0 14px 40px; color:var(--muted); display:flex; justify-content:space-between; gap:10px; font-size:.95rem; }

/* Responsivo */
@media (max-width: 900px){ .hero{ grid-template-columns:1fr; text-align:center; } .pfp{ order:-1 } .cta{ justify-content:center } }

.tech-marquee {
  overflow: hidden;
  width: 100%;
}

.track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.tech-marquee:hover .track {
  animation-play-state: paused;
}

.sequence {
  display: flex;
  gap: 2rem;
}

.sequence i {
  font-size: 4rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.sequence i:hover {
  transform: scale(1.2);
}

/* Animación horizontal infinita */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
