/* 
Theme Name: Màgic Badalona
Theme URI: https://www.magicbadalona.com
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.6.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
:root {
  --margic-color: #D6563B;
  --margic-color-secondary: #e36e56;
  --margic-color-hover-out: #f3b4a8;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
span {
  font-family: 'Titillium Web', sans-serif;
}

.elementor-page a {
  text-decoration: none;
}


/* Pagination Styles */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
  width: 100%;
}

.nav-links .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 50px;
  border: 2px solid #e1e1e1;
  background-color: #fff;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-links .page-numbers:hover {
  border-color: var(--margic-color);
  color: var(--margic-color);
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(214, 86, 59, 0.2);
}

.nav-links .current.page-numbers {
  background-color: var(--margic-color);
  border-color: var(--margic-color);
  color: #fff;
  pointer-events: none;
}

.nav-links .dots.page-numbers {
  border: none;
  background: transparent;
  color: #999;
  min-width: auto;
  padding: 0 5px;
  cursor: default;
}

.nav-links .dots.page-numbers:hover {
  transform: none;
  box-shadow: none;
}

.nav-links .prev.page-numbers,
.nav-links .next.page-numbers {
  padding: 0 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.e-n-accordion {
  background-color: #ffffff;
}

.mapplic-container {
  background: white;
  border-radius: 15px;
}

.events-section .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #d1d1d1;
  opacity: 0.7;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  margin: 0 6px !important;
}

.events-section .swiper-pagination .swiper-pagination-bullet-active {
  width: 30px;
  background-color: var(--margic-color);
  opacity: 1;
}

body {
  background-position: 100vh center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

#wpadminbar {
  z-index: 1044 !important;
}

.sticky-top.header-sticky {
  top: 90px;
}

.page-template-default header h1 {
  text-align: center;
}

a {
  background-color: transparent;
  color: #adadad;
  text-decoration: none;
}

a:hover {
  color: #898888;
}

/* Bloque estado-local */
.estado-local {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.estado-local .label {
  font-weight: bold;
}

.estado-local .horario {
  font-weight: 200;
  margin-left: 5px;
}

/* La bolita (dot) */
.dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.03) inset;
  flex: 0 0 auto;
}

/* Verde = abierto, Rojo = cerrado */
.dot--open {
  background-color: #28a745;
  /* verde */
  box-shadow: 0 0 6px rgba(40, 167, 69, 0.35);
}

.dot--closed {
  background-color: #dc3545;
  /* rojo */
  box-shadow: 0 0 6px rgba(220, 53, 69, 0.35);
}


/* Clase para ocultar texto visualmente pero dejarlo accesible */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.line-orange {
  position: relative;
  display: inline-block;
  /* se ajusta al ancho del contenido */
  padding-bottom: 10px !important;
}

.line-orange::after {
  content: "";
  display: block;
  width: 50px;
  /* ancho de la línea, ajusta a tu gusto */
  height: 4px;
  /* grosor de la línea */
  background-color: var(--margic-color);
  /* color naranja/rojo */
  margin-top: 8px;
  /* separación entre el texto y la línea */
}

.icon-size-btn {
  width: 15px;
  height: 15px;
}

.btn-magic {
  border: 2px solid var(--margic-color);
  color: white;
  backdrop-filter: blur(9px);
  background: var(--margic-color);
}

.btn-magic:hover,
.btn-magic:focus {
  border: 2px solid var(--margic-color);
  color: white;
  backdrop-filter: blur(9px);
  background: var(--margic-color-secondary);
}

.btn-outline-magic {
  border: 2px solid var(--margic-color);
  color: black;
}

.btn-outline-magic:hover,
.btn-outline-magic:focus {
  border: 2px solid var(--margic-color) !important;
  background-color: var(--margic-color-hover-out);
  color: black;
}

.blog .wp-post-image {
  max-height: 174px;
}

.archive .wp-post-image {
  max-height: 174px;
}

#cmplz-document {
  max-width: auto !important;
}

.top-banner {
  width: 100%;
  padding: 10px;
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
}

.top-banner-wrapper {
  width: 100%;
  overflow: hidden;
}

.top-banner-marquee {
  display: flex;
  gap: 50px;
  white-space: nowrap;
  justify-content: center;
  /* Sin animación en desktop */
}

.top-banner-text {
  display: inline-block;
  padding: 0 25px;
}

/* Ocultar textos duplicados en desktop */
.top-banner-text:nth-child(n+2) {
  display: none;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-25%);
  }
}

/* Pausar animación al hover */
.top-banner:hover .top-banner-marquee {
  animation-play-state: paused;
}


.top-banner a {
  align-items: center;
  justify-content: center;
  text-align: center;
  display: flex;
  gap: 10px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 93.75rem;
  }
}

@media (max-width: 782px) {
  body {
    background-position: 20vh center;
  }

  .top-banner.sticky-top {
    position: relative;
    font-size: 14px;
  }

  .arrow-banner-top {
    height: 30px;
    width: 30px;
  }

  /* Activar marquesina en mobile */
  .top-banner-marquee {
    animation: marquee 8s linear infinite;
    justify-content: flex-start;
  }

  /* Mostrar todos los textos duplicados en mobile */
  .top-banner-text:nth-child(n+2) {
    display: inline-block;
  }

  .top-banner-text {
    padding: 0 15px;
  }




}