* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: #c1d7f3;
  color: #222;
}

.layout {
  display: flex;
  height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* --- SIDEBAR --- */
.sidebar {
  width: 250px;
  background-color: #1d3557;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.3s ease-in-out;
}

.name {
  font-size: 1.5rem;
  font-weight: 700;
}

.subtitle {
  font-size: 0.9rem;
  margin-bottom: 15px;
  opacity: 0.9;
}

.lang-toggle {
  margin-bottom: 20px;
}

.lang-toggle button {
  border: none;
  padding: 6px 12px;
  margin-right: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.lang-toggle .active {
  background: #457b9d;
  color: white;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.tab {
  background: transparent;
  color: white;
  border: none;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  border-radius: 5px;
  font-size: 0.95rem;
}

.tab:hover,
.tab.active {
  background-color: #457b9d;
}

/* --- CONTENIDO --- */
.content {
  flex-grow: 1;
  padding: 30px;
  overflow-y: auto;
}

.content h2 {
  margin-bottom: 10px;
  color: #1d3557;
}

.content p,
.content li {
  line-height: 1.5;
  margin-bottom: 8px;
}

ul {
  list-style-type: disc;
  margin-left: 20px;
}

/* Botón menú hamburguesa — visible solo en móviles */
.menu-btn {
  display: none;
  position: absolute;
  top: 15px;
  left: 15px;
  background: #1d3557;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.5rem;
  padding: 6px 10px;
  z-index: 20;
  cursor: pointer;
  transition: opacity 0.3s ease;
}


/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    height: 100vh;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    transform: translateX(-100%);
    z-index: 15;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .menu-btn {
    display: block;
  }

  .content {
    padding: 80px 20px 20px 20px;
  }
}


.cv-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background-color: #1d3557;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.cv-button:hover {
  background-color: #457b9d;
}


/* --- OVERLAY PARA MÓVIL, ft. hacer click en espacio vaciio para cerrar barra lat --- */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.overlay.visible {
  display: block;
}