/* MACHUPICCHU BEST - PC index category layout */
@media (min-width: 900px){
  #tours-section .section-inner,
  #packages-grid .section-inner{
    max-width:1300px;
  }

  #tourFilters{
    display:none !important;
  }

  #toursGrid.pc-index-category-layout{
    display:block !important;
  }

  .pc-tour-category-section{
    margin:0 0 2.75rem;
  }

  .pc-tour-category-header{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:1rem;
    margin:0 0 1rem;
    padding-bottom:.75rem;
    border-bottom:1px solid rgba(201,168,76,.18);
  }

  .pc-tour-category-header h3{
    font-family:'Playfair Display',serif;
    color:var(--gold);
    font-size:clamp(1.35rem,2vw,1.8rem);
    line-height:1.15;
    margin:0;
  }

  .pc-tour-category-header p{
    color:var(--text2);
    font-size:.9rem;
    margin:.25rem 0 0;
  }

  .pc-tour-category-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:1.25rem;
  }

  @media (max-width: 1199px){
    .pc-tour-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  }

  @media (max-width: 980px){
    .pc-tour-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  }

  .pc-tour-category-grid .tour-card{
    width:100%;
    min-width:0;
  }

  .pc-empty-category{
    background:rgba(255,255,255,.035);
    border:1px dashed rgba(201,168,76,.25);
    border-radius:var(--radius-lg);
    padding:1.25rem;
    color:var(--text3);
    font-size:.9rem;
    text-align:center;
    grid-column:1/-1;
  }

  #packagesGrid.pc-package-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:1.25rem;
    overflow:visible !important;
    padding:0;
  }

  #packagesGrid.pc-package-grid .tour-card{
    width:100%;
    min-width:0;
    max-width:none;
  }

  @media (max-width: 1199px){
    #packagesGrid.pc-package-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  }

  @media (max-width: 980px){
    #packagesGrid.pc-package-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  }

  #packages-grid .section-header{
    margin-bottom:1.75rem;
  }
}


/* FIX 2026-05-27: fuerza 3 tarjetas por fila en PC también en el fallback clásico del index. */
@media (min-width:900px){
  #toursGrid.pc-index-category-layout .pc-tour-category-grid,
  #packagesGrid.pc-package-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:1.25rem !important;
    overflow:visible !important;
  }
  #toursGrid.pc-index-category-layout .tour-card,
  #packagesGrid.pc-package-grid .tour-card{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
  }
}
