/* V36 AR COMPLETA — cabecera RTL real y capas árabes dedicadas. */
:root{--ar-green:#075f49;--ar-green2:#0b6b52;--ar-red:#b51f31;--ar-gold:#b8891f;--ar-ink:#073f32}
html[lang="ar"]{direction:rtl;scrollbar-gutter:stable}html[lang="ar"] body{direction:rtl;text-align:right;font-family:Tahoma,"Segoe UI",Arial,sans-serif!important;overflow-x:hidden}html[lang="ar"] input,html[lang="ar"] select,html[lang="ar"] textarea,html[lang="ar"] button{font-family:Tahoma,"Segoe UI",Arial,sans-serif}html[lang="ar"] input[type="email"],html[lang="ar"] input[type="tel"]{direction:ltr;text-align:left}
.cme-ar-header{width:100%;background:#fff;color:var(--ar-ink);font-family:Tahoma,"Segoe UI",Arial,sans-serif}.cme-ar-top{height:5.78125vw;position:relative;z-index:100;background:#a93631;overflow:visible;color:#fff}.cme-ar-top:before{content:"";position:absolute;inset:0;background-image:url("assets/cme-zellige-secciones-v36.png");background-size:200px;opacity:.13;filter:brightness(1.7) saturate(.8);pointer-events:none}.cme-ar-top-inner{position:relative;height:100%;display:flex;align-items:center;justify-content:space-between;padding:0 4.2%;gap:24px}.cme-ar-info{display:flex;align-items:center;gap:11px;font-size:clamp(15px,1.25vw,21px);font-weight:800;white-space:nowrap}.cme-ar-info-icon{color:#d6b15d;font-size:26px}.cme-ar-lang{position:relative;z-index:120}.cme-ar-lang-btn{height:52px;min-width:132px;padding:0 15px;border:2px solid rgba(255,255,255,.17);border-radius:14px;background:#087157;color:#fff;display:flex;align-items:center;justify-content:center;gap:11px;font-size:22px;font-weight:900;cursor:pointer;box-shadow:0 4px 10px rgba(0,0,0,.18)}.cme-ar-lang-btn:hover{background:#065d49}.cme-ar-lang-btn .globe{font-size:29px;line-height:1}.cme-ar-lang-btn .chev{font-size:20px}.cme-ar-lang-menu{display:none;position:absolute;left:0;top:calc(100% + 7px);width:220px;background:#fff;border:1px solid #dce4df;border-radius:12px;overflow:hidden;box-shadow:0 12px 30px rgba(0,0,0,.18);z-index:999}.cme-ar-lang.open .cme-ar-lang-menu{display:block}.cme-ar-lang-menu a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;color:#073f32;text-decoration:none;font-weight:800;background:#fff}.cme-ar-lang-menu a:hover,.cme-ar-lang-menu a[aria-current="page"]{background:#edf6f2}.cme-flag{width:30px;height:20px;display:inline-block;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.15);overflow:hidden}.cme-flag.es{background:linear-gradient(#aa151b 0 25%,#f1bf00 25% 75%,#aa151b 75%)}.cme-flag.ma{background:#c1272d;position:relative}.cme-flag.ma::after{content:"★";position:absolute;inset:0;display:grid;place-items:center;color:#006233;font-size:15px}.cme-flag.fr{background:linear-gradient(90deg,#002395 0 33.33%,#fff 33.33% 66.66%,#ed2939 66.66%)}.cme-flag-img{width:36px;height:24px;display:flex;overflow:hidden;border-radius:3px}.cme-flag-img img{width:36px;height:24px;object-fit:cover}
.cme-ar-brandrow{height:8.645833vw;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:1.02vw 4.2%;background:#fffdf9;border-bottom:1px solid #e6e1da}.cme-ar-brand{display:flex;align-items:center;gap:18px;min-width:0;text-decoration:none}.cme-ar-brand img{width:6.10vw;height:6.10vw;max-width:112px;max-height:112px;object-fit:contain;border-radius:20px}.cme-ar-brand-text{display:flex;flex-direction:column;align-items:flex-start}.cme-ar-brand-text strong{font-size:clamp(27px,2.55vw,48px);line-height:1.25;color:#0b503e;font-weight:900;white-space:nowrap}.cme-ar-brand-text small{margin-top:5px;color:#60716a;font-size:15px;font-weight:700}.cme-u-account{display:flex;align-items:center;gap:10px;direction:rtl;flex:0 0 auto}.cme-u-login,.cme-u-join{height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 18px;border-radius:10px;text-decoration:none;font-size:16px;font-weight:900;white-space:nowrap}.cme-u-login{color:#07533f;border:1px solid #d7e6df;background:#fff}.cme-u-join{color:#fff;border:1px solid #07684f;background:#087458;box-shadow:0 4px 10px rgba(7,63,49,.14)}.cme-u-login svg,.cme-u-join svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.cme-v36-profile-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;overflow:hidden;background:#17614f;color:#fff;font-size:13px;flex:0 0 auto}.cme-v36-profile-avatar img{width:100%;height:100%;object-fit:cover}.cme-v36-profile-name{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cme-ar-nav{height:4.635417vw;min-height:0;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));align-items:stretch;gap:4px;padding:.39vw 3.6%;background:#faf8f5;border-bottom:1px solid #8ea69d;direction:rtl}.cme-ar-nav a{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;padding:8px 7px;border:1px solid transparent;border-radius:10px;color:#073f32;text-decoration:none;font-size:clamp(13px,1.02vw,18px);font-weight:900;white-space:nowrap}.cme-ar-nav a svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.cme-ar-nav a:hover,.cme-ar-nav a.active{background:#075f49;color:#fff;border-color:#075f49}.cme-ar-nav a.pro{color:#986815;border-color:#d2a94e;background:#fffaf0}.cme-ar-nav a.pro:hover,.cme-ar-nav a.pro.active{background:#b8891f;color:#fff;border-color:#b8891f}.cme-ar-nav a.support{background:#b51f31;color:#fff;border-color:#b51f31}.cme-ar-nav a.support:hover,.cme-ar-nav a.support.active{background:#951728}
html[lang="ar"] main>.hero,html[lang="ar"] main>section.hero{position:relative!important;overflow:hidden!important;isolation:isolate!important;background:linear-gradient(90deg,#285f54 0%,#4f8579 100%)!important;text-align:right!important}html[lang="ar"] main>.hero::before,html[lang="ar"] main>section.hero::before{content:""!important;position:absolute!important;inset:0!important;background-image:url("assets/cme-zellige-secciones-v36.png")!important;background-repeat:repeat!important;background-size:245px 245px!important;opacity:.52!important;mix-blend-mode:multiply!important;pointer-events:none!important;z-index:0!important}html[lang="ar"] main>.hero::after,html[lang="ar"] main>section.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(270deg,rgba(8,58,47,.30),rgba(19,85,69,.08));pointer-events:none;z-index:1}html[lang="ar"] main>.hero>*,html[lang="ar"] main>section.hero>*{position:relative!important;z-index:2!important}html[lang="ar"] .hero h1{font-size:clamp(42px,4vw,62px)!important;line-height:1.35!important}html[lang="ar"] .hero p{font-size:19px!important;line-height:1.9!important}html[lang="ar"] .head,html[lang="ar"] .notice,html[lang="ar"] .cards,html[lang="ar"] .formbox,html[lang="ar"] .help-box,html[lang="ar"] .region-detail{text-align:right}html[lang="ar"] label{font-size:15px}html[lang="ar"] .button{font-weight:900}html[lang="ar"] .footer{text-align:right}.cme-ar-ltr{direction:ltr;text-align:left}
/* Inicio: tapa únicamente el subtítulo inglés horneado en la imagen maestra. */
@media(max-width:1050px){.cme-ar-brand-text strong{font-size:29px}.cme-ar-brand-text small{font-size:13px}.cme-ar-brand img{width:82px;height:82px}.cme-ar-brandrow{min-height:0}.cme-ar-nav{overflow-x:auto;display:flex;justify-content:flex-start;padding:6px 12px}.cme-ar-nav a{min-width:116px}.cme-ar-info{font-size:15px}}
@media(max-width:900px){.cme-ar-top{height:auto;min-height:58px}.cme-ar-top-inner{padding:7px 14px}.cme-ar-info{white-space:normal;font-size:13px;line-height:1.45}.cme-ar-info-icon{font-size:20px}.cme-ar-lang-btn{min-width:86px;height:44px;padding:0 10px;font-size:18px}.cme-ar-lang-btn .globe{font-size:23px}.cme-ar-brandrow{padding:12px 14px;min-height:108px;align-items:center}.cme-ar-brand img{width:74px;height:74px}.cme-ar-brand-text strong{font-size:23px;white-space:normal}.cme-ar-brand-text small{display:none}.cme-u-account{gap:6px}.cme-u-login,.cme-u-join{height:42px;padding:0 11px;font-size:14px}.cme-u-login svg,.cme-u-join svg{display:none}.cme-ar-nav{display:flex;overflow-x:auto;min-height:58px;padding:5px 8px;scrollbar-width:thin}.cme-ar-nav a{min-width:100px;flex:0 0 auto;font-size:14px}.cme-ar-nav a svg{width:20px;height:20px}}
@media(max-width:620px){.cme-ar-brandrow{flex-wrap:wrap}.cme-ar-brand{width:100%}.cme-u-account{width:100%;justify-content:flex-start}.cme-u-login,.cme-u-join{flex:1}.cme-ar-lang-menu{width:190px}.account-grid,.help-grid{grid-template-columns:1fr!important}}

/* RTL refinements for Arabic-only content */
html[lang="ar"] .support-card{text-align:right!important}
html[lang="ar"] .support-card .card-action{direction:rtl}
html[lang="ar"] .support-icon{margin-left:auto;margin-right:0}
html[lang="ar"] .plan .tag{align-self:flex-start}
html[lang="ar"] .plan ul,html[lang="ar"] .record ul{padding-right:0;padding-left:0}
html[lang="ar"] .plan li:before{margin-left:8px;margin-right:0}
html[lang="ar"] .pay-option{text-align:right}
html[lang="ar"] .pay-option input{margin:0}
html[lang="ar"] .cme-ar-ltr{direction:ltr;unicode-bidi:isolate;display:inline-block}

/* =========================================================
   V36 AR — AJUSTE FINAL SOLO DE LA FRANJA SUPERIOR
   Alcance: 1) selector de idioma, 2) texto + fondo de la franja roja.
   No modifica navegación, sesión, perfil, formularios ni contenido.
   ========================================================= */
html[lang="ar"] .cme-ar-top{
  background:#923936!important;
  color:#fff!important;
}
html[lang="ar"] .cme-ar-top::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background-image:url("assets/cme-zellige-top-final-ar-v36.png")!important;
  background-repeat:repeat!important;
  background-size:180px 180px!important;
  background-position:center!important;
  opacity:.34!important;
  filter:none!important;
  mix-blend-mode:multiply!important;
  pointer-events:none!important;
}
html[lang="ar"] .cme-ar-top-inner{
  position:relative!important;
  z-index:2!important;
}
html[lang="ar"] .cme-ar-info{
  gap:11px!important;
  color:#fff!important;
  font-weight:900!important;
  line-height:1.35!important;
  text-shadow:0 1px 2px rgba(70,15,20,.28)!important;
}
html[lang="ar"] .cme-ar-info-icon{
  color:#d7b45f!important;
  font-size:27px!important;
  line-height:1!important;
  flex:0 0 auto!important;
}
/* Conserva el texto original en el HTML y cambia solo su presentación visible. */
html[lang="ar"] .cme-ar-info>span:last-child{
  display:inline-block!important;
  font-size:0!important;
  line-height:0!important;
}
html[lang="ar"] .cme-ar-info>span:last-child::after{
  content:"معلومات موثوقة، فرص مفيدة ودعم متواصل للجالية المغربية في إسبانيا"!important;
  display:inline-block!important;
  font-size:clamp(17px,1.35vw,22px)!important;
  line-height:1.35!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
html[lang="ar"] .cme-ar-lang-btn{
  width:160px!important;
  min-width:160px!important;
  height:62px!important;
  padding:0!important;
  border:0!important;
  border-radius:15px!important;
  background:transparent url("assets/cme-lang-ar-v36.png") center/contain no-repeat!important;
  box-shadow:none!important;
  color:transparent!important;
  gap:0!important;
  overflow:visible!important;
  transition:transform .15s ease,filter .15s ease!important;
}
html[lang="ar"] .cme-ar-lang-btn .globe,
html[lang="ar"] .cme-ar-lang-btn b,
html[lang="ar"] .cme-ar-lang-btn .chev{
  display:none!important;
}
html[lang="ar"] .cme-ar-lang-btn:hover{
  background:transparent url("assets/cme-lang-ar-v36.png") center/contain no-repeat!important;
  filter:brightness(.97)!important;
  transform:translateY(1px)!important;
}
html[lang="ar"] .cme-ar-lang-btn:focus-visible{
  outline:3px solid #d7b45f!important;
  outline-offset:2px!important;
}
@media(max-width:1180px){
  html[lang="ar"] .cme-ar-info>span:last-child::after{font-size:17px!important}
  html[lang="ar"] .cme-ar-lang-btn{width:148px!important;min-width:148px!important;height:57px!important}
}
@media(max-width:900px){
  html[lang="ar"] .cme-ar-top::before{background-size:150px 150px!important;opacity:.31!important}
  html[lang="ar"] .cme-ar-info{white-space:normal!important;line-height:1.45!important}
  html[lang="ar"] .cme-ar-info>span:last-child::after{font-size:13px!important;line-height:1.45!important;white-space:normal!important}
  html[lang="ar"] .cme-ar-info-icon{font-size:20px!important}
  html[lang="ar"] .cme-ar-lang-btn{width:108px!important;min-width:108px!important;height:42px!important;border-radius:11px!important}
}


/* V36.1 AR — قائمة حساب مستقرة وواضحة، RTL حقيقي وفتح بنقرة واحدة. */
.cme-v36-profile-wrap{position:relative;min-width:126px;height:48px;flex:0 0 auto;direction:rtl}
.cme-v36-profile-trigger{width:100%;height:100%;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 9px;border:1px solid #d7e6df;border-radius:10px;background:#fff;color:#07533f;font:900 15px/1 Tahoma,"Segoe UI",Arial,sans-serif;cursor:pointer;box-shadow:0 3px 9px rgba(7,63,49,.05)}
.cme-v36-profile-trigger:hover{background:#edf6f2;border-color:#c8ddd4}
.cme-v36-profile-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;overflow:hidden;background:#17614f;color:#fff;font-size:12px;flex:0 0 30px}
.cme-v36-profile-avatar img{width:100%;height:100%;object-fit:cover}
.cme-v36-profile-name{flex:1 1 auto;min-width:0;max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}
.cme-v36-profile-caret{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;flex:0 0 17px;color:#07533f}
.cme-v36-profile-caret svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.35;stroke-linecap:round;stroke-linejoin:round;transition:transform .14s ease}
.cme-v36-profile-wrap.open .cme-v36-profile-caret svg,.cme-v36-index-profile-wrap.open .cme-v36-profile-caret svg{transform:rotate(180deg)}
.cme-v36-profile-trigger:focus-visible,.cme-v36-index-profile-trigger:focus-visible{outline:3px solid #f4b928;outline-offset:2px}
.cme-v36-profile-menu{display:none;position:absolute;left:0;top:calc(100% + 8px);z-index:1200;min-width:205px;background:#fff;border:1px solid #d7dfda;border-radius:10px;box-shadow:0 10px 28px rgba(0,0,0,.18);overflow:hidden;direction:rtl;text-align:right}
.cme-v36-profile-wrap.open .cme-v36-profile-menu,.cme-v36-index-profile-wrap.open .cme-v36-profile-menu{display:block}
.cme-v36-profile-menu a,.cme-v36-profile-menu button{width:100%;display:block;padding:12px 15px;border:0;background:#fff;color:#073f32;text-align:right;text-decoration:none;font:800 14px/1.35 Tahoma,"Segoe UI",Arial,sans-serif;cursor:pointer}
.cme-v36-profile-menu a:hover,.cme-v36-profile-menu button:hover{background:#edf6f2}
.cme-footer-email{text-decoration:none;color:inherit}.cme-footer-email:hover{text-decoration:underline}
@media(max-width:900px){.cme-v36-profile-wrap{min-width:0;height:42px;flex:1}.cme-v36-profile-trigger{font-size:14px;padding:0 8px}.cme-v36-profile-avatar{width:27px;height:27px;flex-basis:27px}.cme-v36-profile-menu{left:0;right:auto;min-width:190px}}


/* =========================================================
   AR-V36-2C — corrección aislada y segura
   - SOLO páginas interiores: franja superior coordinada con V36 ES.
   - Inicio árabe NO se modifica.
   - Perfil/cuenta mantienen exactamente los estilos V36.1.
   - Selector de idioma usa un único control real (sin imagen duplicada).
   ========================================================= */
@media(min-width:901px){
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-top{
    height:5.78125vw!important;
    min-height:84px!important;
    max-height:111px!important;
    position:relative!important;
    overflow:visible!important;
    background:#a93631!important;
    color:#fff!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-top::before{
    content:""!important;
    display:block!important;
    position:absolute!important;
    inset:0!important;
    z-index:0!important;
    background:url("assets/cme-top-ar-clean-v36.png") center/100% 100% no-repeat!important;
    opacity:1!important;
    filter:none!important;
    mix-blend-mode:normal!important;
    transform:scaleX(-1)!important;
    transform-origin:center!important;
    pointer-events:none!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-top-inner{
    position:relative!important;
    z-index:2!important;
    width:100%!important;
    height:100%!important;
    padding:0!important;
    display:block!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-info{
    position:absolute!important;
    right:4.38%!important;
    top:53.03%!important;
    transform:translateY(-50%)!important;
    display:block!important;
    max-width:62%!important;
    color:#fff!important;
    font-size:clamp(14px,1.02vw,19px)!important;
    font-weight:800!important;
    line-height:1.35!important;
    white-space:nowrap!important;
    text-shadow:0 1px 1px rgba(0,0,0,.08)!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-info-icon{display:none!important;}
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang{
    position:absolute!important;
    left:3.15%!important;
    right:auto!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    z-index:120!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-btn{
    min-width:132px!important;
    height:52px!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu{
    left:0!important;
    right:auto!important;
  }
}


/* =========================================================
   AR-V36-CLEAN — selector único y estable en interiores.
   Una sola regla final: botón árabe + 3 idiomas en horizontal,
   siempre dentro de la franja superior y sin caer sobre el perfil.
   Inicio no se modifica.
   ========================================================= */
@media(min-width:901px){
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-top,
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-top-inner,
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang{
    overflow:visible!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang{
    z-index:3000!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu{
    display:none!important;
    position:absolute!important;
    left:calc(100% + 14px)!important;
    right:auto!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:max-content!important;
    min-width:0!important;
    max-width:none!important;
    height:48px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    direction:ltr!important;
    background:#fff!important;
    border:1px solid #d7dfda!important;
    border-radius:11px!important;
    box-shadow:0 8px 22px rgba(0,0,0,.18)!important;
    z-index:4000!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang.open .cme-ar-lang-menu{
    display:flex!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu a[aria-current="page"]{
    display:none!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu a{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    min-width:92px!important;
    height:48px!important;
    padding:0 11px!important;
    margin:0!important;
    white-space:nowrap!important;
    border:0!important;
    border-right:1px solid #e3e9e5!important;
    background:#fff!important;
    color:#073f32!important;
    font:700 13px/1 Arial,Helvetica,sans-serif!important;
    text-align:center!important;
    direction:ltr!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu a:last-child{
    border-right:0!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu a:hover,
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu a:focus{
    background:#edf6f2!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu .cme-flag{
    width:28px!important;height:19px!important;flex:0 0 28px!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu .cme-flag-img,
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu .cme-flag-img img{
    width:28px!important;height:19px!important;flex:0 0 28px!important;object-fit:cover!important;
  }
}
@media(min-width:901px) and (max-width:1180px){
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu a{
    min-width:78px!important;padding:0 8px!important;font-size:12px!important;
  }
}

/* AR-V36-POSICION-FINAL-20260908 — interiores: perfil a la derecha del bloque de participación
   y selector de idiomas vertical como en español, sin caer encima del perfil. */
@media(min-width:901px){
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang{
    left:3.15%!important;
    right:auto!important;
    overflow:visible!important;
    z-index:3000!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu{
    display:none!important;
    position:absolute!important;
    left:0!important;
    right:auto!important;
    top:calc(100% + 8px)!important;
    transform:none!important;
    width:220px!important;
    min-width:220px!important;
    max-width:220px!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    direction:ltr!important;
    text-align:left!important;
    background:#fff!important;
    border:1px solid #dce4df!important;
    border-radius:12px!important;
    box-shadow:0 12px 30px rgba(0,0,0,.18)!important;
    z-index:4000!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang.open .cme-ar-lang-menu{
    display:block!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu a,
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu a[aria-current="page"]{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    padding:12px 14px!important;
    margin:0!important;
    white-space:nowrap!important;
    border:0!important;
    border-bottom:1px solid #edf1ee!important;
    background:#fff!important;
    color:#073f32!important;
    font:700 14px/1.25 Arial,Helvetica,sans-serif!important;
    text-align:left!important;
    direction:ltr!important;
    box-sizing:border-box!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu a[aria-current="page"]{
    background:#edf6f2!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu a:last-child{
    border-bottom:0!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu a:hover,
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu a:focus{
    background:#edf6f2!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu .cme-flag{
    width:30px!important;height:20px!important;flex:0 0 30px!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu .cme-flag-img,
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu .cme-flag-img img{
    width:36px!important;height:24px!important;flex:0 0 36px!important;object-fit:cover!important;
  }

  /* Separa la cuenta del selector vertical: Participar queda a la izquierda y Perfil a su derecha. */
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-brandrow{
    position:relative!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-u-account{
    position:absolute!important;
    left:calc(3.15% + 235px)!important;
    right:auto!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    z-index:500!important;
  }
}

/* ==============================================================
   AR V36 — DOS ÚNICOS AJUSTES, GEOMETRÍA ESPEJO DE V36 ESPAÑOL
   1) Perfil / Participar en páginas interiores.
   2) Selector de idiomas vertical como Español.
   La cabecera árabe mantiene su identidad RTL y su contenido propio.
   ============================================================== */
@media (min-width:901px){
  /* INTERIORES — selector: espejo exacto de cme-u-lang en Español. */
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-top,
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-top-inner,
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang{overflow:visible!important}
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang{
    position:absolute!important;
    left:3.15%!important;
    right:auto!important;
    top:24.81%!important;
    transform:none!important;
    width:9.8%!important;
    height:55.46%!important;
    z-index:3000!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-btn{
    width:100%!important;
    min-width:0!important;
    height:100%!important;
    padding:0!important;
    border-radius:15px!important;
    box-sizing:border-box!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu{
    display:none!important;
    position:absolute!important;
    left:0!important;
    right:auto!important;
    top:calc(100% + 8px)!important;
    transform:none!important;
    width:220px!important;
    min-width:220px!important;
    max-width:220px!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    direction:ltr!important;
    text-align:left!important;
    background:#fff!important;
    border:1px solid #dce4df!important;
    border-radius:12px!important;
    box-shadow:0 12px 30px rgba(0,0,0,.18)!important;
    z-index:4000!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang.open .cme-ar-lang-menu{display:block!important}
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu a,
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu a[aria-current="page"]{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    padding:12px 14px!important;
    margin:0!important;
    box-sizing:border-box!important;
    border:0!important;
    background:#fff!important;
    color:#073f32!important;
    text-decoration:none!important;
    font:700 14px/1.25 Arial,Helvetica,sans-serif!important;
    white-space:nowrap!important;
    direction:ltr!important;
    text-align:left!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu a[aria-current="page"]{background:#edf6f2!important}
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu a:hover,
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu a:focus{background:#edf6f2!important}
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu .cme-flag{width:30px!important;height:20px!important;flex:0 0 30px!important}
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu .cme-flag-img,
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu .cme-flag-img img{width:36px!important;height:24px!important;flex:0 0 36px!important;object-fit:cover!important}

  /* INTERIORES — espejo exacto de la geometría de cme-u-account ES.
     El orden visual se fija de forma explícita: Participar (izquierda), Perfil/Entrar (derecha). */
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-brandrow{position:relative!important}
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-u-account{
    position:absolute!important;
    left:4%!important;
    right:auto!important;
    top:16.735%!important;
    transform:none!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:.55vw!important;
    direction:ltr!important;
    z-index:500!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-u-account>.cme-u-join{order:1!important;direction:rtl!important}
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-u-account>.cme-u-login,
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-u-account>.cme-v36-profile-wrap{order:2!important;direction:rtl!important}
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-u-login,
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-u-join{
    height:2.90vw!important;
    min-height:42px!important;
    max-height:56px!important;
    box-sizing:border-box!important;
    font-size:clamp(13px,1.02vw,18px)!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-u-login{
    width:6.65vw!important;min-width:105px!important;padding:0 11px!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-u-join{
    width:9.55vw!important;min-width:145px!important;padding:0 17px!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-v36-profile-wrap{
    position:relative!important;
    width:6.65vw!important;
    min-width:105px!important;
    height:2.90vw!important;
    min-height:42px!important;
    max-height:56px!important;
    flex:0 0 auto!important;
    overflow:visible!important;
    direction:rtl!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-v36-profile-trigger{
    width:100%!important;height:100%!important;box-sizing:border-box!important;
  }
  /* Menú del perfil espejado respecto a ES: se ancla al borde izquierdo del botón. */
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-v36-profile-menu{
    left:0!important;right:auto!important;top:calc(100% + 8px)!important;
  }
}

/* V36-ESPEJO-EXACTO — elimina mínimos heredados para conservar exactamente las medidas V36 ES. */
@media (min-width:901px){
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-u-login,
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-u-join{
    min-width:0!important;
    min-height:0!important;
    max-height:none!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-v36-profile-wrap{
    min-width:0!important;
    min-height:0!important;
    max-height:none!important;
  }
}

/* ==============================================================
   AR V36 — AJUSTE FINAL DE LOS DOS ÚNICOS FALLOS
   Misma reserva horizontal que Inicio: el menú vertical de idiomas
   queda libre; Participar va después y Perfil a su derecha.
   ============================================================== */
@media (min-width:901px){
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-ar-lang-menu{
    width:220px!important;
    min-width:220px!important;
    max-width:220px!important;
  }
  html[lang="ar"] body:not([data-cme-test="ar-v36-inicio"]) .cme-u-account{
    left:calc(3.15% + 232px)!important;
    right:auto!important;
    gap:.55vw!important;
  }
}
