/* Ajustes propios de la réplica (sobre theme.9.css de YOOtheme/UIkit).
   Se mantiene al mínimo; el diseño procede del CSS compilado original. */

/* El vídeo de fondo del hero debe cubrir su contenedor igual que en el original. */
.uk-cover-container > video[uk-cover],
.uk-cover-container > video.uk-cover {
  max-width: none;
}

/* =========================================================================
   Menú móvil (offcanvas) — rediseño moderno con desplegable de Servicios
   ========================================================================= */
#tm-mobile .uk-modal-dialog {
  background: #fff;
}
.ecotol-mnav {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 88px 28px 48px;
  text-align: left;
}
.ecotol-mnav__logo {
  display: inline-block;
  margin-bottom: 40px;
}
.ecotol-mnav__logo img {
  width: 150px;
  height: auto;
}
.ecotol-mnav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ecotol-mnav__list > li {
  border-top: 1px solid #ececec;
}
.ecotol-mnav__list > li:last-child {
  border-bottom: 1px solid #ececec;
}
/* Enlaces de primer nivel: texto grande */
.ecotol-mnav__list > li > a,
.ecotol-mnav__row > a {
  display: block;
  padding: 18px 0;
  font-family: 'Heebo', 'Lato', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}
.ecotol-mnav__list > li > a:hover,
.ecotol-mnav__row > a:hover,
.ecotol-mnav__list > li.is-active > a,
.ecotol-mnav__list > li.is-active > .ecotol-mnav__row > a {
  color: #3e6da6;
}
/* Fila con desplegable: enlace + botón chevron */
.ecotol-mnav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ecotol-mnav__row > a {
  flex: 1 1 auto;
}
.ecotol-mnav__toggle {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 0;
  background: #f2f5f9;
  border: none;
  border-radius: 999px;
  color: #3e6da6;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.25s ease;
}
.ecotol-mnav__toggle:hover {
  background: #e4ecf5;
}
.ecotol-mnav__has-sub.is-open .ecotol-mnav__toggle {
  transform: rotate(180deg);
}
/* Submenú desplegable con animación de altura */
.ecotol-mnav__sub {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
}
.ecotol-mnav__has-sub.is-open .ecotol-mnav__sub {
  max-height: 720px;
  opacity: 1;
  padding-bottom: 12px;
}
.ecotol-mnav__sub > li > a {
  display: block;
  padding: 11px 0 11px 4px;
  font-family: 'Lato', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  color: #555;
  text-decoration: none;
  border-left: 3px solid transparent;
  padding-left: 16px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.ecotol-mnav__sub > li > a:hover,
.ecotol-mnav__sub > li.is-active > a {
  color: #3e6da6;
  border-left-color: #3e6da6;
}
/* Botón de cierre un poco más grande y visible */
#tm-mobile .uk-modal-close-full {
  padding: 24px;
  color: #1a1a1a;
}
