/* Add here all your css styles (customizations) */

body {
  color: black !important;
  font-size: 16px;
}

p {
  color: black !important;
}

/*Verde corporativo*/
.g-bg-main {
  background-color: #7dad00;
}

.g-color-primary {
  color: #7dad00 !important;
}

.g-color-secondary {
  color: #606060 !important;
}

/*Gris*/
.g-bg-primary--hover:hover {
  background-color: #606060;
}

/*top header*/
.u-header__section--dark {
  background-color: #a9a4a4;
}

.languages .list-inline-item a {
  color: rgba(255, 255, 255, 1);
}

.languages .list-inline-item .lang-active {
  color: rgba(255, 255, 255, 0.7);
}

/*Info, horario, email...*/
.logo-zone .container {
  display: flex;
}

.box-info-top {
  text-align: right;
  font-size: 13px;
  line-height: 1.35;
  padding: 6px 0 4px;
}

.wrapper-top-info {
  margin-left: auto;
}

/* Cabecera blanca más compacta */
.siteco-header-light {
  padding-top: 0.65rem !important;
  padding-bottom: 0 !important;
}

.logo-zone .navbar-brand.g-mt-15 {
  margin-top: 0.5rem !important;
}

.siteco-header-contact__hours {
  margin-bottom: 4px;
}

.siteco-contact-schedule p {
  line-height: 1.6;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.siteco-header-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 14px;
  margin-bottom: 6px;
}

.siteco-header-contact span {
  white-space: nowrap;
}

/* Acceso plataforma Siteco (cabecera) */
.siteco-header-access {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: stretch;
  gap: 8px;
  margin-top: 4px;
}

.siteco-header-access__link {
  display: inline-flex;
  align-items: center;
  text-align: left;
  text-decoration: none !important;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  background: #fafafa;
  max-width: 220px;
  transition: border-color 0.2s, background 0.2s;
}

.siteco-header-access__link:hover,
.siteco-header-access__link:focus {
  border-color: #AFC204;
  background: rgba(175, 194, 4, 0.1);
}

.siteco-header-access__link:hover .siteco-header-access__title,
.siteco-header-access__link:focus .siteco-header-access__title {
  text-decoration: underline;
}

.siteco-header-access__link--app {
  border-color: rgba(175, 194, 4, 0.45);
}

.siteco-header-access__icon {
  flex-shrink: 0;
  margin-right: 8px;
  font-size: 1.35rem;
  line-height: 1;
}

.siteco-header-access__link--app .siteco-header-access__icon {
  color: #AFC204;
}

.siteco-header-access__text {
  display: block;
  line-height: 1.2;
  min-width: 0;
}

.siteco-header-access__title {
  display: block;
  font-weight: 700;
  color: #7dad00;
  font-size: 0.88rem;
}

.siteco-header-access__subtitle {
  display: block;
  font-weight: 400;
  color: #333c4e;
  font-size: 0.78rem;
  margin-top: 1px;
}

.break-time {
  display: none;
}

/*menu principal*/
.navbar {
  background-color: #fafafa !important;
  padding: 0px !important;
}

.navbar-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  margin-top: 10px;
  align-items: center;
}

.navbar-nav .nav-item {
  margin-left: 0.2rem !important;
  margin-right: 0.2rem !important;
}

.navbar-nav .nav-item a {
  color: #000 !important;
  padding: 0.78571rem 2rem;
  display: inline-block;
  border-radius: 1.57143rem;
}

.navbar-nav .nav-item a:hover {
  text-decoration: none;
  color: white !important;
  background-color: #777;
}

.navbar-nav .active a {
  color: white !important;
  border-radius: 1.57143rem;
  background-color: #777;
}

.navbar-nav a.distribuidores {
  padding: 0.78571rem 2rem;
  border: #7dad00 solid 1px;
  background: #7dad00;
  color: #fff !important;
  display: flex;
  text-align: center;
}

.navbar-nav a.distribuidores:hover {
  border-color: #777;
}

.navbar-nav .active a.distribuidores {
  background-color: #777 !important;
  border-color: #777;
}

/* Enlace Incidencias — verde corporativo #AFC204 */
.navbar-nav a.nav-sat,
.navbar-nav a.nav-incidencias {
  background-color: #AFC204;
  color: #fff !important;
  font-weight: 600;
}

.navbar-nav a.nav-sat:hover,
.navbar-nav a.nav-incidencias:hover {
  background-color: #8fa003 !important;
  color: #fff !important;
}

.navbar-nav .active a.nav-sat,
.navbar-nav .active a.nav-incidencias {
  background-color: #8fa003 !important;
  color: #fff !important;
}

.item-languages-mobile,
.item-products-mobile {
  display: none;
}

/* Accesos rápidos móvil — oculto en desktop */
.accesos-rapidos {
  display: none;
}

@media (max-width: 768px) {
  .accesos-rapidos {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 8px 0;
    border-top: 1px solid #eee;
    width: 100%;
  }

  .acceso-rapido-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    gap: 4px;
    color: #555 !important;
    text-decoration: none;
  }

  .acceso-rapido-item:hover {
    color: #7dad00 !important;
    text-decoration: none;
  }

  .acceso-rapido-item i {
    font-size: 18px;
    color: #7dad00;
  }
}

/*SLIDER HOME-------------------------------------------*/
.slider-home {
  /*border: red solid 1px;*/
}

.slider-home img {
  position: absolute;
  max-width: 100%;
  height: auto;
}

.slider-home .divimage {
  z-index: 1 !important;
}

.slider-home .container {
  z-index: 2;
}

.js-slide {
  height: 800px;
}

.title-slider {
  font-size: 5rem;
  line-height: 1;
}

.short-slider {
  min-height: 510px;
}

/*SLIDER HOME IMAGE ----------------------------------*/
.slider-home-image {
  /*border: blue solid 4px;*/
  display: none;
}

.slider-home-image img {
  max-width: 100%;
  height: auto;
  display: block;
  width: 100%;
}

.js-home-carousel-mobile .js-slide {
  height: auto;
}

.js-home-carousel .divimage {
  height: 100%;
}

/*BUSCAMOS DISTRIBUIDORES*/
.wrapper-flag {
  margin-top: 180px;
}

.title-distribuidores {
  font-size: 4.28571rem;
}

.wrapper-flag span img {
  max-width: 100%;
  height: auto;
}

.box-home {
  min-height: 478px;
  position: relative;
  display: flex;
  flex-direction: column;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.box-home .u-btn-black {
  align-self: flex-end;
  margin: 0 auto;
}

/*REFERENCIAS - LISTADO*/
.ref-item {
  display: flex;
  align-items: center;
}

/*REFERENCIAS - SINGLE PAGE*/
.masonry-grid-sizer.col-sm-1 {
  display: none;
}

.ref-info {
  display: flex;
  align-items: center;
}

.g-bg-bluegray-gradient-opacity-v2,
.g-bg-bluegray-gradient-opacity-v2--after::after {
  background-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  background-repeat: repeat-x;
}

/*DISTRIBUIDORES*/
/* Degradado para el hero de distribuidores: funde el fondo gris-claro con la imagen */
.distribuidores-home__fade::after {
  background-image: linear-gradient(to right, #f7f7f7 45%, rgba(247, 247, 247, 0) 75%);
  background-repeat: repeat-x;
}

/* Distribuidores — responsive */
@media (max-width: 767px) {
  /* Ocultar imagen de fondo en móvil: texto sobre fondo limpio */
  .distribuidores-home__fade {
    background-image: none !important;
  }
  .distribuidores-home__fade::after {
    display: none;
  }
  .distribuidores-home__fade > div:first-child {
    display: none;
  }
  .distribuidores-home__fade .col-md-6 {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }
}

@media (max-width: 991px) {
  /* Separador entre columnas apiladas en la franja de 3 datos */
  .distribuidores-home .col-lg-4 + .col-lg-4 {
    border-top: 1px solid #eee;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  /* Imagen al 50% de ancho en tablet */
  .distribuidores-home__fade {
    background-size: 50% auto !important;
    background-position: right center !important;
  }
}
.distribuidores-hero-banner {
  width: 100%;
  margin: 0;
  padding: 0 15px;
  line-height: 0;
  text-align: center;
  background-color: #fff;
  box-sizing: border-box;
}

.distribuidores-hero-banner__img {
  display: block;
  width: 100%;
  max-width: 1140px;
  height: auto;
  margin: 0 auto;
}

.sidebar-distribuidores {
  background-color: #fafafa;
}

.download-catalogue {
  white-space: normal;
}

.distribuidores-beneficios__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.distribuidores-beneficios__link:hover,
.distribuidores-beneficios__link:focus {
  color: inherit;
  text-decoration: none;
}

.distribuidores-beneficios__link:hover .distribuidores-beneficios__item,
.distribuidores-beneficios__link:focus .distribuidores-beneficios__item {
  border-color: #72c02c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.distribuidores-beneficios__icon {
  font-size: 2.1rem;
  line-height: 1;
}

.distribuidores-beneficios__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.distribuidores-beneficios__text {
  font-size: 0.9rem;
}

[id^="distribuidores-beneficio-"] {
  scroll-margin-top: 90px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

[id^="distribuidores-beneficio-"].is-flash,
[id^="distribuidores-beneficio-"]:target {
  animation: distribuidores-beneficio-flash 1.4s ease-out;
}

@keyframes distribuidores-beneficio-flash {
  0% {
    background-color: rgba(114, 192, 44, 0.35);
    box-shadow: 0 0 0 0 rgba(114, 192, 44, 0.45);
  }
  35% {
    background-color: rgba(114, 192, 44, 0.22);
    box-shadow: 0 0 0 6px rgba(114, 192, 44, 0);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [id^="distribuidores-beneficio-"].is-flash,
  [id^="distribuidores-beneficio-"]:target {
    animation: none;
    background-color: rgba(114, 192, 44, 0.18);
  }
}

@media (max-width: 991px) {
  .distribuidores-beneficios__icon {
    font-size: 1.85rem;
  }

  .distribuidores-beneficios__title {
    font-size: 0.95rem;
  }

  .distribuidores-beneficios__text {
    font-size: 0.85rem;
  }
}

/*FORMULARIO DE CONTACTO*/
.with-errors {
  color: red;
  margin-top: 5px;
}

/* TABLA */
table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  border: 1px solid #cacaca;
  padding: 8px;
  text-align: left;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* PROIVIDO PULSAR */
.proividoPulsar:hover {
  cursor: not-allowed;
}

/*AJUSTES PARA MOBILE------------------------------------------------------------------------------*/
@media (max-width: 992px) {
  /*LOGO AND MENU*/
  .u-header > .u-header__section--dark {
    display: none !important;
  }

  .siteco-header-light {
    position: relative;
  }

  .logo-zone {
    margin-bottom: 8px;
  }

  .logo-zone .container {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-right: 0;
  }

  .logo-zone .navbar-brand {
    max-width: calc(100% - 3.25rem);
    padding-right: 0;
  }

  .logo-zone .navbar-brand img {
    max-width: 100%;
    height: auto;
  }

  .box-info-top {
    text-align: left;
  }

  .wrapper-top-info {
    margin-left: initial;
    display: block;
    width: 100%;
    margin-top: 8px;
  }

  .siteco-header-contact {
    justify-content: flex-start;
  }

  .siteco-header-access {
    justify-content: flex-start;
    width: 100%;
  }

  .siteco-header-access__link {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
  }

  .js-mega-menu.navbar > .container {
    position: static;
    min-height: 0;
    padding-top: 0;
  }

  .navbar-toggler {
    position: absolute !important;
    top: 0.65rem !important;
    right: 0.75rem !important;
    margin: 0 !important;
    z-index: 25;
  }

  .navbar-nav {
    align-items: flex-start;
  }

  .navbar-nav .nav-item {
    width: 100%;
    border-bottom: black solid 1px;
  }

  .navbar-nav .nav-item a {
    display: block;
    border-radius: 0px;
  }

  .navbar-nav .active a {
    border-radius: 0px;
  }

  .navbar-nav a.distribuidores {
    text-align: left;
    border-radius: 0px;
  }

  .navbar-nav a.nav-sat,
  .navbar-nav a.nav-incidencias {
    border-radius: 0px;
  }

  .break-time {
    display: block;
  }

  .item-products-desktop {
    display: none;
  }

  .item-languages-mobile,
  .item-products-mobile {
    display: block;
  }

  /*SLIDER HOME — la altura la marca la foto; el texto va encima. Desktop no se toca. */
  .slider-home-image {
    display: none;
  }

  .js-home-carousel {
    background: none !important;
  }

  .js-home-carousel.slick-initialized,
  .js-home-carousel .slick-list,
  .js-home-carousel .slick-track,
  .js-home-carousel .slick-slide {
    height: auto !important;
  }

  .js-home-carousel .js-slide {
    height: auto !important;
    min-height: 0 !important;
    position: relative;
    overflow: hidden;
  }

  .js-home-carousel .dzsparallaxer,
  .js-home-carousel .slider-home {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    transform: none !important;
  }

  .js-home-carousel .slider-home img {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block;
  }

  /* Overlay sobre la foto (ES y similares: hay <img>) */
  .js-home-carousel .slider-home .divimage {
    position: absolute !important;
    inset: 0;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: none !important;
    z-index: 1 !important;
  }

  /* EN/FR: la foto va de fondo, sin <img> */
  .js-home-carousel .divimage[style*="background-image"] {
    position: relative !important;
    height: 0 !important;
    padding-bottom: 56.25%;
    min-height: 0 !important;
    background-size: cover !important;
    background-position: center !important;
  }

  .js-home-carousel .slider-home .container,
  .js-home-carousel .dzsparallaxer > .container {
    position: absolute !important;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    height: auto !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  .js-home-carousel .short-slider,
  .js-home-carousel .row {
    min-height: 0 !important;
    width: 100%;
    margin: 0;
  }

  .js-home-carousel .content-slider {
    padding: 0 40px !important;
    margin-bottom: 0 !important;
  }

  .js-home-carousel .content-slider .mb-5 {
    margin-bottom: 0.5rem !important;
  }

  .js-home-carousel .title-slider {
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 0.35rem !important;
  }

  .js-home-carousel .content-slider p {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0 !important;
  }

  .js-home-carousel .download-catalogue {
    display: inline-block;
    font-size: 11px !important;
    line-height: 1.25 !important;
    padding: 8px 14px !important;
    margin: 0 6px 6px 0 !important;
    max-width: calc(100% - 8px);
    white-space: normal;
  }

  .js-home-carousel .js-next,
  .js-home-carousel .js-prev {
    top: 50% !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 14px;
    line-height: 34px;
    z-index: 3;
  }

  .title-slider {
    font-size: 2rem;
  }

  .short-slider {
    min-height: inherit;
  }

  .title-distribuidores {
    font-size: 2.75rem;
  }

  /*BUSCAMOS DISTRIBUIDORES*/
  .distribuidores-more-info {
    display: inline-flex;
    margin-left: 30px;
    margin-top: 20px;
  }

  /*BOX HOME*/
  .box-home {
    border-bottom: black solid 1px;
  }

  /*REFERENCIAS*/
  .inverse-order-mobile {
    flex-direction: column-reverse;
  }

  /*ECONOMIA CIRCULAR*/
  .circular-image-economy {
    text-align: center;
  }

  /*PRODUCTOS*/
  .product-section .justify-content-between {
    flex-direction: column-reverse;
  }

  .product-section .justify-content-between .col-lg-7 {
    margin-top: 30px;
  }

  .product-section .list-unstyled:first-child {
    display: none;
  }
}
/*fin de ajustes para mobile*/

/* Header compacto en móvil (≤768px) */
@media (max-width: 768px) {
  /* 1. Logo: max-height sin width fijo */
  .logo-zone .navbar-brand img {
    max-height: 40px !important;
    width: auto !important;
    height: auto !important;
  }

  /* 2. Fila "Hora en España" y "Plataforma Siteco" */
  .box-info-top {
    font-size: 11px;
    padding: 4px 0;
  }

  .siteco-header-access__icon {
    font-size: 14px;
  }

  /* 3. Accesos rápidos compactos */
  .accesos-rapidos {
    gap: 16px;
    padding: 4px 0;
  }

  .acceso-rapido-item {
    font-size: 9px;
  }

  .acceso-rapido-item i {
    font-size: 14px;
  }

  /* 4. Hamburguesa a la IZQUIERDA y layout de fila del nav */
  .js-mega-menu.navbar > .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .navbar-toggler {
    position: static !important;
    order: -1;
    margin-right: 12px;
    flex-shrink: 0;
  }

  .accesos-rapidos {
    flex: 1;
  }

  .navbar-toggler .hamburger-inner,
  .navbar-toggler .hamburger-inner::before,
  .navbar-toggler .hamburger-inner::after {
    width: 20px;
    height: 2px;
  }

  .navbar-toggler .hamburger-box {
    width: 20px;
    height: 16px;
  }

  /* 5. Ocultar SAT, Distribuidores e Idiomas del menú lateral */
  .nav-item--sat,
  .nav-item--distribuidores,
  .item-languages-mobile {
    display: none !important;
  }

  /* Ajustes de espacio */
  .logo-zone {
    margin-bottom: 4px;
  }

  .wrapper-top-info {
    margin-top: 4px;
  }

  /* Plataforma Siteco: pill compacto en móvil */
  .siteco-header-access {
    display: block;
  }

  .siteco-header-access__link--app {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px !important;
    border-radius: 25px !important;
    border: 1px solid #AFC204 !important;
    background: transparent !important;
    font-size: 10px;
    width: auto !important;
    box-sizing: border-box;
  }

  .siteco-header-access__icon {
    font-size: 12px !important;
    margin-right: 5px;
  }

  .siteco-header-access__title {
    font-size: 10px;
  }

  .siteco-header-access__subtitle {
    display: none;
  }

  /* Selector de idioma en fila del logo */
  .header-lang-mobile {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    align-self: center;
  }

  .header-lang-mobile__item {
    color: #555;
    text-decoration: none;
    text-transform: uppercase;
  }

  .header-lang-mobile__item--active {
    color: #7dad00;
  }

  .header-lang-mobile__item:hover {
    color: #7dad00;
    text-decoration: none;
  }

  .header-lang-mobile__sep {
    color: #ccc;
  }
}

/* header-lang-mobile oculto en desktop */
@media (min-width: 992px) {
  .header-lang-mobile {
    display: none !important;
  }
}

/* Página de error 404 */
.siteco-error404 {
  padding: 48px 20px 88px;
}

.siteco-error404__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5vw, 80px);
  max-width: 1000px;
  margin: 0 auto;
}

.siteco-error404__image {
  display: block;
  width: min(46%, 420px);
  height: auto;
  flex: none;
}

.siteco-error404__content {
  max-width: 420px;
}

.siteco-error404__content h1 {
  margin-bottom: 20px;
  color: #262c30;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 600;
  line-height: 1.15;
}

.siteco-error404__content p {
  margin-bottom: 28px;
  color: #555;
  font-size: 18px;
  line-height: 1.6;
}

.siteco-error404__button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  background: #7dad00;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.siteco-error404__button:hover,
.siteco-error404__button:focus {
  background: #657f00;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 767px) {
  .siteco-error404 {
    padding: 32px 20px 64px;
  }

  .siteco-error404__inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .siteco-error404__image {
    width: min(100%, 320px);
  }
}
