/* Burbuja y ventana de agenda de visitas (pagina del inmueble) */
.ag-bubble {
  position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #d3bd8b, #b5985a); color: #201a0e; border: none; cursor: pointer; text-align: left;
  padding: 12px 18px 12px 12px; border-radius: 26px; box-shadow: 0 14px 30px rgba(0,0,0,.45);
  max-width: calc(100vw - 36px); font-family: inherit; transition: transform .15s ease;
}
.ag-bubble:hover { transform: translateY(-2px); }
.ag-bubble .ic { width: 40px; height: 40px; border-radius: 50%; background: #0e0d0c; color: #d3bd8b; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ag-bubble .tx { display: flex; flex-direction: column; line-height: 1.25; gap: 1px; }
.ag-bubble b { font-family: 'Archivo', sans-serif; font-size: 14px; font-weight: 800; }
.ag-bubble .s { font-size: 11.5px; font-weight: 600; opacity: .8; }
.ag-bubble .go { margin-top: 5px; align-self: flex-start; background: #0e0d0c; color: #d3bd8b; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: .4px; padding: 4px 11px; border-radius: 999px; }

.ag-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(6,5,4,.72); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 20px; }
.ag-overlay.open { display: flex; }
.ag-modal {
  position: relative; background: #fff; color: #14130f; width: 100%; max-width: 1080px; max-height: calc(100vh - 40px);
  border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 300px 1fr 300px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  font-family: 'Libre Franklin', system-ui, sans-serif;
}
.ag-close { position: absolute; top: 12px; right: 14px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(20,19,15,.07); color: #14130f; font-size: 18px; cursor: pointer; line-height: 1; }
.ag-close:hover { background: rgba(20,19,15,.14); }
.ag-col { padding: 30px 26px; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.ag-left { background: #f7f8fa; border-right: 1px solid #e8eaee; }
.ag-eyebrow { font-family: 'Archivo', sans-serif; font-size: 11.5px; letter-spacing: 1.6px; font-weight: 700; color: #8a7038; text-transform: uppercase; }
.ag-left h2 { font-family: 'Archivo', sans-serif; font-size: 25px; line-height: 1.15; font-weight: 800; margin: 12px 0 20px; color: #14130f; }
.ag-asesor { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ag-foto { width: 52px; height: 52px; border-radius: 50%; background: #e3e5ea center/cover no-repeat; color: #6b6f78; display: flex; align-items: center; justify-content: center; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.ag-asesor b { display: block; font-size: 15px; }
.ag-asesor span { font-size: 12.5px; color: #6b6f78; }
.ag-tabs { display: flex; background: #eceef2; border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.ag-tab { flex: 1; border: none; background: transparent; border-radius: 999px; padding: 10px 6px; font-size: 13.5px; font-weight: 700; cursor: pointer; color: #14130f; font-family: inherit; }
.ag-tab.active { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.ag-meta { font-size: 12.5px; color: #5d616b; line-height: 1.7; }
.ag-meta b { color: #14130f; }
.ag-foot { margin-top: auto; padding-top: 18px; font-size: 12.5px; color: #6b6f78; line-height: 1.5; }

.ag-mid { padding-right: 18px; }
.ag-mes-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ag-mes-head h3 { font-family: 'Archivo', sans-serif; font-size: 19px; font-weight: 800; }
.ag-nav { display: flex; gap: 6px; margin-right: 40px; }
.ag-nav button { width: 30px; height: 30px; border-radius: 50%; border: none; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; color: #14130f; }
.ag-nav button:hover:not(:disabled) { background: #eceef2; }
.ag-nav button:disabled { opacity: .25; cursor: default; }
.ag-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 0; text-align: center; }
.ag-dow { font-size: 11.5px; font-weight: 700; color: #8a8e98; padding: 6px 0 10px; }
.ag-day { height: 40px; width: 40px; margin: 0 auto; border: none; background: transparent; border-radius: 12px; font-size: 15px; font-weight: 600; color: #14130f; cursor: pointer; font-family: inherit; }
.ag-day:hover:not(:disabled):not(.sel) { background: #eceef2; }
.ag-day:disabled { color: #c3c6cd; cursor: default; font-weight: 500; }
.ag-day.sel { background: #14130f; color: #fff; }
.ag-day.otro { color: #d3d6dc; }
.ag-cargando { grid-column: 1 / -1; padding: 40px 0; color: #8a8e98; font-size: 13.5px; }
.ag-tz { margin-top: auto; padding-top: 18px; font-size: 12.5px; color: #6b6f78; line-height: 1.5; }

.ag-right { padding-left: 4px; }
.ag-fecha { font-family: 'Archivo', sans-serif; font-size: 16.5px; font-weight: 800; margin-bottom: 14px; padding-right: 30px; }
.ag-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.ag-slot { height: 44px; border-radius: 12px; border: 1px solid #dfe2e8; background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; color: #14130f; font-family: inherit; }
.ag-slot:hover:not(:disabled):not(.sel) { border-color: #14130f; }
.ag-slot.sel { background: #14130f; color: #fff; border-color: #14130f; }
.ag-slot:disabled { background: #f1f2f5; color: #a5a9b2; text-decoration: line-through; cursor: default; border-color: #eceef2; }
.ag-vacio { grid-column: 1 / -1; font-size: 13.5px; color: #6b6f78; padding: 8px 0 12px; }
.ag-right label { display: block; font-size: 12.5px; font-weight: 600; color: #3a3d45; margin: 4px 0 6px; }
.ag-right input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid #dfe2e8; padding: 0 14px; font-size: 14px; font-family: inherit; color: #14130f; background: #fff; margin-bottom: 10px; }
.ag-right input:focus { outline: none; border-color: #b5985a; }
.ag-error { display: none; font-size: 13px; color: #b5392f; background: #fdeceb; border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; }
.ag-confirm { margin-top: auto; height: 50px; border-radius: 999px; border: none; cursor: pointer; background: linear-gradient(180deg, #d3bd8b, #b5985a); color: #1f1a0f; font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 800; }
.ag-confirm:disabled { opacity: .6; cursor: wait; }

.ag-ok { grid-column: 1 / -1; padding: 60px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ag-ok .chk { width: 76px; height: 76px; border-radius: 50%; background: #eef6ee; border: 2px solid #5b9a60; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.ag-ok h2 { font-family: 'Archivo', sans-serif; font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.ag-ok p { font-size: 16px; color: #4a4e57; line-height: 1.6; max-width: 460px; }
.ag-ok .acc { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.ag-ok .acc a, .ag-ok .acc button { height: 48px; padding: 0 24px; border-radius: 999px; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 14.5px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; border: none; }
.ag-ok .wa { background: #25D366; color: #06210f; }
.ag-ok .cerrar { background: #eceef2; color: #14130f; }

@media (max-width: 900px) {
  .ag-overlay { padding: 0; align-items: stretch; }
  .ag-modal { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: max-content; align-content: start; max-height: none; height: 100%; border-radius: 0; overflow-y: auto; max-width: none; }
  .ag-col { overflow: visible; min-height: 0; padding: 22px 18px; }
  .ag-left { border-right: none; border-bottom: 1px solid #e8eaee; padding-top: 52px; }
  .ag-left h2 { font-size: 22px; margin-bottom: 16px; }
  .ag-foot { display: none; }
  .ag-mid { padding-right: 18px; }
  .ag-nav { margin-right: 0; }
  .ag-tz { margin-top: 14px; }
  .ag-right { padding-left: 18px; padding-bottom: 30px; }
  .ag-confirm { margin-top: 12px; }
  .ag-close { top: 10px; right: 10px; }
  .ag-bubble { right: 12px; bottom: 12px; padding: 10px 14px 10px 10px; }
  .ag-bubble b { font-size: 13px; }
}
