body {
    background: var(--fondo-sitio);
    color: var(--texto-general);
}

.home-seccion {
    max-width:1400px;
    margin:60px auto;
	width: 100%;
}

.home-seccion-header {
    display:flex;
    justify-content:space-between;
    align-items:end;
    margin-bottom:20px;
}

.home-seccion-header h2 {
    font-size:2rem;
    border-left:5px solid var(--boton-principal-fondo);
    padding-left:12px;
    margin:0;
}

.home-seccion-header p {
    opacity:.7;
	margin: 0;
    margin-top:6px;
    max-width:600px;
}
.anio-card {
    position: absolute;
    bottom: 30px;
    right: 0;
    z-index: 2;
    background: var(--etiqueta-anio-fondo);
    color: var(--etiqueta-anio-texto);
    font-size: 10px;
    padding: 3px 7px;
}
.grid-tarjetas {
    display: grid;
    gap: 10px;
}
.card-audiovisual {
    display: block;
    position: relative;
    aspect-ratio: 2 / 3; /* 🔥 clave */
    width: 100%;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
}
.lazy-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.lazy-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
	border-radius: 8px;
    transition: opacity .4s ease;
}
.lazy-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fondo-sitio);
    z-index: 2;
}

.lazy-spinner::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,.2);
    border-top-color: var(--boton-principal-fondo);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
	.card-audiovisual.orient-vertical {
    aspect-ratio: 2 / 3;
}

.card-audiovisual.orient-horizontal {
    aspect-ratio: 16 / 9;
}
	
/* =========================
   PLAY HOVER ICON
========================= */

.card-play-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    opacity: 0;
    transform: scale(.7);
    transition: all .35s cubic-bezier(.2,.8,.2,1);
    z-index: 4;
}

.card-play-hover i {
    font-size: 30px;
    color: #fff;
    border: solid 1px #fff;
    width: 60px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    padding-left: 4px;
    align-items: center;
    justify-content: center;
}

/* ACTIVACIÓN SOLO SI EL CHECK ESTÁ ACTIVO */
.play-hover-on .card-audiovisual:hover .card-play-hover {
    opacity: 1;
    transform: scale(1);
}



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


.home-bloque-html {
    max-width:1200px;
    margin:60px auto;
    padding:0 20px;
}
	.card-info-title {
    position: absolute;
    bottom: -1px;
    width: 100%;
    color: var(--texto-general);
    background: #393939;
    background: #000000;
    background: -webkit-linear-gradient(0deg, var(--fondo-sitio) 0%, var(--fondo-sitio) 20%, var(--fondo-sitio) 40%, rgba(255, 255, 255, 0) 100%);
    background: -moz-linear-gradient(0deg, var(--fondo-sitio) 0%, var(--fondo-sitio) 20%, var(--fondo-sitio) 40%, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(0deg, var(--fondo-sitio) 0%, var(--fondo-sitio) 20%, var(--fondo-sitio) 40%, rgba(255, 255, 255, 0) 100%);
}
.card-info-title h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    color: var(--texto-general);
    font-weight: 100;
    text-align: center;
    padding: 10px 5px;
    margin: 0;
}
	
.vote-circle {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 27px;
    height: 26px;
    border-radius: 50%;
    background: #1111115e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    padding-top: 1px;
    z-index: 5;
    border: 2px solid;
}
.vote-circle span li {
    font-size: 8px;
    padding-top: 1px;
}
.vote-circle span {
    color: var(--fondo-sitio);
    display: flex;
}


/* 🔴 BAJO */
.vote-circle.orange {
    border-color: #eab308;
}

/* 🟡 MEDIO */
.vote-circle.yellow {
    border-color: #a8fb06;
}

/* 🟢 ALTO */
.vote-circle.green {
    border-color: #22c55e;
}

/* =========================
   GRID SEGÚN ORIENTACIÓN
========================= */
	
	
.home-swiper {
    
}

.home-swiper .card-audiovisual {
    width: 100%;
}


/* =========================
   SWIPER NAV SMALL (Netflix style)
========================= */

.home-swiper .swiper-button-prev, .home-swiper .swiper-button-next {
    width: 33px;
    height: 100%;
    color: #fff;
    top: 61%;
    padding: 12px 0;
    border-radius: 0;
    transform: translateY(-50%);
    transition: opacity .25s ease, transform .25s ease;
}
.home-swiper .swiper-button-prev::after,
.home-swiper .swiper-button-next::after {
    font-size: 14px; /* ⬅️ tamaño de la flecha */
    font-weight: bold;
}

.home-swiper .swiper-button-prev:hover {
    left: -4px;
    padding-right: 20px;
    padding-left: 5px;
    background: -webkit-linear-gradient(90deg, rgb(11 11 11) 12%, rgba(0, 0, 0, 0.79) 64%, rgba(255, 255, 255, 0) 100%);
    background: -moz-linear-gradient(90deg, rgba(0, 0, 0, 1) 12%, rgba(0, 0, 0, 0.79) 64%, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(90deg, rgb(11 11 11) 0%, rgb(11 11 11 / 58%) 64%, rgba(255, 255, 255, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#FFFFFF", GradientType=1);
}

.home-swiper .swiper-button-next:hover {
    right: -4px;
    padding-right: 5px;
    padding-left: 23px;
    background: -webkit-linear-gradient(270deg, rgb(11 11 11) 0%, rgba(0, 0, 0, 0.79) 64%, rgba(255, 255, 255, 0) 100%);
    background: -moz-linear-gradient(270deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.79) 64%, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(270deg, rgb(11 11 11) 0%, rgba(0, 0, 0, 0.79) 64%, rgba(255, 255, 255, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#FFFFFF", GradientType=0);
}

.home-bloque {
    margin-bottom: 50px;
	    width: 100%;
}
	
.swiper-button-next, .swiper-rtl .swiper-button-prev {
    right: var(--swiper-navigation-sides-offset, 0px);
}
.swiper-button-prev, .swiper-rtl .swiper-button-next {
    left: var(--swiper-navigation-sides-offset, 0px);
}
.home-bloque:hover .home-swiper .swiper-button-prev,
.home-bloque:hover .home-swiper .swiper-button-next {
    opacity: 1;
    pointer-events: auto;
}
.horizontal .swiper-button-prev, .horizontal .swiper-button-next {
    top: 69%;
    padding: 13px 0;
}
.swiper.home-swiper.swiper-initialized {
    border-radius: 7px;
}
	
/* =========================
   BOTÓN VER MÁS
========================= */

.home-seccion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.home-seccion-title {
    max-width: 75%;
}

.btn-ver-mas {
    color: var(--texto-general);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    opacity: .85;
    transition: opacity .2s ease, transform .2s ease;
}

.btn-ver-mas:hover {
    opacity: 1;
    transform: translateX(4px);
    color: #fff;
}
.tipo-card {
    position: absolute;
    bottom: 30px;
    left: 0;
    z-index: 2;
    background: var(--etiqueta-tipo-fondo); /* azul */
    color: var(--etiqueta-tipo-texto);
    font-size: 10px;
    padding: 3px 7px;
}
	

/* =========================
   CARD OVERLAY INFO
========================= */

.card-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--fondo-sitio) 0%, var(--fondo-sitio) 40%, #675db100 100%);
    transform: translateY(100%);
    transition: transform .35s ease;
    z-index: 5;
    backdrop-filter: blur(1px);
}

.card-overlay-content {
    position: absolute;
    bottom: 0;
    padding: 0;
    width: 100%;
    color: #fff;
}
.card-overlay a.overlay-title {
    padding-top: 100%;
    color: var(--texto-general);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    font-size: 15px;
}
.part {
    padding: 5px;
}
.card-overlay h3 {
    font-size: 13px;
    margin: 0 0 6px;
    font-weight: 600;
}

.overlay-generos {
    font-size: 11px;
    opacity: .85;
    margin-bottom: 4px;
	white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overlay-meta {
    font-size: 11px;
    opacity: .75;
}

/* ACTIVACIÓN */
.card-audiovisual:hover .card-overlay {
    transform: translateY(0);
}
.overlay-actions {
    display: flex;
    gap: 3px;
    margin-top: 8px;
    justify-content: space-around;
}

.overlay-actions button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--acciones-texto);
    color: var(--acciones-texto);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
	position: relative;
}
	button.btn-like {
    padding-left: 3px;
}
button.btn-like small.like-count {
    position: absolute;
    z-index: 4;
    top: 3px;
    right: 5px;
    font-size: 7px;
}

.overlay-actions button:hover {
    background: #060606;
    transform: scale(1.08);
}

.overlay-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    opacity: .8;
}

.precio-card {
    position: absolute;
    top: 14px;
    right: 5px;
    font-size: 12px;
    color: #fff;
    z-index: 6;
    text-shadow: 1px 1px 1px #000;
}
.home-content {
    padding: 10px;
}
/* Contenedor general */
.navigation.pagination {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    font-family: inherit;
}

/* Lista de enlaces */
.navigation.pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Estilo base de cada página */
.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: #1e1e1e;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
}

/* Hover */
.navigation.pagination .page-numbers:hover {
    background: #ff3d3d;
    transform: translateY(-2px);
}

/* Página actual */
.navigation.pagination .page-numbers.current {
    background: #ff3d3d;
    font-weight: bold;
    cursor: default;
}

/* Puntos suspensivos */
.navigation.pagination .page-numbers.dots {
    background: transparent;
    color: #aaa;
    pointer-events: none;
}

/* Botón siguiente */
.navigation.pagination .page-numbers.next {
    font-size: 18px;
    padding: 0 14px;
}

/* Accesibilidad */
.screen-reader-text {
    position: absolute;
    left: -9999px;
}

.sec-flex {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.contentflex {
    flex: 1;
}
.altcien {
    height: 100%;
}
.peliculas-html-superior {
    margin: 15px 0;
    padding: 10px;
}
.card-audiovisual.orient-vertical.ranksec {
    overflow: revert;
}
.top10-rank-number {
    font-size: 100px;
    font-weight: 300;
    color: transparent;
    text-shadow: -1px -1px 0 rgba(255, 255, 255, 0.3), 1px -1px 0 rgba(255, 255, 255, 0.3), -1px 1px 0 rgba(255, 255, 255, 0.3), 1px 1px 0 rgba(255, 255, 255, 0.3);
    position: absolute;
    z-index: 5;
    left: -50px;
    bottom: 0;
    letter-spacing: -7px;
    line-height: 0.8;
}


/* =====================================================
 * SLIDER PRINCIPAL 
 * ================================================= */
.home-hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
    max-height: 100vh;
}
/* reducir altura según columnas */
.home-hero-slider[data-columnas="2"] {
    height: 40vh;
}

.home-hero-slider[data-columnas="3"] {
    height: 27vh;
}

/* swiper y slides heredan */
.hero-swiper,
.hero-slide {
    height: 100%;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}
/* slides heredan la altura del contenedor */
.hero-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    height: 100%;
    border-radius: 5px;
}



.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, var(--fondo-sitio) 0%, var(--fondo-sitio) 11%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.05) 82%, var(--fondo-sitio) 130%);
	background: linear-gradient(
  to top,
  var(--fondo-sitio) 4%,
  rgba(var(--fondo-sitio-rgb), 0.95) 17%,
  rgba(var(--fondo-sitio-rgb), 0.35) 40%,
  rgba(var(--fondo-sitio-rgb), 0.05) 82%,
  var(--fondo-sitio) 130%
);
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
}
.hero-sectlimit {
    margin: 60px auto;
    max-width: 1400px;
    position: relative;
}
.hero-sect {
    padding: 20px;
    margin: 0 auto;
	margin: 0;
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
	padding-left: 50px;
}
.home-hero-slider .swiper-button-next, .home-hero-slider .swiper-button-prev {
    bottom: 0;
    /* top: 97%; */
    font-size: 12px !important;
	--swiper-navigation-size: 25px;
}
.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after, .swiper-button-prev:after, .swiper-rtl .swiper-button-next:after {
    color: var(--texto-general);
}
a.licktile {
    text-decoration: none;
    width: 100%;
    color: var(--texto-general);
}
h1.slider-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 50px;
}
p.slider-sinops {
    line-height: 1.6;
	opacity: .7;
	color: var(--texto-general);
}
.slider-tagsif {
    display: flex;
    gap: 15px;
}
span.hero-type {
    background: transparent;
    display: inline-block;
    width: fit-content;
    padding: 5px 20px;
    border-radius: 23px;
    border: solid 1px #fff;
    margin-left: 5px;
}
/* 2 columnas */
.home-hero-slider[data-columnas="2"] .hero-content {
    padding: 40px;
    max-width: 520px;
}

/* 3 columnas */
.home-hero-slider[data-columnas="3"] .hero-content {
    padding: 25px;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
/* TEXTO MÁS COMPACTO */
.home-hero-slider[data-columnas="2"] .hero-content {
    padding: 30px;
    max-width: 480px;
}

.home-hero-slider[data-columnas="3"] .hero-content {
    padding: 15px;
    max-width: 420px;
}

/* títulos */
.home-hero-slider[data-columnas="2"] h2 {
    font-size: 28px;
}

.home-hero-slider[data-columnas="3"] h2 {
    font-size: 22px;
}

/* sinopsis */
.home-hero-slider[data-columnas="2"] p {
    font-size: 14px;
    line-height: 1.4;
}

.home-hero-slider[data-columnas="3"] p {
    font-size: 11px;
    line-height: 1.3;
}

/* meta */
.home-hero-slider[data-columnas="3"] .hero-year,
.home-hero-slider[data-columnas="3"] .hero-votes {
    font-size: 12px;
}
/* BOTÓN PLAY HERO */
.btn-hero-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    font-size: 16px;
    font-weight: 600;
    background: var(--boton-principal-fondo);
    color: var(--boton-principal-texto);
    border-radius: 6px;
    text-decoration: none;
    transition: all .25s ease;
}

.btn-hero-play:hover {
    opacity: .7;
    transform: translateY(-1px);
}

/* compacto en 2 columnas */
.home-hero-slider[data-columnas="2"] .btn-hero-play {
    padding: 10px 20px;
    font-size: 14px;
}

/* compacto en 3 columnas */
.home-hero-slider[data-columnas="3"] .btn-hero-play {
    padding: 8px 16px;
    font-size: 13px;
}
.hero-actions .btn-like, .hero-actions .btn-favorito {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: transparent;
    color: var(--acciones-texto);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    border: solid 1px var(--acciones-texto);
}


.hero-actions .btn-like .like-count {
    font-size: 12px;
    opacity: .9;
}
.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1; /* 👈 antes 0 */
    overflow: hidden;
    pointer-events: none;
    opacity: 0;                 /* 👈 inicia invisible */
    transition: opacity 1.2s ease;
}
.hero-slide.has-trailer .hero-video-wrapper {
    opacity: 0.85; /* 👈 intensidad del video */
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 165%;
    height: 140%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    object-fit: cover;
    object-position: center;
}
.hero-video-wrapper {
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-video-wrapper.visible {
    opacity: 0.99;
}

.hero-slide {
    background-color: var(--fondo-sitio); /* fallback */
    will-change: transform;
}

.hero-swiper .swiper-wrapper {
    will-change: transform;
}
.hero-audio-toggle {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 5;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgb(0 0 0 / 33%);
    border: 1px solid rgba(255,255,255,.25);
    color: var(--texto-general);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s ease;
	margin-right: 10px;
}

.hero-audio-toggle:hover {
    background: rgba(0,0,0,.8);
    transform: scale(1.05);
}

.hero-audio-toggle i {
    font-size: 18px;
}

/* estado activo */
.hero-audio-toggle.active {

}


/* DESKTOP GRANDE */
@media (min-width: 1400px) {

    /* POSTER VERTICAL → más columnas */
    .grid-tarjetas.orient-vertical {
        grid-template-columns: repeat(9, 1fr);
    }

    /* HORIZONTAL → normal */
    .grid-tarjetas.orient-horizontal {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* DESKTOP */
@media (max-width: 1399px) {
	.grid-tarjetas.orient-vertical {
        grid-template-columns: repeat(8, 1fr);
    }
    .grid-tarjetas {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* LAPTOP */
@media (max-width: 1200px) {
	.grid-tarjetas.orient-vertical {
        grid-template-columns: repeat(6, 1fr);
    }
    .grid-tarjetas {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* TABLET */
@media (max-width: 900px) {
	.grid-tarjetas.orient-vertical {
        grid-template-columns: repeat(5, 1fr);
    }
    .grid-tarjetas {
        grid-template-columns: repeat(3, 1fr);
    }
	.overlay-generos {
    font-size: 9px;
}
	.card-overlay a.overlay-title {
    font-size: 12px;
}
	.overlay-meta {
    display: none;
}
.card-info-title h2 {font-size: 10px;}
.top10-rank-number {
    font-size: 76px;
	left: -38px;}
}
	
@media (max-width: 768px) {

    .home-swiper .swiper-button-prev,
    .home-swiper .swiper-button-next {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
	    .home-seccion-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-seccion-title {
        max-width: 100%;
    }

    .btn-ver-mas {
        margin-top: 8px;
        font-size: 13px;
    }
	    .home-hero-slider {
        max-height: 45vh;
    }

.hero-sectlimit {
    margin: 0 auto;
    max-width: 95%;
    width: 100%;
}
.hero-sect {
    max-width: 400px;
    padding: 0;
    padding-left: 12px;
}
.home-hero-slider .swiper-button-next, .home-hero-slider .swiper-button-prev {
    --swiper-navigation-size: 16px;
}
h1.slider-title {
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
	font-size: 25px;
}
p.slider-sinops {
    font-size: 12px;
}
a.btn-play.btn-hero-play {
    padding: 12px 20px;
    font-size: 13px;
}
span.hero-type {
    padding: 2px 12px;
    font-size: 12px;
    margin: 0;
}
.hero-video {
    top: 49%;
	width: 180%;}
.hero-audio-toggle {
	margin-right: 0px;
}
}

/* MÓVIL */
@media (max-width: 600px) {
	    .home-hero-slider {
        max-height: 37vh;
    }
	.grid-tarjetas.orient-vertical {
        grid-template-columns: repeat(4, 1fr);
    }
    .grid-tarjetas {
        grid-template-columns: repeat(2, 1fr);
    }
	    .top10-rank-number {
        font-size: 49px;
        left: -29px;
    }
	.home-hero-slider {aspect-ratio: 2 / 3;}
	.hero-actions {
    gap: 10px;
    margin-top: 1px;
}
button.hero-audio-toggle {
    width: 40px;
    height: 40px;
}
button.hero-audio-toggle i {
    font-size: 14px;
}
h1.slider-title {
        font-size: 20px;
    }
.slider-tagsif {
    font-size: 12px;
}
.hero-overlay {
    background: linear-gradient(to top, var(--fondo-sitio) 0%, var(--fondo-sitio) 22%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.05) 75%, rgba(0, 0, 0, 0) 100%);
}
}
/* MÓVIL mas */
@media (max-width: 460px) {
	.hero-sect {
    max-width: 336px; 
	}
	.grid-tarjetas.orient-vertical {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-tarjetas {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* MÓVIL mas */
@media (max-width: 380px) {
	.grid-tarjetas.orient-vertical {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-tarjetas {
        grid-template-columns: repeat(1, 1fr);
    }
}