/* Esperanza33 Welcome Experience v0.5.0 - cristal translúcido auténtico. */
/* Todos los selectores tienen prefijo propio para aislarlos del tema activo. */
.e33w-body-locked { overflow: hidden !important; }
.e33w-overlay[hidden], .e33w-overlay [hidden] { display: none !important; }
.e33w-overlay {
  --e33w-glass-alpha: .40; --e33w-shade-alpha: .12;
  --e33w-page-blur:3px; --e33w-card-blur:3px;
  --e33w-primary-rgb:16,39,68; --e33w-accent:#D71920; --e33w-accent-hover:#B8122D;
  --e33w-detail:#F6C768; --e33w-text:#FFFFFF; --e33w-button-text:#FFFFFF;
  --e33w-photo-pos:50% 35%; --e33w-photo-mobile-pos:50% 35%;
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; transition: opacity .46s ease;
  box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  text-align: left; color: var(--e33w-text);
}
.e33w-overlay *, .e33w-overlay *::before, .e33w-overlay *::after { box-sizing: border-box; }
.e33w-overlay.e33w-is-visible { opacity: 1; }
.e33w-overlay.e33w-is-closing { pointer-events: none; }
/* El oscurecimiento no es un manto negro opaco; permite reconocer la portada. */
.e33w-shade {
  position: absolute; inset: 0; background: rgba(2,10,24,var(--e33w-shade-alpha));
  -webkit-backdrop-filter: blur(var(--e33w-page-blur)); backdrop-filter: blur(var(--e33w-page-blur));
}
/* Cristal real: alfa + blur sobre el sitio, no una imagen oscura que tapa todo. */
.e33w-card {
  position: relative; isolation: isolate; width: 100%; max-width: 650px;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow-x: hidden; overflow-y: auto;
  color: var(--e33w-text) !important; border: 0 !important; outline: none !important; border-radius: 23px;
  background: rgba(var(--e33w-primary-rgb),var(--e33w-glass-alpha));
  -webkit-backdrop-filter: blur(var(--e33w-card-blur)) saturate(115%); backdrop-filter: blur(var(--e33w-card-blur)) saturate(115%);
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  transform: translateY(12px) scale(.985);
  transition: transform .46s cubic-bezier(.2,.8,.15,1);
  scrollbar-width: thin; scrollbar-color: #9aaec1 transparent;
}
.e33w-is-visible .e33w-card { transform: translateY(0) scale(1); }
.e33w-hero { position: relative; height: 206px; overflow: hidden; background: linear-gradient(125deg,rgba(34,89,129,.72),rgba(9,24,50,.5)); }
.e33w-photo { width: 100%; height: 100%; display: block; object-fit: cover; object-position: var(--e33w-photo-pos); opacity: 1; }
.e33w-hero::after { content: ''; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(3,17,38,.20),rgba(5,19,41,.08) 38%,rgba(5,19,41,.80) 100%); }
.e33w-no-photo .e33w-hero { height: 75px; background: linear-gradient(105deg,rgba(26,82,133,.55),rgba(8,23,49,.3)); }
.e33w-no-photo .e33w-hero::after { background: none; }
.e33w-eyebrow { position: absolute; z-index: 2; top: 17px; left: 48px; right: 48px; display: block; color: var(--e33w-detail); font-size: 11px; text-align: center; letter-spacing: .13em; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.e33w-close { z-index: 3; position: absolute; right: 14px; top: 11px; width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; background: rgba(6,22,48,.45); color: var(--e33w-text); font: 300 28px/1 Arial,sans-serif; cursor: pointer; }
.e33w-card-body { position: relative; z-index: 1; margin-top: -63px; padding: 6px 34px 24px; text-align: center; }
.e33w-no-photo .e33w-card-body { margin-top: 0; padding-top: 0; }
.e33w-title { color: var(--e33w-text) !important; margin: 0 0 6px; font-size: clamp(26px,4.6vw,35px); font-weight: 800; letter-spacing: -.035em; line-height: 1.17; text-wrap: balance; text-shadow: 0 3px 12px rgba(0,0,0,.55); }
.e33w-title::after { content: ''; display: block; margin: 10px auto 0; height: 3px; width: 145px; background: var(--e33w-accent); border-radius: 50px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.e33w-subtitle { color: #eff6ff !important; margin: 0 auto 14px; font-size: 13px; line-height: 1.35; max-width: 450px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.e33w-special-label { display: inline-block; margin: 0 0 9px; padding: 5px 11px; color: #fff4cd; border: 1px solid rgba(255,225,161,.48); border-radius: 30px; background: rgba(5,20,40,.40); font-size: 11px; font-weight: 700; }
.e33w-date { font-size: 15px; font-weight: 750; margin: 0 0 3px; color: var(--e33w-text); }
.e33w-clock-wrap { display: flex; justify-content: center; align-items: center; gap: 9px; }
.e33w-clock-wrap > span { color: var(--e33w-detail); font-size: 28px; }
.e33w-clock { color: var(--e33w-text); font-size: clamp(31px,7vw,46px); font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.e33w-tz { margin: 1px 0 13px; color: #e0eaf3; font-size: 12px; }
.e33w-weather { border-top: 1px solid rgba(255,255,255,.26); padding: 13px 0 10px; }
.e33w-weather-line { display: flex; justify-content: center; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; }
.e33w-weather-icon { font-size: 24px; }
.e33w-sun { color: #e6f0f8; font-size: 13px; margin: 6px 0 2px; }
.e33w-weather-stale { margin: 8px 0 0; color: #fff1bd; font-size: 12px; }
.e33w-attribution { font-size: 10px; margin: 8px 0 0; color: #cbd9e6; }
.e33w-attribution a { color: #f4e9d0 !important; text-decoration: underline; }
.e33w-event { margin: 10px 0 0; padding: 12px 14px; border: 1px solid rgba(255,255,255,.33); background: rgba(16,32,54,.29); border-radius: 15px; text-align: center; }
.e33w-event-has-photo { display: flex; align-items: center; gap: 15px; text-align: left; }
.e33w-event-image { display: block; width: 126px; height: 98px; flex: 0 0 126px; object-fit: cover; border-radius: 10px; }
.e33w-event-info { min-width: 0; flex: 1; }
.e33w-event-label { display: block; font-size: 10px; letter-spacing: .12em; color: var(--e33w-detail); font-weight: 800; }
.e33w-event-title { font-size: 17px; color: var(--e33w-text) !important; margin: 7px 0; font-weight: 750; line-height: 1.22; }
.e33w-event-link { display: inline-flex; align-items: center; gap: 7px; text-decoration: none !important; font-size: 14px; font-weight: 750; background: var(--e33w-accent); border: 1px solid rgba(255,255,255,.2); color: var(--e33w-button-text) !important; padding: 9px 15px; border-radius: 22px; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.e33w-event-link:hover { background: var(--e33w-accent-hover); color: var(--e33w-button-text) !important; }
.e33w-actions { margin: 12px 0 0; display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.e33w-action { color: var(--e33w-text); border: 1px solid rgba(255,255,255,.40); background: rgba(255,255,255,.09); border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 700; line-height: 1.3; cursor: pointer; }
.e33w-action:hover, .e33w-close:hover { background: rgba(255,255,255,.20); }
.e33w-action-primary { background: var(--e33w-accent); border-color: rgba(255,255,255,.38); color: var(--e33w-button-text); }
.e33w-action-primary:hover { background: var(--e33w-accent-hover); }
.e33w-overlay button:focus-visible, .e33w-overlay a:focus-visible { outline: 3px solid var(--e33w-detail); outline-offset: 2px; }
/* El enfoque programático al diálogo no debe dibujar un contorno dorado. */
.e33w-overlay .e33w-card:focus, .e33w-overlay .e33w-card:focus-visible { outline: none !important; border: 0 !important; }
.e33w-progress { height: 4px; background: rgba(255,255,255,.14); position: relative; overflow: hidden; }
.e33w-progress > span { display: block; height: 100%; background: var(--e33w-accent); transform-origin: left; transform: scaleX(1); }
.e33w-is-visible .e33w-progress > span { animation: e33w-countdown linear forwards; }
.e33w-is-paused .e33w-progress > span { animation-play-state: paused; }
@keyframes e33w-countdown { to { transform: scaleX(0); } }
@media (max-width: 560px) {
  .e33w-overlay { padding: 9px; }
  .e33w-card { border-radius: 18px; max-width: 440px; max-height: calc(100dvh - 18px); }
  .e33w-hero { height: 160px; }
  .e33w-photo { object-position: var(--e33w-photo-mobile-pos); }
  .e33w-no-photo .e33w-hero { height: 61px; }
  .e33w-eyebrow { font-size: 9px; letter-spacing: .09em; top: 16px; left: 35px; right: 35px; }
  .e33w-close { right: 9px; top: 9px; width: 34px; height: 34px; }
  .e33w-card-body { margin-top: -43px; padding: 5px 15px 14px; }
  .e33w-title { font-size: clamp(24px,6.2vw,31px); }
  .e33w-subtitle { font-size: 12px; margin-bottom: 12px; }
  .e33w-date { font-size: 13px; }
  .e33w-clock { font-size: 38px; }
  .e33w-tz { font-size: 11px; margin-bottom: 9px; }
  .e33w-weather { padding: 10px 0 9px; }
  .e33w-weather-line { font-size: 14px; }
  .e33w-sun { font-size: 12px; }
  .e33w-event { padding: 11px; }
  .e33w-event-has-photo { gap: 10px; }
  .e33w-event-image { width: 88px; height: 102px; flex-basis: 88px; }
  .e33w-event-label { font-size: 9px; }
  .e33w-event-title { font-size: 15px; }
  .e33w-event-link { font-size: 13px; padding: 8px 12px; }
  .e33w-actions { align-items: stretch; gap: 7px; }
  .e33w-action { flex: 1 1 145px; padding: 10px 9px; font-size: 12px; }
}
@media (max-width: 380px), (max-height: 700px) {
  .e33w-hero { height: 129px; }
  .e33w-no-photo .e33w-hero { height: 55px; }
  .e33w-card-body { margin-top: -34px; }
  .e33w-title { font-size: 23px; }
  .e33w-subtitle { margin-bottom: 7px; }
  .e33w-event-image { width: 76px; flex-basis: 76px; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .e33w-overlay, .e33w-card { transition: none !important; transform: none !important; }
  .e33w-progress > span { animation: none !important; }
}

/* Legibilidad del panel cuando una fotografía luminosa coincide con cristal de baja opacidad. */
.e33w-card-body { text-shadow: 0 1px 3px rgba(0,0,0,.62); }
.e33w-event-link, .e33w-action, .e33w-close { text-shadow: none; }
.e33w-event-link:focus-visible, .e33w-action:focus-visible { outline-color: var(--e33w-detail); }
.e33w-progress[hidden] { display: none !important; }
