/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
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.0.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 */
html {
    scroll-behavior: smooth !important;
    overflow-x: hidden !important;
}

body {
    overflow-x: hidden !important;
}

/* Mejorar el scroll en navegadores Webkit (Chrome, Safari) */
* {

    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Scroll más suave en Firefox */
html {
    scroll-behavior: smooth !important;
    scrollbar-width: thin !important;
}
.col-bullet {
    transition: width 0.3s ease, max-width 0.3s ease, max-height 0.3s ease;
}

.bullet-detail {
    transition: margin-top 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}
.sticky-header-newsup section {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
.sticky-header-newsup .elementor-widget-theme-site-logo img {
    width: 150px !important;
    transition: width 0.5s ease;    
}
/*.sticky-header-newsup .elementor-sticky{
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}*/
@media screen and (min-width: 768px) {

    #form_footer #form-field-email {
        border-radius: 60px 0px 0px 50px !important;
    }
    #form_footer .elementor-field-type-submit {
        margin-left: -20px !important;
    }
    #form_footer .elementor-button {
        padding: 10px 55px !important;
        padding-bottom: 10px !important;
        border: 1px solid #FFF !important; 
    }
}
@media screen and (max-width: 768px) {

    #form_footer .elementor-button {
        padding: 10px 55px !important;
        padding-bottom: 10px !important;
        border: 1px solid #FFF !important; 
    }
}

/* Estilos para el menú con efecto de subrayado animado */
.menu-newsup li {
    padding-left: 33px !important;
}
.menu-newsup li a {
    position: relative;
    text-decoration: none;
    display: inline-block;
    padding-bottom: 12px;
    transition: color 0.3s ease;
}

/*.menu-newsup li:first-child a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg width='220' height='25' viewBox='0 0 220 25' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 10 L 180 10 L 198 25 L 198 10 L 220 10' stroke='%231C1AF4' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transition: width 0.2s ease;
    background-color: transparent !important;
}*/
/*.menu-newsup li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg width='150' height='25' viewBox='0 0 150 25' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 10 L 108 10 L 128 25 L 128 10 L 150 10' stroke='%231C1AF4' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transition: width 0.2s ease;
    background-color: transparent !important;
}*/
.menu-newsup li a:hover::after {
    width: 100%;
}

.menu-newsup li a:hover {
    color: #1C1AF4;
}
/*.section_header .current_page_item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100% !important;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg width='150' height='25' viewBox='0 0 150 25' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 10 L 108 10 L 128 25 L 128 10 L 150 10' stroke='%231C1AF4' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-color: transparent !important;
}*/
.section_header .elementor-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 18px;
    width: 100%;
    background-color: transparent !important;
    background-repeat: no-repeat, repeat-x;
    background-position: right bottom, left bottom;
    background-size: 75px 100%, auto 100%;
    /*background-image:
        url("data:image/svg+xml,%3Csvg width='25' height='25' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0 L20 0 L20 15 L25 25 L25 15 L25 0' stroke='%231C1AF4' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E)"),
        url("data:image/svg+xml,%3Csvg width='5' height='25' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 L5 10' stroke='%231C1AF4' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E)");*/
    background-image: url("data:image/svg+xml,%3Csvg width='150' height='25' viewBox='0 0 150 25' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 10 L 108 10 L 128 25 L 128 10 L 150 10' stroke='%231C1AF4' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    
}
.long_word .elementor-item::after {
    background-size: 110px 85%, auto 100% !important;
}
.section_header .current_page_item .elementor-item::after {
    opacity: 1;
}
.section_header .elementor-item::after {
    opacity: 0;
    transition: opacity .3s ease;
}
.section_header .elementor-item:hover::after {
    opacity: 1;
}

.select-wrapper {
  position: relative;
  display: inline-block;
}

.select-wrapper select {
  padding-right: 2rem; /* deixa lloc per la fletxa */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 1.8rem;
  height: 1.4rem;
  pointer-events: none;
  transform: translateY(-50%);
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat center/contain;
}
.menu-mobile li::after {
    content: '';
    position: absolute;
    right: 10px;
    width: 20px;
    height: 20px;
    top: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    transition: all 0.3s ease;
    background-image: url('/wp-content/uploads/2025/10/flecha_derecha.svg');
}


/******** CODI PER FER LES TAULES DE PREUS COM A CARRUSEL ********************************/

@media (max-width: 768px) {
    /* Resetear estilos de Elementor en la sección */
    .section_allinone {
        overflow: visible !important;
    }
    
    /* Contenedor principal con scroll horizontal */
    .section_allinone .elementor-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        width: 100%;
        gap: 0 !important;
        padding: 0 !important;
    }
    
    /* Ocultar scrollbar en Chrome/Safari */
    .section_allinone .elementor-container::-webkit-scrollbar {
        display: none;
    }
    
    /* Cada columna ocupa el 100% del ancho del viewport */
    .section_allinone .elementor-column {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        display: block !important;
        float: none !important;
        margin: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Asegurar que el widget-wrap ocupe todo el espacio */
    .section_allinone .elementor-widget-wrap {
        width: 100% !important;
    }
    
    /* Controles de navegación */
    .carousel-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        position: relative;
    }
    
    .carousel-nav {
        background: #222;
        color: #07FF8F;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        /*transition: all 0.3s ease;*/
    }
    
    .carousel-nav:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }
    
    .carousel-nav:not(:disabled):active {
        transform: scale(0.95);
    }
    
    /* Indicadores (dots) */
    .carousel-dots {
        display: flex;
        gap: 8px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #2D3134;
        border: none;
        cursor: pointer;
        padding: 0;
        transition: all 0.3s ease;
    }
    
    .carousel-dot.active {
        background: #1C1AF4;                
    }
    
    /* Contador de slides */
    .carousel-counter {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        color: #666;
    }
}

/* En desktop, ocultar los controles del carrusel */
@media (min-width: 769px) {
    .carousel-controls {
        display: none;
    }
}