/* TPW: banner publicitario discreto, accesible y adaptable */
.tpw-ad{display:block;box-sizing:border-box;width:100%;background:linear-gradient(100deg,#f4f8ff,#eaf4ff);border-bottom:1px solid #dce7f6;color:#071a3b;text-decoration:none!important;font-family:Inter,Arial,sans-serif;}
.tpw-ad-inner{max-width:1200px;min-height:68px;margin:auto;padding:6px 18px;display:flex;align-items:center;gap:18px;overflow:hidden}
.tpw-ad-brand{display:flex;flex-direction:column;flex:none;line-height:1;white-space:nowrap}
.tpw-ad-logo{font-size:29px;font-weight:900;letter-spacing:-.07em;color:#0763ed}.tpw-ad-logo span{color:#061b43}
.tpw-ad-sub{font-size:10px;letter-spacing:-.025em;font-weight:700;color:#071a3b;margin-top:2px}
.tpw-ad-divider{width:1px;height:37px;background:#8ca5cb;flex:none}
.tpw-ad-message{font-size:clamp(15px,2.2vw,22px);font-weight:800;line-height:1.16;letter-spacing:-.025em;flex:1}.tpw-ad-message b{color:#0763ed}
.tpw-ad-people{width:125px;height:61px;flex:none;background:url('/assets/tpw-banner-people.webp') center center/cover no-repeat}
.tpw-ad-arrow{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:#0865e8;color:white;font-size:25px;font-weight:500}
.tpw-ad:hover .tpw-ad-message{text-decoration:underline;text-decoration-thickness:1px}
@media(max-width:650px){.tpw-ad-inner{padding:5px 10px;min-height:57px;gap:9px}.tpw-ad-logo{font-size:19px}.tpw-ad-sub{font-size:7px}.tpw-ad-divider{height:32px}.tpw-ad-message{font-size:12px;line-height:1.18}.tpw-ad-people{width:64px;height:48px}.tpw-ad-arrow{width:24px;height:24px;font-size:18px}}
@media(max-width:365px){.tpw-ad-people{width:45px}.tpw-ad-inner{gap:6px}.tpw-ad-message{font-size:11px}}

/* Ajuste móvil: personajes centrados, logo legible y franja compacta. */
.tpw-ad-people{background-image:url('/assets/tpw-banner-duo.webp?v=2');background-position:center 40%;background-size:cover;border-radius:6px}
@media(max-width:650px){
 .tpw-ad-inner{width:100%;max-width:100%;min-height:64px;padding:5px 8px;gap:7px;justify-content:space-between}
 .tpw-ad-brand{flex:0 0 auto;max-width:92px}
 .tpw-ad-logo{font-size:21px;line-height:1;letter-spacing:-.065em}
 .tpw-ad-sub{font-size:7px;line-height:1.1}
 .tpw-ad-divider{height:35px}
 .tpw-ad-message{font-size:clamp(11px,3.3vw,14px);font-weight:800;line-height:1.17;min-width:0;flex:1}
 .tpw-ad-people{width:74px;height:55px;flex:0 0 74px;background-size:cover;background-position:center 34%}
 .tpw-ad-arrow{width:24px;height:24px;flex:0 0 24px}
}
@media(max-width:365px){.tpw-ad-inner{gap:5px}.tpw-ad-brand{max-width:79px}.tpw-ad-logo{font-size:18px}.tpw-ad-people{width:53px;flex-basis:53px}.tpw-ad-message{font-size:11px}}

/* Diseño móvil definitivo según referencia aprobada: anuncio en franja fina. */
@media(max-width:650px){
 .tpw-ad{width:100%;background:linear-gradient(105deg,#f4f8ff 0%,#eef6ff 100%)}
 .tpw-ad-inner{box-sizing:border-box;width:100%;max-width:100%;height:60px;min-height:60px;padding:4px 9px;gap:7px;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;overflow:hidden}
 .tpw-ad-brand{width:92px;max-width:92px;flex:0 0 92px}
 .tpw-ad-logo{font-size:21px;line-height:1;font-weight:900;letter-spacing:-.07em}
 .tpw-ad-sub{font-size:7px;font-weight:700;line-height:1.2;margin-top:2px}
 .tpw-ad-divider{width:1px;height:33px;flex:0 0 1px;background:#9ab1d1}
 .tpw-ad-message{flex:1 1 auto;min-width:0;font-size:clamp(11px,3.2vw,14px);line-height:1.16;font-weight:800;letter-spacing:-.035em}
 .tpw-ad-people{width:78px;min-width:78px;flex:0 0 78px;height:54px;background-image:url('/assets/tpw-banner-people.webp?v=3');background-size:contain;background-repeat:no-repeat;background-position:center;border-radius:0}
 .tpw-ad-arrow{width:25px;height:25px;flex:0 0 25px;border-radius:50%;font-size:19px}
}
@media(max-width:375px){.tpw-ad-inner{gap:5px;padding:4px 6px}.tpw-ad-brand{width:80px;max-width:80px;flex-basis:80px}.tpw-ad-logo{font-size:19px}.tpw-ad-people{width:64px;min-width:64px;flex-basis:64px}.tpw-ad-message{font-size:11px}}

/* Respiro superior para que el anuncio no quede pegado al borde. */
@media(max-width:650px){.tpw-ad{margin-top:10px!important}}
@media(min-width:651px){.tpw-ad{margin-top:8px!important}}

/* Alternancia TPW / IAtravel: misma franja, sin saltos de maquetación. */
.tpw-ad[hidden],.iatravel-ad[hidden]{display:none!important}
.iatravel-ad{background:linear-gradient(105deg,#f1fbff,#e7f7f2);border-bottom-color:#d0e9e3}
.iatravel-ad .tpw-ad-brand{width:125px;max-width:125px;align-items:center;justify-content:center}
.iatravel-logo{display:block;width:118px;height:48px;object-fit:contain;object-position:center}
.iatravel-ad .tpw-ad-message b{color:#058b82}
.iatravel-ad .tpw-ad-arrow{background:#008d83}
.iatravel-scene{display:flex;align-items:center;justify-content:center;width:110px;height:54px;flex:none;font-size:30px;letter-spacing:2px}
@media(max-width:650px){.iatravel-ad .tpw-ad-brand{width:92px;max-width:92px;flex-basis:92px}.iatravel-logo{width:90px;height:48px}.iatravel-scene{width:78px;height:54px;flex-basis:78px;font-size:22px;letter-spacing:0}}
@media(max-width:375px){.iatravel-ad .tpw-ad-brand{width:80px;max-width:80px;flex-basis:80px}.iatravel-logo{width:78px}.iatravel-scene{width:64px;flex-basis:64px;font-size:20px}}

/* En móviles el anuncio sustituye al menú inferior y respeta la zona segura del iPhone. */
@media(max-width:700px){
 .mobile-dock{display:none!important}
 .lemo-bottom-ads{position:fixed;left:0;right:0;bottom:0;z-index:9998;padding:5px 8px calc(6px + env(safe-area-inset-bottom,0px));background:rgba(255,255,255,.97);box-shadow:0 -4px 22px rgba(4,20,44,.12);box-sizing:border-box}
 .lemo-bottom-ads .tpw-ad{margin:0!important;border:1px solid #dce7f6;border-radius:15px;overflow:hidden;box-shadow:0 2px 8px rgba(3,28,66,.06)}
 .lemo-bottom-ads .tpw-ad-inner{min-height:56px;height:56px}
 body{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))!important}
}
@media(min-width:701px){.lemo-bottom-ads{display:contents}}

/* Inferior: reutilizar exactamente las creatividades originales superiores, sin marco tipo plataforma. */
@media(max-width:700px){
 .lemo-bottom-ads{background:transparent!important;box-shadow:none!important;padding:0 8px calc(8px + env(safe-area-inset-bottom,0px))!important}
 .lemo-bottom-ads .tpw-ad{background:linear-gradient(105deg,#f4f8ff 0%,#eef6ff 100%)!important;border:1px solid #dce7f6!important;border-radius:15px!important;box-shadow:0 3px 13px rgba(4,22,45,.13)!important}
 .lemo-bottom-ads .iatravel-ad{background:linear-gradient(105deg,#f1fbff,#e7f7f2)!important;border-color:#d0e9e3!important}
 .lemo-bottom-ads .tpw-ad-inner{height:60px!important;min-height:60px!important}
 body{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))!important}
}

/* Escritorio: publicidad fija inferior, mayor que en móvil. No modificar reglas móviles. */
@media(min-width:701px){
 .lemo-bottom-ads{display:block!important;position:fixed!important;bottom:0!important;left:0!important;right:0!important;z-index:9998!important;padding:10px 22px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 -5px 22px rgba(4,20,44,.10)!important;box-sizing:border-box!important}
 .lemo-bottom-ads .tpw-ad{display:block;max-width:1120px;margin:0 auto!important;border:1px solid #dce7f6;border-radius:15px;overflow:hidden;box-shadow:0 3px 12px rgba(4,20,44,.07)}
 .lemo-bottom-ads .tpw-ad[hidden]{display:none!important}
 .lemo-bottom-ads .tpw-ad-inner{max-width:1060px;min-height:84px;height:84px;padding:8px 22px;gap:24px}
 .lemo-bottom-ads .tpw-ad-logo{font-size:36px}
 .lemo-bottom-ads .tpw-ad-sub{font-size:12px}
 .lemo-bottom-ads .tpw-ad-divider{height:50px}
 .lemo-bottom-ads .tpw-ad-message{font-size:clamp(21px,2.2vw,28px)}
 .lemo-bottom-ads .tpw-ad-people{width:160px;height:75px}
 .lemo-bottom-ads .tpw-ad-arrow{width:42px;height:42px;font-size:29px}
 .lemo-bottom-ads .iatravel-ad .tpw-ad-brand{width:165px;max-width:165px}
 .lemo-bottom-ads .iatravel-logo{width:158px;height:70px}
 .lemo-bottom-ads .iatravel-scene{width:155px;height:70px;font-size:38px}
 body{padding-bottom:115px!important}
}
