/* Estilos para la cabecera de la página Home */

/* Sección Hero Header */
.hero-header {
    padding: 80px 0;
    background-color: transparent;
    overflow: visible; /* Permitir que las imágenes se muestren completas */
}

/* Estilos para el título principal */
.hero-title-container {
    padding: 100px 0;
}

.hero-title {
    font-family: 'Switzer Variable', sans-serif;
    font-weight: 700;
    font-size: 100px;
    line-height: 120px;
    letter-spacing: -0.04em;
    color: #000000;
    margin-bottom: 20px;
}

.hero-title span {
    color: #376AAD;
}

/* Posicionamiento del círculo SVG sobre la palabra "pantallas" */
.position-relative {
    position: relative;
    display: inline-block;
}

.circle-overlay {
    position: absolute;
    width: 150px;
    height: 150px;
    z-index: 1;
    display: none; /* Oculto por defecto */
    object-fit: contain;
    pointer-events: none;
    transition: all 0.3s ease;
  }

/* Mostrar los círculos solo en pantallas grandes */
@media (min-width: 1300px) {
    .circle-overlay {
        display: block; /* Mostrar círculo solo en pantallas de 1300px o más */
    }
    
    .info-section .overlay-image {
        display: block; /* Mostrar overlay-image solo en pantallas de 1300px o más */
    }
}

/* Estilos para el contenedor de la imagen */
.hero-image-container {
    position: relative;
    overflow: visible; /* Permitir que las imágenes se muestren completas */
    min-height: 400px; /* Altura mínima en lugar de aspect-ratio fijo */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor adicional para las imágenes */
.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    height: auto; /* Mantener proporción natural */
    display: block;
    object-fit: contain; /* Mostrar imagen completa sin recortar */
}

/* Posicionamiento para las imágenes superpuestas */
.img-banner-1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999; /* Capa inferior */
    max-width: 100%;
    height: auto;
}

.img-banner-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* Capa superior */
    max-width: 100%;
    height: auto;
}



/* Estilos para el título y subtítulo debajo de la imagen */
.hero-image-caption {
    padding: 0px;
    margin-top: 5px;
    margin-left: 60px;
    background-color: transparent;
    transform: rotate(-2deg);
    transform-origin: center left;
  }

.hero-image-title {
    font-family: 'Switzer Variable', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 70px;
    letter-spacing: -0.04em;
    color: #000000;
    margin-bottom: 0px;
}

.hero-image-subtitle {
    font-family: 'Switzer Variable', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #000000;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 1400px) {
    .hero-title {
        font-size: 90px;
        line-height: 110px;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 70px;
        line-height: 85px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .hero-image-caption {
        margin-top: -60px;
        margin-left: 20px;
    }
}

@media (min-width: 999px) and (max-width: 1199px) {
    .hero-image-caption {
        margin-top: -70px;
        margin-left: 20px;
    }
}

/* Media query para tablets */
@media (min-width: 799px) and (max-width: 975px) {
    .hero-image-caption {
        margin-top: 75px;
    }
}

@media (min-width: 749px) and (max-width: 798px) {
    .hero-image-caption {
        margin-top: 50px;
    }
}

@media (min-width: 636px) and (max-width: 748px) {
    .hero-image-caption {
        margin-top: 50px;
    }
}

@media (max-width: 499px) {
    .hero-image-caption {
        margin-top: 25px;
    }
}


@media (max-width: 991px) {
    .hero-title {
        font-size: 50px;
        line-height: 65px;
        margin-bottom: 15px;
    }
    
    .section-padding {
        padding: 40px 0;
    }

    .hero-title-container {
        padding: 40px 0;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .circle-overlay {
        display: none; /* Ocultar círculo en tablets */
    }
    
    .info-section .overlay-image {
        display: none; /* Ocultar overlay-image en tablets */
    }
    
    /* Mejora el espaciado entre tarjetas */
    .movie-card {
        margin-bottom: 20px;
    }
    
    /* Ajusta el espacio entre secciones */
    .featured-movies-section {
        padding: 40px 0;
    }
    
    /* Ajustes para la imagen hero en tablet */
    .hero-image-container {
        min-height: 230px;
        margin-bottom: 0;
        margin-top: 50px;
    }
    
    .image-wrapper {
        min-height: 250px;
    }
}

@media (max-width: 767px) {
    .hero-header {
        margin-top: 50px;
    }
    
    .section-padding {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 75px;
        line-height: 90px;
    }
    
    .hero-title-container {
        padding: 30px 0;
    }
    
    .hero-image-title {
        font-size: 24px;
        line-height: 35px;
    }
    
    .hero-image-subtitle {
        font-size: 14px;
    }
    
    .circle-overlay {
        display: none; /* Ocultar círculo en móviles */
    }
    
    .info-section .overlay-image {
        display: none; /* Ocultar overlay-image en móviles */
    }
    
    /* Ajusta el margin para la caption */
    .hero-image-caption {
        margin-left: 30px;
    }
    
    /* Mejora espaciado entre columnas */
    .container-fluid.pl-100.pr-100 {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
    
    /* Reduce espacio entre tarjetas */
    .col-md-6.col-12 {
        margin-bottom: 15px;
    }
    
    /* Ajustes para la imagen hero en móvil */
    .hero-image-container {
        min-height: 300px;
    }
    
    .image-wrapper {
        min-height: 200px;
    }
    
    .img-banner-1,
    .img-banner-2 {
        max-width: 90%;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 60px;
        line-height: 72px;
    }
    
    .hero-image-title {
        font-size: 20px;
        line-height: 30px;
    }
    
    .hero-title-container {
        padding: 20px 0;
    }
    
    .circle-overlay {
        display: none; /* Ocultar círculo en móviles pequeños */
    }
    
    .info-section .overlay-image {
        display: none; /* Ocultar overlay-image en móviles pequeños */
    }
    
    .container-fluid.pl-100.pr-100 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Mejora la visualización de tarjetas en móvil */
    .movie-image-container {
        margin-bottom: 10px;
        min-height: 250px;
    }
    
    .image-wrapper {
        min-height: 180px;
    }
    
    .img-banner-1,
    .img-banner-2 {
        max-width: 85%;
    }
    
    .movie-info {
        padding: 8px 0;
    }
    
    .movie-title {
        font-size: 16px;
        line-height: 20px;
    }
    
    .movie-director {
        font-size: 12px;
        line-height: 18px;
    }
    
    .movie-genre, .movie-details {
        font-size: 14px;
        line-height: 18px;
    }
    
    .hero-image-caption {
        margin-left: 40px;
        margin-top: -35px;
    }
}

/* Estilos para la sección del slider */
.image-slider-section {
    padding: 60px 0;
    background-color: transparent;
}

.slider-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Estilo para los items del carousel */
.carousel-item {
    position: relative;
    overflow: hidden;
    height: 900px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilos para caption */
.carousel-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    text-align: left;
}

.carousel-caption h3 {
    font-family: 'Switzer Variable', sans-serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 70px;
    letter-spacing: -0.04em;
    color: #f8f8f8;
    margin-bottom: 8px;
}

.carousel-caption p {
    font-family: 'Switzer Variable', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #f8f8f8;
}

/* Controles del carousel */
.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* Responsive slider */
@media (max-width: 1200px) {
    .carousel-item {
        height: 700px;
    }
    
    .carousel-caption h3 {
        font-size: 42px;
        line-height: 60px;
    }
}

/* Estilos para la sección de películas destacadas */
.featured-movies-section {
    padding: 80px 0;
    background-color: transparent;
}

/* Tarjeta de película */
.movie-card {
    margin-bottom: 30px;
    position: relative;
    border-bottom: 1px solid #376AAD;
    background-color: #ffffff;
}

/* Contenedor de imagen de película */
.movie-image-container {
    overflow: hidden;
    margin-bottom: 15px;
}

.movie-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-image-container:hover .movie-image {
    transform: scale(1.03);
}

/* Información de la película */
.movie-info {
    padding: 10px 0;
}

/* Título de la película */
.movie-title {
    font-family: 'Switzer Variable', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 26px;
    letter-spacing: -0.04em;
    color: #376AAD;
    margin-bottom: 5px;
}

/* Director de la película */
.movie-director {
    font-family: 'Switzer Variable', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 26px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #376AAD;
    margin-bottom: 0;
}

/* Género de la película */
.movie-genre {
    font-family: 'Switzer Variable', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0.03em;
    text-align: right;
    text-transform: uppercase;
    color: rgba(3, 62, 140, 0.5); /* #033E8C80 */
    margin-bottom: 5px;
}

/* Detalles de la película */
.movie-details {
    font-family: 'Switzer Variable', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: -0.04em;
    text-align: right;
    color: rgba(3, 62, 140, 0.5); /* #033E8C80 */
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .carousel-item {
        height: 600px;
    }
    
    .carousel-caption h3 {
        font-size: 36px;
        line-height: 50px;
    }
    
    .carousel-caption p {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .carousel-item {
        height: 500px;
    }
    
    .carousel-caption h3 {
        font-size: 32px;
        line-height: 42px;
    }
    
    .carousel-caption p {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        padding: 15px;
    }
    
    .carousel-caption h3 {
        font-size: 24px;
        line-height: 34px;
    }
    
    .carousel-caption p {
        font-size: 16px;
    }
    
    /* Estilos responsive para la sección de películas */
    .movie-title {
        font-size: 18px;
        line-height: 40px;
    }
    
    .movie-director {
        font-size: 12px;
    }
    
    .movie-genre {
        font-size: 14px;
        line-height: 20px;
    }
    
    .movie-details {
        font-size: 14px;
        line-height: 20px;
    }
    
    .featured-movies-section {
        padding: 40px 0;
    }
    
    /* Ticker responsive */
    .ticker-item {
        font-size: 24px;
        line-height: 36px;
    }
}

/* Estilos para el banner ticker */
.ticker-banner-section {
    background-color: #376AAD;
    overflow: hidden;
    height: 95px;
    display: flex;
    align-items: center;
    width: 100%;
}

.ticker-container {
    width: 100%;
    overflow: hidden;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
}

.ticker {
    display: flex;
    white-space: nowrap;
    position: relative;
    /* Eliminamos la animación CSS ya que ahora usaremos JavaScript */
}

.ticker-item {
    display: inline-block;
    padding: 0 20px;
    font-family: 'Switzer Variable', sans-serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 70px;
    letter-spacing: -0.04em;
    color: #f5f5f5;
}

.ticker-separator {
    display: inline-flex;
    align-items: center;
    margin: 0 20px;
}

.ticker-separator img {
    width: 67px;
    height: 69px;
    opacity: 1;
    max-width: 67px;
}

/* Info Section Styles */
.info-section {
    background-color: #fff;
    padding: 80px 0;
}

.info-main-text {
    font-family: 'Switzer Variable', sans-serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 70px;
    letter-spacing: -0.04em;
    color: #376AAD;
    margin-bottom: 30px;
}

.info-question-text {
    font-family: 'Switzer Variable', sans-serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 70px;
    letter-spacing: -0.04em;
    color: #F3B707;
    cursor: pointer;
}

/* Estilos para la palabra destacada con imagen superpuesta */
.info-section .highlight-word {
    position: relative;
    display: inline-block;
}

.info-section .overlay-image {
    position: absolute;
    width: 150px;
    height: 150px;
    z-index: 1;
    display: none; /* Oculto por defecto */
    object-fit: contain;
    pointer-events: none;
    transition: all 0.3s ease;
}

.ticker-item a {
    color: #f5f5f5;
}

.ticker-item a:hover {
    color: #f5f5f5;
}

.info-question-text a {
    color: #F3B707;
}

.info-question-text a:hover {
    color: #F3B707;
}