/* Un catálogo compartido, con todo el contenido en HTML y controles opcionales. */
.catalog-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: center; padding-block: 50px 90px; }
.catalog-hero h1 { font-size: clamp(2.9rem, 4.7vw, 4.5rem); text-align: left; line-height: 1.06; max-width: none; }
.catalog-hero h1 span { color: #98647a; }
.catalog-lead { max-width: 43ch; margin-top: 27px; font-size: 1.04rem; color: var(--muted); line-height: 1.8; }
.catalog-intro-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 27px; font-size: .79rem; }
.catalog-count { padding: 7px 13px; background: var(--yellow-soft); border: 1px solid var(--ink); border-radius: 30px; font-weight: 900; }
.catalog-hero .text-link { margin-top: 22px; }
.catalog-collage { position: relative; height: 350px; isolation: isolate; }
.catalog-collage::before { content: ""; position: absolute; inset: 22px 0 20px; background: var(--pink-soft); border-radius: 45% 45% 45% 45%; z-index: -1; transform: rotate(-9deg); }
.catalog-photo { position: absolute; width: 56%; aspect-ratio: 1; padding: 10px 10px 26px; background: white; border: 1px solid var(--ink); box-shadow: 5px 6px 0 #34363512; }
.catalog-photo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.photo-1 { left: 0; top: 4px; transform: rotate(-12deg); }
.photo-2 { right: -2px; bottom: 9px; transform: rotate(11deg); }
.collage-note { position: absolute; top: 15px; right: 5px; display: grid; width: 84px; height: 84px; place-items: center; font-size: 3.4rem; line-height: 1; background: var(--yellow); border: var(--border); border-radius: 50%; transform: rotate(12deg); }
.collage-caption { position: absolute; left: 0; bottom: 0; background: var(--blue); border: 1px solid var(--ink); padding: 9px 14px; font-family: var(--display); font-size: .95rem; transform: rotate(-4deg); }
.games-page .catalog-collage::before { background: var(--green); }
.games-page .catalog-photo { width: 89%; aspect-ratio: 3.2; padding: 9px; }
.games-page .photo-1 { top: 40px; left: -10px; }
.games-page .photo-2 { bottom: 45px; right: -6px; }
.games-page .catalog-photo img { object-fit: cover; }
.games-page .collage-note { right: -4px; top: 5px; background: var(--pink); }
.catalog-section { padding-block: 16px 90px; scroll-margin-top: 125px; }
.catalog-heading { padding-bottom: 30px; }
.catalog-heading h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.catalog-tools { padding: 25px 28px 18px; margin-bottom: 35px; border: 1px solid var(--line); border-radius: 20px; background: #f4f1e9; }
.catalog-search-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; }
.catalog-search { display: grid; gap: 10px; width: min(100%, 470px); font-size: .85rem; font-weight: 900; }
.catalog-search input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; }
.catalog-search input::placeholder { color: var(--muted); opacity: 1; }
.catalog-surprise { min-height: 52px; padding: 12px 18px; border: var(--border); border-radius: 12px; background: var(--yellow-soft); color: var(--ink); font: inherit; font-size: .82rem; font-weight: 900; cursor: pointer; }
.catalog-surprise:hover { background: var(--yellow); }
.catalog-surprise:disabled { opacity: .5; cursor: default; }
.catalog-surprise span { margin-left: 15px; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.catalog-filter { min-height: 44px; border: 1px solid #a7a79d; border-radius: 50px; padding: 9px 17px; background: transparent; font: inherit; font-size: .79rem; font-weight: 800; color: var(--ink); cursor: pointer; }
.catalog-filter:hover { background: var(--white); border-color: var(--ink); }
.catalog-filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.catalog-status { margin-top: 17px; font-size: .76rem; color: var(--muted); min-height: 20px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: start; }
.catalog-card { min-width: 0; overflow: hidden; border: 1px solid var(--ink); border-radius: 22px; background: var(--white); scroll-margin-top: 115px; }
.song-picture { display: flex; align-items: center; justify-content: center; height: 210px; overflow: hidden; background: var(--pink-soft); border-bottom: 1px solid var(--ink); padding: 18px; }
.song-picture img { height: 100%; width: 100%; min-width: 0; min-height: 0; max-height: 100%; object-fit: contain; border-radius: 10px; }
.category-animales .song-picture { background: var(--yellow-soft); }
.category-naturaleza .song-picture { background: var(--green); }
.category-gestos .song-picture { background: var(--blue); }
.catalog-card-body { padding: 25px 25px 0; }
.catalog-category { display: inline-flex; gap: 8px; align-items: center; font-size: .7rem; letter-spacing: .03em; text-transform: uppercase; font-weight: 900; }
.catalog-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.catalog-card h2 { font-size: 1.7rem; line-height: 1.17; margin-top: 16px; }
.catalog-excerpt { font-size: .87rem; line-height: 1.75; color: var(--muted); margin-top: 15px; padding-bottom: 23px; }
.resource-details { border-top: 1px dashed var(--line); }
.resource-details summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 63px; padding-block: 14px; list-style: none; font-weight: 900; font-size: .82rem; }
.resource-details summary::-webkit-details-marker { display: none; }
.resource-details summary span { font-size: 1.5rem; line-height: 1; }
.resource-details[open] summary span { transform: rotate(45deg); }
.resource-details summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.resource-full { padding-block: 4px 25px; font-size: .96rem; line-height: 1.8; overflow-wrap: anywhere; }
.resource-full p + p { margin-top: .8rem; }
.resource-full a { text-decoration: underline; }
.song-card .resource-full em { font-style: normal; }
.activity-card { border-top: 6px solid var(--yellow); }
.activity-card.category-creatividad { border-top-color: var(--pink); }
.activity-card.category-movimiento { border-top-color: #a8cedc; }
.activity-card.category-naturaleza { border-top-color: #a8bf96; }
.activity-card .catalog-card-body { padding-top: 24px; }
.catalog-empty { text-align: center; padding: 55px 25px; background: var(--blue); border-radius: 22px; }
.catalog-empty h3 { font-size: 2rem; }
.catalog-empty p { margin-block: 18px 25px; }
.catalog-next { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-bottom: 90px; padding: 40px 45px; background: var(--pink-soft); border: var(--border); border-radius: 25px; }
.catalog-next h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
.catalog-next p:not(.chapter) { margin-top: 18px; font-size: .95rem; max-width: 50ch; }
.catalog-next .button { flex: 0 0 auto; }
@media (prefers-reduced-motion: no-preference) {
  .catalog-card { transition: box-shadow .18s ease, translate .18s ease; }
  .catalog-card:hover { box-shadow: 4px 5px 0 #34363516; translate: 0 -3px; }
  .catalog-photo, .resource-details summary span { transition: transform .2s ease; }
  .catalog-collage:hover .photo-1 { transform: rotate(-8deg); }
  .catalog-collage:hover .photo-2 { transform: rotate(7deg); }
}
@media (max-width: 1000px) {
  .catalog-hero { gap: 45px; }
  .catalog-collage { height: 300px; }
  .catalog-photo { width: 61%; }
  .catalog-grid { gap: 20px; }
  .catalog-card-body { padding-inline: 20px; }
  .catalog-card h2 { font-size: 1.5rem; }
}
@media (max-width: 850px) {
  .catalog-hero { padding-block: 30px 65px; gap: 25px; grid-template-columns: 1.1fr .9fr; }
  .catalog-hero h1 { font-size: clamp(2.5rem, 5.7vw, 4rem); }
  .catalog-collage { height: 260px; }
  .collage-caption { font-size: .75rem; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-next { padding: 30px; flex-wrap: wrap; }
  .catalog-tools { padding: 22px; }
  .catalog-search-row { align-items: stretch; flex-direction: column; gap: 15px; }
  .catalog-search { width: 100%; }
  .catalog-surprise { align-self: flex-start; }
}
@media (max-width: 620px) {
  .catalog-hero { grid-template-columns: 1fr; padding-block: 16px 50px; gap: 30px; }
  .catalog-hero h1 { font-size: clamp(2.5rem, 10.8vw, 3.8rem); }
  .catalog-lead { font-size: .96rem; margin-top: 23px; }
  .catalog-collage { height: 270px; width: min(100%, 350px); margin-inline: auto; }
  .catalog-photo { width: 56%; }
  .collage-caption { font-size: .85rem; }
  .collage-note { width: 67px; height: 67px; font-size: 2.8rem; }
  .games-page .catalog-photo { width: 86%; }
  .catalog-heading { padding-bottom: 25px; }
  .catalog-section { padding-bottom: 55px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 24px; }
  .catalog-tools { padding: 20px 17px 16px; }
  .catalog-filters { gap: 8px; }
  .catalog-filter { padding-inline: 13px; font-size: .75rem; }
  .catalog-card h2 { font-size: 1.9rem; }
  .catalog-card-body { padding-inline: 25px; }
  .song-picture { height: 220px; }
  .catalog-next { padding: 28px 25px; margin-bottom: 60px; gap: 25px; }
  .catalog-next .button { width: 100%; }
  .catalog-surprise { width: 100%; }
}
