:root {
  --white: #ffffff;
  --accent: #1abc9c; /* O el color que prefieras */
}

body {
  font-family: 'Poppins', sans-serif;
}
.site-header { display:flex; justify-content:space-between; align-items:center; background:#34495e; color:#ecf0f1; padding:1rem 2rem; }
.header-left { display:flex; align-items:center; gap:1rem; }
.profile-pic { width:100px; height:100px; border-radius:50%; object-fit:cover; }
.site-header h1 { font-size:1.8rem; margin:0; }
.tagline { font-size:0.9rem; color:#bdc3c7; }
.btn-download {
  background: var(--accent);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn-download:hover {
  background: #16a085;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.site-nav {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-nav .nav-item { flex:1; text-align:center; padding:1rem 0; color:white; text-decoration:none; font-weight:bold; transition:opacity .3s; }
.site-nav .nav-item:hover {
  opacity: 0.9;
  filter: brightness(1.1);
}
main { max-width:900px; margin:2rem auto; }
.content-panel { display:flex; gap:2rem; background:white; padding:1.5rem; border-radius:6px; margin-bottom:2rem; box-shadow:0 2px 6px rgba(0,0,0,0.1); }
.panel-left, .panel-right { flex:1; }
.panel-left h2, .panel-right h2, .panel-simple h2 { margin-bottom:1rem; color:#34495e; }
.panel-left ul, .panel-simple ul { list-style:none; }
.panel-left li { margin-bottom:0.5rem; }
.panel-simple { background:white; padding:1.5rem; border-radius:6px; margin-bottom:2rem; box-shadow:0 2px 6px rgba(0,0,0,0.1); }
.panel-right p {
  text-align: justify;
}
.skill-category {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background-color: #f9f9f9;
}
.skill-category h3 {
  text-align: center;
  margin-bottom: 1rem;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.skills-list li {
  background: #00bfa6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.skill-block {
  background-color: #f5fdfc; /* Fondo suave verde-azulado */
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.skill-block h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: #222;
  font-weight: 600;
}


.nav-dropdown .dropdown-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem; /* Igual que .nav-item */
  color: var(--white);
  text-decoration: none;
  background: #e74c3c; /* Mismo fondo que el nav-item de investigación */
  border: none;
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 999;
  border-radius: 8px;
  padding: 0.5rem 0;
  border: 1px solid #eee;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #333333;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f3f3f3;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
  padding-left: 1.5rem;
  color: #e74c3c;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.nav-dropdown {
  position: relative;
}

.btn-lang-switch {
  display: inline-block;
  background-color: #9a8c98; /* mismo color que tu botón "Datos" */
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-lang-switch:hover {
  background-color: #7f747d;
}

.image-hover {
  position: relative;
  display: inline-block;
  width: 300px; /* ajusta el tamaño si lo necesitas */
  height: auto;
}

.image-hover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.5s ease-in-out;
}

.image-hover img.hovered {
  opacity: 0;
  z-index: 2;
}

.image-hover:hover img.hovered {
  opacity: 1;
}

.image-hover img.default {
  z-index: 1;
}


.info-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.panel-left {
  max-width: 500px;
}

.profile-photo-hover {
  width: 220px;
  aspect-ratio: 3 / 4; /* Mantiene proporción vertical */
  margin: 0 auto 2rem;
  position: relative;
  overflow: hidden;
  background: #ccc; /* opcional, útil para ver si hay espacio */
}

.profile-photo-hover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: opacity 0.4s ease-in-out;
}

.profile-photo-hover .hovered {
  opacity: 0;
  z-index: 2;
}

.profile-photo-hover:hover .hovered {
  opacity: 1;
}

.profile-photo-hover:hover .default {
  opacity: 0;
}



/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    gap: 1rem;
  }

  .header-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-pic {
    width: 80px;
    height: 80px;
  }

  .site-header h1 {
    font-size: 1.4rem;
  }

  .tagline {
    font-size: 0.85rem;
  }

  .btn-download {
    align-self: center;
    width: 100%;
    text-align: center;
  }

  .site-nav {
    flex-direction: column;
  }

  .site-nav .nav-item,
  .nav-dropdown .dropdown-toggle {
    padding: 0.8rem;
    font-size: 1rem;
  }

  .nav-dropdown {
    flex-direction: column;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .dropdown-menu a {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
  }

  .content-panel {
    flex-direction: column;
  }

  main {
    margin: 1rem;
    padding: 0 1rem;
  }

  .skills-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .info-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}


