@charset "utf-8";
@import url("https://fonts.googleapis.com/css2?family=Aleo:ital,wght@0,100..900;1,100..900&family=Montserrat:wght@100..900&display=swap");
/* ============================
   RESET GENERAL
============================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

/* ============================
   PALETA DE COLORES
============================ */
:root {
  --verde: #324839;
  --verde-oscuro: #324839;
  --verde-claro: #c9da9b;

  --naranja: #eba148;
  --rojo: #a82724;

  --gris-claro: #f3f3f3;
  --gris-medio: #dadada;
  --gris-oscuro: #444;

  --texto: #000000;
  --fondo: #cbe2ac;
}

/* ============================
        HEADER + MENÚ
============================ */
header {
  background: var(--verde-oscuro);
  width: 100%;
  z-index: 10;
  border-bottom: 1px solid #ddd;
}

.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 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 lateral */
.nav-usuario {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100vh;
  background-color: var(--verde);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.4s ease;
  padding-top: 50px;
  z-index: 1000;
}

.menu-toggle-checkbox:checked ~ .nav-usuario {
  right: 0;
}

/* 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 */
.menu {
  list-style: none;
}

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

.menu li a {
  display: block;
  padding: 14px 20px;
  color: #f9f9f9;
  font-weight: 500;
}

.menu li a:hover {
  background-color: var(--naranja);
}

/* ============================
   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;
}

/* ============================
           CALENDARIO
============================ */
.calendario-container {
  background: white;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--gris-medio);
  text-align: center;
  margin-top: 20px;
}

.mes {
  font-size: 16px;
  margin: 5px 0 12px;
}

.semana {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--gris-oscuro);
}

.dias {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.dia {
  padding: 8px;
  background: #f2f2f2;
  border-radius: 6px;
  border: 1px solid var(--gris-medio);
  font-size: 14px;
}

.dia.vacio {
  background: transparent;
  border: none;
}

.dia.activo {
  background: var(--naranja);
  color: white;
  font-weight: bold;
}

.evento-verde {
  background: #324839;
  color: #fff;
  font-weight: bold;
}

.evento-rojo {
  background: #a82724;
  color: #fff;
  font-weight: bold;
}

/* ============================
        TARJETAS EVENTOS
============================ */
.talleres {
  padding: 16px;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--gris-medio);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card .info h3 {
  font-size: 15px;
  margin: 0;
  color: var(--gris-oscuro);
}

.card .info p {
  font-size: 13px;
  margin: 3px 0 0;
  color: #666;
}

.fecha {
  background: var(--gris-claro);
  border-radius: 6px;
  padding: 6px;
  width: 45px;
  text-align: center;
  border: 1px solid var(--gris-medio);
}

.fecha strong {
  font-size: 18px;
}

.taller-verde {
  border-left: 6px solid var(--verde) !important;
}
.taller-naranja {
  border-left: 6px solid var(--naranja) !important;
}
.taller-rojo {
  border-left: 6px solid var(--rojo) !important;
}
@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;
  }
}
