
/* Fondo general */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #e7e3da;
  background-image: url("/static/img/p_login_pqia_1920_x_1080.png");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: 'Raleway', sans-serif;
}


/* Contenedor principal */
.generador-container {
  max-width: 500px;
  position: relative;
  left: 12%; /* 👈 Ajusta esto según cuánto quieras moverlo */
  margin: 70px 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);
}

/* Título */
.titulo {
  font-size: 20px;
  color: #375e65;
  margin-bottom: 24px;
  text-align: center;
}

/* Campo + etiqueta */
.campo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0px;
  width: 100%;
  min-height: 80px; /* Fuerza misma altura en todos */
}

.campo label {
  font-size: 12px;
  color: #49486a;
  margin-bottom: 4px;
  font-weight: bold;
}

.campo select,
.campo textarea {
  width: 100%;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: 'Raleway', sans-serif;
}

.campo textarea {
  resize: vertical;
  min-height: 80px;
}

.ayuda-campo {
  font-size: 10px;
  color: #49486a;
  opacity: 0.7;
  margin-top: 2px;
}

.ayuda-campo.invisible {
  visibility: hidden;
}

.info {
  font-size: 10px;
  opacity: 0.6;
  margin-left: 4px;
}

.nota-generador {
  font-weight: normal;
  font-size: 10px;
  color: #777;
  margin-left: 6px;
  font-style: italic;
}


/* Formularios */
.campos-dobles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
}

.campo select,
.campo textarea {
  width: 100%;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid transparent;         /* 👉 Oculta borde inicial */
  font-family: 'Raleway', sans-serif;
  background-color: white;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.campo select:focus,
.campo textarea:focus {
  outline: none;
  border: 1px solid #375e65;             /* 👉 Verde petróleo al enfocar */
  box-shadow: 0 0 2px #375e65;
}

.columna {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 45%;
  min-width: 150px;
}

/* === Botón principal: Generar === */
.btn-generar {
  background-color: #92180b;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12px;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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

/* === Botones secundarios: Previsualizar, Guardar, Compartir === */
.btn-previsualizar,
.btn-guardar,
.btn-compartir {
  background-color: #c48a38;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12px;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-previsualizar:hover,
.btn-guardar:hover,
.btn-compartir:hover {
  background-color: #9c9664;
  transform: scale(1.05);
}

/* === Contenedor de botones en responsive (centrado y en columna) === */
.botones {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}





/* === Versión escritorio: alinear botón generar a la izquierda y secundarios a la derecha === */
@media screen and (min-width: 769px) {
  .botones {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    padding: 0 12px;
    margin-top: 24px;
  }

  .btn-generar {
    font-size: 10px;
    padding: 8px 125px; /* mantener el ancho */
    border-radius: 25px;
    background-color: #8f1e10;
    color: white;
    font-weight: bold;
    border: none;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .grupo-secundario {
    display: flex;
    flex-direction: row-reverse; /* ⬅️ Cambia el orden: primero Copiar, luego Guardar */
    gap: 40px !important;
  }


  .btn-previsualizar,
  .btn-guardar,
  .btn-compartir {
    font-size: 10px;
    background-color: #c48a38;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    padding: 8px 52px;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .btn-previsualizar:hover,
  .btn-guardar:hover,
  .btn-compartir:hover {
    background-color: #9c9664;
    transform: scale(1.05);
  }
}




  /* Spinner */
  .spinner {
    border: 2px solid #c4c8c3;
    border-top: 2px solid #375e65;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.8s linear infinite;
    margin: 14px auto;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }


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

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

  .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; /* Firefox */
    scrollbar-color: #c4c8c3 transparent;
  }


  .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-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;
  }

  .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;
    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;
  }

  input::placeholder,
  textarea::placeholder,
  select::placeholder {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    color: #888;      /* o el gris que uses en login */
    opacity: 1;       /* asegúrate de que no esté atenuado */
  }

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

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


  /* Estilo para el texto "Resultado generado:" en versión escritorio */
  .descripcion-resultado {
    font-weight: bold;
    font-size: 12px;
    color: #49486a;
    font-family: 'Raleway', sans-serif;
    margin-bottom: 6px;
    margin-top: 24px;
  }

/* ICONOS: RRSS */
.footer {
  width: 100%;
  text-align: center;
  margin-top: 40px;
  padding-bottom: 20px;
  position: relative; /* ¡NO uses absolute ni fixed! */
}

.footer .redes-sociales {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-bottom: 6px;
}

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

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

.footer .marca-registrada {
  font-family: 'Urbanist', sans-serif;
  font-size: 10px;
  color: #807e78;
  opacity: 0.8;
}

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


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

/* Ocultar botones secundarios por defecto */
.botones-secundarios {
  display: none;
}

/* Mostrar cuando hay resultado */
.botones-secundarios.mostrar {
  display: flex;
}

.botones-secundarios {
  margin-top: 16px;     /* ✅ Separación respecto a la caja del resultado */
  gap: 12px;             /* ✅ Espacio entre botones */
  justify-content: center;
  display: flex;
}


/* Estilo para el bloque de resultado generado (escritorio) */
.prompt-generado {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 16px;
  font-size: 12px;
  color: #375e65;
  margin-top: 12px;
  line-height: 1.6;
  font-family: 'Raleway', sans-serif;
  white-space: pre-wrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


#contexto {
  max-width: 95% !important;
  align-self: center;
}


/* ✅ Mostrar el logo en tablet y móvil, ocultarlo solo en escritorio */
@media screen and (min-width: 1025px) {
  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;
  }
}



