/*
Theme Name:   Hello Elementor Child
Theme URI:    https://elementor.com/
Description:  Tema desarrollado para Wilder Cinema
Author:       Clicknaranja SL
Author URI:   https://clicknaranja.com
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hello-elementor-child
*/
:root {
  --bg: #f8f8f7;
  --black: #000000;
  --white: #ffffff;
  --wilder1: #542ba3;
  --wilder2: #f2455e;
  --wilder3: #2b889f;
  --wilder4: #022660;
}

@font-face {
  font-family: "Gotham-regular";
  src: url("fonts/Gotham_Regular.ttf") format("opentype"),
    url("fonts/Gotham_Regular.woff") format("woff");
}
@font-face {
  font-family: "Gotham-light";
  src: url("fonts/Gotham_Light.ttf") format("opentype"),
    url("fonts/Gotham_Light.woff") format("woff");
}
@font-face {
  font-family: "Gotham-book";
  src: url("fonts/Gotham_Book.ttf") format("opentype"),
    url("fonts/Gotham_Book.woff") format("woff");
}
@font-face {
  font-family: "Gotham-medium";
  src: url("fonts/Gotham_Medium.ttf") format("opentype"),
    url("fonts/Gotham_Medium.woff") format("woff");
}
@font-face {
  font-family: "Gotham-bold";
  src: url("fonts/Gotham_Bold.ttf") format("opentype"),
    url("fonts/Gotham_Bold.woff") format("woff");
}
@font-face {
  font-family: "Gotham-black";
  src: url("fonts/Gotham_Black.ttf") format("opentype"),
    url("fonts/Gotham_Black.woff") format("woff");
}

body {
  background-color: var(--bg);
}

body:not(.elementor-editor-active) * {
  font-family: "Gotham-medium", sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

.custom-logo {
  max-width: 200px;
}

#cn-main-menu li a {
  font-family: "Gotham-book", sans-serif !important;
  color: var(--black);
  font-size: 0.825rem;
}

#cn-main-menu li a:hover {
  color: var(--wilder2);
}

.dicinet-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 25px;
}

.dicinet-card__subtitle,
.dicinet-detail__subtitle {
  opacity: 0.7;
  margin-top: 4px;
}

.dicinet-card__synopsis {
  margin: 10px 0;
  opacity: 0.9;
}

.dicinet-card__meta,
.dicinet-detail__meta {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0.85;
}

.dicinet-card__sessions ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.dicinet-btn {
  display: inline-block;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-decoration: none;
}

.dicinet-table {
  width: 100%;
  border-collapse: collapse;
}

.dicinet-table th,
.dicinet-table td {
  border-bottom: 1px solid #eee;
  padding: 10px;
  text-align: left;
}

@media (max-width: 1024px) {
}

/* ---- NL ----- */

.tnp-field-email label {
  display: none;
}

.tnp-field-email .tnp-email {
  border-radius: 0;
  font-size: 1rem;
  padding: 16px 22px !important;
  line-height: 1 !important;
  height: 60px;
  transition: border-radius ease 0.5s;
}

.tnp-field-email .tnp-email:focus {
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}

.tnp.tnp-subscription {
  margin: 0;
  max-width: 350px;
}

.tnp-privacy-field label {
  color: white;
}

.tnp-subscription > form {
  position: relative;
}

.tnp-subscription > form > .tnp-field-button {
  position: absolute;
  text-align: center;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background-color: #2b889f;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  transition: background ease 0.5s;
}

.tnp-subscription > form > .tnp-field-button:hover {
  background-color: black;
}

.tnp-subscription > form > .tnp-field-button > .tnp-submit {
  background: none;
  padding: 0;
  text-align: center;
}
/**
 * Estilos para el Selector de Provincias
 * Shortcode: [dicinet_province_selector]
 * 
 * @package Hello Elementor Child
 * @version 1.0.0
 */

/* ==========================================================================
   Contenedor Principal
   ========================================================================== */

.dicinet-province-selector-wrapper {
  width: 100%;
  display: flex;
  justify-content: start;
  margin: 20px 0;
}

.dicinet-province-selector {
  position: relative;
  width: 100%;
  max-width: 350px;
}

/* ==========================================================================
   Select (Dropdown)
   ========================================================================== */

.dicinet-province-selector select {
  width: 100%;
  line-height: 1;
  padding: 18px 40px 16px 22px;
  font-size: 16px;
  font-weight: 500;
  color: #6a6a6a;
  background: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  box-shadow: 0 4px 12px rgba(139, 46, 143, 0.3);
  transition: all 0.3s ease;
  font-family: inherit;
}

/* ==========================================================================
   Estados del Select
   ========================================================================== */

/* Hover */
.dicinet-province-selector select:hover {
  color: #542ba3;
}

/* Focus */
.dicinet-province-selector select:focus {
  box-shadow: 0 0 0 3px rgba(139, 46, 143, 0.2);
}

/* Active */
.dicinet-province-selector select:active {
  transform: translateY(0);
}

/* Disabled */
.dicinet-province-selector select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   Opciones del Dropdown
   ========================================================================== */

.dicinet-province-selector select option {
  background: #ffffff;
  color: #333333;
  padding: 8px;
  font-weight: normal;
}

.dicinet-province-selector select option:hover {
  background: #f5f5f5;
}

.dicinet-province-selector select option:first-child {
  color: #999999;
}

/* ==========================================================================
   Icono de Flecha
   ========================================================================== */

.dicinet-province-selector::after {
  content: "▼";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  pointer-events: none;
  transition: transform 0.3s ease;
  color: white;
  background-color: #542ba3;
  border-radius: 50px;
  padding: 3px;
  width: 32px;
  height: 32px;
  right: 9px;
  vertical-align: middle;
  line-height: 2.5;
  text-align: center;
}

/* Rotación de flecha al abrir */
.dicinet-province-selector.is-open::after {
  transform: translateY(-50%) rotate(180deg);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 768px) {
  .dicinet-province-selector {
    max-width: 100%;
  }

  .dicinet-province-selector select {
    font-size: 14px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .dicinet-province-selector-wrapper {
    margin: 15px 0;
  }

  .dicinet-province-selector select {
    padding: 14px 40px 14px 16px;
    font-size: 16px; /* Evita zoom en iOS */
  }
}

/* ==========================================================================
   Variantes de Color (Opcional - comentadas por defecto)
   ========================================================================== */

/* Variante Azul */
/*
.dicinet-province-selector.variant-blue select {
  background: linear-gradient(135deg, #2e5b8f 0%, #1e3b6f 100%);
  box-shadow: 0 4px 12px rgba(46, 91, 143, 0.3);
}

.dicinet-province-selector.variant-blue select:hover {
  background: linear-gradient(135deg, #3e6b9f 0%, #2e4b7f 100%);
  box-shadow: 0 6px 16px rgba(46, 91, 143, 0.4);
}
*/

/* Variante Verde */
/*
.dicinet-province-selector.variant-green select {
  background: linear-gradient(135deg, #2e8f5b 0%, #1e6f3b 100%);
  box-shadow: 0 4px 12px rgba(46, 143, 91, 0.3);
}

.dicinet-province-selector.variant-green select:hover {
  background: linear-gradient(135deg, #3e9f6b 0%, #2e7f4b 100%);
  box-shadow: 0 6px 16px rgba(46, 143, 91, 0.4);
}
*/

/* ==========================================================================
   Dark Mode (Opcional)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  /* Los estilos actuales ya funcionan bien en dark mode,
     pero puedes añadir ajustes específicos aquí si lo necesitas */
}

/* ==========================================================================
   Accesibilidad
   ========================================================================== */

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .dicinet-province-selector select {
    border: 2px solid #ffffff;
  }

  .dicinet-province-selector select:focus {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .dicinet-province-selector select,
  .dicinet-province-selector::after {
    transition: none;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .dicinet-province-selector-wrapper {
    display: none;
  }
}

.e-n-accordion-item-title-header {
  margin-top: 25px;
}
/* ==========================================================================
   acordeón meses
   =========================================================== */
.e-n-accordion summary {
  padding-left: 0 !important;
}

.e-n-accordion-item .e-n-accordion-item-title-text {
  font-weight: 400 !important;
}

.e-n-accordion-item[open] .e-n-accordion-item-title-text {
  font-weight: 600 !important;
}

/**
 * Estilos para Carousel de Géneros
 * Shortcode: [dicinet_genres_carousel]
 * 
 * @package Hello Elementor Child
 * @version 1.0.0
 */

/* ==========================================================================
   Variables CSS (Personalizables)
   ========================================================================== */

:root {
  --genre-card-radius: 16px;
  --genre-card-bg: #1a1a1a;
  --genre-overlay: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  --genre-text: #ffffff;
  --genre-count-color: rgba(255, 255, 255, 0.7);
  --genre-hover-scale: 1.05;
  --transition-speed: 0.3s;
}

/* ==========================================================================
   Contenedor Principal
   ========================================================================== */

.dicinet-genres-carousel-wrapper {
  width: 100%;
  margin: 40px 0;
  position: relative;
}

.dicinet-genres-carousel {
  width: 100%;
}

/* ==========================================================================
   Slide Individual
   ========================================================================== */

.genre-slide {
  padding: 0 10px;
  outline: none;
}

/* ==========================================================================
   Card de Género
   ========================================================================== */

.genre-card {
  display: block;
  position: relative;
  border-radius: var(--genre-card-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-speed) ease;
  aspect-ratio: 5 / 6;
}

/* Imagen del Género */
.genre-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform var(--transition-speed) ease;
}

/*
.genre-card:hover .genre-card__image {
 transform: scale(1.1);
}
*/

/* Placeholder para géneros sin imagen */
.genre-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.genre-card__image--placeholder::before {
  content: "🎬";
  font-size: 64px;
  opacity: 0.3;
}

/* Overlay oscuro */
.genre-card__overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--genre-overlay);
  z-index: 1;
}

/* Contenido del Card */
.genre-card__content {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}

.genre-card__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--genre-text);
  margin: 0 0 8px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.genre-card__count {
  display: block;
  font-size: 14px;
  color: var(--genre-count-color);
  font-weight: 500;
}

/* ==========================================================================
   Personalización de Slick Carousel
   ========================================================================== */

/* Flechas de navegación */
.dicinet-genres-carousel .slick-prev,
.dicinet-genres-carousel .slick-next {
  width: 48px;
  height: 48px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transition: all var(--transition-speed) ease;
}

.dicinet-genres-carousel .slick-prev:hover,
.dicinet-genres-carousel .slick-next:hover {
  background: rgba(139, 46, 143, 0.95);
}

.dicinet-genres-carousel .slick-prev {
  left: -20px;
}

.dicinet-genres-carousel .slick-next {
  right: -20px;
}

.dicinet-genres-carousel .slick-prev::before,
.dicinet-genres-carousel .slick-next::before {
  font-size: 24px;
  color: #333;
}

.dicinet-genres-carousel .slick-prev:hover::before,
.dicinet-genres-carousel .slick-next:hover::before {
  color: #fff;
}

/* Dots de navegación */
.dicinet-genres-carousel .slick-dots {
  bottom: -40px;
}

.dicinet-genres-carousel .slick-dots li button:before {
  font-size: 12px;
  color: #999;
}

.dicinet-genres-carousel .slick-dots li.slick-active button:before {
  color: #8b2e8f;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .genre-card {
    aspect-ratio: 5 / 6;
  }

  .genre-card__title {
    font-size: 20px;
  }

  .genre-card__content {
    padding: 20px;
  }

  .dicinet-genres-carousel .slick-prev,
  .dicinet-genres-carousel .slick-next {
    width: 40px;
    height: 40px;
  }

  .dicinet-genres-carousel .slick-prev {
    left: -15px;
  }

  .dicinet-genres-carousel .slick-next {
    right: -15px;
  }
}

/* Mobile (hasta 767px) */
@media (max-width: 767px) {
  .dicinet-genres-carousel-wrapper {
    margin: 32px 0;
  }

  .genre-slide {
    padding: 0 8px;
  }

  .genre-card {
    aspect-ratio: 5 / 6;
  }

  .genre-card__title {
    font-size: 18px;
  }

  .genre-card__count {
    font-size: 13px;
  }

  .genre-card__content {
    padding: 16px;
  }

  /* Ocultar flechas en móvil */
  .dicinet-genres-carousel .slick-prev,
  .dicinet-genres-carousel .slick-next {
    display: none !important;
  }

  .dicinet-genres-carousel .slick-dots {
    bottom: -75px;
  }
}

/* Mobile pequeño (hasta 480px) */
@media (max-width: 480px) {
  .genre-card {
    aspect-ratio: 5 / 6;
  }

  .genre-card__title {
    font-size: 16px;
  }

  .genre-card__content {
    padding: 12px;
  }
}

/* ==========================================================================
   Estados Vacíos y Errores
   ========================================================================== */

.dicinet-error,
.dicinet-empty {
  padding: 40px;
  text-align: center;
  background: #f8f8f8;
  border-radius: var(--genre-card-radius);
  color: #666;
  font-size: 16px;
}

.dicinet-error {
  background: #fff3f3;
  color: #c33;
  border: 1px solid #fcc;
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --genre-card-bg: #2a2a2a;
  }

  .dicinet-empty {
    background: #1a1a1a;
    color: #ccc;
  }

  .dicinet-error {
    background: #3d1a1a;
    color: #ff6666;
    border-color: #661111;
  }
}

/* ==========================================================================
   Accesibilidad
   ========================================================================== */

/* Focus visible para teclado */
.genre-card:focus-visible {
  outline: 3px solid #8b2e8f;
  outline-offset: 4px;
  transform: scale(1.02);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .genre-card,
  .genre-card__image {
    transition: none;
  }

  .genre-card:hover {
    transform: none;
  }

  .genre-card:hover .genre-card__image {
    transform: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .genre-card {
    border: 2px solid currentColor;
  }
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.dicinet-genres-carousel.is-loading .genre-card {
  opacity: 0.5;
  pointer-events: none;
}

.cn-ses-section {
  margin-top: 40px;
}

.cn-ses-section h2 {
  font-size: 38px;
  padding: 20px;
}

/* -------- sesiones ---------- */

.cn-sesiones-container {
  display: block;
  padding: 20px;
  /*gap: 20px;*/
}

.cn-ses-day {
  display: inline-block;
  vertical-align: top;
  margin: 0px 0px 20px;
  width: 100%;
  background-color: white;
  padding: 20px 30px;
  border-radius: 23px;
  /*box-shadow: 0px 48.91px 112.49px 0px rgba(0, 0, 0, 0.1);*/
}

@media (min-width: 768px) {
  .cn-ses-day {
    width: 45%;
    margin: 10px;
  }
}

@media (min-width: 1200px) {
  .cn-ses-day {
    width: 30%;
    margin: 10px 10px 20px;
  }
}

.cn-ses-item {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.cn-ses-item-img {
  width: 25%;
  border-radius: 20px;
}

.cn-ses-item-img img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.cn-ses-item-info {
  width: 75%;
  padding: 20px;
}

.cn-ses-day-title {
  font-size: 28px;
  font-weight: 500;
}

body .cn-ses-item-info span,
body .cn-ses-item-hora,
body .cn-ses-item-sala {
  font-size: 14px;
  font-family: "Gotham-light" !important;
  font-weight: 500;
}

.cn-ses-item-title {
  font-size: 20px;
  margin-bottom: 5px;
}
.cn-ses-item-purchase {
  margin-top: 10px;
}

.cn-ses-item-purchase a {
  background-color: #f2455e;
  color: white;
  padding: 5px 16px;
  border-radius: 20px;
  transition: background ease-in 0.3s;
}

.cn-ses-item-purchase a:hover {
  background-color: black;
}

.cn-ses-day-listing {
  display: flex;
  gap: 15px;
  flex-flow: column;
  margin-top: 10px;
}

.e-n-accordion div[role="region"] {
  border: 0;
}

.dicinet-genres-carousel-wrapper .slick-dots li button {
  background: none !important;
}

body.page.page-id-151 main#content {
  width: 100% !important;
  max-width: 500px !important;
  padding-bottom: 100px;
  text-align: center;
}
