/* HERO */
/* ===== HOME HERO WRAPPER ===== */
.ct-home-hero {
    width:100%;
    background: linear-gradient(135deg,#0f172a,#1e3a8a);
    color:#fff;
    padding:80px 20px 60px;
    box-sizing:border-box;
	margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
}

/* evitar que Astra meta max-width raros */
.ct-home-hero * {
    box-sizing:border-box;
}

/* contenedor interno centrado */
.ct-home-hero .ct-hero-inner {
    max-width:1100px;
    margin:0 auto;
    text-align:center;
}

/* TITULO */
.ct-home-hero h1 {
    font-size:42px;
    font-weight:700;
    margin:0 0 20px;
    line-height:1.2;
}

/* SUBTITULO */
.ct-home-hero .ct-hero-sub {
    font-size:18px;
    opacity:0.85;
    margin-bottom:35px;
}

/* BOTONES */
.ct-home-hero .ct-hero-buttons {
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
    margin-bottom:50px;
}

.ct-home-hero .ct-btn-primary,
.ct-home-hero .ct-btn-secondary {
    padding:14px 26px;
    border-radius:6px;
    font-weight:600;
    text-decoration:none;
    display:inline-block;
    transition:all .2s ease;
}

.ct-home-hero .ct-btn-primary {
    background:#2563eb;
    color:#fff;
}

.ct-home-hero .ct-btn-primary:hover {
    background:#1e40af;
}

.ct-home-hero .ct-btn-secondary {
    border:1px solid rgba(255,255,255,0.5);
    color:#fff;
}

.ct-home-hero .ct-btn-secondary:hover {
    background:rgba(255,255,255,0.1);
}

/* ===== STATS ===== */
.ct-home-hero .ct-hero-stats {
    max-width:1100px;
    margin:0 auto;
    display:flex;
    justify-content:center;
    gap:60px;
    flex-wrap:wrap;
    text-align:center;
}

.ct-home-hero .ct-stat {
    min-width:140px;
}

.ct-home-hero .ct-stat-number {
    font-size:30px;
    font-weight:700;
    display:block;
}

.ct-home-hero .ct-stat-label {
    font-size:13px;
    opacity:0.75;
    letter-spacing:0.5px;
}








/* CONTENEDOR */
.ct-view-wrap{
  display:inline-block;
  padding:4px; /* esto lo controla is-on/is-off */
  background:#fff;
  border: 0px;
  font-weight: 500px;
}

/* BOTON TOGGLE */
.ct-view-toggle-btn{
  display:flex;
  align-items:center;
  gap:8px;
  border:0;
  background:#f3f4f6; /* OFF */
  color:#374151;
  padding:6px 10px 6px 8px;
  border-radius:999px;
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  transition:all .15s ease-out;
}

/* ESTADO ON */
.ct-view-toggle-btn.is-on{
  background:#2563eb; /* azul */
  color:#fff;
}

/* OJITO */
.ct-view-eye{
  width:16px;
  height:16px;
  background:currentColor;
  mask:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M12 5C7 5 2.73 8.11 1 12c1.73 3.89 6 7 11 7s9.27-3.11 11-7c-1.73-3.89-6-7-11-7zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8z'/>\
</svg>") center / contain no-repeat;
}

/* SWITCH */
.ct-view-switch{
  width:34px;
  height:18px;
  background:#d1d5db;
  border-radius:999px;
  position:relative;
  flex-shrink:0;
  transition:background .15s ease-out;
}

.ct-view-switch::after{
  content:'';
  width:14px;
  height:14px;
  background:#fff;
  border-radius:50%;
  position:absolute;
  top:2px;
  left:2px;
  transition:transform .15s ease-out;
}

/* SWITCH ON */
.ct-view-toggle-btn.is-on .ct-view-switch{
  background:#93c5fd;
}

.ct-view-toggle-btn.is-on .ct-view-switch::after{
  transform:translateX(16px);
}
/* OFF: si tiene borde naranja */
.ct-view-wrap.is-off{
  /*border:1.5px solid #f97316;*/
  border: 0px;
}

/* OFF + hover = naranja (sin afectar ON) */
.ct-view-wrap.is-off:hover{
  border-color:#f97316;
}

/* OFF + hover = naranja */
.ct-view-wrap.is-off:hover .ct-view-toggle-btn{
  background:#f97316;
  color:#fff;
}

.ct-view-wrap.is-off:hover .ct-view-switch{
  background:#fdba74; /* naranja claro */
}

/* ON: sin borde naranja */
.ct-view-wrap.is-on{
  border:0;
  padding:0; /* para que no quede "marco" fantasma */
  background:transparent;
}













/* ===============================
   UNIVERSE HEADER v2 (BASE)
================================ */

.ct-universe-header-v2{
  display:flex;
  gap:16px;
  padding:16px;
  background:#fff;
  border-radius:14px;
  align-items:stretch;
  margin-top: 5px;
}

/* LEFT IMAGE */
.ct-universe-image{
  width:170px;
  min-width:170px;
  height:170px;
  background:#000;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
}

/* RIGHT PANEL */
.ct-universe-panel{
  flex:1;
  border:1px solid #d1d5db;
  border-radius:12px;
  padding:16px 20px;

  display: grid;
  grid-template-columns: 1fr 420px 240px;
  align-items: center;
  gap: 16px;
}
/* COLUMNS */
.ct-universe-col{
  color: var(--ct-text-dark);
  display: flex;
  min-width: 0;     /* clave para que el grid pueda encoger */
  width: auto;      /* el grid manda */
}


/* TITLE */
.ct-universe-title{
  font-size: 24px !important;
  font-weight:600;
  line-height:1.2;
  justify-content:flex-start;
  text-align:left;
  
}

.ct-universe-years{
  margin-left:6px;
  font-weight:600;
  color:#6b7280;
  font-size:15px;
}

/* GRAPH PLACEHOLDER */
.ct-universe-graph{
  text-align:center;
  font-weight:700;
  color:var(--ct-blue-main);
  justify-content:center;
  text-align:center;
  justify-content: center;
}

/* ACTIONS */
.ct-universe-actions{
  font-size:18px;
  font-weight:500;
  line-height:1.2;
  white-space:nowrap;
  justify-self:end;
  justify-content:flex-end;
  text-align:right;
  justify-content: flex-end;
}



.ct-universe-stats {
  display: flex;
  
  margin-top: 6px;
  flex-wrap: wrap;
  align-items: center;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.ct-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.ct-stat-number {
  color: #2A76EC;
  font-weight: 700;
}

.ct-stat-label {
  color: #7a7a7a;
}

.ct-stat-icon {
  font-size: 14px;
}

.ct-universe-title-text {
  font-weight: 600;
  margin-bottom: 6px;
}

/* AGRUPADOR vertical para titulo + stats */
.ct-universe-info{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width: 0;
}

/* IMPORTANTE: deja que el grid controle el ancho */
.ct-universe-col{
  width:auto; /* ← ESTA LINEA ES CLAVE */
}



@media (max-width: 980px){
  .ct-universe-panel{
    grid-template-columns: 1fr;
  }
  .ct-universe-actions{
    justify-content: flex-start;
  }
}


/* Cada opción del filtro */
/* wrapper */
.ct-filter-row {
  margin-bottom: 8px;
}

/* label */
.ct-filter-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.ct-filter-title{
	padding-left: 5px !important;
}
/* barra */
/*.ct-facet-bar {
  display: flex;
  height: 14px;
  margin-top: 4px;
  border-radius: 3px;
  overflow: hidden;
  background: #000;
  font-size: 10px;
  font-weight: 600;
  margin-left: 30px;
  margin-right: 20px;
  margin-bottom:20px;
}*/

/* azul */
.ct-bar-have {
  background: #1e73be;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* naranja */
.ct-bar-need {
  background: #f57c00;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* total */
.ct-bar-total {
  background: #dedede;
  color: #000;
  padding: 0 6px;
  display: flex;
  align-items: center;
  /*border: 1px solid #aeaeae;*/
}



/******************************************************************/
	/*CHECKBOX REMOVE*/
/******************************************************************/
/* Fila completa interactiva */
.ct-filter-row{
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px;
  cursor: pointer;
  transition: background .15s ease;
}

/* Hover uniforme */
.ct-filter-row:hover {
  /*background: rgba(0,0,0,0.04);*/
  background: none !important;
}
/* Elimina cualquier hover heredado */
.ct-filter-label{
	color:#1f2937 !important;
	padding-left: 5px !important;
}
.ct-filter-label-option:hover{
	background: rgba(0,0,0,0.04) !important;
}

.ct-filter-option{
	color:#1f2937 !important;
	padding-left: 5px !important;
}

.ct-filter-option:hover{
	background: rgba(0,0,0,0.04) !important;
}


/* Active */
.ct-filter-row:active {
  background: rgba(42,118,236,.15);
}

/* Ocultar checkbox sin romper accesibilidad */
.ct-filter-row input[type="checkbox"]{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.ct-filter-row:not(.ct-hidden-option):hover {
  background: rgba(0,0,0,0.04);
}


.ct-filter-option input[type="checkbox"],
.ct-filter-panel input[type="checkbox"],
.ct-sidebar-filters input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

/******************************************************************/

/*MINI-CHIPS*/
/* contenedor mini stats */
.ct-mini-stats {
  margin-left: 26px; /* alinear con checkbox */
  margin-top: 4px;
  display: flex;
  gap: 6px;
  display: none !important;
}

/* azul */
.ct-mini-have {
  background: #1e73be;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1;
}

/* naranja */
.ct-mini-need {
  background: #f57c00;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1;
}

/**********************************************************************************************/
/*BREADCRUMBS*/
/**********************************************************************************************/

/* =====================================================
   BREADCRUMBS – SINGLE LINE STYLE
===================================================== */

.ct-breadcrumbs {
    width: 100%;
    padding: 5px 0;
    font-size: 14px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.ct-breadcrumbs a {
    color: #2d4aa5;
    text-decoration: none;
    font-weight: 500;
    transition: 0.15s ease;
}

.ct-breadcrumbs a:hover {
    color: #ff9800;
    text-decoration: underline;
}

/* Separador */
.ct-breadcrumbs span,
.ct-breadcrumbs::after {
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .ct-breadcrumbs {
        font-size: 13px;
    }
}


.ct-active-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
}

.ct-hub-scope-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e3a8a, #244bbd);
    padding: 8px 12px;
    color: var(--ct-text-light);
}



/* Header grande de toyline */
.ct-toyline-headerbar{
  width: 100%;
  background: #4b5563; /* gris oscuro */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 0px;
  box-sizing: border-box;
  margin: 0px 0 5px;
}

.ct-toyline-left{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ct-toyline-title{
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Boton back: cuadro negro + flecha amarilla */
.ct-toyline-back{
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 6px;
  text-decoration: none !important;
  position: relative;
  font-weight: 800;
  color: #E7772B !impoortant;
}

.ct-toyline-back::before{
  content: "‹";
  color: #f59e0b; /* amarillo */
  font-size: 28px;
  line-height: 1;
  transform: translateY(-1px);
}

.ct-toyline-back:hover{
  opacity: .85;
}

/* Area derecha vacia (aire) */
.ct-toyline-right{
  width: 180px; /* ajusta el aire aqui */
}




/* Fast Browse block */

.ct-fast-browse-block {
  background: #fff !important;
  border: 1px solid #e7e7e7; 
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}

.ct-fast-browse-body {
  margin-top: 8px;
  background: #fff !important;
}

.ct-hub-toyline {
  width: 100%;
  padding: 0px 0px !important;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
  margin-bottom:15px;
}

.ct-hub-toyline:focus {
  outline: none;
  border-color: #2A76EC;
  box-shadow: 0 0 0 2px rgba(42,118,236,0.2);
}


/**********************************************************************************************/
/*TOOLBARS*/
/**********************************************************************************************/

.ct-hub-toolbar {
  background:#cfcfcf;
  border-top:1px solid #e7e7e7;
  border-radius:0;
  padding:5px;
  margin-bottom:5px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:0;
}

.ct-hub-toolbar-left,
.ct-hub-toolbar-right {
  display:flex;
  align-items:center;
  gap:12px;
}

.ct-hub-search {
  padding:4px 4px;
  border:1px solid #ccc;
  border-radius:6px;
  width:650px !important;
}

/* =========================================================
   Display buttons (tool group)
   ========================================================= */

.ct-display-buttons {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
}

.ct-toolbtn-view {
  appearance: none;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #1b1b1b;
  height: 34px;
  min-width: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  line-height: 1;
  user-select: none;
  font-size: 13px;
}

.ct-toolbtn-view + .ct-toolbtn-view {
  margin-left: -1px;
}

.ct-toolbtn-view:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.ct-toolbtn-view:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.ct-toolbtn-view:not(:first-child):not(:last-child) {
  border-radius: 0;
}

.ct-toolbtn-view:hover {
  background: #f6f7f8;
}

.ct-toolbtn-view:focus {
  outline: none;
}

.ct-toolbtn-view:focus-visible {
  outline: 2px solid rgba(42,118,236,0.35);
  outline-offset: 2px;
}

.ct-toolbtn-view.is-active {
  background: #2A76EC;
  border-color: #2A76EC;
  color: #fff;
}

.ct-toolbtn-view:active {
  transform: translateY(1px);
}

.ct-toolbtn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 1;
}




/* Toolbar dropdowns (Format / Sort) */
.ct-hub-format,
.ct-hub-sort {
  appearance: none;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  height: 34px;
  padding: 0 32px 0 10px; /* espacio para la flecha */
  font-size: 13px;
  line-height: 34px;
  color: #222;
  cursor: pointer;
}

/* Flechita sutil */
.ct-hub-format,
.ct-hub-sort {
  background-image:
    linear-gradient(45deg, transparent 50%, #666 50%),
    linear-gradient(135deg, #666 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* Hover / Focus (sutil, no "mandatorio") */
.ct-hub-format:hover,
.ct-hub-sort:hover {
  border-color: #bcbcbc;
}

.ct-hub-format:focus,
.ct-hub-sort:focus {
  outline: none;
}

.ct-hub-format:focus-visible,
.ct-hub-sort:focus-visible {
  outline: 2px solid rgba(42,118,236,0.25);
  outline-offset: 2px;
}

.ct-hub-format{
	width: 150px !important;
}
.ct-hub-sort{
	width: 100px !important;
}

/* Opcional: un poco mas compacto en mobile */
@media (max-width: 700px) {
  .ct-hub-format,
  .ct-hub-sort {
    font-size: 12px;
    padding-left: 8px;
  }
}



/**********************************************************************************************/
/*GRAPH*/
/**********************************************************************************************/


:root{
  --ct-blue: #2563eb;
  --ct-orange: #ef6c00;
  --ct-border: #d6d6d6;
  --ct-text: #111827;
  --ct-muted: #6b7280;
}

/* WRAP */
.ct-graph-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
}

/* DONUT */
.ct-donut{
  width:120px;
  height:120px;
  border-radius:50%;
  position:relative;
  background:
    conic-gradient(
      var(--ct-blue) 0 calc(var(--pct) * 1%),
      var(--ct-orange) 0 100%
    );
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}

/* inner hole */
.ct-donut::after{
  content:"";
  position:absolute;
  inset:16px;
  background:#fff;
  border-radius:50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
}

/* center text */
.ct-donut-center{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  z-index:2;
  line-height:1.05;
}

.ct-donut-pct{
  font-weight:600;
  font-size:22px;
  color: var(--ct-text);
  border-bottom: 3px solid #4385ea;
}

.ct-donut-num{
  margin-top:2px;
  font-weight:300;
  font-size:14px;
  color: var(--ct-text);;
}

/* LEGEND */
.ct-legend{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:130px;
}

.ct-legend-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  
  
}

.ct-legend-val{
  font-weight:800;
  color: var(--ct-text);
}

.ct-include-from-chips{
	background-color: #CECECE;
	padding-top: 5px;
	padding-bottom: 5px;
}

.ct-filter-chips{
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0px !important;
  align-items: flex-start !important; /* importante */
}

.ct-chip-wrapper{
	padding: 0px !important;
	margin-top: 0px !important;
	display: flex !important;
	align-items: center !important;
	/*background-color: #112255;*/
}
/* CHIP BASE */
.ct-chip {
  position: relative;
  display: inline-flex;
  align-items: center !important;
  padding: 6px 12px;
  background: #1e73be;
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-decoration: none;
  gap: 8px;
  width: 120px !important; 
}

/* FILTER CHIP (auto width, no fixed 120px) */
.ct-chip--auto{
  width: auto !important;
  max-width: none !important;
  white-space: nowrap;
  min-width: 0px !important; 
  align-items: left !important;
}
/* PROGRESS BACKGROUND */
/*.ct-chip-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  display: flex;
  z-index: 0;
}*/

.ct-chip-have {
  background: #1e73be;
  height: 100%;
  align-items: center !important;
}

.ct-chip-need {
  background: #f57c00;
  height: 100%;
  align-items: center !important;
}

/* TEXTO ENCIMA */
.ct-chip-label {
  position: relative;
  z-index: 2;
}

/* BADGES NUMERICOS */
.ct-chip-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 4px;
}

.ct-chip-have-count,
.ct-chip-need-count {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
}

/*CHIPS DE FILTROS*/
.ct-chip-have-count {
  background: #0f4fa3;
  color: #fff;
  display: none !important;
}

.ct-chip-need-count {
  background: #c25f00;
  color: #fff;
  display: none !important;
}

/* X */
.ct-chip-x {
  position: relative;
  z-index: 2;
  margin-left: 6px;
  font-weight: bold;
}






/**********************************************************************************************/
/*RIGHT ACTIONS: apilar dropdown + toggle*/
/**********************************************************************************************/
.ct-universe-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}

/* Collect by dropdown */
.ct-collectview-form{
  display:flex;
  align-items:center;
  gap:10px;
}

.ct-collectview-label{
  font-size:12px;
  font-weight:500;
  color:#6b7280;
  white-space:nowrap;
}

.ct-collectview-wrap{
  position:relative;
  display:inline-flex;
}

.ct-collectview-select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;

  font-size:12px;
  font-weight:500;

  padding:7px 28px 7px 12px;
  border-radius:999px;
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  cursor:pointer;
  line-height:1;
}

/* caret */
.ct-collectview-wrap:after{
  content:"▼";
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  font-size:10px;
  color:#6b7280;
  pointer-events:none;
}


/**********************************************************************************
		SHOW ONLY (segmented chips)
***********************************************************************************/

.ct-showonly-form{
  margin: 6px 0 10px;
  display:flex;
  justify-content:flex-end;
}

.ct-showonly-wrap{
  display:inline-flex;
  border:1px solid #d1d5db;
  border-radius: 999px;
  overflow:hidden;              /* para que se vea como 1 sola pieza */
  background:#fff;
}

/* botones base */
.ct-showonly-btn{
  appearance:none;
  border:0;
  background:transparent;
  padding: 6px 10px;
  font-size:12px;
  font-weight:500;
  line-height:1;
  cursor:pointer;
  user-select:none;
  color:#374151;
}

/* separadores internos */
.ct-showonly-btn + .ct-showonly-btn{
  border-left:1px solid #e5e7eb;
}

/* SIN HOVER (explicitamente) */
.ct-showonly-btn:hover{ background:transparent; }
.ct-showonly-btn:focus{ outline:none; }
.ct-showonly-btn:active{ transform:none; }

/* seleccionado */
.ct-showonly-btn.is-selected{
  color:#fff;
}

/* colores por tipo */
.ct-showonly-btn.is-have.is-selected{
  background: var(--ct-blue);
}

.ct-showonly-btn.is-need.is-selected{
  background: var(--ct-orange);
}

.ct-showonly-btn.is-nottracked.is-selected{
  background:#6b7280; /* gris */
}

.ct-showonly-btn.is-all.is-selected{
  background:#111827; /* casi negro */
}

/* redondeos solo extremos */
.ct-showonly-btn:first-child{
  border-top-left-radius:999px;
  border-bottom-left-radius:999px;
}

.ct-showonly-btn:last-child{
  border-top-right-radius:999px;
  border-bottom-right-radius:999px;
}

/* opcional: que se vea mas compacto en mobile */
@media (max-width: 640px){
  .ct-showonly-btn{
    padding:6px 8px;
    font-size:11px;
  }
}







/* =========================
   ITEMS GRID
========================= */
.ct-items-grid {
  display: grid;
  gap: 20px;               /* separacion real */
  background: #f3f4f6;     /* gris muy sutil */
  padding: 20px;
  border-radius: 16px;
}

/*BASE CARD*/

.ct-item-card {
  background: #fff;
  border: 1px solid #c5c5c5;
  border-radius: 0px;
}

.ct-item-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

.ct-item-thumb a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}


/*IMAGE*/
.ct-item-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.ct-item-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/*BODY AND TITLE*/
.ct-item-body {
  padding: 12px;
  text-align: center;
}

.ct-item-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ct-item-title a {
  text-decoration: none !important;
  color: inherit;
  display: block;
  width: 100%;
  font-size: 14px !important;
  font-weight: 600 !important;
}


/*BUTTONS BASE*/

.ct-item-actions {
  display: flex;
  gap: 8px;
  position: relative; /* 👈 OBLIGATORIO */
}
.ct-item-actions::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: #e5e5e5;
  pointer-events: none;
}

.ct-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  transition: all .18s ease;
}

.ct-btn i {
  font-size: 13px;
}

/*HAVE NORMAL*/
.ct-btn.have {
  color: #2e7d32;
  border-color: #2e7d32;
  padding-left: 15px;
}


/*NEED NORMAL*/
.ct-btn.need {
  color: #ef6c00;
  border-color: #ef6c00;
  padding-left: 15px;
}


/*HAVE SELECTED*/
.ct-btn.have.is-selected,
.ct-btn.have.is-selected:active,
.ct-btn.have.is-selected:focus,
.ct-btn.have.is-selected:focus-visible {
  background: #2e7d32;
  color: #fff;
  border-color: #2e7d32;
  outline: none;
}



/*NEED SELECTED*/

.ct-btn.need.is-selected,
.ct-btn.need.is-selected:active,
.ct-btn.need.is-selected:focus,
.ct-btn.need.is-selected:focus-visible {
  background: #ef6c00;
  color: #fff;
  border-color: #ef6c00;
  outline: none;
}




/*DISABLED*/
.ct-btn.is-disabled {
  opacity: .4;
  pointer-events: none;
}








/*ICONS CHECK UNCHEK*/
.ct-btn.have::before {
  font-weight: 700;
}

.ct-btn.dont-have::before {
  font-weight: 700;
}

.ct-btn.have {
  color: #2e7d32;
}

.ct-btn.dont-have {
  color: #c62828;
}
.ct-btn.is-active.have {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}

.ct-btn.is-active.dont-have {
  background: #c62828;
  border-color: #c62828;
  color: #fff;
}

.ct-btn.have.HIGHLIGHT {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}





.ct-btn.dont-have.HIGHLIGHT {
  background: #f57c00;
  border-color: #f57c00;
  color: #fff;
}



.ct-item-actions .ct-btn.is-disabled {
  opacity: .4;
  pointer-events: none;
}


.ct-btn.need {
  color: #ef6c00; /* naranja */
}

.ct-btn.is-active.need {
  background: #ef6c00;
  border-color: #ef6c00;
  color: #fff;
}


.ct-btn i {
  font-size: 13px;
}

.ct-btn span {
  font-weight: 600;
}

