.CV {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9fafb;
  color: #2e3440; /* Gris muy oscuro */
  line-height: 1.6;
  padding: 1rem 1.5rem;
  font-size: 16px;
  min-height: 100vh;
}

/* === Enlaces === */
a {
  color: #3b82f6; /* Azul profesional */
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

/* === Selector de idioma === */
.language-selector {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 2px 6px rgba(46, 52, 64, 0.15);
  padding: 6px 12px;
  z-index: 1000;
  display: flex;
  gap: 14px;
}

.language-selector button {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.language-selector button.active,
.language-selector button:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* === Contenedor principal === */
.cv-container {
  display: flex;
  max-width: 1000px;
  margin: 6rem auto 3rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(46, 52, 64, 0.1);
  overflow: hidden;
  min-height: 600px;
}

/* === Columna izquierda === */
.left-column {
  flex: 1;
  background-color: #eceff4; /* Gris muy claro */
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid #d8dee9;
}

.foto-perfil img {
  border-radius: 50%;
  width: 160px;
  height: 160px;
  object-fit: cover;
  box-shadow: 0 6px 15px rgba(46, 52, 64, 0.12);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.foto-perfil img:hover {
  transform: scale(1.05);
}

.personal-info h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #2e3440;
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}

.personal-info h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #4c566a; /* Gris intermedio */
  margin-bottom: 1.3rem;
}

.personal-info p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #434c5e;
  font-weight: 400;
  user-select: none;
}

/* Botones de descarga y portafolio */
.download-btn,
.portfolio-link {
  margin-top: 1.3rem;
  padding: 0.6rem 1.5rem;
  background-color: #3b82f6;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 3px 6px rgba(59, 130, 246, 0.3);
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.download-btn:hover,
.portfolio-link:hover {
  background-color: #2563eb;
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* === Columna derecha === */
.right-column {
  flex: 2;
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.section {
  margin-bottom: 2.8rem;
}

.section h3 {
  color: #3b82f6;
  border-bottom: 2px solid #a3bffa;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section p,
.section li,
.section blockquote {
  font-size: 1.1rem;
  color: #4c566a;
  margin-bottom: 0.7rem;
  line-height: 1.5;
}

.section ul {
  list-style: none;
  padding-left: 0;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.skills li {
  background-color: #3b82f6;
  color: #ffffff;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  user-select: none;
  box-shadow: 0 3px 6px rgba(59, 130, 246, 0.4);
  transition: background-color 0.3s ease;
}

.skills li:hover {
  background-color: #2563eb;
}

/* Recomendaciones */
.section blockquote {
  font-style: italic;
  color: #5e81ac;
  border-left: 4px solid #81a1c1;
  padding-left: 1rem;
  margin-top: 1rem;
  background-color: #e5e9f0;
  border-radius: 6px;
}

/* === Responsive === */
@media (max-width: 900px) {
  .cv-container {
    flex-direction: column;
    margin-top: 5rem;
    border-radius: 0;
    min-height: auto;
  }

  .left-column,
  .right-column {
    width: 100%;
    padding: 2rem 1.5rem;
    border: none;
  }

  .left-column {
    border-bottom: 1px solid #d8dee9;
  }

  .right-column {
    padding-top: 2rem;
  }

  .personal-info h1 {
    font-size: 1.8rem;
  }

  .personal-info h2 {
    font-size: 1.05rem;
  }

  .section h3 {
    font-size: 1.25rem;
  }

  .skills li {
    font-size: 0.95rem;
    padding: 0.45rem 1rem;
  }

  .foto-perfil img {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .language-selector {
    font-size: 1.4rem;
    gap: 8px;
    padding: 5px 8px;
  }

  .download-btn,
  .portfolio-link {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
  }

  .section h3 {
    font-size: 1.1rem;
  }
}
