/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jun 11 2026 | 13:48:34 */
/* =============================================
   Custom CSS+JS > Add CSS
   Subpaginas de categorias - grilla de centros v5
   ============================================= */

@import url('https://fonts.cdnfonts.com/css/lovelo');
@import url('https://fonts.cdnfonts.com/css/open-sauce-one');

/* ── Contenedor general ── */
.cc-categoria-page {
  font-family: 'Open Sauce One', 'Open Sans', sans-serif;
}

/* Quitar espacios extra del tema arriba del contenido */
body:has(.cc-categoria-page) .site-content,
body:has(.cc-categoria-page) #primary {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body:has(.cc-categoria-page) .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Truco full-bleed: franja y fondo ocupan todo el ancho */
.cc-cat-band,
.cc-cat-fondo {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ── Franja blanca superior ── */
.cc-cat-band {
  background: #FFFFFF;
  padding: 18px 32px;
  box-sizing: border-box;
}

.cc-cat-band-inner {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
}

/* Marca "SOMOS PARTE DE LA RED" a la izquierda */
.cc-cat-marca {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Open Sauce One', 'Open Sans', sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  color: #ABA8AC;
  letter-spacing: 0.5px;
  padding: 7px 0;
}
.cc-cat-marca span {
  color: #D25E38;
  font-size: 34px;
  font-weight: 900;
}

/* Titulo de categoria centrado — Lovelo Black = weight 900 */
.cc-cat-titulo {
  font-family: 'Lovelo', 'Open Sans', sans-serif;
  font-weight: 900;
  font-size: 38px;
  color: #DCC8B8;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin: 0;
  text-align: center;
  max-width: 58%;
}

/* ── Seccion rosa con la grilla ── */
.cc-cat-fondo {
  background: #EBDCD4;
  padding: 48px 32px 64px;
  box-sizing: border-box;
}

/* ── Grilla de 4 columnas ── */
.cc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}

/* ── Card blanca vertical, toda clickeable ── */
.cc-grid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 22px 16px 18px;
  box-sizing: border-box;
  text-decoration: none !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.cc-grid-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
  transform: translateY(-4px);
}

/* Area del logo: ocupa el espacio disponible de la card */
.cc-grid-card-logo {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.cc-grid-card-logo img {
  max-width: 75%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Nombre del centro — Lovelo Black = weight 900 */
.cc-grid-card-name {
  font-family: 'Lovelo', 'Open Sans', sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: #ABA8AC;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  line-height: 1.45;
  margin: 0;
}

/* ── Mensaje vacio ── */
.cc-grid-empty {
  text-align: center;
  color: #ABA8AC;
  font-size: 16px;
  padding: 60px 0;
  max-width: 920px;
  margin: 0 auto;
}

/* ── Ocultar header nativo de WP ── */
.page-template-default .entry-header {
  display: none !important;
}

/* ── Loading ── */
.entry-content:not(.cc-page-loaded) {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.entry-content:not(.cc-page-loaded)::before {
  content: '';
  width: 36px;
  height: 36px;
  border: 3px solid #E8DBD0;
  border-top-color: #0097B2;
  border-radius: 50%;
  animation: cc-spin 0.8s linear infinite;
}
@keyframes cc-spin {
  to { transform: rotate(360deg); }
}
.entry-content.cc-page-loaded::before {
  display: none;
}

/* ── Responsive ── */

/* Tablet horizontal */
@media (max-width: 1024px) {
  .cc-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 700px;
  }
  .cc-cat-titulo {
    font-size: 30px;
  }
  .cc-cat-marca {
    font-size: 18px;
  }
  .cc-cat-marca span {
    font-size: 28px;
  }
}

/* Tablet vertical / mobile grande */
@media (max-width: 768px) {
  .cc-cat-band {
    padding: 20px 24px;
  }
  .cc-cat-band-inner {
    flex-direction: column;
    min-height: 0;
  }
  .cc-cat-marca {
    position: static;
    transform: none;
    text-align: center;
    margin-bottom: 12px;
  }
  .cc-cat-titulo {
    font-size: 24px;
    max-width: 100%;
  }
  .cc-cat-fondo {
    padding: 32px 24px 44px;
  }
  .cc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 460px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .cc-cat-fondo {
    padding: 24px 16px 36px;
  }
  .cc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .cc-grid-card {
    padding: 18px 10px 16px;
  }
  .cc-grid-card-name {
    font-size: 11px;
  }
}