/* =========================================================
   Cast Apple TV — v2.0.1
   Paleta clara crema para sitios con fondo blanco.

   Variables ajustables (cámbialas en la regla .cas-page si tu
   tema tiene un header más alto/bajo de lo normal):
     --cas-header-offset  → separación del hero respecto al
                           header fijo de tu tema (por defecto 7rem)
   ========================================================= */


/* =========================================================
   PARTE 1 — Fila de reparto (.cat-cast)
   ========================================================= */

.cat-cast {
    margin: 2.5rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    color: #1d1d1f;
    background: #faf9f6;
    border: 1px solid #e8e6e0;
    padding: 1.5rem 1.5rem 2rem;
    border-radius: 16px;
}

.cat-cast__header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1rem;
}

.cat-cast__header-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.cat-cast__header-link:hover {
    opacity: 0.7;
    text-decoration: none;
    color: inherit;
}

.cat-cast__header-link:hover .cat-cast__chevron {
    transform: translateX(2px);
}

.cat-cast__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #1d1d1f;
}

.cat-cast__chevron {
    font-size: 1.5rem;
    color: #86868b;
    line-height: 1;
    transition: transform 0.18s ease;
}

.cat-cast__row {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0 1rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.cat-cast__row::-webkit-scrollbar { height: 6px; }
.cat-cast__row::-webkit-scrollbar-track { background: transparent; }
.cat-cast__row::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
}

.cat-cast__item {
    flex: 0 0 auto;
    width: 110px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: center;
    color: inherit;
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform 0.18s ease;
    display: block;
    -webkit-tap-highlight-color: transparent;
}

.cat-cast__item:hover,
.cat-cast__item:focus-visible {
    transform: translateY(-3px);
    outline: none;
    text-decoration: none;
    color: inherit;
}

.cat-cast__avatar {
    display: block;
    width: 90px;
    height: 90px;
    margin: 0 auto 0.6rem;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #e5e5e7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.cat-cast__item:hover .cat-cast__avatar {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.cat-cast__initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 500;
    background: linear-gradient(135deg, #8b7355, #5a4a38);
}

.cat-cast__name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
    color: #1d1d1f;
}

.cat-cast__role {
    display: block;
    font-size: 0.8rem;
    color: #86868b;
    line-height: 1.2;
}

/* Panel de biografía inline (solo cuando behavior="inline") */
.cat-cast__bio {
    margin-top: 1.5rem;
    background: #ffffff;
    border: 1px solid #e8e6e0;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    animation: cat-fade-in 0.25s ease;
}

@keyframes cat-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cat-cast__bio[hidden] { display: none; }

.cat-cast__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #f5f5f7;
    border: none;
    color: #1d1d1f;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cat-cast__close:hover { background: #e5e5e7; }

.cat-cast__bio-inner {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.cat-cast__bio-photo {
    flex: 0 0 auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #e5e5e7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cat-cast__bio-text { flex: 1; min-width: 0; }

.cat-cast__bio-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1d1d1f;
}

.cat-cast__bio-role {
    font-size: 0.875rem;
    color: #86868b;
    margin: 0 0 0.75rem;
}

.cat-cast__bio-body {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: #424245;
}


/* =========================================================
   PARTE 2 — Página individual del artista (.cas-*)
   /artista/{slug}/
   ========================================================= */

.cas-page {
    /* ╔════════════════════════════════════════════════════════════╗
       ║  ESPACIO ARRIBA DEL HERO                                    ║
       ╚════════════════════════════════════════════════════════════╝ */
    --cas-header-offset: 12rem;      /* singles: foto con aire arriba */

    /* No imponemos tipografía propia: dejamos que herede la del tema
       (la misma que "Tienda", "Eventos", "Exposiciones" del menú). */
    color: #1d1d1f;
    background: #ffffff;
}

/* Páginas de directorio/buscadores: el hero pega arriba */
.cas-archive {
    --cas-header-offset: 1rem;       /* ← archives: sin espacio extra */
}

/* ----- HERO ----- */
.cas-hero {
    position: relative;
    overflow: hidden;
    /* Top: variable para compensar header. Bottom: 3rem */
    padding: var(--cas-header-offset) 1.5rem 3rem;
    background: #faf9f6;
    isolation: isolate;
}

/* Halo de color: la propia foto difuminada tinta la página */
.cas-hero__bg {
    position: absolute;
    inset: -60px;
    background-size: cover;
    background-position: center;
    filter: blur(80px) saturate(1.4);
    opacity: 0.35;
    z-index: -2;
}

.cas-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(250, 249, 246, 0.55) 0%,
        rgba(250, 249, 246, 0.85) 60%,
        rgba(250, 249, 246, 0.95) 100%);
    z-index: -1;
}

.cas-hero__inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    align-items: center;
    text-align: center;
}

.cas-hero__photo {
    flex: 0 0 auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #e5e5e7;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 4px solid #ffffff;
}

.cas-hero__photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 4.5rem;
    font-weight: 500;
    background: linear-gradient(135deg, #8b7355, #5a4a38);
}

.cas-hero__text {
    width: 100%;
    max-width: 100%;
}

.cas-hero__name {
    font-size: 2.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #1d1d1f;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: center;
}

.cas-hero__role {
    font-size: 1rem;
    color: #6e6e73;
    margin: 0 0 1.5rem;
    font-weight: 500;
    text-align: center;
}

.cas-hero__bio {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #424245;
    max-width: 100%;
    padding-top: 0.5rem;     /* ← respiración entre role y bio */
    /* Justificado con guiones automáticos para que se vea limpio */
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.cas-hero__bio p { margin: 0 0 1em; text-align: justify; }
.cas-hero__bio p:last-child { margin-bottom: 0; }
.cas-hero__bio-empty {
    color: #86868b;
    font-style: italic;
    text-align: center !important;
}

/* ----- APARECE EN ----- */
.cas-related {
    padding: 3rem 1.5rem 5rem;
    background: #ffffff;
}

.cas-related__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.cas-related__header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.cas-related__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.cas-related__chevron {
    font-size: 1.75rem;
    color: #86868b;
    line-height: 1;
}

.cas-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.cas-card {
    display: flex;
    flex-direction: column;
    background: #faf9f6;
    border: 1px solid #e8e6e0;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.cas-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
}

.cas-card__img {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: #e5e5e7;
    position: relative;
}

.cas-card__img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 500;
    background: linear-gradient(135deg, #c9b8a0, #9a8770);
}

.cas-card__body {
    padding: 1rem 1.25rem 1.25rem;
}

.cas-card__type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #86868b;
    margin-bottom: 0.4rem;
}

.cas-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: #1d1d1f;
    line-height: 1.3;
}

.cas-card__excerpt {
    font-size: 0.875rem;
    color: #6e6e73;
    line-height: 1.5;
    margin: 0;
}


/* =========================================================
   PARTE 3 — DIRECTORIO DE ARTISTAS (/artistas/)
   Estilo banner oscuro + cards de tienda
   ========================================================= */

/* Hero del directorio: clonado exacto del banner de Tienda del tema Blocksy */
.cas-archive__hero {
    position: relative;
    overflow: hidden;
    /* Mismo tamaño que el banner type-2 del tema: --min-height 386px,
       --container-padding 50px 0 */
    padding: 50px 1.5rem;
    min-height: 386px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background:
        var(--cas-hero-image,
            linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%));
    background-size: cover;
    background-position: center;
    /* Ancho completo: rompe el contenedor del tema. Funciona en cualquier
       tema porque empuja los bordes hasta los extremos del viewport
       independientemente de la anchura del wrapper padre. */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: none;
}

/* Overlay idéntico al del tema: rgba(18, 21, 26, 0.65) — negro azulado */
.cas-archive__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(18, 21, 26, 0.65);
    z-index: 0;
}

.cas-archive__hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cas-archive__title {
    /* Idéntico al título del banner de Tienda en el tema Blocksy:
       Montserrat, 46px, 700, line-height 60px, capitalize.
       font-family hereda automáticamente del tema (Montserrat). */
    font-family: inherit;
    font-size: 2.875rem;       /* 46px */
    font-weight: 700;
    line-height: 1.3;          /* ≈60px */
    text-transform: capitalize;
    letter-spacing: 0;
    margin: 0;
    color: #ffffff;
    /* Sombra muy sutil — el overlay del 65% ya hace casi todo el trabajo */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.cas-archive__subtitle {
    /* Oculto: el estilo Tienda no usa subtítulo */
    display: none;
}

/* Sección principal: fondo blanco limpio */
.cas-archive__main {
    padding: 3rem 1.5rem 5rem;
    background: #ffffff;
}

.cas-archive__inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* ----- Buscador (estructura flex robusta ante temas) ----- */
.cas-search {
    max-width: 560px;
    margin: 0 auto 3rem;
}

.cas-search__field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #faf9f6;
    border: 1px solid #e8e6e0;
    border-radius: 999px;
    padding: 0 0.6rem 0 1.25rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cas-search__field:focus-within {
    border-color: #1d1d1f;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

.cas-search__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #86868b;
    pointer-events: none;
}

.cas-search__input {
    flex: 1;
    min-width: 0;
    /* !important porque muchos temas pisan padding/border/bg del input */
    border: 0 !important;
    background: transparent !important;
    padding: 0.95rem 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 1rem;
    font-family: inherit;
    color: #1d1d1f;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.4;
}

.cas-search__input::placeholder { color: #a1a1a6; }

/* Limpia los estilos nativos del input type=search */
.cas-search__input::-webkit-search-decoration,
.cas-search__input::-webkit-search-cancel-button,
.cas-search__input::-webkit-search-results-button,
.cas-search__input::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

.cas-search__clear {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e5e7;
    border: none;
    color: #1d1d1f;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease;
}

.cas-search__clear:hover { background: #d1d1d6; }
.cas-search__clear[hidden] { display: none; }

/* Botón de búsqueda por voz */
.cas-search__mic {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #6e6e73;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.cas-search__mic:hover { background: #f0efea; color: #1d1d1f; }
.cas-search__mic svg { width: 18px; height: 18px; }
.cas-search__mic[hidden] { display: none; }

/* Estado escuchando: anillo pulsante rojo */
.cas-search__mic--active {
    color: #d23737;
    background: rgba(210, 55, 55, 0.08);
    animation: cas-mic-pulse 1.4s ease-in-out infinite;
}

@keyframes cas-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(210, 55, 55, 0.4); }
    50%      { box-shadow: 0 0 0 8px rgba(210, 55, 55, 0); }
}

/* Indicador del atajo "/" */
.cas-search__kbd {
    flex-shrink: 0;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, monospace;
    background: #ffffff;
    border: 1px solid #e8e6e0;
    border-radius: 4px;
    color: #86868b;
    pointer-events: none;
}

.cas-search__kbd[hidden] { display: none; }

@media (max-width: 600px) {
    .cas-search__kbd { display: none; }
}

.cas-search__count {
    text-align: center;
    color: #86868b;
    font-size: 0.9rem;
    margin: 1rem 0 0;
}

/* ----- Grid de artistas (cards circulares centradas) ----- */
.cas-archive__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 2.5rem 1.5rem;
}

.cas-artist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.cas-artist-card[hidden] { display: none; }

.cas-artist-card:hover {
    transform: translateY(-4px);
    text-decoration: none;
    color: inherit;
}

.cas-artist-card__avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #e5e5e7;
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.cas-artist-card:hover .cas-artist-card__avatar {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.cas-artist-card__initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 500;
    background: linear-gradient(135deg, #8b7355, #5a4a38);
}

.cas-artist-card__name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
    color: #1d1d1f;
    line-height: 1.25;
}

.cas-artist-card__role {
    font-size: 0.85rem;
    color: #86868b;
    margin: 0;
    line-height: 1.3;
}

/* Badge en [equipo] para diferenciar Artista / Líder */
.cas-artist-card__badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    margin-top: 0.5rem;
    border: 1px solid;
}

.cas-artist-card__badge--artist {
    color: #8b5e34;
    border-color: #d4b896;
    background: #faf3ea;
}

.cas-artist-card__badge--leader {
    color: #2c5f7f;
    border-color: #a3c4d6;
    background: #eaf4fa;
}

/* ----- Estados vacíos ----- */
.cas-archive__empty,
.cas-archive__empty-db {
    text-align: center;
    padding: 3rem 1rem;
    color: #6e6e73;
}

.cas-archive__empty p,
.cas-archive__empty-db p { margin: 0 0 1rem; }

.cas-archive__empty-clear {
    background: #1d1d1f;
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
}

.cas-archive__empty-clear:hover { background: #3a3a3c; }


/* =========================================================
   BUSCADOR GLOBAL (.cas-global-search)
   Chips de filtro + grid uniforme de cards cuadradas
   ========================================================= */

.cas-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 0 2rem;
}

.cas-filter {
    background: transparent;
    border: 1px solid #e8e6e0;
    color: #424245;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.cas-filter:hover {
    background: #faf9f6;
    border-color: #d4d2cc;
}

.cas-filter--active {
    background: #1d1d1f;
    color: #ffffff;
    border-color: #1d1d1f;
}

.cas-filter--active:hover {
    background: #3a3a3c;
    border-color: #3a3a3c;
}

/* Grid de resultados unificado */
.cas-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* Modificador: card con imagen cuadrada (más cohesivo cuando se mezclan
   retratos y fotos panorámicas en el mismo grid) */
.cas-card--square .cas-card__img {
    aspect-ratio: 1 / 1;
}

.cas-card[hidden] { display: none; }

/* Colores del badge según el tipo */
.cas-card__type--cast_member { color: #8b5e34; }
.cas-card__type--lider       { color: #2c5f7f; }
.cas-card__type--post        { color: #5d3a8f; }
.cas-card__type--page        { color: #5d6b7a; }


/* =========================================================
   PARTE 4 — RESPONSIVE (tablet → móvil → móvil pequeño)
   ========================================================= */

/* ===== Tablet (≤ 1024px) ===== */
@media (max-width: 1024px) {
    .cas-page    { --cas-header-offset: 6rem;   }   /* singles tablet */
    .cas-archive { --cas-header-offset: 0.5rem; }   /* archives tablet */
    .cas-hero__name { font-size: 2.25rem; }
    .cas-hero__photo { width: 200px; height: 200px; }
    .cas-related__grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.25rem;
    }
    .cas-archive__title { font-size: 3rem; }
    .cas-archive__hero { padding: 4rem 1.5rem; min-height: 320px; }
    .cas-archive__grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 2rem 1.25rem;
    }
    .cas-artist-card__avatar { width: 120px; height: 120px; }
}

/* ===== Móvil grande (≤ 768px) ===== */
@media (max-width: 768px) {
    /* Fila de reparto */
    .cat-cast {
        margin: 1.75rem 0;
        padding: 1.25rem 1.25rem 1.5rem;
        border-radius: 14px;
    }
    .cat-cast__title { font-size: 1.125rem; }
    .cat-cast__row { gap: 1rem; }
    .cat-cast__item { width: 96px; }
    .cat-cast__avatar { width: 76px; height: 76px; }
    .cat-cast__name { font-size: 0.825rem; }
    .cat-cast__role { font-size: 0.75rem; }

    /* Bio inline en móvil: columna */
    .cat-cast__bio { padding: 1.25rem; }
    .cat-cast__bio-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    .cat-cast__bio-photo { width: 96px; height: 96px; }
    .cat-cast__bio-name { font-size: 1.25rem; }

    /* Página individual: hero apilado */
    .cas-page    { --cas-header-offset: 5rem;   }   /* singles móvil */
    .cas-archive { --cas-header-offset: 0.5rem; }   /* archives móvil */
    .cas-hero {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-bottom: 2.5rem;
    }
    .cas-hero__inner {
        gap: 1.25rem;
    }
    .cas-hero__photo { width: 160px; height: 160px; }
    .cas-hero__name { font-size: 2rem; }
    .cas-hero__role { font-size: 0.95rem; margin-bottom: 1rem; }
    .cas-hero__bio {
        font-size: 1rem;
        /* En móvil el justificado deja huecos feos: mejor a la izquierda */
        text-align: left;
    }
    .cas-hero__bio p { text-align: left; }

    /* Sección "Aparece en" */
    .cas-related { padding: 2.25rem 1.25rem 3.5rem; }
    .cas-related__title { font-size: 1.25rem; }
    .cas-related__grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 1rem;
    }
    .cas-card__body { padding: 0.875rem 1rem 1rem; }
    .cas-card__title { font-size: 1rem; }
    .cas-card__excerpt { font-size: 0.825rem; }

    /* Directorio en móvil */
    .cas-archive__title { font-size: 2.25rem; }
    .cas-archive__hero { padding: 3rem 1.25rem; min-height: 240px; }
    .cas-archive__main { padding: 2rem 1.25rem 3.5rem; }
    .cas-search { margin-bottom: 2rem; }
    .cas-archive__grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1.75rem 1rem;
    }
    .cas-artist-card__avatar { width: 110px; height: 110px; }
    .cas-artist-card__name { font-size: 0.95rem; }
    .cas-artist-card__role { font-size: 0.8rem; }
}

/* ===== Móvil pequeño (≤ 480px) ===== */
@media (max-width: 480px) {
    /* Fila de reparto: ítems más pequeños, fade para indicar scroll */
    .cat-cast {
        margin: 1.25rem 0;
        padding: 1rem 1rem 1.25rem;
    }
    .cat-cast__row {
        gap: 0.875rem;
        /* Hint visual: el último item se ve un poco recortado para
           indicar que hay más al hacer scroll */
        padding-right: 1rem;
    }
    .cat-cast__item { width: 84px; }
    .cat-cast__avatar { width: 70px; height: 70px; }

    /* Página individual */
    .cas-hero {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .cas-hero__photo { width: 140px; height: 140px; }
    .cas-hero__name { font-size: 1.75rem; }
    .cas-hero__bio { font-size: 0.95rem; line-height: 1.65; }

    /* Cards a 1 columna para que se lean bien */
    .cas-related { padding: 2rem 1rem 3rem; }
    .cas-related__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .cas-card__img { aspect-ratio: 16 / 9; }
}

/* ===== Móvil muy pequeño (≤ 360px) — galaxia mínima ===== */
@media (max-width: 360px) {
    .cas-hero__name { font-size: 1.5rem; }
    .cas-hero__photo { width: 110px; height: 110px; }
    .cat-cast__item { width: 78px; }
    .cat-cast__avatar { width: 64px; height: 64px; }
}
