
/* ------------ SCROLL EMPRENDIMIENTOS */
/* ============================================================
   FIX: Scroll horizontal de cards — views/company/listinf
   Agregar al final de web/css/site.css
   ============================================================ */

/* Contenedor del scroll horizontal */
#cat-scroll {
  /* Permite scroll horizontal real */
  overflow-x: auto !important;
  overflow-y: visible;
  display: flex !important;
  flex-wrap: nowrap;        /* cards en una sola fila */
  gap: 20px;
  padding: 12px 8px 20px;  /* espacio para la sombra de las cards */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Oculta scrollbar visual pero mantiene el scroll funcional */
#cat-scroll::-webkit-scrollbar { height: 4px; }
#cat-scroll::-webkit-scrollbar-thumb {
  background: #c8e6c9;
  border-radius: 4px;
}

/* Cada columna no se encoge — ancho fijo */
#cat-scroll .col-md-4 {
  flex: 0 0 auto;           /* no se encoge ni estira */
  width: auto;
  padding: 0;
  scroll-snap-align: start;
}

/* La escena/card mantiene su tamaño en desktop */
.scene {
  width: 280px;
  height: 420px;
  perspective: 900px;
  cursor: pointer;
}

/* ── Móvil: cards más angostas para que entren 1.2 en pantalla ── */
@media (max-width: 600px) {
  .scene {
    width: 240px;
    height: 400px;
  }

  /* La imagen del frente se ajusta */
  .card-img,
  .img-placeholder {
    height: 190px;
  }

  /* Texto más compacto */
  .card-name  { font-size: 15px; }
  .card-title { font-size: 12px; }

  /* El hint "Pasa el cursor" no tiene sentido en móvil */
  .hint { display: none; }

  /* El botón del reverso bien visible */
  .back-cta { font-size: 14px; padding: 12px; }
}

/* ── Flecha de navegación: más visible en móvil ── */
@media (max-width: 600px) {
  /* Botones de flecha del scroll */
  .btn.rounded-circle {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.2rem;
    padding: 0;
    flex-shrink: 0;
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    border: 1px solid #c8e6c9 !important;
  }
}

.company-search-input{
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
  padding-left: 20px;
  font-size: 16px;
  height: 45px;
}

.company-search-input:focus{
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
}


.company-search-btn {
  border: none;
  background: linear-gradient(135deg, #EFE3C8 0%, #c2b7a6 45%, #5a5753 100%);

  color: #fff;
  width: auto;
  height: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 8px 8px 0;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .1s;
}
.company-search-btn:hover { background: #657564 !important; }



/** TOOLTIP ****/
.tooltip-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip {
  position: absolute;
  bottom: 135%;
  left: 50%;
  transform: translateX(-50%);

  width: 250px;
  padding: 12px 16px;

  background: #333;
  color: #fff;

  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;

  z-index: 1999;
}

.tooltip-container:hover .tooltip {
  opacity: 1;
  visibility: visible;
}