/* v362: cabecero móvil estable desde el primer pintado y líneas activas al ancho del texto. */

/* Durante un cambio de idioma se espera a recuperar la posición antes de mostrar la página. */
html.ortek-lang-restoring {
  scroll-behavior:auto!important;
}
html.ortek-lang-restoring body > :not(.site-header) {
  opacity:0!important;
}

@media (max-width:900px) and (orientation:portrait), (min-width:901px) and (max-width:1180px) and (orientation:portrait) {
  html body:not(#ortek-never) .site-header .wrap.nav,
  html body:not(#ortek-never) .topbar .wrap.nav {
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    max-width:100%!important;
    min-height:58px!important;
    padding:7px 8px!important;
    gap:5px!important;
    overflow:visible!important;
  }
  html body:not(#ortek-never) .site-header .logo,
  html body:not(#ortek-never) .site-header .logo-word {
    order:-1!important;
    display:inline-flex!important;
    flex:0 0 68px!important;
    width:68px!important;
    min-width:68px!important;
    margin:0!important;
  }
  html body:not(#ortek-never) .site-header .logo img,
  html body:not(#ortek-never) .site-header .logo-word img {
    display:block!important;
    width:68px!important;
    max-width:68px!important;
    height:42px!important;
    object-fit:contain!important;
  }
  html body:not(#ortek-never) .site-header .header-contact-links {
    order:0!important;
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    overflow:visible!important;
    white-space:nowrap!important;
  }
  html body:not(#ortek-never) .site-header .header-whatsapp {
    order:1!important;
    display:inline-flex!important;
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    padding:0!important;
    align-items:center!important;
    justify-content:center!important;
  }
  html body:not(#ortek-never) .site-header .header-whatsapp .whatsapp-badge {
    display:inline-flex!important;
    width:30px!important;
    height:30px!important;
    align-items:center!important;
    justify-content:center!important;
  }
  html body:not(#ortek-never) .site-header .header-whatsapp img.whatsapp-img {
    display:block!important;
    width:26px!important;
    height:26px!important;
  }
  html body:not(#ortek-never) .site-header .header-whatsapp .contact-inline-text {
    display:none!important;
  }
  html body:not(#ortek-never) .site-header .header-phone-number-mobile {
    order:2!important;
    display:inline-flex!important;
    align-items:center!important;
    color:#fff!important;
    font-size:.62rem!important;
    line-height:1!important;
    white-space:nowrap!important;
    margin:0 1px!important;
  }
  html body:not(#ortek-never) .site-header .header-email-group {
    order:3!important;
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    width:36px!important;
    min-width:36px!important;
    overflow:visible!important;
  }
  html body:not(#ortek-never) .site-header .header-email-button {
    display:inline-flex!important;
    width:36px!important;
    min-width:36px!important;
    height:36px!important;
    padding:0!important;
    align-items:center!important;
    justify-content:center!important;
  }
  html body:not(#ortek-never) .site-header .header-email-button .contact-email-icon {
    display:inline-flex!important;
    font-size:1.48rem!important;
    line-height:1!important;
  }
  html body:not(#ortek-never) .site-header .header-email-button .contact-label,
  html body:not(#ortek-never) .site-header .header-email-copy {
    display:none!important;
  }
  html body:not(#ortek-never) .site-header .header-phone {
    order:4!important;
    display:inline-flex!important;
    visibility:visible!important;
    opacity:.82!important;
    align-items:center!important;
    width:auto!important;
    height:36px!important;
    min-width:0!important;
    padding:0!important;
    gap:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  html body:not(#ortek-never) .site-header .header-phone .phone-badge,
  html body:not(#ortek-never) .site-header .header-phone .contact-phone-icon {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:25px!important;
    height:25px!important;
    min-width:25px!important;
  }
  html body:not(#ortek-never) .site-header .header-phone .phone-badge {
    background:transparent!important;
    border:1px solid #f2c411!important;
    border-radius:999px!important;
    box-shadow:none!important;
    color:#f2c411!important;
  }
  html body:not(#ortek-never) .site-header .header-phone .contact-inline-text {
    display:none!important;
  }
  html body:not(#ortek-never) .site-header .lang-dropdown-only {
    order:1!important;
    flex:0 0 auto!important;
    position:relative!important;
    transform:none!important;
    margin:0!important;
  }
  html body:not(#ortek-never) .site-header .lang-current {
    width:38px!important;
    min-width:38px!important;
    height:32px!important;
    padding:0 4px!important;
    font-size:.68rem!important;
  }
  html body:not(#ortek-never) .site-header .theme-toggle,
  html body:not(#ortek-never) .site-header .mobile-menu-toggle {
    display:inline-flex!important;
    flex:0 0 32px!important;
    width:32px!important;
    min-width:32px!important;
    height:32px!important;
    margin:0!important;
    padding:0!important;
    align-items:center!important;
    justify-content:center!important;
    position:static!important;
    transform:none!important;
  }
  html body:not(#ortek-never) .site-header .theme-toggle { order:2!important; }
  html body:not(#ortek-never) .site-header .mobile-menu-toggle {
    order:3!important;
    color:#fff!important;
    background:rgba(255,255,255,.08)!important;
    border:1px solid rgba(255,255,255,.16)!important;
    border-radius:999px!important;
    box-shadow:none!important;
    appearance:none!important;
  }
  html body:not(#ortek-never) .site-header .mobile-menu-toggle span:last-child { display:none!important; }
  html body:not(#ortek-never) .site-header .menu {
    display:none!important;
    position:absolute!important;
    left:8px!important;
    right:8px!important;
    top:100%!important;
    width:auto!important;
    height:auto!important;
  }
  html body:not(#ortek-never) .site-header.mobile-nav-open .menu {
    display:flex!important;
    flex-direction:column!important;
  }
}

/* En los menús móviles el ancho del enlace se adapta al texto. */
@media (max-width:900px) and (orientation:portrait), (min-width:901px) and (max-width:1180px) and (orientation:portrait) {
  html body:not(#ortek-never) .site-header .menu > a,
  html body:not(#ortek-never) .site-header .menu .header-services-trigger,
  html body:not(#ortek-never) .site-header .menu .header-services-menu a {
    position:relative!important;
    width:max-content!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    text-align:center!important;
  }
  html body:not(#ortek-never) .site-header .menu .header-services-dropdown {
    width:100%!important;
  }
  html body:not(#ortek-never) .site-header .menu .header-services-trigger {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  html body:not(#ortek-never) .site-header .menu .header-services-trigger::before {
    content:'▾'!important;
    position:absolute!important;
    right:5px!important;
    top:50%!important;
    color:#f2c411!important;
    font-size:11px!important;
    line-height:1!important;
    transform:translateY(-50%)!important;
  }
  html body:not(#ortek-never) .site-header .menu .header-services-open .header-services-trigger::before {
    transform:translateY(-50%) rotate(180deg)!important;
  }
  html body:not(#ortek-never) .site-header .menu > a::after,
  html body:not(#ortek-never) .site-header .menu .header-services-trigger::after,
  html body:not(#ortek-never) .site-header .menu .header-services-menu a::after {
    content:''!important;
    position:absolute!important;
    right:auto!important;
    top:auto!important;
    bottom:3px!important;
    height:2px!important;
    border-radius:999px!important;
    background:#f2c411!important;
    transform:none!important;
    opacity:0!important;
  }
  html body:not(#ortek-never) .site-header .menu > a::after,
  html body:not(#ortek-never) .site-header .menu .header-services-trigger::after {
    left:14px!important;
    width:calc(100% - 30px)!important;
  }
  html body:not(#ortek-never) .site-header .menu .header-services-menu a::after {
    left:10px!important;
    width:calc(100% - 20px)!important;
  }
  /* Recupera la colocación de la v357: servicios secundarios hacia la izquierda. */
  html body:not(#ortek-never) .site-header .menu .header-services-menu {
    margin-left:14px!important;
    margin-right:0!important;
  }
  html body:not(#ortek-never) .site-header .menu .header-services-menu a {
    margin-left:0!important;
    margin-right:auto!important;
    text-align:left!important;
  }
  html body:not(#ortek-never) .site-header .menu > a.active::after,
  html body:not(#ortek-never) .site-header .menu > a:hover::after,
  html body:not(#ortek-never) .site-header .menu .header-services-trigger.active::after,
  html body:not(#ortek-never) .site-header .menu .header-services-trigger:hover::after,
  html body:not(#ortek-never) .site-header .menu .header-services-menu a.current-service::after,
  html body:not(#ortek-never) .site-header .menu .header-services-menu a:hover::after {
    opacity:1!important;
  }
}

@media (max-width:900px) and (orientation:landscape) {
  html body:not(#ortek-never) .site-header .menu > a,
  html body:not(#ortek-never) .site-header .menu .header-services-trigger,
  html body:not(#ortek-never) .site-header .menu .header-services-menu a {
    position:relative!important;
    width:max-content!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    text-align:center!important;
  }
  html body:not(#ortek-never) .site-header .menu .header-services-dropdown { width:100%!important; }
  html body:not(#ortek-never) .site-header .menu > a::after,
  html body:not(#ortek-never) .site-header .menu .header-services-trigger::after {
    left:14px!important;
    width:calc(100% - 28px)!important;
  }
  html body:not(#ortek-never) .site-header .menu .header-services-menu a::after {
    left:10px!important;
    width:calc(100% - 20px)!important;
  }

  /* Servicios del desplegable: dos filas de tres opciones. */
  html body:not(#ortek-never) .site-header .menu .header-services-open .header-services-menu {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:4px!important;
    width:100%!important;
    margin:4px 0 7px!important;
    padding:6px!important;
  }
  html body:not(#ortek-never) .site-header .menu .header-services-menu a {
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    align-items:center!important;
    justify-content:center!important;
    padding:8px 6px!important;
    text-align:center!important;
    white-space:normal!important;
  }

  /* Tarjetas indicadas: títulos y descripciones arrancan desde el margen izquierdo. */
  html body:not(#ortek-never) :is(.service-ve-page,.service-maintenance-page,.service-battery-page,.service-legal-page) .service-info-grid .service-info-card {
    align-items:flex-start!important;
    justify-content:flex-start!important;
    text-align:left!important;
  }
  html body:not(#ortek-never) :is(.service-ve-page,.service-maintenance-page,.service-battery-page,.service-legal-page) .service-info-grid .service-info-card h3,
  html body:not(#ortek-never) :is(.service-ve-page,.service-maintenance-page,.service-battery-page,.service-legal-page) .service-info-grid .service-info-card p {
    width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    text-align:left!important;
  }
}

/* Vertical: aspecto exacto del desplegable de la v355 (filas de ancho completo). */
@media (max-width:900px) and (orientation:portrait), (min-width:901px) and (max-width:1180px) and (orientation:portrait) {
  html body:not(#ortek-never) .site-header .menu > a,
  html body:not(#ortek-never) .site-header .menu .header-services-trigger,
  html body:not(#ortek-never) .site-header .menu .header-services-menu a {
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
  }
  html body:not(#ortek-never) .site-header .menu > a,
  html body:not(#ortek-never) .site-header .menu .header-services-trigger {
    padding:12px 14px!important;
    border-radius:12px!important;
    font-size:14px!important;
    line-height:1.1!important;
  }
  html body:not(#ortek-never) .site-header .menu .header-services-menu a {
    padding:8px 10px!important;
    font-size:.78rem!important;
    font-weight:400!important;
    line-height:1.2!important;
    white-space:normal!important;
  }
  html body:not(#ortek-never) .site-header .menu > a::after,
  html body:not(#ortek-never) .site-header .menu .header-services-trigger::after,
  html body:not(#ortek-never) .site-header .menu .header-services-menu a::after {
    display:none!important;
  }
  html body:not(#ortek-never) .site-header .menu > a.active,
  html body:not(#ortek-never) .site-header .menu > a:hover,
  html body:not(#ortek-never) .site-header .menu .header-services-trigger.active,
  html body:not(#ortek-never) .site-header .menu .header-services-trigger:hover,
  html body:not(#ortek-never) .site-header .menu .header-services-menu a.current-service,
  html body:not(#ortek-never) .site-header .menu .header-services-menu a:hover {
    text-decoration-line:underline!important;
    text-decoration-color:#f2c411!important;
    text-decoration-thickness:2px!important;
    text-underline-offset:7px!important;
  }
  html body:not(#ortek-never) .site-header .menu .header-services-trigger::before {
    right:10px!important;
  }
}
