
/* historial.css */

/* Fondo y cuerpo general */
body {
  margin: 0;
  padding: 0;
  background-color: #e7e3da;
  background-image: url("/static/img/p_login_pqia_1920_x_1080.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

/* Paso 1: Aseguramos que html y body ocupen toda la altura */
html, body {
  height: 100%;
  min-height: 100vh;
  overflow-y: auto;  /* permite scroll si hace falta */
}

.contenedor {
  max-width: 500px;
  position: relative;
  margin: 110px auto 60px auto;
  left: 150px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.titulo {
  margin-top: 30px; 
  font-size: 20px;
  color: #375e65;
  margin-bottom: 20px;
  font-family: 'Raleway', sans-serif;
}

.lista-historial {
  text-align: left;
  margin-top: 20px;
}

.entrada-historial {
  background-color: rgba(255, 255, 255, 0.25);
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fecha {
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 8px;
  color: #49486a;
}

.contenido {
  font-size: 12px;
  font-weight: normal;
  color: #333;
  font-family: 'Raleway', sans-serif;
}

.mensaje-vacio {
  font-style: italic;
  color: #666;
  text-align: center;
  margin-top: 20px;
}

/* Menú */
.menu-icon {
  position: fixed;
  top: 30px !important;
  left: 40px !important;
  z-index: 2000;
  cursor: pointer;
  width: 30px;
  height: 30px;
}

.menu-icon img {
  width: 125% !important;
  height: auto;
}

/* 🎯 Menú lateral corregido */
.side-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: -180px;              /* 👈 para que entre desde fuera */
  width: 180px;              /* 👈 ancho reducido */
  overflow-y: auto;
  background-color: rgba(55, 94, 101, 0.75);
  color: white;
  padding-top: 60px;
  transition: left 0.3s ease;
  z-index: 9999;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  scrollbar-width: thin;
  scrollbar-color: #c4c8c3 transparent;
}

.side-menu.open {
  left: 0 !important;
}

/* ✅ Corrección para eliminar flechas no deseadas */
button::-webkit-inner-spin-button,
button::-webkit-outer-spin-button,
button::before,
button::after {
  display: none !important;
  content: none !important;
}


.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li {
  display: block;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-menu li a {
  color: white;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-size: 14px !important;               /* ✅ Aumentado (antes estaba en 14px) */
  font-weight: 400;              /* ✅ Negrita para más presencia */
  display: block;
  padding: 10px 0;               /* ✅ Un poco más de padding vertical */
  transition: background-color 0.3s ease;
}

.side-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.menu-tooltip-wrapper {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 2000;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.menu-tooltip {
  position: absolute;
  top: 50%;
  left: 110%;
  transform: translateY(-50%);
  background-color: rgba(55, 94, 101, 0.85);
  color: white;
  font-size: 11px;
  font-family: 'Raleway', sans-serif;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.menu-tooltip-wrapper:hover .menu-tooltip {
  opacity: 1;
}

.campo input:focus {
  outline: none;
  border: 0.3px solid #375e65;
  box-shadow: 0 0 0 1px #375e6510;
}


.side-menu li a[href="/historial"] {
  color: #e0a74f !important;
  font-weight: bold !important;
  background-color: transparent !important;
}



/* Acciones y buscador */
.acciones-historial {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

#input-busqueda {
  width: 140px;
  height: 15px;
  padding: 8px 14px;
  border: none;
  border-radius: 12px;
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  outline: none;
  background-color: #fdfcf9;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#input-busqueda:focus {
  outline: none;
  box-shadow: 0 0 0 1px #375e6555;
}

/* Botones */
.btn-borrar-historial {
  position: absolute;
  top: 17px;  /* Puedes probar con 10px o 5px */
  background-color: #92180b;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 10px;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-borrar-historial:hover {
  background-color: #527368;
  transform: scale(1.05);
}

/* Botones de acciones (Exportar, Compartir, Eliminar) */
.btn-historial {
  background-color: #c48a38;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 10px;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-right: 6px;
}

.btn-historial:hover {
  background-color: #9c9664;
  transform: scale(1.05);
}

/* Exportar menú */
.exportar-menu {
  position: relative;
  display: inline-block;
  margin-top: 10px;
}

.exportar-opciones {
  display: none;
  position: absolute;
  top: 105%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 6px 0;
  min-width: 100px;
}

.exportar-opciones button {
  background: none;
  border: none;
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  padding: 6px 12px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  color: #375e65;
}

.exportar-opciones button:hover {
  background-color: #f0f0f0;
  border-radius: 12px;
}


/* Modal de confirmación individual */
.modal-overlay-borrar {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 9999;
  align-items: center;
  justify-content: center;

  /* ✅ Añadimos esto para que el modal funcione cuando se active vía JS */
  flex-direction: column;
}


.modal-contenido {
  background: #fffefb;
  padding: 20px 25px;
  border-radius: 12px;
  max-width: 300px;
  width: 90%;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  color: #333;
}

.modal-contenido p {
  margin-bottom: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.modal-botones {
  display: flex;
  justify-content: center;
  gap: 10px;
}

body.modal-abierto {
  overflow: hidden;
}

/* Modal de confirmación de borrado total */
#modal-confirmacion {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}


/* Footer */
.footer {
  position: relative; /* 🧽 Quitamos el absolute */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 0 !important;
  padding-bottom: 12px !important;
  z-index: 2;
}


.redes-sociales {
  display: flex;
  justify-content: center;
  bottom: 40px;
  gap: 100px !important;
  margin-bottom: 8px;
  margin-top: 100px !important;   
}

.redes-sociales img {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.redes-sociales img:hover {
  transform: scale(1.2);
}

.marca-registrada {
  font-family: 'Urbanist', sans-serif;
  font-size: 10px;
  color: #807e78;
  opacity: 0.8;
  z-index: 2;
  margin-top: 4px;
  margin-bottom: 10px; /* le da espacio antes del borde inferior */
}

/* Ajuste visual específico solo para el icono de Shorts */
.redes-sociales img[src*="youtube_shorts"] {
  width: 24px;
  height: auto;
  transform: translateY(1px); /* Ajuste fino de alineación si lo necesitas */
}


#contador-prompts {
  width: 140px;
  height: 15px;
  padding: 8px 14px;
  border: none;
  border-radius: 12px;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  background-color: #fdfcf9;
  color: #666;
  text-align: center;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Animación entradas historial */
.entrada-historial {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.entrada-historial.mostrar {
  opacity: 1;
  transform: translateY(0);
}

/* Marcado favorito */
.marcado-favorito {
  border: 1px solid #527368 !important;
  box-shadow: 0 0 5px #527368 !important;
}

/* Botón Favorito */
.btn-favorito {
  background-color: #527368;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  padding: 6px 12px;
  font-size: 10px;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-right: 6px;
}

.btn-favorito:hover {
  background-color: #49486a;
  transform: scale(1.05);
}

/* Botón Ver completo / Ocultar */
.btn-ver-mas {
  background-color: #807e78;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  padding: 6px 12px;
  font-size: 10px;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-left: 6px;
  margin-top: 8px;
}

.btn-ver-mas:hover {
  background-color: #49486a;
  transform: scale(1.05);
}


/* Checkbox "Solo favoritos" */
.acciones-historial label {
  display: flex;
  align-items: center;
  font-size: 12px;
  gap: 4px;
  color: #527368;
  font-weight: bold;
}

.categorias-container {
  max-width: 500px;
  margin: 80px auto 120px auto;
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  text-align: center;
  position: relative;  /* Este debe estar */
}

.fondo-fijo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("/static/img/p_login_mobile_b.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #e7e3da;
  z-index: -1;
  pointer-events: none;
  background-image: url("/static/img/p_fondo_responsive_unificado.png");
  background-color: #e7e3da;
}

/* Por defecto: mostrar solo logo de escritorio */
.logo-superior {
  display: block;
}
.logo-responsive {
  display: none;
}

/* ? */
.boton-ayuda {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 48px;
  height: 48px;
  z-index: 999;
  transition: transform 0.3s ease;
}

.boton-ayuda:hover {
  transform: scale(1.1);
}

.icono-ayuda {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* para indexación en google */
.bloque-info-historial {
  background-color: #f6f2e9;
  border: 1px solid #ddd5c4;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 360px;        /* 🔽 Reducido desde 700px */
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  color: #92180b;          /* 🔴 Color de texto */
}


.bloque-info-historial h2 {
  font-size: 1.3rem;        /* 🔽 Reducido desde 1.8rem */
  margin-bottom: 0.6rem;
  color: #92180b;           /* 🔴 Rojo también */
}

.bloque-info-historial p {
  font-size: 1rem;          /* 🔽 Ligeramente reducido */
  margin-bottom: 1.2rem;
  color: #92180b;           /* 🔴 Rojo también */
}

.bloque-info-historial .btn-principal {
  background-color: #92180b;
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.bloque-info-historial .btn-principal:hover {
  background-color: #7a150a;
}

.btn-cta-red {
  background-color: #92180b;
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  font-family: 'Raleway', sans-serif;
  transition: background-color 0.3s ease;
}

.btn-cta-red:hover {
  background-color: #7a150a;
}

.acciones-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
  gap: 10px;
}

.acciones-botones-secundarios {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.acciones-botones-secundarios button,
.btn-ver-mas {
  min-width: 100px;
  text-align: center;
}

.btn-ver-mas {
  background-color: #5b5a82; /* tono más claro al inicio */
  color: #ffffff;
}

.btn-ver-mas:hover {
  background-color: #a4a3e0; /* tono más oscuro al pasar el cursor */
  color: #ffffff;
}



/* ❌ Oculta el logo superior en escritorio donde ya hay un colibrí grande */
body.ayuda .logo-superior,
body.generador .logo-superior,
body.historial .logo-superior,
body.plantillas .logo-superior,
body.plantillas_categoria .logo-superior,
body.perfil .logo-superior,
body.comparar .logo-superior,
body.premium .logo-superior,
body.soporte .logo-superior,
body.recuperar .logo-superior {
  display: none;
}
