
/* plantillas.css = Puedes compartir estilos entre ambas, perfecto así */

/* === FONDO GENERAL UNIFICADO === */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  height: 100vh; /* ⬅️ Esto es clave para eliminar el scroll */
  overflow-y: hidden;
  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;
}

main.categorias-container {
  flex: 1;
}

html, body {
  height: 100%;
  overflow-y: auto;  /* o prueba hidden sólo si ya tienes espacio suficiente */
}



/* === CONTENEDOR PRINCIPAL DE PLANTILLAS === */
.categorias-container {
  max-width: 450px;
  margin: 50px auto 20px auto;  /* ⬅️ menos espacio arriba y abajo */
  margin-left: 500px;     /* desplazado a la derecha*/
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  padding-bottom: 80px; /* ⬅️ nuevo */
}

/* === TÍTULO PRINCIPAL === */
.titulo {
  font-size: 20px;
  color: #375e65;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center !important;
  display: block;
  width: 100%;
  font-family: 'Raleway', sans-serif;
}

/* === CATEGORÍAS === */
.lista-categorias {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.categoria {
  display: block; /* ✅ hace que todo el bloque sea clicable */
  background-color: white;
  border: 1px solid #c4c8c3;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 12px;
  font-family: 'Raleway', sans-serif;
  font-weight: bold;
  color: #375e65;
  text-decoration: none;  /* ✅ evita subrayado */
}


.categoria:hover {
  background-color: #f7f7f7;
  transform: scale(1.02);
}

.categoria h2 {
  margin: 0;
  font-size: 13px;
  color: #375e65;
  font-weight: bold;
}

.btn-ver-premium {
  position: absolute;
  top: 20px;
  right: 40px;
  background-color: #92180b;
  color: white;
  padding: 6px 14px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 10px;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease;
  z-index: 999; /* para que esté por encima del menú */
}

.btn-ver-premium:hover {
  background-color: #92180b;
}



/* === LOGOS === */
.logo-superior {
  display: block;
}

.logo-responsive {
  display: none;
}

/* Oculta logo escritorio si ya hay colibrí grande en fondo */
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;
}

/* === MENÚ LATERAL === */
.menu-icon {
  position: fixed;
  top: 30px;
  left: 40px;
  z-index: 2000;
  cursor: pointer;
  width: 30px;
  height: 30px;
}

.menu-icon img {
  width: 100%;
  height: auto;
}

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

.menu-tooltip {
  position: absolute;
  top: 50%;
  left: 110%;
  transform: translateY(-50%);
  background-color: rgba(55, 94, 101, 0.85);
  color: white;
  font-size: 11px;
  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;
}

.side-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: -250px;
  width: 250px;
  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;
}

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

.side-menu li {
  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;
  display: block;
  padding: 10px 0;
  transition: background-color 0.3s ease;
}

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

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

/* === FOOTER === */
.footer {
  width: 100%;
  padding: 8px 0 16px 0;
  text-align: center;
  background: transparent;
  margin-top: 60px;
}


.redes-sociales {
  bottom: 40px;  /* Altura pag */
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;  /* Espacio entre iconos */
  margin-top: 20px;
  margin-bottom: -40px !important; /* pequeño margen con el borde inferior */
  padding-bottom: 10px;   
  position: relative; /* ❗️ Deja de estar en posición absoluta */
  z-index: 3;
}

.redes-sociales img {
  width: 20px;  /* Tamaño más grande que los típicos 24px */
  height: 20px;
  transition: transform 0.3s ease;
}

.redes-sociales img:hover {
  transform: scale(1.2); /* Efecto zoom al pasar el cursor */
}

/* Marca Registrada */
.marca-registrada {
  font-family: 'Urbanist', sans-serif;
  font-size: 10px;
  color: #807e78;
  opacity: 0.8;
  margin-top: 8px;
  text-align: center;
}

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



/* ❌ Oculta la barra de desplazamiento */
html, body {
  overflow-y: auto;
}

/* Colorea el ítem de menú cuando estamos en la vista /historial */
body.plantillas .side-menu li a[href="/historial"] {
  color: #e0a74f !important;
  font-weight: bold !important;
  background-color: transparent !important;
}




/* ❌ 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,
body.principal .logo-superior {
  display: none !important;
}


.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.side-menu li a.activo {
  color: #e0a74f !important;
  font-weight: bold !important;
}
