@charset "utf-8";
/* ============================
   RESET GENERAL
============================ */
@import url('https://fonts.googleapis.com/css2?family=Crete+Round:ital@0;1&family=Montserrat:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Aleo:ital,wght@0,100..900;1,100..900&family=Montserrat:wght@100..900&display=swap');


* {
  box-sizing: border-box;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #f6f0bf;
  color: #111;
  margin-block-end: 50px; /* espacio inferior para el menú fijo */
}

section {
  padding: 20px;
  max-width: 100%;
  margin: 0 auto 20px auto;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2 {
  font-family: "Crete Round", serif;
  font-weight: 400;
  color: var(--verde-oscuro);
}

h3, h4, h5 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--verde-oscuro);
}

p {
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
  max-width: 65ch;
  font-weight: 400;
}

/* Paleta de colores */
:root {
  --verde-oscuro: #324839;
  --verde-claro: #c9da9b;
  --naranja: #e59b32;
  --blanco: #fff;
  --gris-claro: #ddd;
  --rojo-dest: #a82622;
  --beige: #f6f0bf;
}

/* ============================
   HEADER Y MENÚ LATERAL
============================ */
header {
  background: #324839;
  border-bottom: 1px solid #ddd;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.contenedora {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  position: relative;
}

/* LOGO */
#logotipo img {
  height: 15px;
}
#logo img {
  height: 30px;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle-checkbox {
  display: none;
}

.menu-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 19px;
  cursor: pointer;
  z-index: 1001;
}

.btn-linea {
  height: 3px;
  width: 100%;
  background-color: #f9f9f9;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animación del ícono hamburguesa → X */
.menu-toggle-checkbox:checked ~ .menu-toggle-label .btn-linea:nth-child(1) {
transform: rotate(45deg) translate(5px, 6px);  
}
.menu-toggle-checkbox:checked ~ .menu-toggle-label .btn-linea:nth-child(2) {
 opacity: 0; 
}
.menu-toggle-checkbox:checked ~ .menu-toggle-label .btn-linea:nth-child(3) {
transform: rotate(-45deg) translate(5px, -6px);   
}

/* PANEL DEL MENÚ USUARIO (oculto por defecto) */
.nav-usuario {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100vh;
  background-color: #324839;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: right 0.4s ease;
  z-index: 1000;
  padding-top: 50px;
}

/* Mostrar menú lateral */
.menu-toggle-checkbox:checked ~ .nav-usuario {
  right: 0;
}

/* DATOS DEL USUARIO */
.perfil-usuario {
  text-align: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.avatar-usuario {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.nombre-usuario {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f9f9f9;
}

/* LISTA DE ENLACES */
.menu {
  list-style: none;
}

.menu li {
  border-bottom: 1px solid #eee;
}

.menu li a {
  display: block;
  padding: 14px 20px;
  color: #f9f9f9;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

.menu li a:hover {
  background-color: #eba148;
}


/* ============================
   FOOTER NAVEGACIÓN INFERIOR
============================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #e59b32;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 50px;
  z-index: 9999;
}

/* Radios ocultos */
.nav-toggle {
  display: none;
}

/* Botones (naranja por defecto) */
.nav-item {
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 50px;
  transition: all 0.3s ease;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.nav-item img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

/* Botón activo (verde oscuro) */
.nav-toggle:checked + .nav-item {
  background: var(--verde-oscuro);
  height: 70px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  padding: 6px;
  position: relative;
}

/* Submenús */
.submenu-izq {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%, 10px);
  background: #c9da9b;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 8px 0 30px;
  box-shadow: 0px -5px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  min-width: 310px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.submenu-medio {
  position: absolute;
  bottom: 40px;
  left: 0%;
  transform: translate(-50%, 10px);
  background: #c9da9b;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 8px 0 30px;
  box-shadow: 0px -5px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  min-width: 310px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.submenu-der {
  position: absolute;
  bottom: 40px;
  left: -50%;
  transform: translate(50%, 10px);
  background: #c9da9b;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 8px 0 30px;
  box-shadow: 0px -5px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  min-width: 310px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.submenu-der a, .submenu-medio a, .submenu-izq a {
  color: var(--verde-oscuro);
  text-decoration: none;
  padding: 8px 16px;
  display: block;
  font-weight: 600;
}

/* Mostrar submenú activo */
.nav-toggle:checked ~ .submenu-der {
  opacity: 1;
  transform: translate(53%, -10px);
  pointer-events: auto;
} 
.nav-toggle:checked ~ .submenu-medio {
  opacity: 1;
  transform: translate(2%, -10px);
  pointer-events: auto;
}
.nav-toggle:checked ~ .submenu-izq {
  opacity: 1;
  transform: translate(-50%, -10px);
  pointer-events: auto;
}

/* GENERAL */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #fff;
  color: #2f4a36;
}

/* HEADER */
.top-bar {
  background-color: #2f4a36;
  color: #fff;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar h1 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.sun-icon, .menu-icon {
  font-size: 1.3rem;
}

/* TABS */
.tabs {
  display: flex;
  justify-content: flex-start;
  background-color: #fff;
  border-bottom: 2px solid #e0e0e0;
}

.tab {
  background: none;
  border: none;
  font-size: 0.95rem;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  color: #2f4a36;
}

.tab.active {
  border-bottom: 3px solid #2f4a36;
}

/* LISTA BIOGRÁFICA */
.bio-list {
  padding: 1rem;
  padding-bottom: 6rem; /* espacio para la nav inferior */
}

.bio-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #f0d7a5;
}

.bio-img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.bio-info h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.bio-info p {
  font-size: 0.85rem;
  color: #444;
}

/* BOTÓN */
.btn-more {
  background-color: #ffffff;
  border: 2px solid #d6603d;
  color: #d6603d;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 600;
}

.btn-more:hover {
  background-color: #d6603d;
  color: white;
}

/* BOTTOM NAV */
.bottom-nav {
  background-color: #eea845;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

.nav-btn {
  background: none;
  border: none;
  color: #2f4a36;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-btn.active {
  color: #ffffff;
}

.nav-btn span {
  font-size: 0.7rem;
  margin-top: 0.1rem;
}

/* RESPONSIVE */
@media (min-width: 600px) {
  .bio-card {
    max-width: 600px;
    margin: auto;
    margin-bottom: 1rem;
  }
}
@media (min-width: 325px) {


  .submenu-der, .submenu-medio, .submenu-izq {
    min-width: fit-content;

  }

.nav-toggle:checked ~ .submenu-der {
    justify-self: center;
    transform: translate(0%, -10px);
    left: inherit;
    transition:none;
  }
  .nav-toggle:checked ~ .submenu-medio{
    justify-self: center;
    transform: translate(0%, -10px);
    left: inherit;
    transition:none
  }
.nav-toggle:checked ~ .submenu-izq {
    justify-self: center;
    transform: translate(0%, -10px);
    left: inherit;
    transition:none;
  }



  }