/* styles.css - Estilos simples y responsive para la SPA de currículum */
:root {
  --bg: #f4f8ff;
  --card: #f8fbff;
  --muted: #5e6b76;
  --accent: #0d6efd; /* primary blue */
  --accent-rgb: 13, 110, 253;
  --glass: rgba(13, 110, 253, 0.05);
  --max-width: 1000px;
  --radius: 10px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg), #e9f3ff);
  color: #212529;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}
.site-header {
  background: transparent;
  padding: 14px 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Hamburguesa: oculto en desktop, visible en móvil */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  margin-right: 8px;
  cursor: pointer;
  color: var(--accent);
}
.menu-toggle svg {
  display: block;
}
.brand {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

/* logo inside brand */
.brand-logo,
.brand img {
  height: 40px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

/* language switcher */
.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 12px;
}
.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
}
.lang-btn img {
  width: 20px;
  height: 14px;
  display: block;
}
.lang-btn:hover,
.lang-btn:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.15);
  background: rgba(var(--accent-rgb), 0.03);
}
.lang-btn.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.06);
}
/* enlaces normales (excluyendo botones que usan la clase .btn) */
nav a,
a:not(.btn) {
  color: var(--muted);
  margin-left: 14px;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

/* hover / focus: accent color */
nav a:hover,
a:not(.btn):hover,
nav a:focus,
a:not(.btn):focus,
nav a:focus-visible,
a:not(.btn):focus-visible {
  color: var(--accent);
  outline: none;
}
.loading {
  padding: 48px;
  text-align: center;
  color: var(--muted);
}
.card {
  background: white;
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.08);
  margin-bottom: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.06);
}
.header {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent), #6ea8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}
/* imagen dentro del avatar (logo) */
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}
.h-name {
  font-size: 1.4rem;
  font-weight: 700;
}
.h-title {
  color: var(--muted);
  margin-top: 2px;
}
.section-title {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
}
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list li {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}
.meta {
  color: var(--muted);
  font-size: 0.9rem;
}
/* center location + contact button specifically on the About page */
.about-contact {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}
.about-contact .btn {
  margin-left: 4px;
}
.about-contact .btn {
  color: #fff;
}
.about-contact .sep {
  color: var(--muted);
  margin: 0 6px;
}

/* social links (GitHub / LinkedIn) in About section */
.social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}
.social-links .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  text-decoration: none;
}
.social-links svg {
  width: 20px;
  height: 20px;
  fill: var(--muted);
  transition: fill 140ms ease, transform 120ms ease;
}
.social-links .social:hover svg,
.social-links .social:focus svg {
  fill: var(--accent);
  transform: translateY(-2px);
}
.grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  nav#main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    min-height: 100px;
    background: var(--card);
    box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.13);
    flex-direction: column;
    align-items: center;
    z-index: 99999;
    padding: 70px 0 18px 0;
    border-radius: 0 0 16px 16px;
    transition: opacity 0.18s;
    opacity: 0;
    pointer-events: none;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
  }
  nav#main-nav.open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
  .menu-toggle {
    z-index: 100000;
    position: relative;
  }
  nav#main-nav a {
    margin: 10px 0;
    font-size: 1.15rem;
    width: 100%;
    text-align: center;
  }
}
.footer {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* site footer styling */
.site-footer {
  padding: 18px 0;
  background: transparent;
}
.site-footer .container {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #012;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
/* chips / etiquetas para skills y tecnologías */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.chip {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* idiomas */
.languages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.language {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
}
.language .name {
  font-weight: 600;
}
.language .level {
  color: var(--muted);
  font-size: 0.9rem;
}

/* mejoras en experiencia: detalles */
.exp-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}
.exp-tech {
  margin-top: 8px;
}

/* fin de styles.css */
