/* 
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
*/


/* =========================================================
   GENERAL
========================================================= */

form.searchandfilter input[type="submit"] {
  display: none;
}

nav.elementor-nav-menu--main ul li:last-child a.elementor-item {
  padding-right: 0;
}

header {
  background: transparent;
}

.custom_h1_home h1 {
    font-weight: 800 !important;
}
/* =========================================================
   LOGO / HEADER STICKY
========================================================= */

/* Oculta logo oscuro por defecto */
.d-logo {
  display: none;
}

/* Cambia logos al hacer scroll */
.elementor-sticky--effects .d-logo {
  display: inline-block;
}

.elementor-sticky--effects .l-logo {
  display: none;
}

.sticky-header {
  --header-height: 100px;
  --shrink-header-to: 0.6;
  --transition: 0.45s cubic-bezier(0.4, 0, 0.2, 1);

  min-height: 0 !important;
  width: 100%;
  background-color: transparent;
  transition:
    background-color var(--transition),
    backdrop-filter var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.sticky-header.visible {
  width: 100% !important;
}

.sticky-header.elementor-sticky--effects {
  background-color: rgba(0, 0, 0, 1) !important;
}

.sticky-header > .elementor-container {
  min-height: var(--header-height);
  transition: min-height var(--transition);
}

.sticky-header.elementor-sticky--effects > .elementor-container {
  min-height: calc(var(--header-height) * var(--shrink-header-to));
}


/* =========================================================
   REGION SWITCHER - HEADER
========================================================= */

/* El padre debe servir de referencia para el absolute */
.border-change {
  position: relative;
}

/* Contenedor absoluto que envuelve el switcher */
.border-change .elementor-element-374d63d {
  position: absolute !important;
  top: 50% !important;
  right: 16px;
  left: auto !important;
  z-index: 20;
  width: auto !important;
  transform: translateY(-50%) !important;
}

/* Layout del switcher en header */
.border-change .region-switcher {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Links del switcher en header */
.border-change .region-link {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  line-height: 1;
  text-decoration: none;
}

.border-change .region-link:first-child {
  padding-left: 0;
}

.border-change .region-link:last-child {
  padding-right: 0;
}


/* =========================================================
   REGION SWITCHER - GENERAL
========================================================= */

.region-link {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}

.region-link.region-home {
  font-weight: 900;
  opacity: 0.85;
}

.region-link:hover {
  opacity: 0.85;
}

.region-link.active {
  font-weight: bold;
  text-decoration: underline;
  pointer-events: none;
}


/* =========================================================
   REGION SWITCHER - MOBILE MENU
========================================================= */

.region-switcher.region-switcher-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-content: flex-start;
    white-space: nowrap;
    color: #96d5a7 !important;
    gap: 10px;
}

.region-switcher.region-switcher-mobile a {
    color: #ffffff;
}
.region-switcher.region-switcher-mobile .region-link {
  display: inline-block;
  padding: 6px 0 !important;
  border-radius: 999px;
  line-height: 1;
  text-decoration: none;
}

/* Ojo: esto solo funciona si ese div es flex/grid */
.ue_inner_menu-box > div {
  gap: 20px;
}

#uc_fullscreen_navigation_menu_elementor_61a34ff .ue_menu  div  div  ul  li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.4s ease;
}
.region-switcher.region-switcher-mobile .region-link.active {
    font-weight: 700;
    text-decoration: none;
    pointer-events: none;
    text-decoration: underline !important;
    opacity: .5;
}
.region-switcher a:hover {
    color: #4eadff !important;
}


#menu-hamburguer .current-menu-item > a,
#menu-hamburguer .current_page_item > a,
#menu-hamburguer .active > a,
#menu-hamburguer [aria-current="page"] {
  opacity: 0.5;
}

/* Mobile: baja el switcher para que no tape el logo */
@media (max-width: 768px) {
  .region-switcher {
    position: static;
    margin-top: 10px;
    justify-content: center;
    transform: none;
  }
}


/* =========================================================
   SEARCH & FILTER - SAFARI FIXES
========================================================= */

form.searchandfilter,
form.searchandfilter * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

form.searchandfilter ul {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

form.searchandfilter li {
  margin: 0;
  padding: 0;
}

form.searchandfilter input[type="text"],
form.searchandfilter select {
  -webkit-appearance: none;
  appearance: none;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.2;
  outline: none;
}

/* Flecha custom del select */
form.searchandfilter select {
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, #fff 50%),
    linear-gradient(135deg, #fff 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
}

/* Placeholder Safari */
form.searchandfilter input[type="text"]::placeholder,
form.searchandfilter input[type="text"]::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.65);
}

/* Ocultar submit también en Safari */
form.searchandfilter input[type="submit"],
form.searchandfilter button[type="submit"] {
  display: none !important;
}

button.webrick-sf-clear {
  color: #ffffff;
  background: #0f4c81;
}


/* =========================================================
   ELEMENTOR OVERLAYS / BACKGROUND FIXES
========================================================= */

/* Quitar imagen de overlay concreta */
.elementor-280 .elementor-element.elementor-element-1599f7c3::before,
.elementor-280 .elementor-element.elementor-element-1599f7c3 > .elementor-background-video-container::before,
.elementor-280 .elementor-element.elementor-element-1599f7c3 > .e-con-inner > .elementor-background-video-container::before,
.elementor-280 .elementor-element.elementor-element-1599f7c3 > .elementor-background-slideshow::before,
.elementor-280 .elementor-element.elementor-element-1599f7c3 > .e-con-inner > .elementor-background-slideshow::before,
.elementor-280 .elementor-element.elementor-element-1599f7c3 > .elementor-motion-effects-container > .elementor-motion-effects-layer::before,
.elementor-280 .elementor-element.elementor-element-1eb022ea::before,
.elementor-280 .elementor-element.elementor-element-1eb022ea > .elementor-background-video-container::before,
.elementor-280 .elementor-element.elementor-element-1eb022ea > .e-con-inner > .elementor-background-video-container::before,
.elementor-280 .elementor-element.elementor-element-1eb022ea > .elementor-background-slideshow::before,
.elementor-280 .elementor-element.elementor-element-1eb022ea > .e-con-inner > .elementor-background-slideshow::before,
.elementor-280 .elementor-element.elementor-element-1eb022ea > .elementor-motion-effects-container > .elementor-motion-effects-layer::before,
.elementor-280 .elementor-element.elementor-element-59417e71::before,
.elementor-280 .elementor-element.elementor-element-59417e71 > .elementor-background-video-container::before,
.elementor-280 .elementor-element.elementor-element-59417e71 > .e-con-inner > .elementor-background-video-container::before,
.elementor-280 .elementor-element.elementor-element-59417e71 > .elementor-background-slideshow::before,
.elementor-280 .elementor-element.elementor-element-59417e71 > .e-con-inner > .elementor-background-slideshow::before,
.elementor-280 .elementor-element.elementor-element-59417e71 > .elementor-motion-effects-container > .elementor-motion-effects-layer::before,
.elementor-280 .elementor-element.elementor-element-2795ae51::before,
.elementor-280 .elementor-element.elementor-element-2795ae51 > .elementor-background-video-container::before,
.elementor-280 .elementor-element.elementor-element-2795ae51 > .e-con-inner > .elementor-background-video-container::before,
.elementor-280 .elementor-element.elementor-element-2795ae51 > .elementor-background-slideshow::before,
.elementor-280 .elementor-element.elementor-element-2795ae51 > .e-con-inner > .elementor-background-slideshow::before,
.elementor-280 .elementor-element.elementor-element-2795ae51 > .elementor-motion-effects-container > .elementor-motion-effects-layer::before {
  background-image: none !important;
}

/* Desactivar overlay por URL */
.elementor-element::before {
  background-image: none !important;
}

/* Pero solo cuando contenga esa imagen */
.elementor-element[style*="Group-2-2.png"]::before {
  background-image: none !important;
}


/* =========================================================
   POSTS / BLOG / ARCHIVE
========================================================= */

.elementor-post__thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.elementor-posts--thumbnail-top .elementor-post__thumbnail__link {
  margin-bottom: 0 !important;
}

.elementor-post__excerpt,
a.elementor-post__read-more {
  display: none !important;
}

h2.elementor-post__title {
  margin-bottom: 20px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.webrick-results-counter {
  color: #000000;
  font-weight: 900 !important;
}


/* =========================================================
   PRODUCTO / TEMPLATE
========================================================= */

.producto-template-default .elementor-widget-image a {
  width: 100%;
}


/* =========================================================
   LABELS / CARACTERÍSTICAS
========================================================= */

.label-loop-caracteristicas {
  display: inline;
  gap: 2px;
  letter-spacing: 1px;
  flex-direction: row;
}

.label-loop-caracteristicas label {
  display: inline-block;
  margin: 0;
  margin-right: 3px;
  padding: 0;
  font-weight: 400;
  letter-spacing: 1px;
  vertical-align: baseline;
}

.label-loop-caracteristicas span {
  vertical-align: baseline;
}

/* Comas entre términos */
.label-loop-caracteristicas span + span::before {
  content: ", ";
}


/* =========================================================
   LISTAS / OTROS
========================================================= */

ul.webrick {
  padding-left: 10px !important;
}
nav.elementor-nav-menu--main ul li:last-child a.elementor-item {
    padding-right: 0;
    padding-left: 0;
    margin-left: 20px;
}
footer nav.elementor-nav-menu--main ul li:last-child a.elementor-item {
   
    margin-left: 0px;
}
.eael-breadcrumbs span.eael-current {
    color: #0f4c81;
    font-weight: 700;
    text-decoration: underline;
}

