:root {
  --background-color: #232946;
  --headline-color: #fffffe;
  --paragraph-color: #b8c1ec;
  --button-bg-color: #eebbc3;
  --button-bg-color-success: #28a745;
  --button-bg-color-success-hover: #218838;

  --button-bg-color-danger: #e04444;
  --button-bg-color-danger-hover: #df1b1b;
  --button-bg-color-hover: #e98b99;
  --button-text-color: #232946;
  --font-montserrat: "Montserrat", sans-serif;
  --font-opensans: "Open Sans", sans-serif;
  --tabla-bg-color-head: #2c3e50;
}

.hidden {
  display: none;
}

html,
body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  font-family: var(--font-opensans);
  background-color: var(--background-color);
  color: var(--paragraph-color);
  margin: 0;
}
a {
  text-decoration: none;
}
/* Contenedor principal */
.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Asegura que main crezca para empujar el footer hacia abajo */
main {
  flex-grow: 1;
  padding-top: 10px;

  display: flex;
  flex-direction: column;
  margin: 20px;
  align-items: center; /* Centra horizontalmente */
  justify-content: center; /* Centra verticalmente */
  text-align: center; /* Asegura que el texto también esté centrado */
}

/* Footer pegado abajo */
.footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  max-width: 100%;
}

/* ------------------------------------------------------------------------Header-------------------------------------------------------------------- */
header {
  position: relative;
  background-image: url("../assets/images/banner.png");
  background-repeat: no-repeat;
  background-size: 100% 100%; /* Deforma para ocupar todo el contenedor */

  padding: 15px 0;
  text-align: center;
  color: white;
}

/*  -------------------------------------------------banner-----------------------------------------------*/
.banner {
  position: relative;
  z-index: 10;
}
.banner__text {
  font-size: 5em;
  font-family: var(--font-montserrat);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/*  ---------------------------------------------fin-banner-----------------------------------------------*/

/* Menu pegado arriba */
/* Menu comienza debajo del header */
.menu {
  background: #333;
  color: white;
  padding: 10px;
  width: 100%;
  max-width: 100vw;
  position: relative; /* Comienza en su posición normal */
  z-index: 1000;
  transition: top 0.3s ease-in-out;
}

/* Clase que se activará con JavaScript al hacer scroll */
.menu.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.menu__list {
  list-style: none;
  display: flex;
  justify-content: space-around;
  padding: 0;
  margin: 0;
}
.menu__item {
  position: relative;
}
.menu__link {
  color: white;
  text-decoration: none;
  display: block;
  padding: 15px 20px;
}
.menu__link:hover {
  background-color: #555;
}
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #444;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 1000;
}
.submenu__item {
  width: 200px;
}
.submenu__link {
  display: block;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
}
.submenu__link:hover {
  background-color: #555;
}
.menu__item--has-submenu:hover .submenu {
  display: block;
}
.menu__toggle {
  display: none;
  cursor: pointer;
}
.menu__toggle div {
  width: 30px;
  height: 4px;
  background: white;
  margin: 5px 0;
}

/*  -------------------------------------------fin-Menu---------------------------------------------*/

/*   ------------------------------------------------------acerca de  ----------------------------------*/
.intro__text,
.join-us__text {
  font-size: 18px;
  line-height: 1.5;
}

.intro__highlight,
.join-us__highlight {
  color: var(--headline-color);
}

.events__title,
.join-us__title {
  color: var(--headline-color);
}

.events__list {
  list-style: none;
  padding: 0;
}

.events__item {
  background: var(--paragraph-color);
  margin: 5px 0;
  padding: 10px;
  border-left: 5px solid #8b0000;
  color: black;
}

.events__highlight {
  font-weight: bold;
}

/*   -----------------------------------------------fin-acerca de-------------------------------------*/

/*-----------------------------------------------estilos pagina login---------------------------------*/

.login-box {
  background: rgba(0, 0, 0, 0.5);
  max-width: 450px;
  min-width: 450px;
  color: #fff;
  position: relative;

  padding: 70px 60px;
  margin-top: 100px;
}

.login-box__logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  position: absolute;
  top: -50px;
  left: calc(50% - 50px);
}

.login-box h1 {
  margin: 0;
  padding: 0 0 20px;
  text-align: center;
  font-size: 22px;
}

.login-box p {
  margin: 0;
  padding: 0;
  font-weight: bold;
}

.login-box input[type="text"],
.login-box input[type="password"],
.login-box input[type="email"] {
  border: none;
  border-bottom: 1px solid #fff;
  background: transparent;
  outline: none;
  height: 40px;
  color: #fff;
  font-size: 16px;
  width: 100%;
  margin-bottom: 20px;
}
.login-box input[type="submit"] {
  border: none;
  outline: none;
  height: 40px;
  background: var(--button-bg-color-success);
  color: #fff;
  font-size: 18px;
  border-radius: 20px;
}

.login-box input[type="submit"]:hover {
  cursor: pointer;
  background: #05dd46;
  color: black;
}

.login-box a {
  text-decoration: none;
  font-size: 14px;
  color: #fff;
  margin-left: 30px;
}

.login-box a:first-of-type:hover {
  color: #e90707;
}

.login-box a:hover {
  color: #05dd46;
}
.login-box input {
  width: 100%;
  margin-bottom: 20px;
}

/*-----------------------------------------------estilos pagina login---------------------------------*/

/*terminos y condiciones*/

.login-box__input,
.login-box__submit {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-box__submit {
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

.login-box__submit:hover {
  background: #0056b3;
}

.login-box__terms {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-box__terms-content {
  display: none;
  padding: 20px;

  margin-top: 10px;
}

.login-box__terms-content.active {
  display: block;
}

.login-box__checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.login-box__link {
  text-decoration: none;
  color: #007bff;
  font-size: 14px;
}

/*----------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------------------------------------tarjetas--------------------------------------------------------------*/
.form-card {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Dos columnas de igual tamaño */
  gap: 120px; /* Espacio entre los elementos */
  background: var(--paragraph-color);
  color: var(--button-text-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 90%;
}

.form-card--add_event {
  border: 2px solid var(--background-color);
}

.button_container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-card__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card__image {
  max-height: 400px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.card__input,
.card__button,
.card__select {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.card__button {
  background-color: var(--button-bg-color-success);
  color: var(--button-text-color);
  border: none;
  cursor: pointer;
}

.card__button:hover {
  background-color: var(--button-bg-color-success-hover);
}

.card__time-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* Permite que los inputs se acomoden en móviles */
}

.card__time-container label {
  width: 48%;
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Contenedor de las tarjetas */
.container__event {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas por fila */
  gap: 20px;
  max-width: 80%;
}

/* Tarjetas */
.card-event,
.card {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: black;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.card-event:hover {
  transform: scale(1.05);
}

.card-event__image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card-event__title,
.card-event__players,
.card-event__master {
  margin: 10px;
  text-align: center;
}

.card-event__title {
  font-size: 1.2em;
  font-weight: bold;
}

.card-event__players,
.card-event__master {
  font-size: 1em;
  color: #555;
}

/* Variantes de color */
.card-event--green {
  background-color: #a4e57a;
}

.card-event--orange {
  background-color: #ffcc80;
}

.card-event--gray {
  background-color: #cfd8dc;
}

/*-----------------------------------------------fin-targetas---------------------------------*/

/*-----------------------------------------------targetas eventos---------------------------------*/

/* -------------------------------------Contenedor principal */
.form-card {
  display: flex;
  justify-content: space-between;
  margin: 20px auto;
  max-width: 1000px;
  padding: 20px;
  border: 1px solid var(--paragraph-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: var(--paragraph-color);
  min-width: 80%;
}

/*  ------------------------------------Sección izquierda */
.form-card__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-card__left .card__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.form-card__left .button_container {
  display: flex;
  flex-direction: row; /* Cambia de column a row */
  gap: 10px; /* Conserva el espacio entre los botones */
  justify-content: center; /* Opcional, para centrar los botones horizontalmente */
}

.form-card__left .card__button {
  background-color: var(--button-bg-color-success);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.form-card__left .card__button:hover {
  background-color: var(--button-bg-color-success-hover);
}

/*  ---------------------------------------------------Sección derecha */
.form-card__right {
  flex: 2;
  padding-left: 20px;
  color: var(--button-text-color);
}

.form-card__right form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-card__right .card__input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.form-card__right .card__input:focus {
  outline: none;
  border-color: #007bff;
}

.form-card__right .card__time-container {
  display: flex;
  gap: 15px;
}

.form-card__right select,
.form-card__right input[type="date"],
.form-card__right input[type="time"] {
  width: calc(50% - 10px);
}

.form-card__right .card__label {
  font-size: 14px;
}

.form-card__right button[type="submit"] {
  background-color: var(--button-bg-color-success);
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.form-card__right button[type="submit"]:hover {
  background-color: var(--button-bg-color-success);
}
/* -------------------------------------------------------------------*/

/* Botón para eliminar evento */
.event__delete {
  display: block;
  width: fit-content;
  margin: 20px auto;
  padding: 12px 20px;
  background-color: var(--button-bg-color-danger); /* Rojo peligro */
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.event__delete:hover {
  background-color: var(--button-bg-color-danger-hover); /* Rojo más oscuro */
}

.players {
  text-align: center; /* Centra el contenido del section */
}

.players__table {
  margin: 0 auto; /* Centra la tabla horizontalmente */
  width: 80%; /* Opcional: establece un ancho fijo o porcentaje */
}
.players__remove,
.delete-button {
  background-color: var(--button-bg-color-danger);
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
}

.players__remove:hover,
.delete-button:hover {
  background-color: var(--button-bg-color-danger-hover); /* Rojo más oscuro */
}

.event__register {
  display: block;

  width: fit-content;
  margin: 20px auto;
  padding: 12px 20px;
  background-color: var(--button-bg-color-success);
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}
.event__register:hover {
  background-color: var(--button-bg-color-success-hover);
}

/*--------------------------------------------fin targetas eventos---------------------------------*/

/* -----------------------------------------------estilos tabla material-------------------------------------------------*/
.material-list__title,
.unsubscribe__title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.material-list__table,
.unsubscribe__table {
  width: 80%;
  border-collapse: collapse;
  background-color: #fdfdfd;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.material-list__header,
.unsubscribe__table-head {
  background-color: var(--tabla-bg-color-head);
  color: #ffffff;
}

.material-list__row:nth-child(even),
.unsubscribe__table-row:nth-child(even) {
  background-color: #f0f0f0;
}

.material-list__cell--body,
.unsubscribe__table-body {
  color: black;
}

.material-list__cell,
.unsubscribe__table-cell {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid #ccc;
}

.material-list__cell--header,
.unsubscribe__table-head {
  font-weight: bold;
  text-transform: uppercase;
}

.material-list__empty {
  font-style: italic;
  color: #888;
}

/*************************************************************************/
/* Encabezado */
.material-form__title {
  font-size: 2.5rem;
  padding: 1rem;
  margin: 0;
  text-align: center;
}

/* Formulario de ancho completo */
.material-form {
  width: 80vw;
  padding: 2rem 10vw; /* espaciado lateral */
  box-sizing: border-box;
  background-color: #f0f4f8;
  display: flex;
  flex-direction: column;
  border-radius: 30px;
}

/* Etiquetas */
.material-form__label {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
}

/* Inputs, selects y textareas */
.material-form__input,
.material-form__select,
.material-form__textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  background-color: #fff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box; /* IMPORTANTE para que padding y border no afecten el ancho */
  display: block;
}

.material-form__textarea {
  resize: vertical; /* Permite cambiar el alto pero no el ancho */
  min-height: 2.625rem; /* Misma altura visual inicial que input con 0.75rem de padding */
  line-height: 1.25;
}

/* Botón de envío */
.material-form__button {
  margin-top: 2rem;
  padding: 1rem;
  font-size: 1.1rem;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.material-form__button:hover {
  background-color: #2980b9;
}
/* Contenedor general */
.material-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 90%;
}

/* Tabla */
.material-table__table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}

.material-table__th,
.material-table__td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
  color: black;
}

.material-table__th {
  background-color: var(--tabla-bg-color-head);
  color: white;
}

.material-table__td--id,
.material-table__td--hide {
  display: none; /* Oculta la columna ID */
}

/* Asegura que el formulario y la tabla no se achiquen demasiado */
.material-form,
.material-table {
  min-width: 300px;
}

/***/
.unsubscribe__table-container {
  width: 100%;
  display: flex;
  justify-content: center; /* Centrar horizontal */
  align-items: center; /* Centrar vertical */
}
.unsubscribe__table-cell-center {
  display: flex;
  justify-content: center; /* Centrar horizontal */
  align-items: center; /* Centrar vertical */
}

.unsubscribe__submit {
  background-color: var(--button-bg-color-danger);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.unsubscribe__submit:hover {
  background-color: var(--button-bg-color-danger-hover);
}
.unsubscribe__table-header {
  padding: 15px;
}

.unsubcribe__fill-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 4 columnas por fila */
  gap: 20px;
  max-width: 80%;
}
.unsubscribe__select {
  width: 100%;
  padding: 10px;
}

/********************************************************************************/

.material-formulario {
  width: 80%;
  margin: auto;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 1rem;
  background-color: var(--paragraph-color);
  display: grid;
  text-align: center;
  margin-top: 40px;
  color: var(--button-text-color);
}

.material-formulario__titulo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.material-formulario__grupo {
  width: 80%;
  margin: auto;
  margin-bottom: 1rem;
}

.material-formulario__label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.material-formulario__valor,
.material-formulario__textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  background-color: #fff;
}

.material-formulario__textarea {
  resize: vertical;
  min-height: 60px;
}

.material-formulario__botones {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.material-formulario__boton {
  padding: 0.5rem 1rem;
  border: none;
  background-color: var(--button-bg-color-success);
  color: white;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.material-formulario__boton:hover {
  background-color: var(--button-bg-color-success-hover);
}
.material-formulario__form {
  display: grid;
  text-align: center;
  align-items: center;
  grid-template-columns: repeat(3, 1fr); /* 5 columnas por fila */
  gap: 20px;
}

/****************************************************************/
/* === Tabla de materiales alquilados === */

.material-tabla {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin-bottom: 2rem;
  flex: 3;
  color: black;
}

.material-tabla__titulo {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.material-tabla__thead {
  background-color: var(--tabla-bg-color-head);
  color: white;
}

.material-tabla__fila:nth-child(even) {
  background-color: #f0f0f0;
}

.material-tabla__fila {
  transition: background-color 0.2s ease-in-out;
  cursor: pointer;
}

.material-tabla__fila:hover {
  background-color: #e6f0ff;
}

.material-tabla__fila--encabezado {
  text-align: left;
  font-weight: bold;
}

.material-tabla__celda {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ddd;
  text-align: center;
  vertical-align: middle;
  font-size: 0.95rem;
}

/******/
.filters--alquilado {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: var(--paragraph-color);
  color: var(--button-text-color);
  flex: 1;
  margin-right: 20px;
  max-height: 320px;
}

.tabla_content {
  padding: 10px;
  max-height: 320px;
  overflow-y: auto; /* Habilita el scrollbar vertical si el contenido excede la altura máxima */
}
.filters__title {
  font-size: 1.25rem;
  margin: 0;
  color: #333;
}

.filters__group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filters__item {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.filters__label {
  font-size: 1rem;
  color: #555;
  width: 100px;
  text-align: left;
}

.filters--alquilado__input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  color: #333;
  background-color: #fff;
}

/****************************************/

.container--alquilado {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

/* Estructura general */
.reserva__titulo {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.reserva__subtitulo {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

/* Tabla común */
.reserva-tabla {
  width: 90%;
  border-collapse: collapse;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  font-family: "Segoe UI", sans-serif;
}

.reserva-tabla__thead > tr {
  background-color: var(--tabla-bg-color-head);
  color: white;
}

.reserva-tabla__fila {
  transition: background-color 0.2s ease;
  color: black;
}
.reserva-tabla__fila:nth-child(even) {
  background-color: #f0f0f0;
}
.reserva-tabla__fila:hover {
  background-color: #ecf6ff;
}

.reserva-tabla__fila--encabezado {
  font-weight: bold;
}

.reserva-tabla__celda {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
  font-size: 0.95rem;
}

/* Botón formulario */
.reserva-formulario__boton {
  padding: 0.5rem 1rem;
  background-color: #27ae60;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.reserva-formulario__boton:hover {
  background-color: #219150;
}
/* ----------------------------------fin-estilos tabla material-------------------------------------------------*/
/************************************boton help*******************************************************/

.chat-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #0a84ff;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.chat-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 300px;
  height: 400px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
}

.chat-header {
  background-color: #0a84ff;
  color: white;
  padding: 10px;
  font-weight: bold;
}

.chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
}

.chat-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ccc;
}

.chat-input input {
  flex: 1;
  padding: 5px;
  font-size: 14px;
}

.chat-input button {
  background-color: #0a84ff;
  color: white;
  border: none;
  padding: 5px 10px;
  margin-left: 5px;
  cursor: pointer;
}
/* ----------------------------------fin-boton help-------------------------------------------------*/
/* ----------------------------------notificaciones-------------------------------------------------*/

/* Contenedor principal de la página */
.help-page {
  display: flex;
  width: 100%;
}

/* Columna izquierda (1/3) */
.help-page__column--left {
  width: 33.33%;
  background: var(--paragraph-color);
  color: var(--button-text-color);
  border-right: 1px solid #ccc;
  padding: 1em;
  overflow-y: auto;
  max-height: 330px;
}

/* Columna derecha (2/3) */
.help-page__column--right {
  width: 66.66%;
  padding: 1em;
  margin-right: 60px;
}

/* Estilo de los items de la lista */
.help-page__item {
  cursor: pointer;
  padding: 0.5em;
  border-bottom: 1px solid #ddd;
}

.help-page__item:hover {
  background: #e0e0e0;
}

/* Estilo del contenido del mensaje */
.help-page__content {
  margin-bottom: 1em;
  max-height: 180px;
  text-align: justify;
}
.help-page__content > p {
  padding-right: 30px;
  max-height: 100px;
  overflow-y: auto;
}

/* Estilos del formulario */
.help-page__form {
  display: flex;
  flex-direction: column;
}

.help-page__textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  resize: vertical;
}

.help-page__button {
  align-self: flex-start;
  padding: 10px 20px;
  border-radius: 15px;
  color: white;
  border: none;
  cursor: pointer;
}
.help-page__button--enviar,
.help-page__button--ampliar {
  background-color: var(--button-bg-color-success);
}
.help-page__button--enviar:hover,
.help-page__button--ampliar:hover {
  background-color: var(--button-bg-color-success-hover);
}
.help-page__button--eliminar {
  background-color: var(--button-bg-color-danger);
}
.help-page__button--eliminar:hover {
  background-color: var(--button-bg-color-danger-hover);
}
.help-page__button--finalizar {
  background-color: var(--button-bg-color-danger);
}
.help-page__button--finalizar:hover {
  background-color: var(--button-bg-color-danger-hover);
}
.hidden {
  display: none;
}
.help-page__actions {
  text-align: left;
}

.help-page__button {
  margin-right: 0.5rem; /* Espacio entre botones */
}
/* -----------------------------------fin-notificaciones-------------------------------------------------*/
/* ------------------------------------------foro--------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------*/

.controls {
  text-align: center;
  padding: 10px;
  background-color: var(--paragraph-color);
}

.container {
  display: flex;
  width: 100%;
  height: 100%;
}

.section {
  flex-grow: 1;
  flex-basis: 33.3%;
  overflow: auto;
  transition: flex-basis 0.3s ease;
  background-color: var(--paragraph-color);
  border: 1px solid #ccc;
  padding: 10px;
  padding-bottom: 200px;
}

.section--hidden {
  flex-basis: 0 !important;
  overflow: hidden;
  display: none;
}

.resizer {
  width: 5px;
  background: #aaa;
  cursor: ew-resize;
}

.foro {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 600px;
  max-width: 100%;
  min-width: 80%;
  overflow: hidden;
  margin-left: 100px;
  margin-right: 100px;
  max-height: 100vh;
}

.card-post {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 20px 0 20px 30px;
}

.card-post__header {
  font-weight: bold;
  color: #333;
  text-align: left;
}

.card-post__user {
  margin: 0;
}

.card-post__body {
  font-size: 1rem;
  color: #555;
  text-align: left;
  padding-left: 20px;
}

.card-post__content {
  margin: 0;
}

.card-post__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-post__like-form,
.card-post__delete-form {
  display: inline;
}

.card-post__likes {
  font-size: 0.9rem;
  color: #777;
}
/**************/
.btn_recuperar {
  border: none;
  outline: none;
  height: 40px;
  background: var(--button-bg-color-success);
  color: #fff;
  font-size: 18px;
  border-radius: 20px;
  padding: 10px;
  margin-top: 20px;
}

.btn_recuperar:hover {
  cursor: pointer;
  background: #05dd46;
  color: black;
}

/* Forum Container */
.forum {
  max-width: 90%;
  min-width: 90%;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--background-color);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.forum__title {
  text-align: center;
  color: var(--headline-color);
  font-size: 2.5em;
  margin-bottom: 20px;
}

/* Forum Columns */
.forum__container {
  display: flex;
  gap: 20px;
}

.forum__column {
  flex: 1;
  background-color: var(--paragraph-color);
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.forum__subtitle {
  font-size: 1.5em;
  color: #2c3e50;
  margin-bottom: 10px;
}

/* Categories Section */
.forum__categories ul {
  list-style: none;
  padding: 0;
}

.forum__categories li {
  margin-bottom: 10px;
  text-align: left;
}

.forum__categories a {
  text-decoration: none;
  color: #3498db;
  font-weight: bold;
}

.forum__categories a:hover {
  text-decoration: underline;
}

.forum__categories form {
  display: inline;
}

.forum__categories button {
  background-color: var(--button-bg-color);
  color: var(--button-text-color);
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px;
}

.forum__categories button:hover {
  background-color: var(--button-bg-color-hover);
}

/* Topics Section */
.forum__topics h2 {
  font-size: 1.2em;
  color: #2c3e50;
  margin-bottom: 10px;
}

.forum__topics ul {
  list-style: none;
  padding: 0;
}

.forum__topics li {
  margin-bottom: 10px;
  text-align: left;
}

.forum__topics a {
  text-decoration: none;
  color: #3498db;
  font-weight: bold;
}

.forum__topics a:hover {
  text-decoration: underline;
}

.forum__topics form {
  display: inline;
}

.forum__topics button {
  background-color: var(--button-bg-color);
  color: var(--button-text-color);
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px;
}

.forum__topics button:hover {
  background-color: var(--button-bg-color-hover);
}

/* Posts Section */
.forum__posts h2 {
  font-size: 1.2em;
  color: #2c3e50;
  margin-bottom: 10px;
}

.forum__posts ul {
  list-style: none;
  padding: 0;
}

.forum__posts li {
  margin-bottom: 10px;
}

.forum__posts p {
  margin: 0;
}

.forum__posts strong {
  font-weight: bold;
  color: #2c3e50;
}

.forum__posts form {
  margin-top: 20px;
}

.forum__posts textarea {
  width: 90%;
  height: 100px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.textarea {
  width: 94%;
  height: 100px;
  margin-bottom: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.forum__posts button {
  background-color: var(--button-bg-color-success);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.forum__posts button:hover {
  background-color: var(--button-bg-color-success-hover);
}
.button-success {
  background-color: var(--button-bg-color-success) !important;
  color: white !important;
}
.button-success:hover {
  background-color: var(--button-bg-color-success-hover) !important;
}
.forum__post__descripcion {
  color: black;
  text-align: justify;
}

.button--dislike {
  background-color: var(--button-bg-color-danger) !important;
}
.button--dislike:hover {
  background-color: var(--button-bg-color-danger-hover) !important;
}

.button--like {
  background-color: var(--button-bg-color-success) !important;
}
.button--like:hover {
  background-color: var(--button-bg-color-success-hover) !important;
}
/* -----------------------------------------------fin-foro--------------------------------------------------------*/

/*-----------------------------------------------Index---------------------------------*/

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=1350&q=80")
      no-repeat center/cover;
  color: white;
  text-align: center;
  padding: 6rem 2rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  background-color: #007bff;
  color: white;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
}

.btn-accent {
  background-color: #ffc107;
  color: #000;
}

.btn-accent:hover {
  background-color: #e0a800;
}

/* Features Section */
.features {
  background-color: #fff;
  padding: 4rem 2rem;
}

.section-title h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #222;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: #f1f1f1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.feature-content {
  padding: 1.5rem;
  text-align: center;
}

.feature-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.feature-content p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.container-index {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
/*  --------------------------------------------------------------privacy ------------------------------------------------------------------------*/
.container-privacy {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.last-updated {
  font-style: italic;
  text-align: right;
  margin-top: 30px;
  color: #777;
}
.highlight {
  background-color: #f8f9fa;
  padding: 15px;
  border-left: 4px solid #3498db;
  margin: 20px 0;
}
 .container-privacy h1 {
    color: var(--button-text-color);
    text-align: center;
    margin-bottom: 30px;
}

.container-privacy h2 {
    color: var(--button-text-color);
    margin-top: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.container-privacy p,
.container-privacy li {
    color: #555;
    text-align: left;
}

.container-privacy ul {
    margin-bottom: 15px;
    padding-left: 0; /* solo este padding cuenta, el anterior fue sobrescrito */
    list-style-type: none;
    text-align: left;
}

/* -------------------------------------------------fin-privacity---------------------------------*/
/* -------------------------------------------------terms-----------------------------------------*/
/* Estilos base */
.container-terms .terms__title {
    color: var(--button-text-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.container-terms .terms__section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.container-terms .terms__subtitle {
    color: var(--button-text-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.container-terms  .terms__text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
}

.container-terms .terms__list {
    margin-bottom: 15px;
    padding-left: 20px;
    list-style-type: disc;
    text-align: left;
}

.container-terms  .terms__item {
    color: #555;
    margin-bottom: 8px;
    line-height: 1.5;
}

.container-terms .terms__update {
    font-style: italic;
    text-align: right;
    margin-top: 30px;
    color: #777;
    font-size: 0.9rem;
}

/* Contenedor principal (ajustado a tu estructura) */
.container-terms  {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

/* Elementos destacados */
.container-terms .highlight {
    background-color: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #3498db;
    margin: 20px 0;
    border-radius: 4px;
}
/* -------------------------------------------------fin-terms-----------------------------------------*/
/* -----------------------------------------------footer-------------------------------------------------*/

.footer {

  color: #ecf0f1;
  padding: 2rem 0;
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1rem;
}

.footer__copyright {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
  padding: 0.25rem 0;
}

.footer__link:hover {
  color: #3498db;
  transform: translateY(-2px);
}

.footer__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #3498db;
  transition: width 0.3s ease;
}

.footer__link:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .footer__content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer__nav {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* -----------------------------------------------fin-footer-------------------------------------------------*/

/* -----------------------------------------------contact-------------------------------------------------*/
/* -----------------------------------------------Contact Section ----------------------------------------- */
.contact {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.contact__title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

/* ======= Form ======= */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__message {
  color: red;
  font-weight: 600;
  margin-bottom: 1rem;
}

.form__group {
  display: flex;
  flex-direction: column;
}

.form__label {
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #444;
}

.form__input,
.form__textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form__input:focus,
.form__textarea:focus {
  border-color: #0077cc;
  outline: none;
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__submit {
  align-self: flex-start;
  background-color: #0077cc;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form__submit:hover {
  background-color: #005fa3;
}

/* ======= Contact Info ======= */
.contact__info {
  margin-top: 2rem;
  border-top: 1px solid #ddd;
  padding-top: 1.5rem;
}

.contact__subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: #555;
}

.contact__icon {
  font-size: 1.25rem;
}
/* ------------------------------------------------fin-contact-------------------------------------------------*/

/*  ------------------------------------------------Asignar rol ------------------------------------------------ */

/* Estilos generales */
.container-gestion {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.title {
    color: var(--button-text-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Filtros */
.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filters__input {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filters__input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Tabla */
.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 


}

.user-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.user-table th, 
.user-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
    
}

.user-table th {
    background-color: #3498db;
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.user-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.user-table tr:hover {
    background-color: #e8f4fc;
}

/* Select de roles */
.role-select {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Botón */
.button {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    background-color: var(--button-bg-color-success);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: var(--button-bg-color-success-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.button:active {
    transform: translateY(0);
}

#user-table-body{
      color: var(--button-text-color);
}

.container-gestion .filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
    width: 100%;
}
/* ------------------------------------------------fin-asignar rol-------------------------------------------------*/

/*  ----------------------------------------------mi perfil--------------------------------------------------------*/
/* Estilos generales para la tarjeta */
/* Estilo general del contenedor */
.card__update {
    width: 90%;
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    border: 1px solid #e1e5eb;
}

/* Título principal */
.card__title {
    color: #2d3748;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #4299e1;
}

/* Contenedor del formulario */
.form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Grupos de campos (label + input) */
.form > div {
    display: flex;
    flex-direction: column;
}

/* Etiquetas de los campos */
.form__label {
    color: #4a5568;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Campos de entrada */
.form__input {
    padding: 14px;
    font-size: 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.form__input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.2);
    outline: none;
    background: #ffffff;
}

/* Contenedor de botones */
.form > div:last-child {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
}

/* Estilos base para botones */
.button {
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

/* Botón Guardar */
.button--save {
    background-color: #48bb78;
    color: white;
}

.button--save:hover {
    background-color: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

/* Botón Eliminar */
.button--delete {
    background-color: #f56565;
    color: white;
}

.button--delete:hover {
    background-color: #e53e3e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

/* Mensaje de estado */
.message {
    margin-top: 25px;
    padding: 15px;
   
    font-size: 1rem;
    text-align: center;
   
    color: #2b6cb0;
   
}


/*------------------------------------------------fin-mi perfil--------------------------------------------------------*/



