/* ===== Global layering scale ===== */
:root {
  --z-rodes-header: 1000;
  --z-rodes-overlay: 9998;
  --z-rodes-offcanvas: 9999;
}

/* ===== Off-canvas base (sin Slidebars) ===== */
.rodes-offcanvas-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 999998;
}

.rodes-offcanvas{
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(92vw, 420px);
  background: #ffffff;
  transform: translateZ(0) translateX(-105%);
  transition: transform .28s ease;
  z-index: 999999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.rodes-offcanvas--right{
  left: auto;
  right: 0;
  transform: translateZ(0) translateX(105%);
}

.rodes-offcanvas.is-open{ transform: translateZ(0) translateX(0); }
.rodes-offcanvas-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

.rodes-offcanvas__content{
  height: 100%;
  overflow: auto;
}

/* Close buttons */
.rodes-offcanvas [data-rodes-close]{ cursor:pointer; }


/*****************************  MENÚ PRINCIPAL RODES **************************************/


/* ========================================
   CONTENEDOR PRINCIPAL 
======================================== */

/* ===== HEADER STICKY ===== */

#menu-rodes-container {
  position: sticky;
  top: 0;
  z-index: var(--z-rodes-header);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
}

.nav-container {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 95%;
  align-self: center;
}

/* ========================================
   FILA SUPERIOR
======================================== */
.fila-uno {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  padding-top: 0.5rem;
  margin: 0;
}

.mover-derecha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-container {
  flex: 1;
  text-align: center;
}

.logo-grande {
  height: 40px;
  padding: 0;
  margin: 0;
  padding-top: 0.3rem;
}

.logo-pequenyo {
  display: none;
  height: 35px;
  padding-top: 0.3rem;
}


/* ========================================
  MENÚ HAMBURGUESA
======================================== */
.hamburguesa {
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: #000!important;
}

/* ========================================
   ENLACES DE NAVEGACIÓN
======================================== */
.et-l--header ul {
  list-style: none;
  padding: 0 0 10px 1em;
}

.nav-enlaces {
  display: flex;
  justify-content: space-around;
  padding-bottom: 12px;
  padding-top: 12px;
  margin: 0;
  font-family: Rubik, sans-serif;
  list-style: none!important;
}

.nav-enlaces .btn {
  position: relative;
  display: inline-block;
  font-size: 22px;
  color: #333!important;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 6px 0;
}

.nav-enlaces .btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: #a3d600;
  transition: width 0.3s ease;
}

.nav-enlaces .btn:hover::after {
  width: 100%;
}

.nav-enlaces .btn:hover {
  color: #8BD100;
}

/* Estado activo (subrayado completo) */
.nav-enlaces a.active::after {
  width: 60%;
}

.nav-enlaces a.active {
  color: #8BD100;
}

.nav-enlaces .btn:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease, color 0.3s ease;
}


/* ========================================
   FORMULARIO DE BÚSQUEDA
======================================== */
.search-form {
  display: flex;
  align-items: center;
  gap: 10px;

}

.search-field {
  padding: 7px 12px;
  border-radius: 20px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
  outline: none;
  background-color: #ffffff;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.search-field:hover {
  border-color: #a3d600;
  background-color: #f8fff0;
  box-shadow: 0 0 6px rgba(163, 214, 0, 0.3);
}

.search-field:focus {
  border-color: #8bd100;
  background-color: #f4ffdf;
  box-shadow: 0 0 8px rgba(163, 214, 0, 0.5);
  caret-color: #8bd100;
}

.search-field::placeholder {
  color: #999;
  transition: color 0.3s ease;
}

.search-field:focus::placeholder {
  color: #ccc;
}

.search-submit {
  padding: 8px 15px;
  background-color: #a3d600;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.search-submit:hover {
  background-color: #8dbf00;
  box-shadow: 0 4px 12px rgba(163, 214, 0, 0.4);
  transform: translateY(-1px);
}

.search-submit:active {
  background-color: #7da900;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(163, 214, 0, 0.3);
}

  .search-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
  }

  /* ========================================
     ESTADO SCROLLED (cuando haces scroll)
  ======================================== */

  .scrolled .nav-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.8rem;
    padding-right: 3%;
    padding-bottom: 7px!important;
  }

  .scrolled .fila-uno {
    display: contents;
  }

  .scrolled .logo-grande {
    display: none;
  }

  .scrolled .logo-pequenyo {
    display: inline-block;
    padding-right: 5%;
  }

  .scrolled .nav-enlaces {
    flex: 1;
    justify-content: center;
    border-top: none;
    padding: 0;
    gap: 1rem;
    list-style: none;
  }

  .scrolled .nav-enlaces a {
    position: relative;
    text-decoration: none;
  }

  .scrolled .nav-enlaces a:hover {
    color: #7cc043;
  }

  .scrolled .search-form {
    display: none;
  }

  .scrolled .search-toggle {
    display: inline-block;
    cursor: pointer;
    padding-right: 2%;
  }

  .scrolled .search-toggle svg {
    display: flex;
    align-items: center;
    margin-right: 10px;
  }

  /* ========================================
     MODO ESCRITORIO (>=1024px)
  ======================================== */
  @media (min-width: 1045px) {
    .fila-uno {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
      width: 100%;
      flex-wrap: wrap;
    }

    .mover-derecha {
      display: flex;
      align-items: center;
      gap: 1rem;

    }

    .nav-enlaces {
      display: flex;
      gap: 2rem;
      padding: 0;
      margin: 0 auto;
      margin-top: -35px;
      list-style: none;
      border: none;
    }

    .nav-enlaces a {
      position: relative;
      text-decoration: none;
    }

    .search-toggle {
      display: none !important;
    }

    .logo-grande {
      display: flex;
      align-content: start;
    }

    .logo-pequenyo {
      display: none !important;
    }
  }

  /* ========================================
     MODO MÓVIL (<=767px)
  ======================================== */
  @media (max-width: 767px) {
    .nav-enlaces {
      padding-top: 5px;
      padding-bottom: 8px;
      list-style: none;
    }

    .nav-enlaces a {
      position: relative;
      font-size: 16px !important;
    }

    .search-form {
      display: none;
    }

    .search-toggle {
      display: inline-block;
    }

    .no-visible {
      display: none;
    }
  }


 /* ========================================
     MENU LATERAL RODES
  ======================================== */


  #ocs-desplegable-principal .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 9000;
}

#ocs-desplegable-principal .mega-menu-principal {
    padding: 10px 12px;
    font-family: Rubik, sans-serif;
    box-sizing: border-box;
    background: #fff;
}

#ocs-desplegable-principal .menu-panels-viewport {
    position: relative;
    overflow: hidden;
}

#ocs-desplegable-principal .menu-panels-track {
    display: flex;
    width: 200%;
    transform: translateX(0);
    transition: transform 300ms cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}

#ocs-desplegable-principal .menu-panels-track.is-submenu-active {
    transform: translateX(-50%);
}

#ocs-desplegable-principal .menu-panel {
    width: 50%;
    flex: 0 0 50%;
    min-width: 0;
}

#ocs-desplegable-principal .menu-panel--root {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

#ocs-desplegable-principal .menu-panel--child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 0;
}

#ocs-desplegable-principal .menu-columna {
    min-width: 0;
    margin-top: -5px!important;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

#ocs-desplegable-principal .menu-panel--root .menu-columna {
    margin-top: 18px;
}

#ocs-desplegable-principal .menu-panel--root .menu-columna:first-child {
    margin-top: 0;
}

#ocs-desplegable-principal .menu-top-block {
    margin-bottom: 10px;
}

#ocs-desplegable-principal .menu-columna--top-static {
    margin-top: 0 !important;
}

/*#ocs-desplegable-principal .menu-columna--top-static .menu-top-cta {*/
  

#ocs-desplegable-principal .menu-columna--top-static .menu-top-cta .menu-text {
    background: linear-gradient(90deg, #4f8f00, #8bd100);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Rubik', sans-serif;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-size: 22px;
    font-weight: 600;
    font-family: Rubik, sans-serif;
    padding: 14px 0;
    border-bottom: 0;
    transition: opacity 160ms ease, transform 160ms ease;
    max-width: 380px;
}


#ocs-desplegable-principal .menu-columna--top-static .menu-top-cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    background: transparent;
}

#ocs-desplegable-principal .rodes-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, color 0.2s ease;
}

#ocs-desplegable-principal .rodes-baja .rodes-arrow {
    width: 18px;
    height: 18px;
}

#ocs-desplegable-principal .menu-columna > li {
    margin: 0;
}

 #ocs-desplegable-principal .menu-columna .menu-seccion-title {
    color: #333;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-family: Rubik, sans-serif;
    border: 0;
    border-radius: 0;
    padding: 14px 0;
    margin: 18px 0 8px;
    text-align: left;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#ocs-desplegable-principal .menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
    padding: 14px 0;
    margin: 0;
    text-decoration: none;
    font-family: Rubik, sans-serif;
    color: #333333 !important;
    font-size: 15px;
    /*font-weight: 500;*/
    letter-spacing: 0.2px;
    line-height: 1.3;
    border-radius: 0;
    transition: all 160ms ease;
}

#ocs-desplegable-principal .menu-columna--cta {
    margin-top: 0 !important;
}

#ocs-desplegable-principal .menu-columna--cta > li {
    margin: 0;
}

#ocs-desplegable-principal .menu-columna--cta .menu-cta-baja {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 350px;
    margin: 8px auto 8px auto;
    padding: 14px 0;
    font-family: 'Rubik', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: none;
    color: #8bd100 !important;
    background: #ffffff;
    border: 0;
    border-radius: 0;
    border-bottom: 0;
    box-sizing: border-box;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#ocs-desplegable-principal .menu-columna--cta .menu-cta-baja > span {
    background: linear-gradient(90deg, #6ea900 0%, #8bd100 60%, #a3d600 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#ocs-desplegable-principal .menu-columna--cta .menu-cta-baja:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    background: transparent;
}

#ocs-desplegable-principal .menu-columna--contact {
    margin-top: 0;
}

#ocs-desplegable-principal .menu-section-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 0;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 600;
    font-family: Rubik, sans-serif;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #333333!important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#ocs-desplegable-principal .menu-section-link:hover {
    color: var(--rodes-green, #8BD100) !important;
    background: transparent;
}

#ocs-desplegable-principal .menu-columna--contact .menu-section-link {
    margin-top: 0;
    padding-top: 12px;
    border-top: 0;
}

#ocs-desplegable-principal .menu-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16px;
    font-weight: inherit;
    line-height: 1.3;

}

#ocs-desplegable-principal .submenu-toggle-icon,
#ocs-desplegable-principal .menu-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

#ocs-desplegable-principal .menu-link:hover {
    background: #f3f9e7;
    color: #6ea900 !important;
}

#ocs-desplegable-principal .menu-link:hover .rodes-arrow,
#ocs-desplegable-principal .menu-section-link:hover .rodes-arrow {
    color: #8bd100;
    transform: translateX(2px);
}

#ocs-desplegable-principal .menu-columna > li:nth-child(2) > .menu-link {
    margin-top: 10px;
}

#ocs-desplegable-principal .menu-columna > li:last-child > .menu-link {
    border-bottom: 0;
}

#ocs-desplegable-principal .no-border-certificado > a {
    border-bottom: none !important;
}

#ocs-desplegable-principal .texto-destacado {
    font-weight: 600;
}

#ocs-desplegable-principal nav ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#ocs-desplegable-principal .logo-rodes img {
    max-width: 160px;
    height: auto;
    transition: transform 0.25s ease;
}

#ocs-desplegable-principal .logo-rodes img:hover {
    transform: scale(1.03);
}

#ocs-desplegable-principal .cerrar-menu {
    background: none;
    border: none;
    color: #333333;
    font-size: 34px!important;
    cursor: pointer;
    line-height: 1;
    transition: color 0.25s ease, transform 0.25s ease;
}

#ocs-desplegable-principal .cerrar-menu:hover {
    /*color: #6EA900;*/
    transform: rotate(90deg) scale(1.03);
}

#ocs-desplegable-principal .submenu {
    display: none;
    margin-top: 0;
    padding-left: 0;
}

#ocs-desplegable-principal .has-submenu.open .submenu {
    display: block;
}

#ocs-desplegable-principal .submenu-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: #2b3127;
    font-family: Rubik, sans-serif;
    font-size: 14px!important;
    font-weight: 500;
    cursor: pointer;
    padding: 12px 6px;
    margin-bottom: 4px;
    transition: all 160ms ease;
}

#ocs-desplegable-principal .submenu-back:hover {
    color: #6ea900;
}

#ocs-desplegable-principal .submenu-back__icon {
    width: 15px!important;
    height: 15px!important;
    display: inline-flex;
}

#ocs-desplegable-principal .submenu-back__icon .rodes-arrow {
    width: 15px;
    height: 15px;
    transform: rotate(180deg);
}

#ocs-desplegable-principal .submenu-panel-title {
    color: #333333;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.03em;
    font-family: Rubik, sans-serif;
    border: 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    padding: 0 0 10px;
    margin: 18px 0 0;
    text-align: left;
    text-transform: uppercase;
}

#ocs-desplegable-principal .submenu-panel-body .submenu {
    display: none;
}

#ocs-desplegable-principal .submenu-panel-body > .submenu {
    display: block;
    margin-top: 0;
    padding-left: 0;
    margin-bottom: 0;
}

#ocs-desplegable-principal .submenu-panel-body .submenu li {
    margin: 0;
}

#ocs-desplegable-principal .submenu-panel-body .submenu a {
    border-radius: 0;
}

#ocs-desplegable-principal .submenu-panel-body .submenu > li:first-child .menu-link {
    margin-top: 10px;
}

#ocs-desplegable-principal .submenu-panel-body .submenu > li:last-child .menu-link {
    border-bottom: 0;
}

#ocs-desplegable-principal[data-off-canvas] {
    background: #ffffff;
}

.widgettitle {
    display: none;
}

@media screen and (max-width: 768px) {

    #ocs-desplegable-principal .mega-menu-principal { padding: 14px 10px; }

    #ocs-desplegable-principal .menu-panel--root {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    #ocs-desplegable-principal .menu-columna .menu-seccion-title {
        text-align: left;
        font-size: 16px;
        padding-left: 0;
    }

    #ocs-desplegable-principal .menu-link {
        font-size: 15px;
        padding: 14px 0;
    }

    #ocs-desplegable-principal .menu-columna--cta .menu-cta-baja {
        width: 100%;
        max-width: 350px;
    }

    #ocs-desplegable-principal .menu-header {
        padding: 10px 18px;
        z-index: 9000;
    }

    #ocs-desplegable-principal .logo-rodes img {
        max-width: 130px;
    }

    #ocs-desplegable-principal .cerrar-menu {
        font-size: 26px;
    }

    #ocs-desplegable-principal .submenu-panel-title {
        text-align: left;
        font-size: 16px;
        padding-left: 0;
    }

}

/* ===== Buscador panel styles (scoped) ===== */
#ocs-buscar .search-widget {
    margin-top: 13%;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}
#ocs-buscar .input-group {
    position: relative;
    display: flex;
    align-items: center;
    padding-bottom: 6px;
}
#ocs-buscar .form-search-control {
    flex: 1;
    border: none;
    outline: none;
    background-color: transparent;
    font-size: 18px;
    padding: 10px 5px;
    color: #333;
    background-color: #fafafa ;
    z-index: 2;
}
#ocs-buscar .search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: #333;
    font-size: 18px;
    transition: transform 0.2s ease;
    z-index: 2;
}
#ocs-buscar .search-btn:active {
    transform: scale(1.1);
}
#ocs-buscar .search-btn i {
    pointer-events: none;
}
#ocs-buscar .underline {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ccc;
    transition: background-color 0.3s ease;
    z-index: 1;
}
#ocs-buscar .input-group:focus-within .underline {
    background-color: #a3d600;
}
/* Boton cerrar */
#ocs-buscar .close-btn {
    position: absolute;
    top: 20px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 999;
}
#ocs-buscar .close-btn:hover {
    color:  #a3d600;
    transform: scale(1.1);
}

/* Asegurar que el contenedor tenga posición relativa para que el botón se posicione correctamente */
#ocs-buscar .search-widget {
    position: relative;
}


/* === Responsive === */
@media (max-width: 480px) {
#ocs-buscar .form-search-control {
        font-size: 16px;
    }
#ocs-buscar .search-btn {
        font-size: 16px;
        padding: 8px;
    }
#ocs-buscar .search-widget {
        padding: 10px 15px;
    }
}
#ocs-buscar #ocs-buscar[data-off-canvas] {
	background: #ffffff;
}
#ocs-buscar input[type=text].form-search-control {
		border: none;
		background: transparent;
	}
