/* Reset mínimo */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Variables de color */
:root {
  --bg: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --border: #e5e7eb;
  --link: #2563eb;
}

/* Dark mode automático */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --text: #e5e5e5;
    --muted: #a3a3a3;
    --border: #2a2a2a;
    --link: #60a5fa;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* Contenedor principal */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Idioma */
.lang {
  text-align: right;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.lang a {
  color: var(--muted);
  text-decoration: none;
}

.lang span {
  font-weight: 600;
}

/* Encabezado */
header {
  margin-bottom: 48px;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
}

.subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Secciones */
section {
  margin-bottom: 40px;
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

/* Experiencia */
.item {
  margin-bottom: 24px;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* Listas */
ul {
  padding-left: 18px;
}

li {
  margin-bottom: 6px;
}

/* Enlaces */
a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Responsive fino (opcional) */
@media (max-width: 600px) {
  .container {
    padding: 32px 16px;
  }

  h1 {
    font-size: 1.9rem;
  }
}


/* Estilo para los enlaces del encabezado */
.header-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.header-links img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.header-links img:hover {
  opacity: 1;
}

#profile p {
  margin-bottom: 1.2rem;
  max-width: 720px;
}

#profile p:first-of-type {
  font-size: 1.05rem;
}

#experience p {
  margin-bottom: 1.2rem;
  max-width: 720px;
}

#experience .meta {
  margin-bottom: 0.8rem;
  color: #777;
  font-size: 0.9rem;
}


.section {
  margin-bottom: 4rem;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 0.5rem;
}

#skills .skills-block h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

#skills .skills-block ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#skills .skills-block li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

#skills .skills-block {
  margin-bottom: 1.6rem;
}

#skills .skills-block li::before {
  content: "· ";
  color: var(--border);
}

.edu-block {
  margin-bottom: 1.8rem;
}

.edu-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.edu-block p {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.certifications {
  list-style: none;
  padding-left: 0;
  margin-top: 0.6rem;
}

.certifications li {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.certifications strong {
  color: var(--text);
  font-weight: 600;
}

.cert-meta {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.contact-list li {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.contact-list span {
  font-weight: 500;
  color: var(--text);
  margin-right: 6px;
}

#why p {
  max-width: 680px;
}

.lang a.active {
  font-weight: 600;
  color: var(--text);
  cursor: default;
  text-decoration: none;
}

.site-footer {
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 0 24px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}