
:root {
    --repelis-home-max: 1440px;
}

body.home .repelis-header .repelis-container,
body.home .repelis-footer .repelis-container,
body.home .repelis-home-content,
body.home .rfs-content-container {
    width: 100% !important;
    max-width: min(var(--repelis-home-max), calc(100% - 64px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

body.home #contenedor,
body.home .module {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 900px) {
    body.home .repelis-header .repelis-container,
    body.home .repelis-footer .repelis-container,
    body.home .repelis-home-content,
    body.home .rfs-content-container {
        max-width: calc(100% - 32px) !important;
    }
}


/* Enforce Global Alignment on Desktop for Header and Footer components if possible */




/* Content Container Alignment */

    
    .repelis-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        order: 99 !important;
    }
    
    .repelis-main-content {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    /* 2. No Horizontal scroll on body */
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* 3. Carousels as Horizontal Scroll */
    .repelis-tendencias-grid,
    .repelis-rail-grid,
    .repelis-content-rail {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        gap: 12px !important;
        padding-bottom: 16px !important;
        width: 100% !important;
    }
    
    .repelis-tendencias-grid::-webkit-scrollbar,
    .repelis-rail-grid::-webkit-scrollbar,
    .repelis-content-rail::-webkit-scrollbar {
        display: none !important;
    }

    /* 4. Enforce Card Proportions and sizes */
    .repelis-tendencia-card,
    .repelis-poster-card {
        flex: 0 0 calc(45vw - 16px) !important; /* ~2.2 cards across 390px viewport */
        max-width: 200px !important;
        scroll-snap-align: start !important;
        min-width: 0 !important;
        text-decoration: none !important;
    }

    /* The wrapper must strictly be 2:3 */
    .repelis-tendencia-card > div:first-child,
    .repelis-poster-card__image-wrapper {
        width: 100% !important;
        aspect-ratio: 2 / 3 !important;
        height: auto !important; 
    }

    /* 5. Genres/Years grids */
    .repelis-explore-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .repelis-explore-grid--years {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* === QUICK ROUTES === */
.repelis-quick-routes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}
.repelis-quick-route {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--cloud-200, #e4e4e7);
    transition: all 0.2s ease;
}
.repelis-quick-route:hover {
    background-color: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
    transform: translateY(-2px);
}
.repelis-quick-route__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.repelis-quick-route__title {
    font-size: 15px;
    font-weight: 600;
    flex: 1;
}
.repelis-quick-route__arrow {
    color: var(--cloud-400, #a1a1aa);
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.repelis-quick-route:hover .repelis-quick-route__arrow {
    opacity: 1;
    transform: translateX(2px);
}

@media (min-width: 901px) {
    .repelis-quick-routes {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .repelis-quick-routes {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 32px;
    }
    .repelis-quick-route {
        padding: 12px;
        gap: 8px;
    }
    .repelis-quick-route__title {
        font-size: 13px;
    }
}






/* === HOME COMPOSITION & NAVY BACKGROUND === */
body.home, .repelis-home-wrapper, body {
    background-color: #070708 !important;
}
body.home .repelis-header { background-color: #070708 !important; border-bottom: none !important; position: relative; z-index: 100; }
.repelis-home-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 64px;
}
.repelis-home-content { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 10; }
@media (max-width: 900px) {
    .repelis-home-content { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 10; }
}
body.home .repelis-footer {
    background-color: #070708 !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
    margin-top: 0 !important;
}

/* === 2. HERO SLIDER === */
.repelis-feature-slider { position: relative; width: 100%; height: 560px; margin-bottom: 40px; }
.rfs-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.rfs-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
    z-index: 1;
}
.rfs-slide.rfs-slide--active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.rfs-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    z-index: 1;
}
.rfs-bg-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; z-index: 0; }
.rfs-bg::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, #070708 0%, rgba(7,7,8,0.9) 30%, rgba(7,7,8,0.4) 55%, transparent 100%); }
.rfs-bg::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, #070708 0%, rgba(7,7,8,0.5) 15%, transparent 35%); }

.rfs-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.rfs-content-container { position: absolute; inset: 0; max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; z-index: 3; }
.rfs-content { max-width: 55%; padding-top: 0; }
.rfs-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--cloud-300, #a1a1aa);
    margin-bottom: 12px;
}
.rfs-title { font-family: Georgia, "Times New Roman", serif; font-weight: 700; color: #fff; font-size: 68px; line-height: 1.05; margin: 0 0 16px 0; letter-spacing: -0.5px; }
.rfs-meta { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: #fff; margin-bottom: 20px; }
.rfs-sep { opacity: 0.5; color: var(--cloud-400, #a1a1aa); font-weight: 300; }
.rfs-synopsis { font-size: 16px; line-height: 1.5; color: var(--cloud-200, #e4e4e7); margin: 0 0 24px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.rfs-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.rfs-lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.rfs-actions {
    display: flex;
    gap: 16px;
}
.rfs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 32px; height: 48px; border-radius: 8px; font-size: 15px; font-weight: 700; text-decoration: none; transition: all 0.2s ease; }
.rfs-btn--primary {
    background: #E50914;
    color: #fff !important;
}
.rfs-btn--primary:hover {
    background: #f40612;
    transform: translateY(-2px);
}

.rfs-controls-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0;
    z-index: 10;
    max-width: 1240px;
    margin: 0 auto;
    left: 50%;
    transform: translate(-50%, -50%);
}
.rfs-arrow { position: absolute; top: -22px; background: rgba(8,16,26,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.1); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, border-color 0.2s; z-index: 20; opacity: 1; }
.repelis-feature-slider:hover .rfs-arrow { position: absolute; top: -22px; background: rgba(8,16,26,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.1); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, border-color 0.2s; z-index: 20; opacity: 1; }
.rfs-arrow:hover { background: rgba(229,9,20,0.9); border-color: transparent; }
.rfs-prev { left: 0px; }
.rfs-next { right: 0px; }

.rfs-pagination { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; gap: 8px; z-index: 10; width: calc(100% - 32px); max-width: 480px; }
.rfs-dot { flex: 1; max-width: 36px; height: 24px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; padding: 0; cursor: pointer; }
.rfs-dot::after { content: ""; display: block; width: 100%; height: 4px; background: rgba(255,255,255,0.45); border-radius: 2px; transition: background 0.2s, transform 0.2s; }
.rfs-dot.active::after { background: #fff; transform: scaleY(1.5); }

@media (max-width: 900px) {
    .repelis-feature-slider { position: relative; width: 100%; height: 560px; margin-bottom: 40px; }
    .rfs-bg {
        background-position: center 10%;
    }
    .rfs-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, #070708 0%, rgba(7,7,8,0.9) 30%, rgba(7,7,8,0.4) 55%, transparent 100%); }
    .rfs-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, #070708 0%, rgba(7,7,8,0.5) 15%, transparent 35%); }
    .rfs-content-container { position: absolute; inset: 0; max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; z-index: 3; }
    .rfs-content { max-width: 55%; padding-top: 0; }
    .rfs-title { font-family: Georgia, "Times New Roman", serif; font-weight: 700; color: #fff; font-size: 68px; line-height: 1.05; margin: 0 0 16px 0; letter-spacing: -0.5px; }
    .rfs-meta { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: #fff; margin-bottom: 20px; }
    .rfs-synopsis { font-size: 16px; line-height: 1.5; color: var(--cloud-200, #e4e4e7); margin: 0 0 24px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
    .rfs-langs { margin-bottom: 16px; }
    .rfs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 32px; height: 48px; border-radius: 8px; font-size: 15px; font-weight: 700; text-decoration: none; transition: all 0.2s ease; }
    
    .rfs-controls-container { max-width: 100%; left: 0; transform: translateY(-50%); }
    .rfs-arrow { position: absolute; top: -22px; background: rgba(8,16,26,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.1); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, border-color 0.2s; z-index: 20; opacity: 1; }
    .rfs-prev { left: 8px; }
    .rfs-next { right: 8px; }
    .rfs-pagination { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; gap: 8px; z-index: 10; width: calc(100% - 32px); max-width: 480px; }
}

/* === 3. QUICK ROUTES === */

.rh-quick-routes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.rh-qr-card {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0 16px;
    height: 88px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--cloud-200, #e4e4e7);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0);
}

.rh-qr-card:focus-visible {
    outline: 2px solid #E50914;
    outline-offset: 2px;
}

.rh-qr-card:hover {
    background-color: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.rh-qr-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rh-qr-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.rh-qr-desc {
    font-size: 12px;
    color: var(--cloud-400, #a1a1aa);
    margin-top: 4px;
    line-height: 1.2;
}

.rh-qr-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    color: #fff;
}
.rh-qr-icon svg {
    width: 20px !important;
    height: 20px !important;
}

@media (max-width: 900px) {
    .rh-quick-routes {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .rh-qr-card {
        height: 64px;
        padding: 0 12px;
        gap: 10px;
    }
    .rh-qr-desc {
        display: none;
    }
    
    /* Ensure padding adjusts properly on mobile */
    
}
/* === 4. ELIGE EN SEGUNDOS (REPELIS DECIDER) === */
.repelis-decider {
    margin-bottom: 56px;
}
.repelis-decider__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    flex-wrap: wrap;
}

.repelis-decider__title {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
    border-left: 3px solid #e50914;
    padding-left: 12px;
    flex-shrink: 0;
}

.repelis-decider__tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    width: auto;
    flex: 1;
    margin-left: 40px;
}

.repelis-decider__tab {
    background: transparent;
    border: none;
    padding: 8px 16px;
    color: #a1a1aa;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.repelis-decider__tab + .repelis-decider__tab::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.repelis-decider__tab + .repelis-decider__cta::before {
    display: none;
}

.repelis-decider__tab:hover,
.repelis-decider__tab:focus {
    color: #fff;
}

.repelis-decider__tab::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #e50914;
    transition: width 0.3s ease;
    border-radius: 2px 2px 0 0;
}

.repelis-decider__tab[aria-selected="true"]::after,
.repelis-decider__tab.active::after {
    width: 60%;
}

.repelis-decider__tab[aria-selected="true"],
.repelis-decider__tab.active {
    color: #fff;
}

.repelis-decider__cta {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.repelis-decider__cta:hover,
.repelis-decider__cta:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.repelis-decider__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.repelis-decider-card {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    background-color: #111;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    color: inherit;
}

.repelis-decider-card:hover,
.repelis-decider-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.repelis-decider-card__img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.repelis-decider-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.repelis-decider-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 20%, transparent 60%);
    pointer-events: none;
}

.repelis-decider-card__rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.repelis-decider-card__rating::first-letter {
    color: #e50914; /* Red star */
}

.repelis-decider-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.repelis-decider-card__title {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.repelis-decider-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rd-meta-text {
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.repelis-decider-card__badges {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 2px;
}

.rd-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 3px 5px;
    border-radius: 4px;
    letter-spacing: 0.2px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.rd-badge-cc {
    font-weight: 900;
    font-size: 9px;
    letter-spacing: -0.5px;
}

@media (max-width: 900px) {
    .repelis-decider__header {
        padding-bottom: 16px;
        gap: 16px;
    }
    .repelis-decider__title {
        flex: 0 1 auto;
    }
    .repelis-decider__cta {
        margin-left: auto;
    }
    
    .repelis-decider__title {
        font-size: 20px;
    }
    
    .repelis-decider__cta {
        font-size: 11px;
        padding: 0 10px;
    }

    .repelis-decider__tabs {
        width: 100%;
        flex: none; /* FIX: overrides flex:1 from desktop */
        order: 3;
        margin-left: 0;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .repelis-decider__tabs::-webkit-scrollbar {
        display: none;
    }
    
    .repelis-decider__tab {
        white-space: nowrap;
        flex: 0 0 auto;
    }
    
    .repelis-decider__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    
    .repelis-decider-card__title {
        font-size: 13px;
    }
    
    .repelis-decider-card__info {
        padding: 10px 8px;
    }
}
.rh-qr-card--trending .rh-qr-icon { border-color: rgba(255,91,106,.35); background: rgba(255,66,84,.09); color: #ff6978; }

/* Brief editorial context after the catalog, with useful internal paths rather than keyword repetition. */
.repelis-home-seo { position: relative; display: grid; grid-template-columns: minmax(220px,.7fr) minmax(0,1.55fr); column-gap: 42px; margin: 32px 0 0; padding: 27px 30px 25px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: linear-gradient(135deg,rgba(255,255,255,.045),rgba(255,255,255,.018)); box-shadow: inset 0 1px 0 rgba(255,255,255,.035),0 10px 24px rgba(0,0,0,.13); color: #aeb5bb; }
.repelis-home-seo::after { position: absolute; top: 0; right: 0; width: 34%; height: 1px; background: linear-gradient(90deg,transparent,rgba(244,81,99,.42),transparent); content: ''; }
.repelis-home-seo__intro { grid-column: 1; align-self: center; }
.repelis-home-seo__line { width: 42px; height: 2px; margin-bottom: 8px; border-radius: 2px; background: linear-gradient(90deg,#f45163,#9e2637); box-shadow: 0 0 9px rgba(238,65,83,.24); }
.repelis-home-seo h2 { max-width: 320px; margin: 0; color: #f4f5f6; font: 800 23px/1.18 var(--font-heading); letter-spacing: -.025em; }
.repelis-home-seo__copy { grid-column: 2; align-self: center; max-width: 760px; font-size: 14px; line-height: 1.7; }
.repelis-home-seo__copy p { margin: 0 0 10px; }
.repelis-home-seo__copy a { color: #e9eef1; font-weight: 700; text-decoration-color: rgba(241,81,100,.75); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.repelis-home-seo__copy a:hover { color: #fff; }
@media (max-width: 640px) { .repelis-home-seo { display:block; margin-top: 26px; padding: 22px 19px 18px; }.repelis-home-seo__line { margin-bottom: 8px; }.repelis-home-seo h2 { margin-bottom: 14px; font-size: 20px; }.repelis-home-seo__copy { font-size: 13px; line-height: 1.65; } }

/* Desktop home uses the same 1440px shell and inner gutter as every catalog page. */
@media (min-width: 901px) {
    body.home .repelis-header .repelis-container,
    body.home .repelis-footer .repelis-container,
    body.home .repelis-home-content,
    body.home .rfs-content-container {
        max-width: 1440px !important;
        padding-left: var(--space-48) !important;
        padding-right: var(--space-48) !important;
    }
}
@media (min-width: 901px) {
    .repelis-decider-card:nth-child(6) {
        display: none !important;
    }
}
/* === 5. TENDENCIAS (1-6) === */
.rh-trends {
    margin-bottom: 56px;
}
.rh-trends-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}
.rh-trends-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.rh-trends-all { color: var(--cloud-200, #e4e4e7); font-size: 14px; font-weight: 500; text-decoration: none; display: flex; align-items: center; gap: 8px; height: 44px; transition: color 0.2s; }
.rh-trends-grid {
    display: grid;
    gap: 16px;
}
@media (min-width: 901px) {
    .rh-trends-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 900px) {
    .rh-trends-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.rh-trend-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
}
.rh-trend-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.rh-trend-card:hover .rh-trend-bg {
    transform: scale(1.05);
}
.rh-trend-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,16,26,0.9) 0%, rgba(8,16,26,0.2) 60%, transparent 100%);
}
.rh-trend-content {
    position: relative;
    padding: 16px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
}
.rh-trend-num {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 64px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    line-height: 0.8;
}
.rh-trend-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    margin-bottom: 4px;
}

/* Rails Ver todo standardize */
.repelis-rail header a {
    color: var(--cloud-200, #e4e4e7) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 44px !important;
    transition: color 0.2s !important;
}
.repelis-rail header a:hover {
    color: #fff !important;
}

/* Mobile Touch Target Adjustments */
@media (max-width: 900px) {
    .rh-qr-card { height: 56px; padding: 0 16px; }
    .rfs-arrow { width: 44px; height: 44px; top: -64px; }
}

.rfs-rating { display: inline-flex; align-items: center; font-weight: 700; color: #fff; }

/* Title Truncation & Accessibility */
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Mobile Overrides for Hero */
@media (max-width: 900px) {
    .repelis-feature-slider {
        height: 320px;
        margin-bottom: 24px;
    }
    .rfs-bg::before {
        background: linear-gradient(to top, #070708 0%, rgba(7,7,8,0.95) 45%, rgba(7,7,8,0.4) 75%, transparent 100%);
    }
    .rfs-bg::after {
        display: none;
    }
    .rfs-title {
        font-size: 28px;
        margin-bottom: 8px;
    }
    .rfs-meta {
        font-size: 13px;
        margin-bottom: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .rfs-synopsis {
        font-size: 14px;
        -webkit-line-clamp: 2;
        margin-bottom: 16px;
    }
    .rfs-btn {
        height: 40px;
        font-size: 14px;
        padding: 0 24px;
    }
    .rfs-pagination { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; gap: 8px; z-index: 10; width: calc(100% - 32px); max-width: 480px; }
}

/* En teléfonos, el CTA conserva siempre una zona libre sobre la paginación. */
@media (max-width: 640px) {
    .repelis-feature-slider { height: 334px; }
    .rfs-content-container { align-items: flex-end; padding-top: 44px; padding-bottom: 70px; }
    .rfs-content { width: 100%; max-width: 100%; }
    .rfs-title { max-height: 2.16em; overflow: hidden; font-size: 27px; line-height: 1.08; }
    .rfs-meta { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; margin-bottom: 12px; }
    .rfs-synopsis { display: none; }
    .rfs-langs { display: none; }
    .rfs-actions { margin: 0; }
    .rfs-pagination { bottom: 18px; }
}


/* Desktop Rail Grid */
@media (min-width: 901px) {
    .repelis-rail-grid {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 16px !important;
        overflow: visible !important;
    }
}

/* -----------------------------------------
   COLECCIONES DE HOME (SHARED SYSTEM)
----------------------------------------- */
.repelis-collections {
    display: flex;
    flex-direction: column;
}

.repelis-collection-section {
    margin-bottom: 48px;
    width: 100%;
}

.repelis-collection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    gap: 16px;
    border-left: 3px solid #e50914;
    padding-left: 12px;
}

.repelis-collection-title {
    font-family: sans-serif;
    font-size: 24px;
    font-weight: 750;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.repelis-collection-cta {
    font-family: sans-serif;
    font-size: 14px;
    color: var(--cloud-400, #a1a1aa);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.repelis-collection-cta:hover {
    color: #ffffff;
}

.repelis-collection-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.repelis-collection-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.repelis-collection-poster-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1c23;
    margin-bottom: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.repelis-collection-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.repelis-collection-card:hover .repelis-collection-poster-wrap {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.repelis-collection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 45%, transparent 100%);
    opacity: 1; /* Always visible to make text readable */
    pointer-events: none;
}



.repelis-card-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-family: sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.repelis-collection-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.repelis-collection-card-title {
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.repelis-collection-meta {
    font-family: sans-serif;
    font-size: 12px;
    color: var(--cloud-400, #a1a1aa);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repelis-collection-meta-dot {
    opacity: 0.5;
}

.repelis-card-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.repelis-card-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: sans-serif;
    text-transform: uppercase;
}

/* MOBILE RESPONSIVE (TOUCH SLIDER) */
@media (max-width: 900px) {
    .repelis-collection-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin: 0;
        padding: 0;
    }
    
    .repelis-collection-card {
        flex: none;
        scroll-snap-align: none;
    }
    
    .repelis-collection-card-title {
        font-size: 13px;
    }
    
    .repelis-collection-info {
        padding: 10px 8px;
    }
    
    .repelis-card-languages {
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .repelis-card-badge {
        white-space: nowrap;
        font-size: 9px;
        padding: 2px 4px;
    }
}


/* -----------------------------------------
   SHARED HEADERS (TENDENCIAS & COLECCIONES)
----------------------------------------- */
.repelis-section-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    flex-wrap: wrap;
}

.repelis-section-title {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
    border-left: 3px solid #e50914;
    padding-left: 12px;
    flex-shrink: 0;
}

.repelis-section-cta {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.repelis-section-cta:hover,
.repelis-section-cta:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
    .repelis-section-header {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        padding-bottom: 16px;
    }
    .repelis-section-title {
        font-size: 20px;
        flex: 0 1 auto;
    }
    .repelis-section-cta {
        margin-left: auto;
        font-size: 11px;
        padding: 0 10px;
    }
}
