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

body {
  background: #ffffff;
  padding-bottom: 80px;
}

/* Tarjeta de noticia */
.noticia {
  background: #f4f9f3;
  border: 2px solid #b8dfb4;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Efecto hover */
.noticia:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 18px rgba(0, 0, 0, 0.15);
}

/* Contenido en fila */
.contenido {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* Imagen destacada */
.imagen-noticia {
  min-width: 130px;
  height: 130px;
  border-radius: 14px;
  overflow: hidden;
  background: #eaa24c;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Imagen con efecto suave */
.imagen-noticia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.imagen-noticia:hover img {
  opacity: 1;
}

/* Texto */
.texto-noticia h2 {
  font-size: 20px;
  font-weight: 800;
  color: #2e4435;
  margin-bottom: 10px;
}

.texto-noticia p {
  font-size: 15px;
  line-height: 1.45;
  color: #333;
  margin-bottom: 10px;
}

.meta {
  font-size: 12px;
  color: #666;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .contenido {
    flex-direction: column;
  }

  .imagen-noticia {
    width: 100%;
    height: 180px;
  }
}

.sin-imagen {
  background: #d8e6d6;
  color: #2e4435;
  font-size: 32px;
}

.sin-imagen .placeholder {
  opacity: 0.5;
}

/* Caja del texto colapsado */
.resumen {
  max-height: 75px; /* ALTURA VISIBLE */
  overflow: hidden;
  position: relative;
  transition: max-height 0.35s ease;
}

/* Efecto fade al final del texto */
.resumen::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35px;
  background: linear-gradient(to bottom, transparent, white);
}

/* Ocultamos el checkbox */
.toggle-texto {
  display: none;
}

/* Flecha */
.leer-mas {
  display: inline-block;
  margin-top: 6px;
  cursor: pointer;
  font-size: 22px;
  color: var(--verde-oscuro);
  user-select: none;

  /* EFECTO MÁS SUAVE */
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), color 0.3s ease;
}

/* Cuando el checkbox está activado → expandir texto */
.toggle-texto:checked ~ .resumen {
  max-height: 800px; /* se expande */
}

/* Texto recortado */
.resumen {
  max-height: 75px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.35s ease;
}

/* Fade elegante */
.resumen::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35px;
  background: linear-gradient(to bottom, transparent, white);
}

/* Checkbox oculto */
.toggle-texto {
  display: none;
}

/* Flecha */
.leer-mas {
  display: inline-block;
  margin-top: 6px;
  cursor: pointer;
  font-size: 22px;
  color: #2e4435;
  user-select: none;
  transition: transform 0.3s ease;
}



/* Expandir texto */
.toggle-texto:checked ~ .resumen {
  max-height: 800px;
}

.toggle-texto:checked ~ .resumen::after {
  display: none;
}

/* Rotar flecha */
.toggle-texto:checked ~ .leer-mas::after {
  transform: rotate(180deg);
}

/* Para la noticia sin imagen */
.sin-imagen {
  background: #d8e6d6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2e4435;
  font-size: 32px;
}

/* ============================
   RESET GENERAL
============================ */
* {
  box-sizing: border-box;
  margin: 0;
  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,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

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

.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;
}
@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;
  }
}
/* Ocultar checkbox */
.toggle-texto {
  display: none;
}

/* Texto inicial limitado */
.resumen {
  max-height: 80px;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

/* Cuando está activado, se expande */
.toggle-texto:checked ~ .resumen {
  max-height: 500px;
}

/* BOTÓN VER MÁS */
.leer-mas {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  color: #b85e38; /* tu color del sitio */
  text-decoration: underline;
  user-select: none;
  transition: color 0.3s ease;
}
