/* ════════════════════════════════════════════════════════════
   Pacheando Tours — Páginas de categoría
   Tarjetas con la misma línea visual del carrusel de "experiencias"
   de la portada: foto grande, degradado, nombre encima y, al pasar
   el cursor (o siempre en táctil), descripción + botón.
   ════════════════════════════════════════════════════════════ */

.ct-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ct-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ct-card {
  position: relative;
  display: block;
  height: 430px;
  border-radius: 1rem;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 30px -12px rgba(1, 45, 29, 0.35);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.ct-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px -16px rgba(1, 45, 29, 0.55); }

.ct-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
  z-index: 0;
}
.ct-card:hover .ct-img { transform: scale(1.12); }

.ct-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(1,45,29,0.90) 0%, rgba(1,45,29,0.30) 50%, rgba(1,45,29,0.05) 100%);
  transition: background 0.4s ease;
}
.ct-card:hover .ct-overlay,
.ct-card:focus-within .ct-overlay {
  background: linear-gradient(to top, rgba(1,45,29,0.94) 0%, rgba(1,45,29,0.60) 55%, rgba(1,45,29,0.40) 100%);
}

.ct-num {
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2;
  width: 2.2rem; height: 2.2rem; border-radius: 9999px;
  background: rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; color: #fff;
}

.ct-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem; color: #fff;
}
.ct-title {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.4rem; font-weight: 700; line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.ct-reveal {
  display: grid; grid-template-rows: 0fr;
  opacity: 0; transform: translateY(8px);
  transition: grid-template-rows 0.45s ease, opacity 0.35s ease, transform 0.45s ease;
}
.ct-reveal > div { overflow: hidden; }
.ct-card:hover .ct-reveal,
.ct-card:focus-within .ct-reveal { grid-template-rows: 1fr; opacity: 1; transform: none; }
@media (hover: none) {
  .ct-reveal { grid-template-rows: 1fr; opacity: 1; transform: none; }
}
.ct-desc { font-size: 0.92rem; line-height: 1.45; color: rgba(255,255,255,0.92); margin-top: 0.6rem; }
.ct-cta {
  display: inline-flex; align-items: center; gap: 0.4rem; width: max-content;
  margin-top: 0.9rem;
  background: #ffca98; color: #2c1600;
  font-weight: 600; font-size: 0.85rem;
  padding: 0.5rem 1rem; border-radius: 0.6rem;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.ct-cta .material-symbols-outlined { font-size: 17px; transition: transform 0.25s ease; }
.ct-card:hover .ct-cta { background: #ffd9b0; box-shadow: 0 8px 20px -8px rgba(0,0,0,0.4); }
.ct-card:hover .ct-cta .material-symbols-outlined { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .ct-img { transition: none; }
}

/* ── Tira "otras categorías" ── */
.ct-other {
  position: relative; display: block; height: 150px;
  border-radius: 0.85rem; overflow: hidden; isolation: isolate;
  box-shadow: 0 8px 22px -14px rgba(1,45,29,0.5);
  transition: transform 0.3s ease;
}
.ct-other:hover { transform: translateY(-3px); }
.ct-other img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ct-other:hover img { transform: scale(1.08); }
.ct-other span.ct-other-bg { position: absolute; inset: 0; background: linear-gradient(to top, rgba(1,45,29,0.85), rgba(1,45,29,0.25)); }
.ct-other span.ct-other-label {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: flex-end; padding: 1rem;
  color: #fff; font-family: "Noto Serif", Georgia, serif; font-weight: 700; font-size: 1.05rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
