/* Importación de tipografías premium */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Lora:wght@400;600&display=swap');

/* Tipografía base */
body {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Títulos principales con serif elegante */
.header h1 {
  font-family: "Lora", serif;
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Subtítulo */
.subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  color: #444;
}

/* Títulos de sección */
h2 {
  font-family: "Lora", serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #333;
}

/* Títulos dentro de items */
.item h3 {
  font-size: 1.15rem;
  font-weight: 500;
  color: #222;
}

/* Texto del panel lateral */
.sidebar {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* Título de contacto en panel lateral */
.sidebar h2 {
  font-family: "Lora", serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
}

/* Botón PDF más elegante */
.download-btn {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Skills más refinadas */
.skills li {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

:root {
  --accent: #0b3d2e; /* Verde oscuro elegante */
}

/* Layout general */
.layout {
  display: flex;
  min-height: 100vh;
}

/* PANEL LATERAL */
.sidebar {
  width: 260px;
  background: var(--accent);
  color: white;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Selector de idioma */
.lang-switch button {
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 8px 14px;
  margin-right: 6px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
}
.lang-switch button:hover {
  background: rgba(255,255,255,0.35);
}

/* Botón PDF */
.download-btn {
  background: white;
  color: var(--accent);
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.download-btn:hover {
  opacity: 0.9;
}

/* Contacto */
.contact h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 6px;
}
.contact p strong {
  color: #fff;
}

/* CONTENIDO PRINCIPAL */
.content {
  flex: 1;
  padding: 40px 50px;
  background: white;
  color: #222;
  line-height: 1.6;
  max-width: 900px;
}

/* Encabezado */
.header h1 {
  font-size: 2.6rem;
  margin-bottom: 0;
}
.subtitle {
  margin-top: 4px;
  color: #555;
  font-size: 1.1rem;
}

/* Secciones */
section {
  margin-top: 40px;
}
h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

/* Items */
.item {
  margin-bottom: 20px;
}
.item h3 {
  margin: 0;
  font-size: 1.1rem;
}
.date {
  color: #777;
  font-size: 0.9rem;
}

/* Skills */
.skills {
  list-style: none;
  padding: 0;
}
.skills li {
  background: #f5f5f5;
  display: inline-block;
  padding: 6px 12px;
  margin: 4px;
  border-radius: 999px;
  font-size: 0.95rem;
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .content {
    padding: 20px;
  }
}
