/* Consultas Perú 7.9.9 - interfaz de cabecera, perfil y notificaciones.
   Mantiene la pantalla de búsqueda aprobada; no modifica consultas ni AdMob. */
body.cp77-home .cp77-hero,
body.cp77-native .cp77-hero{background:#061f4b!important;border-radius:0!important;overflow:visible!important}
body.cp77-home .cp799-topline,body.cp77-native .cp799-topline{
  box-sizing:border-box!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
  justify-content:flex-start!important;gap:10px!important;padding:calc(env(safe-area-inset-top,0px) + 7px) 13px 6px!important;
  height:100%!important;min-height:65px!important;background:#061f4b!important
}
body.cp77-native .cp799-topline{padding-top:calc(max(26px,env(safe-area-inset-top,0px)) + 8px)!important}
body.cp77-home .cp799-brand,body.cp77-native .cp799-brand{font:600 clamp(14px,4vw,17px)/1.2 Inter,system-ui,sans-serif!important;color:#fff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;flex:1!important;min-width:0!important;letter-spacing:-.2px!important}
body.cp77-home .cp799-topline #cp77MenuOpen{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 29px!important;width:29px!important;height:36px!important;padding:0!important;background:transparent!important;color:#fff!important}
.cp799-gift,.cp799-bell{border:0;display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;cursor:pointer;flex-shrink:0;transition:transform .14s ease,filter .14s ease}
.cp799-gift:active,.cp799-bell:active{transform:scale(.94)}
.cp799-gift{height:36px;padding:0 10px;background:#fff3dd;color:#d27b13;border-radius:18px;font:750 13px Inter,system-ui,sans-serif}
.cp799-gift svg{width:17px;height:17px}.cp799-bell{height:36px;width:36px;padding:0;border-radius:50%;background:#f3f1ff;color:#3f4c7d;position:relative}
.cp799-bell svg{height:18px;width:18px}.cp799-bell-dot{position:absolute;right:2px;top:2px;background:#6954eb;border-radius:50%;border:2px solid white;width:10px;height:10px}
.cp799-bell-dot[hidden]{display:none!important}
.cp77-bottom-nav{display:flex!important;justify-content:space-around!important}
.cp77-bottom-nav button{flex:1 1 0!important;min-width:0!important;padding-left:3px!important;padding-right:3px!important;font-size:11px!important}
.cp799-sheet-backdrop{position:fixed;inset:0;background:rgba(14,24,50,.49);z-index:20020;backdrop-filter:blur(2px)}
.cp799-sheet-backdrop[hidden]{display:none!important}
.cp799-sheet{box-sizing:border-box;position:fixed;z-index:20021;bottom:0;left:50%;transform:translate(-50%,0);width:min(100%,480px);max-height:min(90dvh,840px);overflow:auto;overscroll-behavior:contain;background:linear-gradient(#fff,#f8f7ff);border-radius:24px 24px 0 0;padding:12px 16px calc(18px + env(safe-area-inset-bottom,0px));box-shadow:0 -15px 45px rgba(13,27,61,.20);animation:cp799-rise .23s cubic-bezier(.2,.85,.2,1);font-family:Inter,system-ui,sans-serif;color:#1b2545}
.cp799-sheet[hidden]{display:none!important}
@keyframes cp799-rise{from{opacity:.75;transform:translate(-50%,22px)}to{opacity:1;transform:translate(-50%,0)}}
.cp799-grip{width:43px;height:4px;background:#d7cff6;border-radius:100px;margin:0 auto 15px}
.cp799-identity{display:flex;align-items:center;gap:10px;min-width:0;margin-bottom:15px}
.cp799-avatar{flex:0 0 48px;height:48px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#168df0,#6154f0);color:white;font-size:22px;font-weight:650}
.cp799-identity-info{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}.cp799-identity-info strong{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cp799-identity-info small{font-size:10px;color:#7a8198;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cp799-free{background:#5c3df3;color:#fff;padding:8px 9px;border-radius:18px;display:flex;align-items:center;gap:4px;font-size:10px;font-weight:750;white-space:nowrap}.cp799-free svg{height:15px;width:15px}
.cp799-close,.cp799-notice-header>button{border:0;background:#eeebff;border-radius:50%;color:#5946c8;width:33px;height:33px;display:grid;place-items:center;flex-shrink:0}.cp799-close svg,.cp799-notice-header>button svg{width:18px;height:18px}
.cp799-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 17px}.cp799-stat{min-width:0;display:flex;align-items:center;gap:9px;background:#f0efff;border-radius:15px;padding:10px}.cp799-stat-icon,.cp799-square{display:grid;place-items:center;flex-shrink:0;border-radius:13px}.cp799-stat-icon{width:34px;height:34px}.cp799-stat-icon svg{width:18px;height:18px}.cp799-stat-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.cp799-stat-copy small{color:#676c91;font-size:9px;line-height:1.2}.cp799-stat-copy b{font-size:15px;color:#23315a}.cp799-violet{background:#e9e4ff;color:#5a3fd8}.cp799-green{background:#dff9eb;color:#1caa70}.cp799-cyan{background:#e4f8fc;color:#098bae}.cp799-blue{background:#e9f4ff;color:#1783e5}.cp799-pink{background:#ffe9f0;color:#ef4b82}.cp799-gray{background:#eff0f5;color:#6d738a}
.cp799-section-heading{font-size:10.5px;font-weight:650;color:#6b7890;margin:14px 4px 7px}.cp799-options{border-radius:17px;overflow:hidden;background:#fff;border:1px solid #eff0f6}.cp799-options>button{width:100%;display:flex;align-items:center;gap:11px;min-height:58px;text-align:left;background:transparent;border:0;padding:10px 12px;color:#222a44}.cp799-options>button+button{border-top:1px solid #eff0f4}.cp799-options>button:active{background:#f4f5ff}.cp799-square{width:38px;height:38px}.cp799-square svg{width:19px;height:19px}.cp799-options>button>span:nth-child(2){flex:1;display:flex;flex-direction:column;min-width:0;gap:4px}.cp799-options b{font-size:12px;font-weight:650}.cp799-options small{font-size:10px;line-height:1.25;color:#7a8297}.cp799-options>button>svg{height:15px;width:15px;color:#abb0c0}
.cp799-actions{display:flex;gap:9px;margin-top:15px}.cp799-actions button{height:44px;border-radius:13px;flex:1;min-width:0;border:0;font:650 11.5px Inter,system-ui,sans-serif;display:flex;align-items:center;gap:6px;justify-content:center}.cp799-actions button svg{width:17px;height:17px}.cp799-actions #cp799SwitchAccount{background:#ebe8ff;color:#573de2}.cp799-actions #cp799Logout{background:#ffe8ef;color:#d93462}.cp799-actions button:active{filter:brightness(.97);transform:scale(.98)}.cp799-footnote{margin:6px 3px 0;color:#6b7293;font-size:10px;line-height:1.4;min-height:0}
.cp799-notice-header{display:flex;align-items:flex-start;justify-content:space-between;margin:0 0 15px;gap:8px}.cp799-notice-header h2{font-size:18px;font-weight:700;margin:0 0 4px;color:#172544}.cp799-notice-header p{font-size:11px;margin:0;color:#758098}.cp799-notice-list{display:flex;flex-direction:column;gap:9px}.cp799-notice-item{display:flex;align-items:flex-start;gap:10px;padding:12px;background:#fff;border:1px solid #eceff7;border-radius:14px}.cp799-notice-item>span{width:35px;height:35px;border-radius:10px;background:#e9f1ff;color:#1766c6;flex-shrink:0;display:grid;place-items:center}.cp799-notice-item>span svg{width:17px;height:17px}.cp799-notice-item div{flex:1;min-width:0}.cp799-notice-item strong{display:block;font-size:12px;font-weight:700;margin-bottom:4px}.cp799-notice-item p{font-size:11px;line-height:1.5;color:#566881;margin:0;overflow-wrap:anywhere}.cp799-notice-item time{display:block;color:#9ba2b0;font-size:9px;margin-top:5px}.cp799-pagination{margin-top:16px;display:flex;gap:7px;flex-wrap:wrap;justify-content:center}.cp799-pagination button{border:1px solid #dfe5f6;border-radius:9px;background:#fff;color:#264d8b;min-width:35px;height:33px;font-size:12px}.cp799-pagination button.active{background:#0a56b8;color:#fff;border-color:#0a56b8}.cp799-loading{font-size:12px;color:#657690;text-align:center;padding:20px}
@media(max-width:360px){.cp799-gift{padding:0 7px}.cp799-brand{font-size:13px!important}.cp799-sheet{padding-left:12px;padding-right:12px}.cp799-options b{font-size:11px}}
@media(prefers-reduced-motion:reduce){.cp799-sheet{animation:none!important}}

/* Cabecera solicitada: fondo blanco, saludo junto al menú, regalo crema y campana lila. */
body.cp77-home .cp77-hero,body.cp77-native .cp77-hero,
body.cp77-home .cp799-topline,body.cp77-native .cp799-topline{background:#fff!important}
body.cp77-home .cp799-topline #cp77MenuOpen{color:#24385b!important}
.cp799-headcopy{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px;justify-content:center}
.cp799-headcopy small{font:450 10px/1.1 Inter,system-ui,sans-serif;color:#8491a5}
body.cp77-home .cp799-headcopy .cp799-brand,body.cp77-native .cp799-headcopy .cp799-brand{font:650 clamp(13px,4vw,16px)/1.25 Inter,system-ui,sans-serif!important;color:#202c43!important}
#cp77QuotaButton[hidden]{display:none!important}
/* Inicio algo más compacto sin reducir zonas táctiles. */
body.cp77-home .cp795-query-screen{padding-top:17px!important}
body.cp77-home .cp795-heading{margin-bottom:12px!important}
body.cp77-home .cp795-empty-illustration{margin-top:22px!important}
body.cp77-home .cp795-document-art{width:92px!important;height:98px!important;margin-bottom:3px!important}
body.cp77-home .cp80-native-slot{height:141px!important;margin:12px 0 9px!important}

body.cp77-native .cp77-bottom-nav{display:none!important}


/* Consultas Perú 7.10.0 — barra fija, paneles accesibles y recarga según saldo. */
body.cp77-home .cp77-app{padding-top:66px!important}
body.cp77-native .cp77-app{padding-top:104px!important}
body.cp77-home #cp77Hero{
  position:fixed!important;top:0!important;left:50%!important;transform:translateX(-50%)!important;
  width:100%!important;max-width:460px!important;z-index:26!important;
  margin:0!important;box-shadow:0 1px 0 rgba(15,32,60,.055)!important;
}
body.cp77-home.cp77-native #cp77Hero{height:104px!important;min-height:104px!important}
body.cp77-home:not(.cp77-native) #cp77Hero{height:66px!important;min-height:66px!important}
/* El menú y las ventanas deben estar por encima del encabezado. */
body.cp77-home #cp77Drawer{z-index:110!important}
body.cp77-home #cp77MenuBackdrop{z-index:109!important}
body.cp77-home .cp77-bottom-nav{z-index:100!important}
body.cp799-sheet-open{overflow:hidden!important}
.cp799-sheet-backdrop{position:fixed!important;inset:0!important;z-index:10020!important;background:rgba(13,25,51,.55)!important;}
.cp799-sheet{position:fixed!important;top:auto!important;bottom:0!important;left:50%!important;
  transform:translateX(-50%)!important;z-index:10021!important;
  width:min(100%,460px)!important;display:block!important;
  max-height:86dvh!important;overflow-y:auto!important;overflow-x:hidden!important;
  border-radius:24px 24px 0 0!important;overscroll-behavior:contain!important;
  padding-bottom:max(22px,env(safe-area-inset-bottom,0px))!important;
  animation:cp800-sheet-up .24s cubic-bezier(.2,.78,.2,1) both!important;
}
.cp799-sheet[hidden]{display:none!important}
.cp799-sheet.cp799-profile{height:min(83dvh,740px)!important}
.cp799-sheet.cp799-notices{height:min(75dvh,670px)!important}
@keyframes cp800-sheet-up{from{transform:translate(-50%,45px);opacity:.5}to{transform:translate(-50%,0);opacity:1}}
#cp799NavProfile{position:relative}
/* Recompensas: siempre en hoja inferior y solo al agotarse el saldo. */
body.cp77-home #cp77RewardBackdrop{z-index:10022!important}
body.cp77-home #cp77RewardDialog{position:fixed!important;left:50%!important;top:auto!important;bottom:0!important;
  transform:translateX(-50%)!important;z-index:10023!important;
  width:min(100%,460px)!important;padding:25px 20px max(26px,env(safe-area-inset-bottom,0px))!important;
  border-radius:24px 24px 0 0!important;box-shadow:0 -12px 32px rgba(13,32,60,.17)!important;
  animation:cp800-sheet-up .22s ease-out both!important;
}
body.cp77-home #cp77RewardDialog[hidden]{display:none!important}
body.cp77-home #cp77RewardDialog .cp77-dialog-icon{height:48px;width:48px;margin:0 auto 12px;background:#fff3df;color:#cf7e18}
body.cp77-home #cp77RewardDialog .cp77-dialog-icon svg{width:23px;height:23px}
body.cp77-home #cp77RewardDialog .cp77-primary{background:#0759be!important}
body.cp77-home #cp77RewardWatch[hidden]{display:none!important}
.cp799-gift.cp800-empty{animation:cp800-gift-pulse 1.6s ease-in-out infinite;}
@keyframes cp800-gift-pulse{0%,100%{box-shadow:0 0 0 0 rgba(229,157,40,.05);filter:brightness(1)}50%{box-shadow:0 0 0 7px rgba(229,157,40,.13),0 0 18px rgba(250,167,32,.38);filter:brightness(1.06)}}
.cp80-cat-trigger.cp800-current-category{background:#eff5fd!important;color:#0758bc!important}
.cp80-subitem.cp800-current-service{background:#e7f1ff!important;color:#064eaa!important;font-weight:650!important}
.cp80-subitem:not(.cp800-current-service){background:transparent!important;color:#394b65!important;font-weight:450!important}
@media(prefers-reduced-motion:reduce){.cp799-sheet,.cp799-gift.cp800-empty,#cp77RewardDialog{animation:none!important}}

/* 7.10.5: se eliminan las capas CSS 7.10.1 y 7.10.2 que imponían
   alturas y posiciones distintas a las ventanas. */
html,body{touch-action:pan-x pan-y!important;-webkit-text-size-adjust:100%!important}
#cp78-header-banner,.cp78-top-banner-slot{display:none!important;height:0!important;min-height:0!important}

/* 7.10.4 — hojas reales de navegador, inalterables por el menú inferior de Android. */
body.cp77-home dialog.cp799-sheet:not([open]),dialog.cp799-sheet[hidden]{display:none!important}
body.cp77-home dialog#cp799ProfileSheet[open],
body.cp77-home dialog#cp799NoticesSheet[open]{
  position:fixed!important;
  inset:auto 0 0 0!important;
  display:block!important;
  box-sizing:border-box!important;
  margin:0 auto!important;
  padding:12px 15px max(22px,env(safe-area-inset-bottom,0px))!important;
  border:0!important;
  width:min(100%,460px)!important;
  max-width:100vw!important;
  top:auto!important;
  bottom:0!important;
  height:min(80vh,730px)!important;
  height:min(80dvh,730px)!important;
  min-height:0!important;
  max-height:calc(100vh - 60px)!important;
  max-height:calc(100dvh - 60px)!important;
  transform:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
  border-radius:27px 27px 0 0!important;
  background:#fbfaff!important;
  box-shadow:0 -14px 42px rgba(16,27,54,.2)!important;
  z-index:2147483647!important;
  animation:cp7104-rise .22s cubic-bezier(.2,.8,.2,1) both!important;
}
body.cp77-home dialog#cp799NoticesSheet[open]{height:min(73dvh,670px)!important}
dialog#cp799ProfileSheet::backdrop,dialog#cp799NoticesSheet::backdrop{
  background:rgba(18,28,53,.52)!important;
  backdrop-filter:blur(3px);
}
@keyframes cp7104-rise{from{transform:translateY(22px);opacity:.7}to{transform:translateY(0);opacity:1}}
body.cp77-home.cp799-sheet-open .cp77-bottom-nav{pointer-events:none!important}
@media(prefers-reduced-motion:reduce){body.cp77-home dialog#cp799ProfileSheet[open],body.cp77-home dialog#cp799NoticesSheet[open]{animation:none!important}}

.cp7104-history-skeleton{height:65px;margin:8px 0;border-radius:15px;background:linear-gradient(100deg,#f1f4f9,#e4ebf5,#f1f4f9);background-size:200% 100%;animation:cp7104-skeleton 1.2s ease-in-out infinite}
@keyframes cp7104-skeleton{to{background-position-x:-200%}}
@media(prefers-reduced-motion:reduce){.cp7104-history-skeleton{animation:none}}

/* 7.10.5 — La barra de Android Compose se suprime para que SOLO exista esta barra web.
   Al ser HTML, los <dialog> pueden superponerse sin quedar cortados. */
body.cp77-home.cp77-native .cp77-bottom-nav{
 display:flex!important;
 position:fixed!important;
 left:50%!important;bottom:0!important;transform:translateX(-50%)!important;
 width:min(100%,460px)!important;min-height:68px!important;
 padding:6px 5px 8px!important;z-index:100!important;
 background:#fff!important;border-top:1px solid #eef0f6!important;
}
body.cp77-home.cp77-native.cp799-sheet-open .cp77-bottom-nav{pointer-events:none!important}
body.cp77-home.cp77-native .cp77-main{padding-bottom:90px!important}
/* ÚNICA definición efectiva de tamaño de los diálogos (sin reglas contradictorias). */
body.cp77-home dialog#cp799ProfileSheet[open],
body.cp77-home dialog#cp799NoticesSheet[open]{
 top:auto!important;bottom:0!important;left:0!important;right:0!important;
 width:min(100vw,460px)!important;margin:0 auto!important;
 max-width:100vw!important;min-height:0!important;
 transform:none!important;overflow:auto!important;
 box-sizing:border-box!important;
 padding-bottom:18px!important;
 z-index:2147483647!important;
}
body.cp77-home dialog#cp799ProfileSheet[open]{height:min(80vh,730px)!important;max-height:calc(100vh - 25px)!important}
body.cp77-home dialog#cp799NoticesSheet[open]{height:min(73vh,670px)!important;max-height:calc(100vh - 25px)!important}
/* El menú y los anuncios permanecen inactivos cuando se abre un diálogo. */
body.cp77-home.cp799-sheet-open .cp77-bottom-nav,
body.cp77-home.cp799-sheet-open #cp77MenuOpen{pointer-events:none!important}
