

 /* generador_responsive.css */

/* ========================= */
/* 🔁 ESTILOS RESPONSIVE     */
/* ========================= */

/* === Adaptación Responsive para móviles y tablets === */
@media screen and (max-width: 768px) {

  /* ⚠️ Anula la imagen de escritorio */
  html {
    background-image: none !important;
  }

  body {
    background-color: #e7e3da;
    background-image: url("/static/img/p_fondo_responsive_unificado.png");
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: scroll;
    margin: 0;
    padding: 0;
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'Raleway', sans-serif;
    }


  .generador-container {
    position: relative;
    left: 50%;
    transform: translateX(-50%) !important; /* Empuja un poquito más hacia la izquierda */
    width: 80%;
    max-width: 325px !important;
    margin: 90px 0 40px 0;
    padding: 18px 16px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 5;
  }

  .generador-container p {
    margin-bottom: 10px !important;
    }


  .titulo {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
  }

  .formulario {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .campo small.ayuda-campo {
    display: block;
    margin-bottom: 4px; /* antes era 10px o más */
  }

  .campo + .campo {
    margin-top: 0; /* elimina el salto entre campos */
  }


  .campos-dobles {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .columna {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .campo label {
    color: #49486a; 
    font-size: 12px;
    font-weight: 600;
  }

  .campo select,
  .campo textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    resize: none;
    font-family: Arial, sans-serif;
    }


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

  textarea#contexto {
    margin-bottom: 4px;
    }


  .ayuda-campo,
  .info {
    font-size: 10px;
    color: #49486a;
  }

  /* Contenedor general de botones */
  .botones {
    display: flex;
    flex-direction: column;  /* Generar arriba, el resto debajo */
    align-items: center;
    gap: 16px;
    margin-top: 3px;
  }

  /* Botón Generar (individual, en su línea) */
  .boton-generar {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
  }

  .btn-generar {
    background-color: #92180b;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    padding: 8px;
    font-size: 11px;
    font-family: 'Raleway', sans-serif;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 270px;
  }

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

/* Contenedor de los botones secundarios */
  .botones-secundarios {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px; /* asegúrate de que no añade más separación */
  }

  /* Botones secundarios */
  .btn-previsualizar,
  .btn-guardar,
  .btn-compartir {
    background-color: #c48a38;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    padding: 8px;
    font-size: 9px;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    width: 130px;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: 2; 
  }

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

  .descripcion-resultado {
    margin-top: 24px;
    margin-bottom: 0px !important;
    padding-bottom: 0 !important;
    font-size: 12px;
    color: #49486a;
    font-weight: bold;
    font-family: 'Raleway', sans-serif;
    text-align: left;
  }


  .resultado {
    font-size: 12px;
    background-color: rgba(255,255,255,0.3);
    padding: 10px;
    border-radius: 8px;
    margin-top: -6px !important;
    padding-top: 8px;
    min-height: 60px;
    white-space: pre-wrap;
  }
º
  .descripcion-resultado {
    margin-bottom: 2px !important;
  }

  .spinner {
    margin: 5px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #375e65;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
  }

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

  .menu-icon {
    top: 20px;
    left: 20px;
    width: 26px;
    height: 26px;
  }

  .menu-icon img {
    width: 26px;
    height: 26px;
  }

  .side-menu {
    width: 50vw;
    left: -50vw;
  }

  .side-menu li a {
    font-size: 12px;
    padding: 8px 0;
  }

  .side-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
  }
    
 
/* ✅ Redes sociales (parte inferior centrada) */
  .footer {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    }


  /* ✅ Redes sociales (parte inferior centrada) */
  .redes-sociales {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px !important;
    margin-bottom: 4px !important;     /* acercar iconos al final de la ventana */
  }

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

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

  /* ✅ Marca registrada centrada abajo */
  .marca-registrada {
    font-size: 7px !important;               /* ⬅️ igual que en login o registro */
    color: #807e78 !important;
    text-align: center;
    opacity: 0.8;
    margin-bottom: 3px !important;
    font-family: 'Urbanist', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Ajuste visual específico solo para el icono de Shorts */
  .redes-sociales img[src*="youtube_shorts"] {
    width: 22px !important;
    height: auto;
    transform: translateY(1px);
  }



  /* Hace que se vea el logo: colibrí+pqia.app */
  body.principal .logo-superior {
  display: block !important;
}

  .logo-superior {
    display: none !important;
  }
 

   /* logo: colibrí+pqia.app, al lado del menú */
.logo-responsive {
  display: block !important;
  position: absolute !important;
  top: 16px !important;
  left: 50% !important;                     /* Centrado horizontal */
  transform: translateX(-50%) !important;  /* Corrige el centrado */
  width: auto !important;
  height: auto !important;
  z-index: 10;
}

.logo-colibri-responsive {
  width: 225px  !important;      /* 🔽 Tamaño más pequeño del logo */
  max-width: 38vw  !important;
  height: auto;
}

/* Oculta el botón de ayuda en responsive */
.boton-ayuda {
  display: none !important;
}


/* 🔧 Ajuste específico para reducir el hueco entre texto y resultado */
.bloque-resultado {
  display: flex;
  flex-direction: column;
  gap: 4px;  /* Puedes reducirlo a 2px si quieres aún más junto */
  margin-top: 0;
}

.descripcion-resultado {
  margin: 0 !important;
  padding: 0 !important;
}

.prompt-generado {
  background-color: rgba(255, 255, 255, 0.3);
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #333;
  margin-top: 0 !important;
  white-space: pre-wrap;
  min-height: 60px;
  border: 1px solid #ccc;
}


}

/* Forzar Deploy */
