/*
Theme Name: SalaNemesio
Description: Tema salanemesio
Version: 1.0.0
Author: SOCIALWEB
Author URI: https://socialweb.cl
Theme URI: https://socialweb.cl
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: Divi
*/

/* ========== Custom CSS from Generator ========== */
.movie-card {
    max-width: 1440px;
    margin: 0 auto;
    background: #26272C;
    border-radius: 16px;
    padding: 30px;
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 30px;
    height: 500px;
    /* fixed height for desktop */
    overflow: hidden !important;
}

@media (max-width: 1400px) {
    .movie-card {
        grid-template-columns: 35% 65%;
        gap: 20px;
        height: 600px;
    }
}

/* ensure poster and content stretch to the card height */
.poster-section {
    position: relative;
    height: 100%;
}

.poster-image {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: #1C1D22;
}

.content-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: none;
    /* allow content scrolling if it overflows fixed height */
    height: 100%;
    width: 95%;	
}

.movie-title {
    font-family: 'Sen', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
    line-height: 1.2;
    text-transform: uppercase;
}

.title-underline {
    width: 100%;
    height: 2px;
    background: #FAE801;
    margin-bottom: 20px;
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meta-item {
    font-family: 'Sen', sans-serif;
    font-size: 15px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
}

.meta-label {
    font-weight: 700;
}

.meta-value {
    font-weight: 400;
    margin-left: 5px;
}

.meta-separator {
    color: #FAE801;
    font-weight: 700;
    margin: 0 5px;
}

.movie-synopsis {
    font-family: 'Sen', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 25px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
}

.movie-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
}

.badge {
    padding: 8px 16px;
    border: 2px solid #FAE801;
    border-radius: 25px;
    font-family: 'Sen', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    background: transparent;
}

.functions-title {
    font-family: 'Sen', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.days-wrapper {
    margin-bottom: 15px;
}

.titles-wrapper {
    margin-bottom: 15px;
}

.days-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.days-row::-webkit-scrollbar {
    display: none;
}

.day-item {
    flex: 0 0 auto;
    min-width: 100px;
    background: #1C1D22;
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.day-item:hover {
    background: #2a2b30;
    transform: translateY(-2px);
}

.day-item.active {
    background: #1C1D22;
}

.day-number {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.day-name {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.day-item.active .day-number {
    color: #FAE801;
}

.day-item.active .day-name {
    color: #FAE801;
}

.times-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.time-badge {
    display: inline-flex;
    align-items: flex-start;
	flex-direction: column;
    justify-content: center;
    padding: 12px 32px 8px 12px;
    background: transparent;
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Sen', sans-serif;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.time-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.time-badge.selected {
    background: #FAE801;
    border-color: #FAE801;
    color: #000000;
}

.time-badge-small {
    display: block;
    font-weight: 400;
    font-size: 14px;
    margin-top: 2px;
}

@media (max-width: 1200px) {
    .movie-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px;
        height: auto;
    }

    .poster-section {
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
        height: auto;
    }

    .poster-image {
        height: auto;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .movie-card {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 95%;
        margin: 0 auto;
    }
    
    .poster-section {
        max-width: 280px;
        margin: 0 auto;
        width: 100%;
    }
    
    .poster-image {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
    
    .content-section {
        width: 100%;
    }
    
    .movie-title {
        font-size: 24px;
        margin-top: 0;
        text-align: center;
    }
    
    .movie-meta {
        font-size: 14px;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
    }
    
    .meta-item {
        font-size: 14px;
    }
    
    .meta-separator {
        margin: 0 5px;
    }
    
    .movie-synopsis {
        font-size: 15px;
        line-height: 1.6;
        text-align: justify;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .badge {
        font-size: 13px;
        padding: 10px 20px;
    }
    
    .movie-badges {
        justify-content: center;
        gap: 10px;
    }
    
    .functions-title {
        font-size: 20px;
        text-align: center;
    }
    
    .day-item {
        min-width: 85px;
        padding: 16px 18px;
    }
    
    .day-number {
        font-size: 32px;
    }
    
    .day-name {
        font-size: 22px;
    }
    
    .time-badge {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .movie-card {
        padding: 15px;
        width: 98%;
    }
    
    .poster-section {
        max-width: 240px;
    }
    
    .movie-title {
        font-size: 22px;
    }
    
    .movie-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        text-align: left;
    }
    
    .meta-separator {
        display: none;
    }
    
    .meta-item {
        font-size: 13px;
    }
    
    .movie-synopsis {
        font-size: 14px;
        line-height: 1.5;
        -webkit-line-clamp: 5;
    }
    
    .movie-badges {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .badge {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .functions-title {
        font-size: 18px;
    }
    
    .day-item {
        min-width: 75px;
        padding: 12px 14px;
    }
    
    .day-number {
        font-size: 28px;
    }
    
    .day-name {
        font-size: 18px;
    }
    
    .time-badge {
        font-size: 13px;
        padding: 8px 16px;
    }
}

.logo_container{
  margin-bottom: 20px;}

.body .js n2webp{
	background-color: #1c1d22 !important;
}

/* MENÚ MOVILE */
/* Solo aplicar en dispositivos móviles */
@media only screen and (max-width: 980px) {
    
    /* Ocultar el texto "Select Page" */
    .mobile_nav_closed .mobile_menu_bar_toggle::before,
    span.select_page {
        display: none !important;
    }
    /* Ocultar el elemento que ocupa espacio extraño */
    #et-top-navigation {
        display: none !important;
    }

    /* Asegurar que el contenedor del logo y el menú móvil estén en la misma línea */
    #et_mobile_nav_menu {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* Posicionar el logo a la izquierda */
    .mobile_nav_closed {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* Asegurar que el logo_container esté a la izquierda */
    .logo_container {
        order: 1 !important;
        margin-right: auto !important;
    }

    /* El menú hamburguesa a la derecha */
    .mobile_menu_bar {
        order: 2 !important;
        margin-left: auto !important;
    }

    /* Ajuste adicional para el contenedor principal */
    #et-top-navigation {
        display: flex !important;
        align-items: center !important;
    }
}

.movies-grid {
    font-family: 'Sen', sans-serif !important;
    margin-bottom: 20px;
}


/* =========================
   HEADER RESPONSIVE COMPACTO
   ========================= */

/* Reglas generales para tablet y mobile (≤980px) */

@media (max-width: 980px) {

  /* HEADER FIJO ARRIBA */
  #main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 99999;
    height: auto !important;       
    min-height: 56px;              
    padding: 16px !important;      
    box-sizing: border-box;
    transition: none !important;
  }

  /* Ajuste padding superior del body para header fijo */
  body.et_fixed_nav #page-container {
    padding-top: 56px !important; 
  }

  /* GRID para logo y menú */
  #main-header .et_menu_container {
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 0 0 16px !important;
  }

  /* LOGO a la izquierda */
  #main-header .logo_container {
    grid-column: 1;
    justify-self: start;
    float: none !important;
    margin: 0 !important;
    padding: 0 20px !important;
    text-align: left !important;
  }

  #main-header .logo_helper {
    display: none !important;
  }

  #main-header #logo {
    display: block;
    width: auto;
    margin: 0 !important;
    max-height: 50px;  /* valor base, se ajusta según dispositivo */
  }

  /* MENU a la derecha */
  #et-top-navigation {
    grid-column: 2;
    justify-self: end;
    float: none !important;
    width: auto !important;
  }

  /* Ocultar menú desktop */
  #top-menu-nav,
  #et_top_search {
    display: none !important;
  }

  /* Mostrar menú hamburguesa */
  #et_mobile_nav_menu {
    display: block !important;
    position: relative;
  }

  /* DROPDOWN MENÚ */
  #et_mobile_nav_menu .mobile_nav {
    position: relative !important;
    background: transparent !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  #mobile_menu {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    width: 350px !important;
    display: none;
    margin: 0 !important;
    padding: 8px 0 !important;
    border-radius: 0 0 4px 4px;
    background-color: #1c1d22;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 999999;
    top: calc(100% + 60px); /* valor base, se ajusta según dispositivo */
  }

  /* Mostrar cuando abierto */
  #et_mobile_nav_menu .mobile_nav.opened #mobile_menu {
    display: block !important;
  }

  /* Items menú dropdown */
  #mobile_menu li {
    list-style: none;
    border-bottom: 1px solid #333;
  }
  #mobile_menu li:last-child {
    border-bottom: none;
  }
  #mobile_menu li a {
    display: block;
    padding: 12px 16px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  /* Evitar overflow oculto */
  #main-header,
  #main-header .container,
  #et-top-navigation {
    overflow: visible !important;
  }
}

/* =========================
   AJUSTES POR DISPOSITIVO
   ========================= */

/* TABLET: 768px – 980px */
@media (max-width: 980px) and (min-width: 768px) {
    /* HEADER FIJO SIN CRECIMIENTO AL SCROLL */
.et_header_style_centered #main-header {
    height: 80px !important;      /* altura fija del header grande */
    min-height: 80px !important;  /* asegurar altura mínima */
    padding: 0 16px !important;   /* solo padding lateral */
    box-sizing: border-box;
    transition: none !important;  /* quitar animaciones */
}

.et_header_style_centered #main-header .container {
    height: 100% !important;      /* altura igual al header */
    display: flex;
    align-items: center;          /* centrar logo y menú verticalmente */
    justify-content: center;      /* centrar horizontal si lo deseas */
    text-align: center;
}

body.et_fixed_nav #page-container {
    padding-top: 65px !important; /* espacio para header fijo */
}

  #main-header {
    min-height: 65px !important;
    padding: 16px !important;
  }
  body.et_fixed_nav #page-container {
    padding-top: 65px !important;
  }
  #main-header #logo {
    max-height: 60px;
  }
  #mobile_menu {
    top: calc(100% + 60px);
  }
}

/* MOBILE: ≤767px */
@media (max-width: 767px) {
  #main-header {
    min-height: 56px !important;
    padding: 16px !important;
  }
  body.et_fixed_nav #page-container {
    padding-top: 56px !important;
  }
  #main-header #logo {
    max-height: 50px;
  }
  #mobile_menu {
    top: calc(100% + 60px);
  }
}

