*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: #333;
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

body {
    margin: 0;
    background: #fff;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cm-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.cm-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 14px 0 24px;
    text-transform: uppercase;
}

.cm-layout {
    display: grid;
    grid-template-columns: 170px 1fr;
    border-top: 1px solid #999;
    min-height: 620px;
}

/* ============================================
   SIDEBAR MEJORADO
   ============================================ */

.cm-sidebar {
    border-right: 1px solid #999;
    padding-top: 12px;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.cm-sidebar a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.15;
    padding: 12px 14px 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    transition: all 0.25s ease;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.cm-sidebar a:hover {
    color: #1a1a1a;
    background: linear-gradient(90deg, #f0f0f0 0%, #fafafa 100%);
    padding-left: 20px;
    font-weight: 600;
}

.cm-sidebar a.active {
    font-weight: 700;
    background: linear-gradient(90deg, #333333 0%, #555555 100%);
    color: #fff;
    border-bottom-color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.cm-sidebar a.active::before {
    content: "›";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 300;
    opacity: 0.7;
}

.cm-sidebar a:first-child {
    border-top: 1px solid #e5e5e5;
}

.cm-sidebar a:last-child {
    border-bottom: 1px solid #e5e5e5;
}

.cm-sidebar a.active + a {
    border-top: 1px solid transparent;
}

.cm-content {
    padding: 22px 0 30px 18px;
}

.cm-content-home {
    padding: 55px 55px 30px 90px;
    max-width: 760px;
}

.cm-description {
    font-size: 13px;
    line-height: 1.8;
    text-align: justify;
}

.cm-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    margin: -12px 0 14px;
}

.cm-search {
    width: 300px;
    height: 22px;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    padding: 2px 12px;
    outline: none;
    font-size: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cm-search:focus {
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}

.cm-search-btn {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.15s ease;
}

.cm-search-btn:hover {
    transform: scale(1.1);
}

.cm-section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #999;
}

/* ============================================
   GRID Y CARDS MEJORADOS
   ============================================ */

.cm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 24px;
}

.cm-card {
    color: #000;
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease;
}

.cm-card:hover {
    transform: translateY(-3px);
}

.cm-card:active {
    transform: translateY(-1px);
}

.cm-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #edf0f3;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.cm-card:hover .cm-card-img {
    transform: scale(1.02);
}

.cm-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.cm-card:hover .cm-card-img img {
    transform: scale(1.05);
}

.cm-card-title {
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.cm-card:hover .cm-card-title {
    color: #333;
}

.cm-card-meta {
    font-size: 11px;
    color: #555;
    margin-top: 3px;
}

/* ============================================
   PAGINACIÓN MEJORADA
   ============================================ */

.cm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}

.cm-pagination button {
    border: 1px solid #ddd;
    background: #f0f2f4;
    padding: 8px 22px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.cm-pagination button:hover:not(:disabled) {
    background: #333;
    color: #fff;
    border-color: #333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cm-pagination button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.cm-pagination button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* ============================================
   LOADING, EMPTY, ERROR MEJORADOS
   ============================================ */

.cm-loading,
.cm-empty,
.cm-error {
    padding: 30px;
    font-size: 13px;
    text-align: center;
}

.cm-loading {
    color: #666;
}

.cm-empty {
    color: #888;
}

.cm-error {
    color: #9b1c1c;
}

/* ============================================
   DETALLE PAGE MEJORADO
   ============================================ */

.cm-detail-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #999;
    padding: 16px 40px 20px;
    min-height: 215px;
}

.cm-detail-img {
    width: 320px;
    height: 185px;
    background: #edf0f3;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.cm-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cm-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: #e9e9e9;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.cm-arrow:hover {
    background: #333;
    color: #fff;
}

.cm-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.cm-arrow-left {
    left: 8px;
}

.cm-arrow-right {
    right: 8px;
}

.cm-detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    padding: 14px 0 18px;
}

.cm-detail-title {
    font-size: 14px;
    font-weight: 700;
}

.cm-detail-subtitle {
    font-size: 13px;
    font-weight: 700;
    margin-top: 5px;
}

.cm-detail-type {
    text-align: right;
    font-size: 11px;
    font-weight: 700;
}

.cm-detail-body {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 32px;
    margin-top: 10px;
}

.cm-divider {
    background: #999;
}

.cm-tech-title,
.cm-synopsis-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
}

.cm-field {
    margin-bottom: 8px;
}

.cm-label {
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 2px;
}

.cm-value {
    font-size: 12px;
    line-height: 1.35;
}

.cm-synopsis {
    font-size: 12px;
    line-height: 1.65;
    text-align: justify;
}

/* ============================================
   RESPONSIVE MEJORADO
   ============================================ */

@media (max-width: 800px) {
    .cm-page {
        padding: 0 16px 30px;
    }

    .cm-layout {
        grid-template-columns: 1fr;
    }

    .cm-sidebar {
        border-right: 0;
        border-bottom: 1px solid #999;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .cm-content,
    .cm-content-home {
        padding: 24px 0;
    }

    .cm-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cm-topbar {
        justify-content: flex-start;
        margin-top: 0;
    }

    .cm-search {
        width: 100%;
    }

    .cm-detail-header,
    .cm-detail-body {
        grid-template-columns: 1fr;
    }

    .cm-divider {
        display: none;
    }

    .cm-detail-type {
        text-align: left;
    }

    .cm-arrow {
        background: rgba(255, 255, 255, 0.9);
    }
}

@media (max-width: 520px) {
    .cm-title {
        font-size: 26px;
    }

    .cm-grid {
        grid-template-columns: 1fr;
    }

    .cm-sidebar {
        grid-template-columns: 1fr;
    }

    .cm-sidebar a {
        color: #000;
    }

    .cm-detail-img {
        width: 100%;
        height: 190px;
    }
}
/* ============================================
   MEJORAS EN LISTA DE PELÍCULAS
   ============================================ */

/* Spinner */
.cm-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Contador de resultados */
.cm-results-count {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    margin-left: 8px;
}

/* Placeholder para imágenes faltantes */
.cm-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: #edf0f3;
}

/* Empty state mejorado */
.cm-empty {
    flex-direction: column;
    padding: 50px 20px;
}

.cm-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.cm-empty p {
    margin: 0;
    color: #666;
}

.cm-clear-search {
    margin-top: 16px;
    padding: 8px 16px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s ease;
}

.cm-clear-search:hover {
    background: #555;
}

/* Error state mejorado */
.cm-error {
    flex-direction: column;
}

.cm-error-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

/* Botones de paginación con iconos */
.cm-btn-icon {
    font-weight: 300;
}

/* Animación de entrada para cards */
.cm-card {
    animation: fadeInUp 0.3s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search input placeholder */
.cm-search::placeholder {
    color: #999;
    font-size: 12px;
}

/* Focus state mejorado */
.cm-search:focus {
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}

/* ============================================
   ICONOS FONT AWESOME
   ============================================ */

/* Placeholder de tarjeta */
.cm-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #bbb;
    background: #edf0f3;
}

/* Spinner inline FontAwesome */
.cm-spinner-inline {
    margin-right: 8px;
    color: #666;
}

/* Icono vacío */
.cm-empty-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 12px;
}

/* Icono error grande */
.cm-error-icon-lg {
    font-size: 48px;
    color: #9b1c1c;
    margin-bottom: 16px;
}

/* Botones de paginación */
.cm-pagination button {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cm-pagination .fa-chevron-left,
.cm-pagination .fa-chevron-right {
    font-size: 10px;
}
/* ==========================================================
   NUEVA FICHA CINEMATOGRÁFICA — PELÍCULA DETALLE
   ========================================================== */
.cm-movie-page { background:#090b0c; color:#f5f1e8; font-family:Arial,Helvetica,sans-serif; }
.cm-movie-page::before { content:""; position:fixed; inset:0; pointer-events:none; opacity:.025; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); z-index:99; }
.cm-movie-shell { width:100%; min-height:100vh; overflow:hidden; }
.cm-movie-loading,.cm-movie-error { min-height:100vh; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:14px; color:#c9b990; }
.cm-movie-error i { font-size:42px; }.cm-movie-error a{color:#d9b967;text-decoration:none}
.cm-movie-hero { --cm-hero-image:none; min-height:720px; position:relative; background:#101415 var(--cm-hero-image) center 24%/cover no-repeat; display:flex; flex-direction:column; isolation:isolate; }
.cm-movie-hero::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(5,8,9,.98) 0%,rgba(5,8,9,.87) 33%,rgba(5,8,9,.35) 66%,rgba(5,8,9,.24) 100%),linear-gradient(0deg,#090b0c 0%,transparent 34%); z-index:-1; }
.cm-movie-hero-overlay { position:absolute; inset:0; z-index:-1; box-shadow:inset 0 0 160px rgba(0,0,0,.45); }
.cm-movie-nav { width:min(1280px,calc(100% - 64px)); margin:0 auto; padding:28px 0; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid rgba(217,185,103,.22); }
.cm-movie-brand { color:#f6e8bd!important; text-decoration:none!important; display:flex; align-items:center; gap:12px; letter-spacing:.08em; text-transform:uppercase; font-size:13px; line-height:1.05; }
.cm-movie-brand i { width:44px;height:44px;border:1px solid #d9b967;border-radius:50%;display:grid;place-items:center;font-size:20px; }
.cm-movie-back { color:#e9e4d9!important;text-decoration:none!important;border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:10px 17px;font-size:12px;transition:.2s; }
.cm-movie-back:hover { border-color:#d9b967;color:#d9b967!important; }
.cm-movie-intro { width:min(1280px,calc(100% - 64px)); margin:auto; padding:70px 0 125px; }
.cm-movie-kicker { display:flex;gap:10px;align-items:center;flex-wrap:wrap;color:#ddb954;text-transform:uppercase;font-size:12px;font-weight:700;letter-spacing:.13em;margin-bottom:18px; }
.cm-movie-kicker span{opacity:.55}.cm-movie-intro h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(50px,7vw,102px);line-height:.92;letter-spacing:-.045em;max-width:850px;margin:0 0 22px;color:#fff;font-weight:700;text-shadow:0 5px 30px rgba(0,0,0,.45)}
.cm-movie-original{color:#c6c2b8;margin:5px 0;font-size:14px}.cm-movie-summary-meta{display:flex;gap:22px;flex-wrap:wrap;margin:26px 0 24px;color:#e8e3d7;font-size:13px}.cm-movie-summary-meta span{display:flex;gap:8px;align-items:center}.cm-movie-summary-meta i{color:#d9b967}
.cm-movie-hero-synopsis{max-width:650px;color:#d7d4cc;font-size:15px;line-height:1.8;margin:0 0 30px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.cm-movie-primary-btn{display:inline-flex;align-items:center;gap:10px;background:linear-gradient(135deg,#e3c475,#b98a33);color:#111!important;text-decoration:none!important;border-radius:999px;padding:14px 22px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;box-shadow:0 9px 30px rgba(185,138,51,.2);transition:.2s}.cm-movie-primary-btn:hover{transform:translateY(-2px);filter:brightness(1.05)}
.cm-movie-gallery,.cm-movie-content,.cm-movie-footer{width:min(1280px,calc(100% - 64px));margin:0 auto}.cm-movie-gallery{margin-top:-76px;position:relative;z-index:2;background:rgba(14,18,19,.96);border:1px solid rgba(217,185,103,.25);border-radius:18px;padding:24px;box-shadow:0 24px 80px rgba(0,0,0,.45)}
.cm-movie-gallery-head,.cm-movie-section-heading{display:flex;align-items:flex-end;justify-content:space-between}.cm-movie-gallery-head span,.cm-movie-section-heading span{color:#b99d5b;text-transform:uppercase;letter-spacing:.16em;font-size:9px;font-weight:700}.cm-movie-gallery-head h2,.cm-movie-section-heading h2{font-family:Georgia,'Times New Roman',serif;font-size:25px;margin:5px 0 0;color:#f7f2e8}.cm-movie-counter{color:#7d7c76;font-size:12px}.cm-movie-counter strong{color:#d9b967;font-size:22px;font-family:Georgia,serif}
.cm-movie-gallery-stage{height:500px;margin-top:18px;border-radius:12px;overflow:hidden;position:relative;background:#050606}.cm-movie-gallery-stage>img{width:100%;height:100%;object-fit:contain;display:block;transition:opacity .13s ease,transform .13s ease}.cm-movie-gallery-stage>img.changing{opacity:.18;transform:scale(.99)}.cm-movie-gallery-arrow{position:absolute;top:50%;z-index:3;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(7,9,10,.74);color:#fff;cursor:pointer;backdrop-filter:blur(8px)}.cm-movie-gallery-arrow:hover{border-color:#d9b967;color:#d9b967}.cm-movie-gallery-arrow.prev{left:18px}.cm-movie-gallery-arrow.next{right:18px}.cm-movie-gallery-caption{position:absolute;left:0;right:0;bottom:0;padding:35px 22px 16px;background:linear-gradient(transparent,rgba(0,0,0,.8));font-size:11px;color:#ddd;min-height:20px}.cm-movie-thumbnails{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(145px,1fr);gap:12px;overflow-x:auto;padding-top:14px}.cm-movie-thumb{height:92px;padding:0;border:1px solid transparent;border-radius:8px;overflow:hidden;background:#15191a;cursor:pointer;opacity:.58;transition:.2s}.cm-movie-thumb.active,.cm-movie-thumb:hover{opacity:1;border-color:#d9b967;transform:translateY(-2px)}.cm-movie-thumb img{width:100%;height:100%;object-fit:cover}
.cm-movie-content{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(330px,.75fr);gap:22px;padding:42px 0 55px}.cm-movie-card{background:linear-gradient(145deg,#111516,#0d1011);border:1px solid rgba(255,255,255,.09);border-radius:16px;padding:28px;box-shadow:0 15px 50px rgba(0,0,0,.2)}.cm-movie-section-heading{display:block;border-bottom:1px solid rgba(217,185,103,.2);padding-bottom:18px;margin-bottom:24px}.cm-movie-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 28px}.cm-movie-field{display:grid;grid-template-columns:34px 1fr;gap:12px;padding:13px 0;border-bottom:1px solid rgba(255,255,255,.06);min-width:0}.cm-movie-field-icon{width:30px;height:30px;border:1px solid rgba(217,185,103,.25);border-radius:8px;display:grid;place-items:center;color:#d9b967;font-size:12px}.cm-movie-field span{font-size:9px;color:#9d998e;text-transform:uppercase;letter-spacing:.11em}.cm-movie-field p{font-size:13px;color:#eee9df;margin:4px 0 0;line-height:1.5;overflow-wrap:anywhere}.cm-movie-side{display:flex;flex-direction:column;gap:22px}.cm-movie-synopsis-copy p,.cm-movie-cast p{font-size:14px;line-height:1.85;color:#d8d5cc;margin:0;text-align:left}.cm-movie-english{font-style:italic;color:#bcb9b2!important}.cm-movie-language-divider{display:flex;align-items:center;gap:10px;margin:24px 0 16px;color:#b99d5b;text-transform:uppercase;letter-spacing:.12em;font-size:9px}.cm-movie-language-divider::after{content:"";height:1px;background:rgba(217,185,103,.2);flex:1}.cm-movie-muted{color:#777!important}
.cm-movie-footer{border-top:1px solid rgba(217,185,103,.18);display:flex;justify-content:space-between;padding:24px 0 40px;color:#777;text-transform:uppercase;font-size:10px;letter-spacing:.12em}.cm-movie-footer a{color:#d9b967!important;text-decoration:none!important}
@media(max-width:900px){.cm-movie-hero{min-height:650px}.cm-movie-content{grid-template-columns:1fr}.cm-movie-gallery-stage{height:410px}.cm-movie-fields{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.cm-movie-nav,.cm-movie-intro,.cm-movie-gallery,.cm-movie-content,.cm-movie-footer{width:min(100% - 28px,1280px)}.cm-movie-nav{padding:18px 0}.cm-movie-back{font-size:0;padding:11px}.cm-movie-back i{font-size:13px}.cm-movie-hero{min-height:620px;background-position:center}.cm-movie-hero::before{background:linear-gradient(90deg,rgba(5,8,9,.94),rgba(5,8,9,.58)),linear-gradient(0deg,#090b0c 0%,transparent 42%)}.cm-movie-intro{padding:55px 0 100px}.cm-movie-intro h1{font-size:48px}.cm-movie-gallery{padding:14px;margin-top:-55px}.cm-movie-gallery-stage{height:260px}.cm-movie-gallery-arrow{width:38px;height:38px}.cm-movie-thumbnails{grid-auto-columns:110px}.cm-movie-thumb{height:68px}.cm-movie-content{padding-top:24px}.cm-movie-card{padding:20px}.cm-movie-fields{grid-template-columns:1fr}.cm-movie-footer{gap:15px;align-items:flex-start}}



/* ==========================================================
   HOME — CINEMA MÉXICO
========================================================== */

.cm-home-page {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 75% 10%,
            rgba(194, 147, 63, 0.08),
            transparent 26rem
        ),
        #050809;
}

.cm-home-content {
    min-width: 0;
    overflow: hidden;
    background: #050809;
}

.cm-home-hero {
    --cm-home-background:
        linear-gradient(
            90deg,
            rgba(5, 8, 9, 0.98),
            rgba(5, 8, 9, 0.72)
        );

    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    padding: 80px clamp(30px, 7vw, 110px);
    isolation: isolate;
    overflow: hidden;
    background-image: var(--cm-home-background);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.cm-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.025),
            transparent 30%
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 99px,
            rgba(255, 255, 255, 0.018) 100px
        );
}

.cm-home-hero::after {
    content: "";
    position: absolute;
    right: clamp(30px, 7vw, 110px);
    bottom: 42px;
    width: min(380px, 35vw);
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(213, 169, 87, 0.8)
        );
}

.cm-home-hero-content {
    position: relative;
    z-index: 2;
    width: min(720px, 100%);
}

.cm-home-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    color: #d6ad64;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.cm-home-eyebrow-line {
    width: 45px;
    height: 1px;
    background: #d6ad64;
}

.cm-home-title {
    max-width: 720px;
    margin: 0;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 9vw, 8.5rem);
    font-weight: 500;
    line-height: 0.82;
    letter-spacing: -0.065em;
}

.cm-home-title span {
    display: block;
    margin-left: clamp(28px, 6vw, 92px);
    color: #d6ad64;
    font-style: italic;
}

.cm-home-subtitle {
    max-width: 610px;
    margin: 38px 0 22px;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.85;
}

.cm-home-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cm-home-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d6ad64;
}

.cm-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.cm-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 25px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.cm-btn:hover {
    transform: translateY(-2px);
}

.cm-btn-primary {
    color: #080b0c;
    background:
        linear-gradient(
            135deg,
            #e7c078,
            #b88737
        );
    box-shadow: 0 12px 35px rgba(184, 135, 55, 0.2);
}

.cm-btn-primary:hover {
    color: #080b0c;
    background:
        linear-gradient(
            135deg,
            #f3d69c,
            #c69545
        );
}

.cm-btn-outline {
    color: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(8, 12, 13, 0.28);
    backdrop-filter: blur(8px);
}

.cm-btn-outline:hover {
    color: #ffffff;
    border-color: rgba(214, 173, 100, 0.8);
    background: rgba(214, 173, 100, 0.08);
}

.cm-btn-icon {
    font-size: 0.7rem;
}

.cm-home-hero-decoration {
    position: absolute;
    right: clamp(25px, 5vw, 70px);
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: rgba(255, 255, 255, 0.18);
    font-size: 0.66rem;
    letter-spacing: 0.32em;
    writing-mode: vertical-rl;
    transform: translateY(-50%);
}

.cm-home-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding:
        clamp(30px, 5vw, 65px)
        clamp(25px, 6vw, 90px);
    background: #050809;
}

.cm-home-navigation-card {
    position: relative;
    min-height: 180px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 30px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(214, 173, 100, 0.18);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.012)
        );
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease;
}

.cm-home-navigation-card::before {
    content: "";
    position: absolute;
    inset: auto -60px -90px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(214, 173, 100, 0.07);
    filter: blur(4px);
}

.cm-home-navigation-card:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 173, 100, 0.52);
    background:
        linear-gradient(
            135deg,
            rgba(214, 173, 100, 0.085),
            rgba(255, 255, 255, 0.018)
        );
}

.cm-home-navigation-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(214, 173, 100, 0.25);
    border-radius: 50%;
    color: #d6ad64;
    background: rgba(214, 173, 100, 0.06);
    font-size: 1.4rem;
}

.cm-home-navigation-label,
.cm-home-section-kicker {
    color: #c99b4e;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.cm-home-navigation-text h2 {
    margin: 7px 0 9px;
    color: #f6f0e7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 500;
}

.cm-home-navigation-text p {
    max-width: 440px;
    margin: 0;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.9rem;
    line-height: 1.65;
}

.cm-home-navigation-arrow {
    position: relative;
    z-index: 2;
    color: #d6ad64;
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.cm-home-navigation-card:hover .cm-home-navigation-arrow {
    transform: translateX(6px);
}

.cm-home-about {
    padding:
        clamp(60px, 8vw, 110px)
        clamp(25px, 7vw, 110px);
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    background:
        radial-gradient(
            circle at 10% 50%,
            rgba(214, 173, 100, 0.06),
            transparent 30rem
        ),
        #070b0c;
}

.cm-home-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 900px;
    margin-bottom: 55px;
}

.cm-home-section-number {
    margin-top: 4px;
    color: #d6ad64;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
}

.cm-home-section-heading h2 {
    max-width: 720px;
    margin: 10px 0 0;
    color: #f5efe5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 5rem);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.cm-home-about-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(320px, 0.75fr);
    gap: clamp(35px, 7vw, 90px);
    align-items: start;
}

.cm-home-about-description {
    max-width: 820px;
}

.cm-home-about-description p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.66);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.95;
}

.cm-home-about-description p:first-child {
    color: rgba(255, 255, 255, 0.9);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.65;
}

.cm-home-about-card {
    padding: 30px;
    border: 1px solid rgba(214, 173, 100, 0.2);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.012)
        );
}

.cm-home-about-card-label {
    display: block;
    padding-bottom: 18px;
    color: #d6ad64;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-home-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cm-home-feature-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cm-home-feature-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.cm-home-feature-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #d6ad64;
    border: 1px solid rgba(214, 173, 100, 0.3);
    border-radius: 50%;
    font-size: 0.65rem;
}

.cm-home-feature-list strong {
    display: block;
    margin-bottom: 7px;
    color: #f5efe5;
    font-size: 0.94rem;
}

.cm-home-feature-list small {
    display: block;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.82rem;
    line-height: 1.6;
}

.cm-home-closing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding:
        clamp(55px, 8vw, 100px)
        clamp(25px, 7vw, 110px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(
            120deg,
            rgba(214, 173, 100, 0.09),
            transparent 38%
        ),
        #050809;
}

.cm-home-closing-copy {
    max-width: 760px;
}

.cm-home-closing h2 {
    margin: 10px 0 17px;
    color: #f6f0e7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 500;
    line-height: 1.07;
    letter-spacing: -0.04em;
}

.cm-home-closing p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.56);
    line-height: 1.8;
}


/* ==========================================================
   RESPONSIVE HOME
========================================================== */

@media (max-width: 1050px) {
    .cm-home-hero {
        min-height: 610px;
    }

    .cm-home-navigation {
        grid-template-columns: 1fr;
    }

    .cm-home-about-grid {
        grid-template-columns: 1fr;
    }

    .cm-home-about-card {
        max-width: 720px;
    }
}

@media (max-width: 760px) {
    .cm-home-hero {
        min-height: auto;
        padding:
            90px 24px
            70px;
        background-position: 68% center;
    }

    .cm-home-hero::after,
    .cm-home-hero-decoration {
        display: none;
    }

    .cm-home-title {
        font-size: clamp(3.5rem, 18vw, 5.5rem);
        line-height: 0.9;
    }

    .cm-home-title span {
        margin-left: 18px;
    }

    .cm-home-subtitle {
        margin-top: 30px;
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .cm-home-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cm-btn {
        width: 100%;
    }

    .cm-home-navigation {
        padding: 25px 18px 45px;
    }

    .cm-home-navigation-card {
        min-height: 0;
        grid-template-columns: auto 1fr;
        padding: 23px;
    }

    .cm-home-navigation-arrow {
        display: none;
    }

    .cm-home-navigation-icon {
        width: 52px;
        height: 52px;
    }

    .cm-home-about {
        padding: 65px 22px;
    }

    .cm-home-section-heading {
        gap: 14px;
        margin-bottom: 38px;
    }

    .cm-home-section-heading h2 {
        font-size: clamp(2.2rem, 11vw, 3.3rem);
    }

    .cm-home-about-card {
        padding: 24px;
    }

    .cm-home-closing {
        flex-direction: column;
        align-items: flex-start;
        padding: 65px 22px;
    }

    .cm-home-closing .cm-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cm-home-eyebrow {
        font-size: 0.63rem;
        letter-spacing: 0.14em;
    }

    .cm-home-meta {
        gap: 9px;
        font-size: 0.68rem;
    }

    .cm-home-navigation-card {
        grid-template-columns: 1fr;
    }

    .cm-home-navigation-icon {
        margin-bottom: 3px;
    }
}


/* ==========================================================
   CATÁLOGO DE PELÍCULAS
========================================================== */

.cm-catalog-page {
    min-height: 100vh;
    background: #050809;
}

.cm-catalog-content {
    min-width: 0;
    min-height: 100vh;
    padding-bottom: 80px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 88% 5%,
            rgba(204, 156, 75, 0.09),
            transparent 27rem
        ),
        #050809;
}

.cm-catalog-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding:
        90px
        clamp(25px, 6vw, 90px)
        60px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(
            90deg,
            rgba(5, 8, 9, 0.99),
            rgba(5, 8, 9, 0.76)
        ),
        linear-gradient(
            0deg,
            rgba(5, 8, 9, 1),
            transparent
        ),
        url("../img/cinema-portada.png") center 42% / cover;
}

.cm-catalog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 119px,
            rgba(255, 255, 255, 0.016) 120px
        );
}

.cm-catalog-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.cm-catalog-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #d6ad64;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.cm-catalog-eyebrow span {
    width: 45px;
    height: 1px;
    background: #d6ad64;
}

.cm-catalog-title {
    margin: 16px 0 20px;
    color: #f7f1e7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.cm-catalog-description {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    line-height: 1.8;
}

.cm-catalog-hero-decoration {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 110px;
    height: 110px;
    flex: 0 0 auto;
    color: rgba(214, 173, 100, 0.72);
    border: 1px solid rgba(214, 173, 100, 0.22);
    border-radius: 50%;
    background: rgba(5, 8, 9, 0.48);
    backdrop-filter: blur(10px);
    font-size: 2.8rem;
}

.cm-catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding:
        35px
        clamp(25px, 6vw, 90px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(8, 12, 13, 0.95);
}

.cm-catalog-search-wrapper {
    width: min(720px, 100%);
    min-height: 58px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding-left: 20px;
    border: 1px solid rgba(214, 173, 100, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.cm-catalog-search-wrapper:focus-within {
    border-color: rgba(214, 173, 100, 0.7);
    box-shadow: 0 0 0 4px rgba(214, 173, 100, 0.08);
}

.cm-catalog-search-wrapper > i {
    color: #d6ad64;
}

.cm-catalog-search {
    width: 100%;
    min-width: 0;
    padding: 17px 0;
    color: #ffffff;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
}

.cm-catalog-search::placeholder {
    color: rgba(255, 255, 255, 0.37);
}

.cm-catalog-search-btn {
    align-self: stretch;
    min-width: 115px;
    padding: 0 24px;
    color: #090c0d;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background:
        linear-gradient(
            135deg,
            #e4bc72,
            #b98636
        );
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cm-catalog-shortcut {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.7rem;
}

.cm-catalog-shortcut kbd {
    min-width: 27px;
    padding: 5px 7px;
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.045);
    font-family: inherit;
    text-align: center;
}

.cm-catalog-results-heading {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    padding:
        55px
        clamp(25px, 6vw, 90px)
        35px;
}

.cm-catalog-results-heading .cm-section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin: 10px 0 0;
    color: #f5efe5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
}

.cm-results-count {
    display: none;
    align-items: center;
    padding: 8px 13px;
    color: #d6ad64;
    border: 1px solid rgba(214, 173, 100, 0.22);
    border-radius: 999px;
    background: rgba(214, 173, 100, 0.06);
    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.cm-catalog-line {
    height: 1px;
    flex: 1;
    margin-bottom: 17px;
    background:
        linear-gradient(
            90deg,
            rgba(214, 173, 100, 0.35),
            transparent
        );
}

.cm-catalog-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
    padding:
        0
        clamp(25px, 6vw, 90px)
        45px;
}

.cm-catalog-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.012)
        );
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(24px);
    animation:
        cmCatalogCardIn 0.65s ease
        forwards;
    animation-delay: var(--cm-card-delay);
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.cm-catalog-card:hover {
    transform: translateY(-7px);
    border-color: rgba(214, 173, 100, 0.42);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

@keyframes cmCatalogCardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cm-catalog-card-image {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0c1011;
}

.cm-catalog-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
        transform 0.65s ease,
        filter 0.4s ease;
}

.cm-catalog-card:hover .cm-catalog-card-image img {
    transform: scale(1.055);
    filter: brightness(0.7);
}

.cm-catalog-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.05) 35%,
            rgba(0, 0, 0, 0.8) 100%
        );
}

.cm-catalog-card-year {
    position: absolute;
    z-index: 3;
    top: 15px;
    right: 15px;
    padding: 7px 11px;
    color: #f0ce8d;
    border: 1px solid rgba(214, 173, 100, 0.28);
    border-radius: 999px;
    background: rgba(5, 8, 9, 0.7);
    backdrop-filter: blur(7px);
    font-size: 0.68rem;
    font-weight: 700;
}

.cm-catalog-card-view {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    opacity: 0;
    transform: translate(-50%, -40%);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cm-catalog-card-view span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #080b0c;
    border-radius: 50%;
    background: #d6ad64;
    font-size: 1rem;
}

.cm-catalog-card:hover .cm-catalog-card-view {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.cm-catalog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: rgba(214, 173, 100, 0.65);
    background:
        radial-gradient(
            circle,
            rgba(214, 173, 100, 0.08),
            transparent 55%
        ),
        #0c1011;
}

.cm-catalog-card-placeholder i {
    font-size: 2.4rem;
}

.cm-catalog-card-placeholder span {
    color: rgba(255, 255, 255, 0.37);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cm-catalog-card-body {
    min-height: 120px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 13px;
    padding: 21px 19px;
}

.cm-catalog-card-index {
    padding-top: 5px;
    color: #b8893e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.7rem;
}

.cm-catalog-card-copy {
    min-width: 0;
}

.cm-catalog-card-copy h3 {
    margin: 0 0 11px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.25;
}

.cm-catalog-card-copy h3 a {
    color: #f5efe5;
    text-decoration: none;
}

.cm-catalog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 14px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
}

.cm-catalog-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cm-catalog-card-meta i {
    color: rgba(214, 173, 100, 0.7);
}

.cm-catalog-card-arrow {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    color: #d6ad64;
    border: 1px solid rgba(214, 173, 100, 0.19);
    border-radius: 50%;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.cm-catalog-card:hover .cm-catalog-card-arrow {
    color: #080b0c;
    background: #d6ad64;
    transform: translateX(3px);
}

.cm-catalog-pagination {
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 25px clamp(25px, 6vw, 90px);
}

.cm-catalog-pagination button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 21px;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(214, 173, 100, 0.22);
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.025);
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease;
}

.cm-catalog-pagination button:hover:not(:disabled) {
    color: #080b0c;
    border-color: #d6ad64;
    background: #d6ad64;
}

.cm-catalog-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.cm-catalog-pagination #pageInfo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.76rem;
}

.cm-catalog-pagination #pageInfo strong {
    color: #d6ad64;
    font-size: 0.92rem;
}

.cm-catalog-message,
.cm-loading {
    min-height: 220px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 clamp(25px, 6vw, 90px) 45px;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.018);
    text-align: center;
}

.cm-catalog-message {
    flex-direction: column;
}

.cm-catalog-message-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #d6ad64;
    border: 1px solid rgba(214, 173, 100, 0.23);
    border-radius: 50%;
    font-size: 1.3rem;
}

.cm-catalog-message strong {
    display: block;
    margin-bottom: 8px;
    color: #f4ede3;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
}

.cm-catalog-message p {
    margin: 0;
    color: rgba(255, 255, 255, 0.45);
}

.cm-clear-search {
    margin-top: 18px;
    padding: 10px 18px;
    color: #080b0c;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: #d6ad64;
    font-weight: 700;
}

.cm-spinner {
    width: 29px;
    height: 29px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-top-color: #d6ad64;
    border-radius: 50%;
    animation: cmCatalogSpinner 0.75s linear infinite;
}

@keyframes cmCatalogSpinner {
    to {
        transform: rotate(360deg);
    }
}


/* ==========================================================
   RESPONSIVE CATÁLOGO
========================================================== */

@media (max-width: 1100px) {
    .cm-catalog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .cm-catalog-shortcut {
        display: none;
    }
}

@media (max-width: 760px) {
    .cm-catalog-hero {
        min-height: 330px;
        padding: 90px 22px 45px;
    }

    .cm-catalog-hero-decoration {
        display: none;
    }

    .cm-catalog-title {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .cm-catalog-toolbar {
        padding: 24px 18px;
    }

    .cm-catalog-search-wrapper {
        grid-template-columns: auto 1fr;
        padding: 0 18px;
        border-radius: 16px;
    }

    .cm-catalog-search-btn {
        grid-column: 1 / -1;
        width: calc(100% + 36px);
        min-height: 48px;
        margin-left: -18px;
        border-radius: 0 0 15px 15px;
    }

    .cm-catalog-results-heading {
        padding: 45px 20px 28px;
    }

    .cm-catalog-line {
        display: none;
    }

    .cm-catalog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 18px 40px;
    }

    .cm-catalog-card-image {
        aspect-ratio: 4 / 5;
    }

    .cm-catalog-pagination {
        flex-wrap: wrap;
        gap: 13px;
        padding: 20px 18px;
    }

    .cm-catalog-pagination #pageInfo {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .cm-catalog-pagination button {
        flex: 1;
        justify-content: center;
    }

    .cm-catalog-message,
    .cm-loading {
        margin-right: 18px;
        margin-left: 18px;
    }
}

@media (max-width: 430px) {
    .cm-catalog-card-body {
        grid-template-columns: auto 1fr;
    }

    .cm-catalog-card-arrow {
        display: none;
    }
}

/* ==========================================================
   SIDEBAR CINEMATOGRÁFICO
========================================================== */

.cm-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-right: 1px solid rgba(214, 173, 100, 0.15);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.025),
            transparent 30%
        ),
        #070a0b;
    box-shadow: 12px 0 45px rgba(0, 0, 0, 0.2);
    z-index: 40;
}

.cm-sidebar-brand {
    padding: 30px 22px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cm-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 13px;
    color: inherit;
    text-decoration: none;
}

.cm-sidebar-logo-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #0b0d0e;
    border-radius: 50%;
    background:
        linear-gradient(
            135deg,
            #e4bc72,
            #b98636
        );
    box-shadow: 0 10px 28px rgba(185, 134, 54, 0.22);
    font-size: 1.2rem;
}

.cm-sidebar-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.cm-sidebar-logo-text strong {
    color: #f7f1e7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 500;
}

.cm-sidebar-logo-text small {
    margin-top: 5px;
    color: #d6ad64;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.cm-sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 24px 13px;
    overflow-y: auto;
}

.cm-sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 18px;
}

.cm-sidebar-group:first-child {
    margin-top: 0;
}

.cm-sidebar-group-title {
    padding: 0 12px 9px;
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.cm-sidebar-link {
    position: relative;
    min-height: 50px;
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.63);
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.cm-sidebar-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 0 4px 4px 0;
    background: #d6ad64;
    transform: translateY(-50%);
    transition: height 0.25s ease;
}

.cm-sidebar-link:hover {
    color: #ffffff;
    border-color: rgba(214, 173, 100, 0.12);
    background: rgba(255, 255, 255, 0.035);
    transform: translateX(2px);
}

.cm-sidebar-link:hover::before {
    height: 22px;
}

.cm-sidebar-link.active {
    color: #f7f1e7;
    border-color: rgba(214, 173, 100, 0.22);
    background:
        linear-gradient(
            90deg,
            rgba(214, 173, 100, 0.16),
            rgba(214, 173, 100, 0.035)
        );
}

.cm-sidebar-link.active::before {
    height: 30px;
}

.cm-sidebar-link-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: rgba(214, 173, 100, 0.75);
    border: 1px solid rgba(214, 173, 100, 0.12);
    border-radius: 9px;
    background: rgba(214, 173, 100, 0.035);
    font-size: 0.82rem;
}

.cm-sidebar-link.active .cm-sidebar-link-icon {
    color: #080b0c;
    border-color: transparent;
    background: #d6ad64;
}

.cm-sidebar-link-text {
    min-width: 0;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
}

.cm-sidebar-link-arrow {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.58rem;
    transition: transform 0.25s ease;
}

.cm-sidebar-link:hover .cm-sidebar-link-arrow,
.cm-sidebar-link.active .cm-sidebar-link-arrow {
    color: #d6ad64;
    transform: translateX(2px);
}

.cm-sidebar-footer {
    padding: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.cm-sidebar-footer-line {
    display: block;
    width: 38px;
    height: 1px;
    margin-bottom: 12px;
    background: #d6ad64;
}

.cm-sidebar-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.29);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    line-height: 1.6;
    text-transform: uppercase;
}

/* Scroll interno del sidebar */

.cm-sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(214, 173, 100, 0.25)
        transparent;
}

.cm-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.cm-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.cm-sidebar-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(214, 173, 100, 0.25);
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {
    .cm-sidebar-brand {
        padding: 25px 15px 20px;
    }

    .cm-sidebar-logo {
        gap: 9px;
    }

    .cm-sidebar-logo-icon {
        width: 40px;
        height: 40px;
    }

    .cm-sidebar-logo-text strong {
        font-size: 1.05rem;
    }

    .cm-sidebar-link {
        grid-template-columns: 31px minmax(0, 1fr);
        padding: 8px 10px;
    }

    .cm-sidebar-link-arrow {
        display: none;
    }
}

/* ==========================================================
   MÓVIL — MENÚ HORIZONTAL
========================================================== */

@media (max-width: 760px) {
    .cm-sidebar {
        position: sticky;
        top: 0;
        width: 100%;
        min-height: auto;
        display: block;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid rgba(214, 173, 100, 0.15);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
    }

    .cm-sidebar-brand {
        display: flex;
        justify-content: center;
        padding: 12px 18px;
    }

    .cm-sidebar-logo-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .cm-sidebar-logo-text strong {
        font-size: 1rem;
    }

    .cm-sidebar-logo-text small {
        margin-top: 3px;
        font-size: 0.58rem;
    }

    .cm-sidebar-nav {
        display: flex;
        flex-direction: row;
        gap: 7px;
        padding: 9px 12px 11px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .cm-sidebar-group {
        display: contents;
    }

    .cm-sidebar-group-title {
        display: none;
    }

    .cm-sidebar-link {
        min-width: max-content;
        min-height: 42px;
        grid-template-columns: 28px auto;
        flex: 0 0 auto;
        padding: 6px 12px 6px 8px;
        border-radius: 999px;
        white-space: nowrap;
    }

    .cm-sidebar-link::before {
        display: none;
    }

    .cm-sidebar-link:hover {
        transform: none;
    }

    .cm-sidebar-link-icon {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        font-size: 0.7rem;
    }

    .cm-sidebar-link-text {
        font-size: 0.7rem;
    }

    .cm-sidebar-footer {
        display: none;
    }
}

/* ==========================================================
   MÓVIL PEQUEÑO
========================================================== */

@media (max-width: 480px) {
    .cm-sidebar-brand {
        justify-content: flex-start;
    }

    .cm-sidebar-nav {
        padding-left: 9px;
        padding-right: 9px;
    }

    .cm-sidebar-link {
        padding-right: 11px;
    }
}

/* ==========================================================
   RESPONSIVE GENERAL — CINEMA MÉXICO
========================================================== */

/* TABLET GRANDE */
@media (max-width: 1100px) {

    .cm-layout {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .cm-content {
        min-width: 0;
        padding: 22px 24px 35px;
    }

    .cm-content-home {
        max-width: none;
        padding: 45px 35px;
    }

    .cm-grid,
    .cm-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cm-home-hero {
        min-height: 620px;
        padding: 70px 55px;
    }

    .cm-home-title {
        font-size: clamp(4rem, 10vw, 7rem);
    }

    .cm-home-navigation {
        grid-template-columns: 1fr;
    }

    .cm-home-about-grid {
        grid-template-columns: 1fr;
    }

    .cm-movie-content {
        grid-template-columns: 1fr;
    }
}


/* TABLET */
@media (max-width: 800px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .cm-page {
        width: 100%;
        padding: 0;
    }

    .cm-title {
        padding: 0 20px;
        font-size: 28px;
    }

    .cm-layout {
        display: block;
        width: 100%;
        min-height: auto;
    }

    /* Sidebar horizontal */
    .cm-sidebar {
        width: 100%;
        display: flex;
        align-items: stretch;
        overflow-x: auto;
        padding: 0;
        border-right: 0;
        border-bottom: 1px solid #999;
        background: #ffffff;
        scrollbar-width: thin;
    }

    .cm-sidebar a {
        flex: 0 0 auto;
        min-width: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px 18px;
        white-space: nowrap;
        text-align: center;
        border-right: 1px solid #e5e5e5;
        border-bottom: 0;
    }

    .cm-sidebar a:hover {
        padding-left: 18px;
    }

    .cm-sidebar a.active::before {
        display: none;
    }

    .cm-content,
    .cm-content-home,
    .cm-home-content,
    .cm-catalog-content {
        width: 100%;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
    }

    /* Portada principal */
    .cm-home-hero {
        width: 100%;
        min-height: 600px;
        padding: 75px 30px 65px;
        background-position: 65% center;
    }

    .cm-home-hero-content {
        width: 100%;
        max-width: 620px;
    }

    .cm-home-title {
        font-size: clamp(3.8rem, 15vw, 6rem);
        line-height: 0.88;
    }

    .cm-home-title span {
        margin-left: 25px;
    }

    .cm-home-subtitle {
        max-width: 540px;
        font-size: 1rem;
    }

    .cm-home-hero-decoration,
    .cm-home-hero::after {
        display: none;
    }

    .cm-home-navigation {
        grid-template-columns: 1fr;
        padding: 35px 25px;
    }

    .cm-home-navigation-card {
        min-height: 150px;
    }

    .cm-home-about {
        padding: 70px 30px;
    }

    .cm-home-about-grid {
        grid-template-columns: 1fr;
    }

    .cm-home-closing {
        flex-direction: column;
        align-items: flex-start;
        padding: 70px 30px;
    }

    /* Catálogo */
    .cm-catalog-hero {
        min-height: 330px;
        padding: 70px 30px 45px;
        background-position: center;
    }

    .cm-catalog-hero-decoration {
        display: none;
    }

    .cm-catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 25px 30px;
    }

    .cm-catalog-search-wrapper {
        width: 100%;
    }

    .cm-catalog-shortcut {
        display: none;
    }

    .cm-catalog-results-heading {
        padding: 45px 30px 30px;
    }

    .cm-catalog-grid,
    .cm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-left: 30px;
        padding-right: 30px;
    }

    /* Ficha */
    .cm-movie-nav,
    .cm-movie-intro,
    .cm-movie-gallery,
    .cm-movie-content,
    .cm-movie-footer {
        width: calc(100% - 40px);
    }

    .cm-movie-hero {
        min-height: 650px;
    }

    .cm-movie-intro {
        padding: 60px 0 110px;
    }

    .cm-movie-intro h1 {
        font-size: clamp(3.2rem, 11vw, 5.5rem);
    }

    .cm-movie-gallery-stage {
        height: 400px;
    }

    .cm-movie-content {
        grid-template-columns: 1fr;
    }

    .cm-movie-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* CELULAR */
@media (max-width: 600px) {

    .cm-title {
        margin: 16px 0;
        padding: 0 16px;
        font-size: 23px;
    }

    /* Sidebar deslizable */
    .cm-sidebar {
        justify-content: flex-start;
    }

    .cm-sidebar a {
        min-width: 135px;
        padding: 13px 15px;
        font-size: 12px;
    }

    /* Portada */
    .cm-home-hero {
        min-height: 100svh;
        padding: 75px 20px 55px;
        align-items: flex-end;
        background-position: 68% center;
    }

    .cm-home-hero::before {
        background:
            linear-gradient(
                90deg,
                rgba(5, 8, 9, 0.96) 0%,
                rgba(5, 8, 9, 0.80) 50%,
                rgba(5, 8, 9, 0.45) 100%
            ),
            linear-gradient(
                0deg,
                rgba(5, 8, 9, 0.95) 0%,
                transparent 60%
            );
    }

    .cm-home-eyebrow {
        gap: 10px;
        font-size: 0.65rem;
        letter-spacing: 0.14em;
    }

    .cm-home-eyebrow-line {
        width: 28px;
    }

    .cm-home-title {
        font-size: clamp(3.2rem, 18vw, 4.7rem);
        line-height: 0.9;
    }

    .cm-home-title span {
        margin-left: 12px;
    }

    .cm-home-subtitle {
        margin-top: 25px;
        font-size: 0.93rem;
        line-height: 1.7;
    }

    .cm-home-meta {
        gap: 8px;
        font-size: 0.65rem;
    }

    .cm-home-actions {
        width: 100%;
        flex-direction: column;
        margin-top: 30px;
    }

    .cm-btn {
        width: 100%;
        min-height: 48px;
    }

    .cm-home-navigation {
        padding: 25px 16px 45px;
    }

    .cm-home-navigation-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 22px;
    }

    .cm-home-navigation-icon {
        width: 50px;
        height: 50px;
    }

    .cm-home-navigation-arrow {
        display: none;
    }

    .cm-home-about {
        padding: 60px 20px;
    }

    .cm-home-section-heading {
        gap: 12px;
        margin-bottom: 35px;
    }

    .cm-home-section-heading h2 {
        font-size: clamp(2.2rem, 12vw, 3.2rem);
    }

    .cm-home-about-card {
        padding: 22px;
    }

    .cm-home-closing {
        padding: 60px 20px;
    }

    /* Catálogo */
    .cm-catalog-hero {
        min-height: 360px;
        padding: 65px 20px 40px;
        align-items: flex-end;
        background-position: 65% center;
    }

    .cm-catalog-title {
        font-size: clamp(3rem, 15vw, 4.7rem);
    }

    .cm-catalog-description {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .cm-catalog-toolbar {
        padding: 20px;
    }

    .cm-catalog-search-wrapper {
        min-height: 52px;
        grid-template-columns: auto minmax(0, 1fr);
        padding: 0 16px;
        border-radius: 14px;
    }

    .cm-catalog-search {
        min-width: 0;
    }

    .cm-catalog-search-btn {
        grid-column: 1 / -1;
        width: calc(100% + 32px);
        min-height: 48px;
        margin-left: -16px;
        border-radius: 0 0 14px 14px;
    }

    .cm-catalog-results-heading {
        padding: 38px 20px 25px;
    }

    .cm-catalog-line {
        display: none;
    }

    .cm-catalog-grid,
    .cm-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .cm-card-img {
        aspect-ratio: 16 / 10;
    }

    /* Ficha de película */
    .cm-movie-nav,
    .cm-movie-intro,
    .cm-movie-gallery,
    .cm-movie-content,
    .cm-movie-footer {
        width: calc(100% - 28px);
    }

    .cm-movie-nav {
        padding: 17px 0;
    }

    .cm-movie-brand {
        font-size: 11px;
    }

    .cm-movie-brand i {
        width: 38px;
        height: 38px;
    }

    .cm-movie-back {
        width: 40px;
        height: 40px;
        padding: 0;
        display: grid;
        place-items: center;
        font-size: 0;
    }

    .cm-movie-back i {
        font-size: 13px;
    }

    .cm-movie-hero {
        min-height: 620px;
        background-position: center;
    }

    .cm-movie-intro {
        padding: 55px 0 95px;
    }

    .cm-movie-intro h1 {
        font-size: clamp(2.8rem, 15vw, 4.4rem);
        line-height: 0.95;
    }

    .cm-movie-summary-meta {
        gap: 12px;
    }

    .cm-movie-gallery {
        margin-top: -45px;
        padding: 12px;
        border-radius: 14px;
    }

    .cm-movie-gallery-stage {
        height: 250px;
    }

    .cm-movie-gallery-arrow {
        width: 38px;
        height: 38px;
    }

    .cm-movie-gallery-arrow.prev {
        left: 10px;
    }

    .cm-movie-gallery-arrow.next {
        right: 10px;
    }

    .cm-movie-thumbnails {
        grid-auto-columns: 105px;
    }

    .cm-movie-thumb {
        height: 65px;
    }

    .cm-movie-content {
        padding: 25px 0 45px;
    }

    .cm-movie-card {
        padding: 20px;
    }

    .cm-movie-fields {
        grid-template-columns: 1fr;
    }

    .cm-movie-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}


/* CELULARES PEQUEÑOS */
@media (max-width: 380px) {

    .cm-home-title {
        font-size: 3rem;
    }

    .cm-home-title span {
        margin-left: 5px;
    }

    .cm-catalog-title {
        font-size: 2.8rem;
    }

    .cm-home-navigation-card,
    .cm-home-about-card,
    .cm-movie-card {
        padding: 18px;
    }

    .cm-movie-gallery-stage {
        height: 210px;
    }
}


/* ==========================================================
   BUSCADOR AVANZADO
========================================================== */

.cm-search-panel {
    padding: 28px 40px;
    background: #000000;
    border-bottom: 1px solid #dedede;
}

.cm-search-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cm-search-main .cm-catalog-search-wrapper {
    flex: 1;
}

.cm-filter-toggle {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 22px;
    border: 1px solid #1b1b1b;
    border-radius: 12px;
    background: #ffffff;
    color: #171717;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.cm-filter-toggle:hover {
    background: #171717;
    color: #ffffff;
    transform: translateY(-1px);
}

.cm-filter-toggle span:not(:empty) {
    min-width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: #b38a42;
    color: #ffffff;
    font-size: 11px;
}

.cm-advanced-filters {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid #dddddd;
    border-radius: 18px;
    background: #000000;
}

.cm-advanced-filters[hidden] {
    display: none;
}

.cm-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.cm-filter-field {
    min-width: 0;
}

.cm-filter-field label {
    display: block;
    margin-bottom: 8px;
    color: #272727;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cm-filter-field select,
.cm-filter-field input {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #c9c9c9;
    border-radius: 10px;
    background: #ffffff;
    color: #202020;
    font: inherit;
    outline: none;
}

.cm-filter-field select:focus,
.cm-filter-field input:focus {
    border-color: #b38a42;
    box-shadow: 0 0 0 3px rgba(179, 138, 66, 0.13);
}

.cm-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

.cm-filter-clear,
.cm-filter-apply {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.cm-filter-clear {
    border: 1px solid #bcbcbc;
    background: transparent;
    color: #363636;
}

.cm-filter-apply {
    border: 1px solid #171717;
    background: #171717;
    color: #ffffff;
}

.cm-active-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.cm-active-filter-chips:empty {
    display: none;
}

.cm-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid #d8c39c;
    border-radius: 999px;
    background: #000000;
    color: #644c21;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.cm-filter-chip:hover {
    background: #000000;
}


/* TABLET */
@media (max-width: 1000px) {

    .cm-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* CELULAR */
@media (max-width: 600px) {

    .cm-search-panel {
        padding: 20px;
    }

    .cm-search-main {
        flex-direction: column;
        align-items: stretch;
    }

    .cm-filter-toggle {
        width: 100%;
    }

    .cm-advanced-filters {
        padding: 18px;
        border-radius: 14px;
    }

    .cm-filter-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cm-filter-actions {
        flex-direction: column-reverse;
    }

    .cm-filter-clear,
    .cm-filter-apply {
        width: 100%;
    }
}

/* ==========================================================
   TARJETAS HORIZONTALES — CATÁLOGO DE PELÍCULAS
========================================================== */

.cm-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.cm-catalog-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    min-height: 190px;
    overflow: hidden;
}

/* Imagen horizontal del lado izquierdo */
.cm-catalog-card-image {
    width: 210px;
    height: 190px;
    min-height: 190px;
    aspect-ratio: auto;
    border-radius: 0;
}

.cm-catalog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Contenido del lado derecho */
.cm-catalog-card-body {
    min-width: 0;
    min-height: 190px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 20px;
}

.cm-catalog-card-copy h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    line-height: 1.2;
}

.cm-catalog-card-index {
    align-self: start;
    padding-top: 4px;
}

.cm-catalog-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

/* Año */
.cm-catalog-card-year {
    top: 12px;
    right: 12px;
}

/* Ver ficha */
.cm-catalog-card-view {
    left: 14px;
    top: auto;
    bottom: 14px;
    flex-direction: row;
    transform: translateY(10px);
}

.cm-catalog-card:hover .cm-catalog-card-view {
    transform: translateY(0);
}

.cm-catalog-card-view span {
    width: 34px;
    height: 34px;
    font-size: 0.75rem;
}