
.agenda-jg-root{
  --ajg-blue:#103c70;
  --ajg-blue2:#174f8f;
  --ajg-gold:#c79b3b;
  --ajg-text:#171717;
  --ajg-muted:#8b8b8b;
  --ajg-light:#eeeeee;
  --ajg-line:#dddddd;
  --ajg-accent:#ef5b12;
  font-family:inherit;
  color:var(--ajg-text);
}
.agenda-jg-root *{box-sizing:border-box}

/* VISTA DETALLE / TIPO CEC */
.ajg-detail{
  display:grid;
  grid-template-columns:195px minmax(0,1fr);
  background:#f6f6f6;
  border:1px solid #e2e2e2;
  min-height:405px;
  overflow:hidden;
}
.ajg-detail-side{
  background:#e9e9e9;
  padding:30px 28px;
}
.ajg-detail-label{
  display:inline-block;
  color:#8b8b8b;
  text-decoration:underline;
  font-size:18px;
  margin-bottom:14px;
}
.ajg-detail-day{
  font-size:74px;
  font-weight:700;
  line-height:.95;
  color:#111;
}
.ajg-detail-month,
.ajg-detail-year{
  font-size:20px;
  font-weight:600;
  line-height:1.15;
  color:#999;
}
.ajg-date-picker{
  display:block;
  width:138px;
  max-width:100%;
  min-height:32px;
  margin-top:16px;
  padding:4px 5px 4px 7px;
  background:var(--ajg2-white);
  border:1px solid #d8d8d8;
  border-radius:3px;
  font:inherit;
  font-size:12px;
  line-height:1.2;
  color:#333;
}
.ajg-date-picker::-webkit-calendar-picker-indicator{
  width:14px;
  height:14px;
  margin:0;
  padding:1px;
  cursor:pointer;
}
.ajg-detail-main{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.ajg-detail-strip{
  display:grid;
  grid-template-columns:60px minmax(0,1fr) 60px;
  align-items:stretch;
  background:#d7d7d7;
  min-height:90px;
}
.ajg-strip-days{
  display:grid;
  grid-template-columns:repeat(11,1fr);
}
.ajg-strip-arrow,
.ajg-strip-day,
.ajg-detail-nav{
  border:0;
  background:transparent;
  font:inherit;
  cursor:pointer;
}
.ajg-strip-arrow{
  font-size:28px;
  color:#999;
}
.ajg-strip-day{
  min-width:0;
  padding:12px 5px 10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border-bottom:3px solid transparent;
  color:#111;
}
.ajg-strip-day span{
  font-size:15px;
  line-height:1.1;
}
.ajg-strip-day strong{
  font-size:17px;
  font-weight:400;
  margin-top:4px;
}
.ajg-strip-day.is-active{
  background:#f4f4f4;
  border-bottom-color:var(--ajg-accent);
}
.ajg-strip-day.is-active span,
.ajg-strip-day.is-active strong{
  font-weight:600;
}
.ajg-detail-body{
  flex:1;
  background:#fafafa;
  padding:24px 36px;
}
.ajg-detail-event{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(240px,360px);
  gap:34px;
  align-items:start;
  padding:0 0 22px;
  margin-bottom:22px;
  border-bottom:1px solid #e5e5e5;
}
.ajg-detail-event:last-child{
  margin-bottom:0;
  border-bottom:0;
}
.ajg-detail-event:not(:has(.ajg-detail-image)){
  grid-template-columns:1fr;
}
.ajg-detail-full-date{
  font-size:14px;
  line-height:1.4;
  color:#666;
  margin-bottom:9px;
}
.ajg-detail-meta{
  font-size:14px;
  color:#555;
  margin-bottom:8px;
}
.ajg-detail-title{
  font-size:18px;
  font-weight:400; /* solicitado: actividades NO en negrilla */
  line-height:1.4;
  color:#171717;
  margin-bottom:10px;
}
.ajg-detail-description{
  font-size:15px;
  line-height:1.55;
  color:#444;
  margin:0 0 12px;
}
.ajg-detail-description p{
  margin:0 0 10px;
}
.ajg-detail-more{
  display:inline-block;
  color:#111;
  text-decoration:underline;
  font-size:15px;
}
.ajg-detail-image img{
  display:block;
  width:100%;
  max-height:245px;
  object-fit:cover;
  background:var(--ajg2-white);
}
.ajg-detail-empty{
  color:#666;
  padding:25px 0;
}
.ajg-detail-footer{
  display:flex;
  justify-content:flex-end;
  border-top:1px solid #ddd;
  background:#f8f8f8;
}
.ajg-detail-nav{
  min-width:165px;
  padding:18px 24px;
  color:#666;
  font-size:16px;
  border-left:1px solid #bbb;
}
.ajg-detail-nav:first-child{
  border-left:0;
}

/* Elementos de las otras vistas conservados */
.ajg-card{
  background:var(--ajg2-white);
  border:1px solid #e7ebf1;
  border-radius:22px;
  box-shadow:0 10px 32px rgba(25,44,75,.07);
  padding:28px;
}
.ajg-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:24px;
}
.ajg-card h3{margin:0;font-size:26px;color:var(--ajg-blue)}
.ajg-eyebrow{
  display:block;color:var(--ajg-gold);font-size:12px;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;margin-bottom:6px;
}
.ajg-nav{display:flex;gap:8px}
.ajg-nav-btn,.ajg-clear-filter{
  border:1px solid #d7deea;background:var(--ajg2-white);color:var(--ajg-blue);cursor:pointer;
}
.ajg-nav-btn{width:42px;height:42px;border-radius:50%;font-size:27px;line-height:1}
.ajg-clear-filter{border-radius:999px;padding:8px 13px;font-size:12px;font-weight:600}
.ajg-category{
  display:inline-flex;margin-top:7px;padding:4px 9px;border-radius:999px;
  background:#f3f6fa;color:var(--ajg-blue);font-size:11px;font-weight:700;
}
.ajg-layout{
  display:grid;
  grid-template-columns:minmax(280px,.85fr) minmax(360px,1.35fr);
  gap:24px;align-items:start;
}
.ajg-weekdays,.ajg-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}
.ajg-weekdays{margin-bottom:8px;color:#667085;font-size:11px;font-weight:700;text-align:center}
.ajg-day{
  position:relative;min-height:46px;border:0;background:transparent;border-radius:12px;
  color:#172033;cursor:pointer;font:inherit;
}
.ajg-day.has-event{font-weight:700;color:var(--ajg-blue)}
.ajg-day.has-event i{
  position:absolute;bottom:5px;left:50%;transform:translateX(-50%);
  width:5px;height:5px;border-radius:50%;background:var(--ajg-gold);
}
.ajg-day.is-selected{background:var(--ajg-blue);color:var(--ajg2-white)}
.ajg-day.is-selected i{background:var(--ajg2-white)}
.ajg-events{display:flex;flex-direction:column}
.ajg-event{
  display:grid;grid-template-columns:82px 1fr;gap:18px;align-items:center;
  padding:15px 0;border-bottom:1px solid #e7ebf1;
}
.ajg-datebox{
  min-height:72px;border-radius:16px;background:linear-gradient(180deg,var(--ajg-blue2),var(--ajg-blue));
  color:var(--ajg2-white);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:10px;
}
.ajg-datebox strong{font-size:22px;line-height:1}
.ajg-datebox span{font-size:11px;margin-top:6px;letter-spacing:.06em;font-weight:700}
.ajg-event-title{font-size:17px;line-height:1.35;font-weight:400}
.ajg-event.is-hidden{display:none}
@media(max-width:900px){
  .ajg-detail{
    grid-template-columns:150px minmax(0,1fr);
  }
  .ajg-detail-side{padding:24px 18px}
  .ajg-detail-day{font-size:60px}
  .ajg-strip-days{
    overflow-x:auto;
    grid-template-columns:repeat(11,72px);
  }
  .ajg-detail-event{
    grid-template-columns:1fr;
  }
}
@media(max-width:650px){
  .ajg-detail{
    display:block;
  }
  .ajg-detail-side{
    display:grid;
    grid-template-columns:auto auto auto 1fr;
    gap:6px 10px;
    align-items:end;
  }
  .ajg-detail-label{
    grid-column:1/-1;
    margin-bottom:4px;
  }
  .ajg-detail-day{font-size:48px}
  .ajg-detail-month,.ajg-detail-year{font-size:17px}
  .ajg-date-picker{
    margin-top:0;
    align-self:center;
  }
  .ajg-detail-strip{
    grid-template-columns:42px minmax(0,1fr) 42px;
  }
  .ajg-detail-body{padding:20px}
  .ajg-detail-footer{justify-content:stretch}
  .ajg-detail-nav{flex:1;min-width:0}
  .ajg-layout{grid-template-columns:1fr}
  .ajg-card{padding:20px;border-radius:18px}
}

@media(max-width:650px){
  .ajg-date-picker{
    width:132px;
    max-width:132px;
    font-size:11px;
    padding-left:6px;
    padding-right:4px;
  }
}


/* Versión 0.6: administración y presentación simplificadas */
.ajg-detail-event.ajg-detail-event-simple{
  grid-template-columns:1fr;
}
.ajg-detail-event-simple .ajg-detail-info{
  max-width:100%;
}


/* =========================================================
   VISTA CALENDARIO v0.7
   Mantiene el lenguaje visual de la vista detalle v0.6
   ========================================================= */

.ajg-monthly-view{
  --ajg-month-blue:#103c70;
  --ajg-month-accent:#ef5b12;
  --ajg-month-text:#1a1a1a;
  --ajg-month-muted:#7e7e7e;
  --ajg-month-line:#e1e1e1;
  --ajg-month-bg:#fafafa;
  color:var(--ajg-month-text);
}

.ajg-monthly-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:18px 20px;
  margin-bottom:20px;
  background:#f8f8f8;
  border:1px solid #e3e3e3;
  border-radius:12px;
}

.ajg-monthly-selectors{
  display:flex;
  align-items:center;
  min-width:0;
}

.ajg-monthly-calendar-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:36px;
  border:1px solid #ddd;
  border-right:0;
  background:var(--ajg2-white);
  color:var(--ajg-month-blue);
  font-size:14px;
}

.ajg-month-select,
.ajg-year-select{
  height:36px;
  border:1px solid #ddd;
  background:var(--ajg2-white);
  padding:0 38px 0 14px;
  font:inherit;
  font-size:13px;
  color:#777;
  outline:none;
}

.ajg-month-select{
  width:230px;
}

.ajg-year-select{
  width:160px;
  border-left:0;
}

.ajg-monthly-mode{
  display:flex;
}

.ajg-monthly-mode button{
  min-height:36px;
  padding:0 18px;
  border:1px solid #ddd;
  background:var(--ajg2-white);
  color:#777;
  font:inherit;
  font-size:12px;
  text-transform:uppercase;
}

.ajg-monthly-mode button.is-active{
  background:var(--ajg-month-blue);
  color:var(--ajg2-white);
  border-color:var(--ajg-month-blue);
}

.ajg-monthly-grid{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);
  border:1px solid #e2e2e2;
  border-radius:12px;
  overflow:hidden;
  background:var(--ajg2-white);
}

.ajg-monthly-calendar{
  position:relative;
  padding:0 40px 34px;
  border-right:1px solid #e2e2e2;
}

.ajg-month-nav-row{
  margin:0 -40px 12px;
  display:flex;
  justify-content:space-between;
  border-bottom:1px solid #ededed;
}

.ajg-month-jump{
  min-height:50px;
  padding:0 16px;
  border:0;
  border-right:1px solid #ededed;
  background:var(--ajg2-white);
  color:#8a8a8a;
  cursor:pointer;
  font:inherit;
  font-size:13px;
}

.ajg-month-jump:last-child{
  border-left:1px solid #ededed;
  border-right:0;
}

.ajg-monthly-title{
  margin:10px 0 16px;
  text-align:center;
  font-size:24px;
  font-weight:600;
  color:#222;
}

.ajg-monthly-accent{
  width:60px;
  height:3px;
  background:var(--ajg-month-accent);
  margin:0 0 18px;
}

.ajg-monthly-weekdays{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
  padding-top:14px;
  border-top:1px solid #e7e7e7;
  color:#777;
  font-size:14px;
  font-weight:600;
  text-align:center;
}

.ajg-monthly-days{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:10px 8px;
  margin-top:18px;
}

.ajg-monthly-day{
  position:relative;
  min-height:69px;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#222;
  cursor:pointer;
  font:inherit;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.ajg-monthly-day:hover{
  background:#f3f3f3;
}

.ajg-monthly-day.is-outside{
  color:#aaa;
}

.ajg-monthly-day.is-selected{
  background:var(--ajg-month-blue);
  color:var(--ajg2-white);
}

.ajg-day-number{
  font-size:14px;
  font-weight:600;
}

.ajg-day-dot{
  width:7px;
  height:7px;
  margin-top:10px;
  border-radius:50%;
  background:var(--ajg-month-blue);
}

.ajg-monthly-day.is-selected .ajg-day-dot{
  background:var(--ajg2-white);
}

.ajg-monthly-events{
  padding:72px 40px 34px;
  background:var(--ajg2-white);
}

.ajg-events-heading{
  min-height:30px;
  font-size:12px;
  line-height:1.5;
  letter-spacing:.18em;
  text-align:center;
  color:#222;
}

.ajg-selected-day-circle{
  display:inline-flex;
  width:27px;
  height:27px;
  margin:0 5px;
  align-items:center;
  justify-content:center;
  border:1px solid var(--ajg-month-blue);
  border-radius:50%;
  color:var(--ajg-month-blue);
  letter-spacing:0;
  font-size:15px;
}

.ajg-monthly-events .ajg-monthly-accent{
  margin-top:18px;
}

.ajg-selected-events{
  border-top:1px solid #e7e7e7;
}

.ajg-monthly-event{
  padding:27px 20px 26px;
  border-bottom:1px solid #e7e7e7;
}

.ajg-monthly-event-title{
  font-size:15px;
  line-height:1.45;
  font-weight:400;
  color:#222;
}

.ajg-monthly-event-range{
  margin-top:7px;
  font-size:12px;
  line-height:1.4;
  color:#888;
}

.ajg-event-accent{
  width:58px;
  height:3px;
  margin-top:15px;
  background:var(--ajg-month-accent);
}

.ajg-monthly-empty{
  padding:28px 20px;
  color:#777;
  font-size:14px;
}

@media(max-width:900px){
  .ajg-monthly-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }

  .ajg-monthly-grid{
    grid-template-columns:1fr;
  }

  .ajg-monthly-calendar{
    border-right:0;
    border-bottom:1px solid #e2e2e2;
  }

  .ajg-monthly-events{
    padding-top:34px;
  }
}

@media(max-width:650px){
  .ajg-monthly-toolbar{
    padding:14px;
  }

  .ajg-monthly-selectors{
    width:100%;
  }

  .ajg-month-select{
    width:55%;
  }

  .ajg-year-select{
    width:35%;
  }

  .ajg-monthly-calendar{
    padding:0 16px 24px;
  }

  .ajg-month-nav-row{
    margin-left:-16px;
    margin-right:-16px;
  }

  .ajg-monthly-title{
    font-size:21px;
  }

  .ajg-monthly-days{
    gap:6px 3px;
  }

  .ajg-monthly-day{
    min-height:50px;
  }

  .ajg-monthly-events{
    padding:30px 18px 20px;
  }

  .ajg-events-heading{
    font-size:11px;
    letter-spacing:.12em;
  }
}


/* =========================================================
   VISTAS SEMANAL Y DIARIA v0.8
   ========================================================= */

.ajg-week-date-picker,
.ajg-day-date-picker{
  height:36px;
  width:180px;
  border:1px solid #ddd;
  background:var(--ajg2-white);
  padding:0 10px;
  font:inherit;
  font-size:13px;
  color:#666;
}

.ajg-period-shell{
  border:1px solid #e2e2e2;
  border-radius:12px;
  overflow:hidden;
  background:var(--ajg2-white);
}

.ajg-period-nav{
  display:grid;
  grid-template-columns:180px minmax(0,1fr) 180px;
  align-items:center;
  min-height:62px;
  border-bottom:1px solid #e7e7e7;
}

.ajg-period-jump{
  height:100%;
  min-height:62px;
  border:0;
  background:var(--ajg2-white);
  color:#888;
  cursor:pointer;
  font:inherit;
  font-size:13px;
}

.ajg-period-jump:first-child{
  border-right:1px solid #ededed;
}

.ajg-period-jump:last-child{
  border-left:1px solid #ededed;
}

.ajg-period-title{
  padding:0 20px;
  text-align:center;
  font-size:18px;
  font-weight:600;
  color:#222;
}

.ajg-week-columns{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  min-height:390px;
}

.ajg-week-day{
  min-width:0;
  border-right:1px solid #ececec;
  background:var(--ajg2-white);
}

.ajg-week-day:last-child{
  border-right:0;
}

.ajg-week-day.is-selected{
  background:#f7f9fb;
}

.ajg-week-day-head{
  width:100%;
  min-height:84px;
  border:0;
  border-bottom:1px solid #ececec;
  background:transparent;
  cursor:pointer;
  font:inherit;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.ajg-week-day-head span{
  font-size:13px;
  color:#777;
}

.ajg-week-day-head strong{
  margin-top:5px;
  width:34px;
  height:34px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:17px;
  font-weight:500;
  color:#222;
}

.ajg-week-day.is-selected .ajg-week-day-head strong{
  background:#103c70;
  color:var(--ajg2-white);
}

.ajg-week-day-events{
  padding:12px 10px 18px;
}

.ajg-week-event{
  padding:10px 0;
  border-bottom:1px solid #eee;
  font-size:13px;
  line-height:1.4;
  font-weight:400;
  color:#222;
}

.ajg-week-event:last-child{
  border-bottom:0;
}

.ajg-week-none{
  display:block;
  padding:16px 0;
  text-align:center;
  color:#bbb;
}

.ajg-day-panel{
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  min-height:360px;
}

.ajg-day-big{
  padding:38px 28px;
  background:#f3f3f3;
  border-right:1px solid #e2e2e2;
}

.ajg-day-big strong{
  display:block;
  font-size:72px;
  line-height:1;
  font-weight:700;
  color:#111;
}

.ajg-day-big span{
  display:block;
  margin-top:10px;
  font-size:18px;
  color:#888;
}

.ajg-day-events-list{
  padding:20px 34px 30px;
}

@media(max-width:900px){
  .ajg-week-columns{
    overflow-x:auto;
    grid-template-columns:repeat(7,160px);
  }

  .ajg-period-nav{
    grid-template-columns:140px minmax(0,1fr) 140px;
  }
}

@media(max-width:650px){
  .ajg-monthly-mode{
    width:100%;
    overflow-x:auto;
  }

  .ajg-monthly-mode button{
    flex:1 0 auto;
  }

  .ajg-period-nav{
    grid-template-columns:1fr 1fr;
  }

  .ajg-period-title{
    grid-column:1/-1;
    grid-row:1;
    padding:16px 10px;
    border-bottom:1px solid #eee;
  }

  .ajg-period-jump{
    grid-row:2;
    min-height:50px;
  }

  .ajg-day-panel{
    grid-template-columns:1fr;
  }

  .ajg-day-big{
    border-right:0;
    border-bottom:1px solid #e2e2e2;
    padding:24px;
  }

  .ajg-day-big strong{
    font-size:56px;
  }

  .ajg-day-events-list{
    padding:12px 18px 22px;
  }

  .ajg-week-date-picker,
  .ajg-day-date-picker{
    width:100%;
  }
}


/* =========================================================
   BOTONES DE VISTA v0.9
   Estado activo consistente en mensual, semanal y diario
   ========================================================= */

.agenda-jg-root .ajg-monthly-mode button{
  background:var(--ajg2-white)fff !important;
  color:#777777 !important;
  border-color:#dddddd !important;
  font-weight:400 !important;
  box-shadow:none !important;
  transition:background-color .18s ease, color .18s ease, border-color .18s ease;
}

.agenda-jg-root .ajg-monthly-mode button:hover{
  background:#f3f5f7 !important;
  color:#103c70 !important;
}

.agenda-jg-root .ajg-monthly-mode button.is-active,
.agenda-jg-root .ajg-monthly-mode button[aria-pressed="true"]{
  background:#103c70 !important;
  color:var(--ajg2-white)fff !important;
  border-color:#103c70 !important;
  font-weight:600 !important;
  box-shadow:none !important;
}

.agenda-jg-root .ajg-monthly-mode button.is-active:hover,
.agenda-jg-root .ajg-monthly-mode button[aria-pressed="true"]:hover{
  background:#103c70 !important;
  color:var(--ajg2-white)fff !important;
}


/* =========================================================
   CALENDARIO MENSUAL v1.0
   Día activo y hover con forma cuadrada
   ========================================================= */

.agenda-jg-root .ajg-monthly-day{
  border-radius:6px !important;
}

.agenda-jg-root .ajg-monthly-day:hover{
  background:#f0f2f4 !important;
  border-radius:6px !important;
}

.agenda-jg-root .ajg-monthly-day.is-selected{
  background:#e8edf2 !important;
  color:#103c70 !important;
  border-radius:6px !important;
}

.agenda-jg-root .ajg-monthly-day.is-selected .ajg-day-number{
  color:#103c70 !important;
  font-weight:700 !important;
}

.agenda-jg-root .ajg-monthly-day.is-selected .ajg-day-dot{
  background:#103c70 !important;
}

.agenda-jg-root .ajg-monthly-day.is-selected:hover{
  background:#e3e9ef !important;
  color:#103c70 !important;
}


/* =========================================================
   VISTA MENSUAL v1.1 — AJUSTE VISUAL AL PROTOTIPO APROBADO
   ========================================================= */

.agenda-jg-root .ajg-monthly-view{
  --ajg-ui-blue:#0a3554;
  --ajg-ui-red:#e21a16;
  --ajg-ui-text:#151515;
  --ajg-ui-muted:#707780;
  --ajg-ui-line:#e4e7ea;
  --ajg-ui-soft:#fafafa;
  width:100%;
}

/* Barra superior */
.agenda-jg-root .ajg-monthly-toolbar{
  min-height:112px;
  padding:20px 24px;
  margin-bottom:22px;
  background:#fbfbfb;
  border:1px solid var(--ajg-ui-line);
  border-radius:12px;
  box-shadow:none;
}

.agenda-jg-root .ajg-monthly-selectors{
  gap:0;
}

.agenda-jg-root .ajg-monthly-calendar-icon{
  width:58px;
  height:48px;
  border:1px solid #dfe3e6;
  border-radius:5px 0 0 5px;
  background:var(--ajg2-white);
  color:#111;
  font-size:24px;
}

.agenda-jg-root .ajg-month-select,
.agenda-jg-root .ajg-year-select{
  height:48px;
  background:var(--ajg2-white);
  border:1px solid #dfe3e6;
  color:#333;
  font-size:16px;
  padding-left:22px;
}

.agenda-jg-root .ajg-month-select{
  width:280px;
}

.agenda-jg-root .ajg-year-select{
  width:250px;
  border-left:0;
  border-radius:0 5px 5px 0;
}

.agenda-jg-root .ajg-monthly-mode{
  border-radius:4px;
  overflow:hidden;
}

.agenda-jg-root .ajg-monthly-mode button{
  min-height:48px;
  padding:0 22px !important;
  border-radius:0 !important;
  text-transform:uppercase;
  font-size:13px !important;
  font-weight:500 !important;
}

.agenda-jg-root .ajg-monthly-mode button.is-active,
.agenda-jg-root .ajg-monthly-mode button[aria-pressed="true"]{
  background:var(--ajg-ui-blue) !important;
  border-color:var(--ajg-ui-blue) !important;
  color:var(--ajg2-white) !important;
}

/* Panel principal de dos columnas */
.agenda-jg-root .ajg-monthly-grid{
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  border:1px solid var(--ajg-ui-line);
  border-radius:12px;
  overflow:hidden;
  background:var(--ajg2-white);
  box-shadow:none;
}

.agenda-jg-root .ajg-monthly-calendar{
  padding:0 46px 42px;
  border-right:1px solid var(--ajg-ui-line);
  min-height:670px;
}

.agenda-jg-root .ajg-monthly-events{
  padding:74px 34px 38px;
  min-height:670px;
  background:var(--ajg2-white);
}

/* Navegación de meses */
.agenda-jg-root .ajg-month-nav-row{
  margin:0 -46px 6px;
  min-height:70px;
}

.agenda-jg-root .ajg-month-jump{
  min-width:132px;
  min-height:70px;
  padding:0 20px;
  color:#707780;
  font-size:15px;
  background:var(--ajg2-white);
}

.agenda-jg-root .ajg-month-jump:hover{
  background:#fafafa;
  color:var(--ajg-ui-blue);
}

.agenda-jg-root .ajg-monthly-title{
  margin:20px 0 18px;
  font-size:27px;
  line-height:1.2;
  font-weight:650;
  color:#171717;
}

.agenda-jg-root .ajg-monthly-accent{
  width:72px;
  height:4px;
  margin-bottom:24px;
  background:var(--ajg-ui-red);
}

/* Cabecera de días */
.agenda-jg-root .ajg-monthly-weekdays{
  padding-top:25px;
  border-top:1px solid var(--ajg-ui-line);
  gap:8px;
  color:#626970;
  font-size:15px;
  font-weight:600;
}

.agenda-jg-root .ajg-monthly-days{
  gap:13px 10px;
  margin-top:20px;
}

.agenda-jg-root .ajg-monthly-day{
  min-height:72px;
  border-radius:5px !important;
  background:transparent;
  color:#171717;
}

.agenda-jg-root .ajg-monthly-day:hover{
  background:#f1f3f5 !important;
  border-radius:5px !important;
}

.agenda-jg-root .ajg-monthly-day.is-outside{
  color:#868d94;
}

/* Activo: bloque azul como en el prototipo */
.agenda-jg-root .ajg-monthly-day.is-selected{
  background:var(--ajg-ui-blue) !important;
  color:var(--ajg2-white) !important;
  border-radius:5px !important;
}

.agenda-jg-root .ajg-monthly-day.is-selected .ajg-day-number{
  color:var(--ajg2-white) !important;
  font-weight:700 !important;
}

.agenda-jg-root .ajg-day-number{
  font-size:16px;
  font-weight:500;
}

.agenda-jg-root .ajg-day-dot{
  width:8px;
  height:8px;
  margin-top:11px;
  background:var(--ajg-ui-blue);
}

.agenda-jg-root .ajg-monthly-day.is-selected .ajg-day-dot{
  background:var(--ajg2-white) !important;
}

/* Panel derecho */
.agenda-jg-root .ajg-events-heading{
  min-height:36px;
  font-size:15px;
  letter-spacing:.03em;
  line-height:1.6;
  color:#111;
  text-align:center;
}

.agenda-jg-root .ajg-selected-day-circle{
  width:38px;
  height:38px;
  margin:0 6px;
  border:0;
  border-radius:5px;
  background:var(--ajg-ui-blue);
  color:var(--ajg2-white);
  font-size:18px;
  font-weight:700;
}

.agenda-jg-root .ajg-monthly-events .ajg-monthly-accent{
  margin-top:20px;
  margin-bottom:18px;
}

.agenda-jg-root .ajg-selected-events{
  border-top:1px solid var(--ajg-ui-line);
}

/* Actividades */
.agenda-jg-root .ajg-monthly-event{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:16px;
  align-items:start;
  padding:30px 4px;
  border-bottom:1px solid var(--ajg-ui-line);
}

.agenda-jg-root .ajg-monthly-event-icon{
  position:relative;
  width:25px;
  height:25px;
  margin-top:1px;
  border:2px solid var(--ajg-ui-red);
  border-radius:2px;
  color:transparent;
}

.agenda-jg-root .ajg-monthly-event-icon::before,
.agenda-jg-root .ajg-monthly-event-icon::after{
  content:"";
  position:absolute;
  top:-6px;
  width:3px;
  height:7px;
  background:var(--ajg-ui-red);
  border-radius:1px;
}

.agenda-jg-root .ajg-monthly-event-icon::before{
  left:5px;
}

.agenda-jg-root .ajg-monthly-event-icon::after{
  right:5px;
}

.agenda-jg-root .ajg-monthly-event-copy{
  min-width:0;
}

.agenda-jg-root .ajg-monthly-event-title{
  font-size:18px;
  line-height:1.45;
  font-weight:400;
  color:#161616;
}

.agenda-jg-root .ajg-monthly-event-range{
  margin-top:6px;
  font-size:14px;
  line-height:1.4;
  color:#5f6872;
}

.agenda-jg-root .ajg-event-accent{
  display:none;
}

.agenda-jg-root .ajg-monthly-empty{
  padding:32px 6px;
  font-size:15px;
  color:#777;
}

/* Mantener semanal y diario coherentes */
.agenda-jg-root .ajg-period-shell{
  border:1px solid var(--ajg-ui-line);
  border-radius:12px;
  box-shadow:none;
}

.agenda-jg-root .ajg-week-day.is-selected .ajg-week-day-head strong{
  background:var(--ajg-ui-blue);
}

/* Responsive */
@media(max-width:980px){
  .agenda-jg-root .ajg-monthly-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }

  .agenda-jg-root .ajg-monthly-grid{
    grid-template-columns:1fr;
  }

  .agenda-jg-root .ajg-monthly-calendar{
    min-height:auto;
    border-right:0;
    border-bottom:1px solid var(--ajg-ui-line);
  }

  .agenda-jg-root .ajg-monthly-events{
    min-height:auto;
    padding-top:40px;
  }
}

@media(max-width:650px){
  .agenda-jg-root .ajg-monthly-toolbar{
    padding:14px;
    min-height:auto;
  }

  .agenda-jg-root .ajg-monthly-selectors{
    width:100%;
  }

  .agenda-jg-root .ajg-monthly-calendar-icon{
    width:48px;
  }

  .agenda-jg-root .ajg-month-select{
    width:52%;
  }

  .agenda-jg-root .ajg-year-select{
    width:32%;
  }

  .agenda-jg-root .ajg-month-select,
  .agenda-jg-root .ajg-year-select{
    padding-left:10px;
    font-size:14px;
  }

  .agenda-jg-root .ajg-monthly-mode{
    width:100%;
    display:grid;
    grid-template-columns:repeat(3,1fr);
  }

  .agenda-jg-root .ajg-monthly-mode button{
    padding:0 8px !important;
    font-size:10px !important;
  }

  .agenda-jg-root .ajg-monthly-calendar{
    padding:0 18px 26px;
  }

  .agenda-jg-root .ajg-month-nav-row{
    margin-left:-18px;
    margin-right:-18px;
  }

  .agenda-jg-root .ajg-monthly-day{
    min-height:54px;
  }

  .agenda-jg-root .ajg-day-number{
    font-size:14px;
  }

  .agenda-jg-root .ajg-monthly-events{
    padding:30px 18px 24px;
  }

  .agenda-jg-root .ajg-events-heading{
    font-size:12px;
  }

  .agenda-jg-root .ajg-selected-day-circle{
    width:32px;
    height:32px;
    font-size:16px;
  }

  .agenda-jg-root .ajg-monthly-event-title{
    font-size:16px;
  }
}


/* =========================================================
   AJUSTES VISUALES v1.2
   - Líneas rojas centradas bajo títulos
   - Estados activos consistentes en los 3 botones de vista
   ========================================================= */

/* Línea centrada bajo el título del calendario */
.agenda-jg-root .ajg-monthly-calendar > .ajg-monthly-accent{
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Línea centrada bajo el encabezado del panel derecho */
.agenda-jg-root .ajg-monthly-events > .ajg-monthly-accent{
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Asegurar que los títulos estén centrados respecto a sus líneas */
.agenda-jg-root .ajg-monthly-title{
  text-align:center !important;
}

.agenda-jg-root .ajg-events-heading{
  text-align:center !important;
}

/* Estado base de los botones */
.agenda-jg-root .ajg-monthly-mode button{
  background:var(--ajg2-white)fff !important;
  color:#0a3554 !important;
  border:1px solid #0a3554 !important;
  font-weight:500 !important;
  box-shadow:none !important;
}

/* Hover de botones inactivos */
.agenda-jg-root .ajg-monthly-mode button:not(.is-active):not([aria-pressed="true"]):hover{
  background:#f2f5f7 !important;
  color:#0a3554 !important;
}

/* Activo: mismo estilo para mensual, semanal y diario */
.agenda-jg-root .ajg-monthly-mode button.is-active,
.agenda-jg-root .ajg-monthly-mode button[aria-pressed="true"]{
  background:#0a3554 !important;
  color:var(--ajg2-white)fff !important;
  border-color:#0a3554 !important;
  font-weight:600 !important;
}

/* Mantener el activo estable al pasar el mouse */
.agenda-jg-root .ajg-monthly-mode button.is-active:hover,
.agenda-jg-root .ajg-monthly-mode button[aria-pressed="true"]:hover{
  background:#0a3554 !important;
  color:var(--ajg2-white)fff !important;
  border-color:#0a3554 !important;
}


/* =========================================================
   FECHAS DE ACTIVIDADES v1.3
   Siempre visibles en vista mensual y diaria
   ========================================================= */

.agenda-jg-root .ajg-monthly-event-range{
  display:block !important;
  margin-top:7px !important;
  color:#5f6872 !important;
  font-size:13px !important;
  line-height:1.45 !important;
  font-weight:400 !important;
}

.agenda-jg-root .ajg-day-events-list .ajg-monthly-event-range{
  display:block !important;
}


/* =========================================================
   MAYÚSCULAS Y MINÚSCULAS v1.4
   Uso tipográfico natural en pestañas, meses y títulos
   ========================================================= */

.agenda-jg-root .ajg-monthly-mode button{
  text-transform:none !important;
}

.agenda-jg-root .ajg-monthly-title,
.agenda-jg-root .ajg-events-heading,
.agenda-jg-root .ajg-period-title,
.agenda-jg-root .ajg-month-jump,
.agenda-jg-root .ajg-month-select,
.agenda-jg-root .ajg-year-select{
  text-transform:none !important;
}

/* AGENDA JG 2.0 — capa visual final */
.agenda-jg-root.agenda-jg-v2{
 --ajg2-navy:#0b3553;--ajg2-navy-hover:#082b45;--ajg2-red:#d92721;
 --ajg2-text:#20252a;--ajg2-muted:#69727c;--ajg2-border:#e2e6e9;
 --ajg2-soft:#f7f8f9;--ajg2-white:#ffffff;--ajg2-shadow:0 12px 32px rgba(11,53,83,.07);
 width:100%;max-width:100%;color:var(--ajg2-text);font-family:inherit;line-height:1.5
}
.agenda-jg-root.agenda-jg-v2 *,
.agenda-jg-root.agenda-jg-v2 *:before,
.agenda-jg-root.agenda-jg-v2 *:after{box-sizing:border-box}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:96px;margin:0 0 22px;padding:20px 24px;border:1px solid var(--ajg2-border);border-radius:14px;background:var(--ajg2-soft);box-shadow:none}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-selectors{display:flex;align-items:center;min-width:0}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar-icon{display:flex;align-items:center;justify-content:center;flex:0 0 52px;width:52px;height:46px;border:1px solid var(--ajg2-border);border-right:0;border-radius:6px 0 0 6px;background:var(--ajg2-white);color:var(--ajg2-navy);font-size:21px}
.agenda-jg-root.agenda-jg-v2 .ajg-month-select,
.agenda-jg-root.agenda-jg-v2 .ajg-year-select,
.agenda-jg-root.agenda-jg-v2 .ajg-week-date-picker,
.agenda-jg-root.agenda-jg-v2 .ajg-day-date-picker{height:46px;border:1px solid var(--ajg2-border);background:var(--ajg2-white);color:var(--ajg2-text);font:inherit;font-size:14px;outline:none;box-shadow:none}
.agenda-jg-root.agenda-jg-v2 .ajg-month-select{width:230px;padding:0 38px 0 16px}
.agenda-jg-root.agenda-jg-v2 .ajg-year-select{width:150px;padding:0 36px 0 16px;border-left:0;border-radius:0 6px 6px 0}
.agenda-jg-root.agenda-jg-v2 .ajg-week-date-picker,
.agenda-jg-root.agenda-jg-v2 .ajg-day-date-picker{width:190px;padding:0 12px;border-radius:0 6px 6px 0}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode{display:inline-grid;grid-template-columns:repeat(3,auto);border:1px solid var(--ajg2-navy);border-radius:7px;overflow:hidden;background:var(--ajg2-white)}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button{min-height:44px;margin:0!important;padding:0 18px!important;border:0!important;border-right:1px solid var(--ajg2-navy)!important;border-radius:0!important;background:var(--ajg2-white)!important;color:var(--ajg2-navy)!important;font:inherit!important;font-size:13px!important;font-weight:500!important;text-transform:none!important;cursor:pointer;transition:.18s}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button:last-child{border-right:0!important}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button:hover{background:#edf2f5!important}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button.is-active,
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button[aria-pressed="true"]{background:var(--ajg2-navy)!important;color:var(--ajg2-white)!important;font-weight:600!important}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button.is-active:hover,
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button[aria-pressed="true"]:hover{background:var(--ajg2-navy-hover)!important;color:var(--ajg2-white)!important}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);overflow:hidden;border:1px solid var(--ajg2-border);border-radius:14px;background:var(--ajg2-white);box-shadow:var(--ajg2-shadow)}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar{min-width:0;min-height:650px;padding:0 44px 38px;border-right:1px solid var(--ajg2-border);background:var(--ajg2-white)}
.agenda-jg-root.agenda-jg-v2 .ajg-month-nav-row{display:flex;align-items:stretch;justify-content:space-between;min-height:64px;margin:0 -44px 8px;border-bottom:1px solid var(--ajg2-border)}
.agenda-jg-root.agenda-jg-v2 .ajg-month-jump{min-width:132px;min-height:64px;padding:0 18px;border:0;background:var(--ajg2-white);color:var(--ajg2-muted);font:inherit;font-size:14px;text-transform:none!important;cursor:pointer}
.agenda-jg-root.agenda-jg-v2 .ajg-month-jump:first-child{border-right:1px solid var(--ajg2-border)}
.agenda-jg-root.agenda-jg-v2 .ajg-month-jump:last-child{border-left:1px solid var(--ajg2-border)}
.agenda-jg-root.agenda-jg-v2 .ajg-month-jump:hover{background:var(--ajg2-soft);color:var(--ajg2-navy)}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-title{margin:22px 0 14px;color:var(--ajg2-text);font-size:27px;font-weight:650;line-height:1.2;text-align:center!important;text-transform:none!important}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-accent{width:64px;height:4px;margin:0 auto 23px!important;background:var(--ajg2-red);border-radius:999px}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;padding-top:22px;border-top:1px solid var(--ajg2-border);color:var(--ajg2-muted);font-size:13px;font-weight:600;text-align:center}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-days{display:grid;grid-template-columns:repeat(7,1fr);gap:10px 8px;margin-top:16px}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-day{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:64px;padding:6px;border:0;border-radius:6px!important;background:transparent;color:var(--ajg2-text);font:inherit;cursor:pointer;transition:.16s}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-day:hover{background:#eef2f4!important}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-day.is-outside{color:#a1a8ae}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-day.is-selected{background:var(--ajg2-navy)!important;color:var(--ajg2-white)!important}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-day.is-selected:hover{background:var(--ajg2-navy-hover)!important}
.agenda-jg-root.agenda-jg-v2 .ajg-day-number{color:inherit!important;font-size:15px;font-weight:550}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-day.is-selected .ajg-day-number{color:var(--ajg2-white)!important;font-weight:700!important}
.agenda-jg-root.agenda-jg-v2 .ajg-day-dot{width:7px;height:7px;margin-top:8px;border-radius:50%;background:var(--ajg2-navy)}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-day.is-selected .ajg-day-dot{background:var(--ajg2-white)!important}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-events{min-width:0;min-height:650px;padding:72px 36px 36px;background:var(--ajg2-white)}
.agenda-jg-root.agenda-jg-v2 .ajg-events-heading{min-height:40px;color:var(--ajg2-text);font-size:14px;font-weight:500;line-height:1.55;letter-spacing:0;text-align:center!important;text-transform:none!important}
.agenda-jg-root.agenda-jg-v2 .ajg-selected-day-circle{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;margin:0 6px;border:0;border-radius:6px;background:var(--ajg2-navy);color:var(--ajg2-white);font-size:17px;font-weight:700;vertical-align:middle}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-events>.ajg-monthly-accent{margin-top:18px!important}
.agenda-jg-root.agenda-jg-v2 .ajg-selected-events{border-top:1px solid var(--ajg2-border)}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-event{display:grid;grid-template-columns:28px minmax(0,1fr);gap:15px;align-items:start;padding:26px 4px;border-bottom:1px solid var(--ajg2-border)}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-event-title{color:var(--ajg2-text);font-size:17px;font-weight:400;line-height:1.45}
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-event-range{display:block!important;margin-top:7px!important;color:var(--ajg2-muted)!important;font-size:13px!important;font-weight:400!important;line-height:1.45!important}
.agenda-jg-root.agenda-jg-v2 .ajg-event-accent{display:none!important}
.agenda-jg-root.agenda-jg-v2 .ajg-period-shell{overflow:hidden;border:1px solid var(--ajg2-border);border-radius:14px;background:var(--ajg2-white);box-shadow:var(--ajg2-shadow)}
.agenda-jg-root.agenda-jg-v2 .ajg-period-title{text-transform:none!important}
.agenda-jg-root.agenda-jg-v2 .ajg-week-day.is-selected .ajg-week-day-head strong{border-radius:6px;background:var(--ajg2-navy);color:var(--ajg2-white)}
.agenda-jg-root.agenda-jg-v2 .ajg-day-panel{display:grid;grid-template-columns:205px minmax(0,1fr);min-height:390px}
.agenda-jg-root.agenda-jg-v2 .ajg-day-big{padding:38px 28px;border-right:1px solid var(--ajg2-border);background:var(--ajg2-soft)}
.agenda-jg-root.agenda-jg-v2 .ajg-day-events-list{padding:18px 34px 30px}
.agenda-jg-root.agenda-jg-v2 .ajg-detail{overflow:hidden;border:1px solid var(--ajg2-border);border-radius:14px;box-shadow:var(--ajg2-shadow)}
.agenda-jg-root.agenda-jg-v2.is-loading{opacity:.62;pointer-events:none;transition:opacity .15s}
@media(max-width:1024px){
 .agenda-jg-root.agenda-jg-v2 .ajg-monthly-toolbar{align-items:flex-start;flex-direction:column}
 .agenda-jg-root.agenda-jg-v2 .ajg-monthly-grid{grid-template-columns:1fr}
 .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar{min-height:auto;border-right:0;border-bottom:1px solid var(--ajg2-border)}
 .agenda-jg-root.agenda-jg-v2 .ajg-monthly-events{min-height:auto;padding-top:38px}
 .agenda-jg-root.agenda-jg-v2 .ajg-week-columns{overflow-x:auto;grid-template-columns:repeat(7,160px)}
}
@media(max-width:680px){
 .agenda-jg-root.agenda-jg-v2 .ajg-monthly-toolbar{gap:14px;min-height:auto;padding:14px;border-radius:10px}
 .agenda-jg-root.agenda-jg-v2 .ajg-monthly-selectors{width:100%}
 .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar-icon{flex-basis:44px;width:44px;height:42px}
 .agenda-jg-root.agenda-jg-v2 .ajg-month-select,.agenda-jg-root.agenda-jg-v2 .ajg-year-select,.agenda-jg-root.agenda-jg-v2 .ajg-week-date-picker,.agenda-jg-root.agenda-jg-v2 .ajg-day-date-picker{height:42px;font-size:13px}
 .agenda-jg-root.agenda-jg-v2 .ajg-month-select{width:52%;padding-left:10px}
 .agenda-jg-root.agenda-jg-v2 .ajg-year-select{width:32%;padding-left:10px}
 .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode{width:100%;grid-template-columns:repeat(3,1fr)}
 .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button{min-width:0;padding:0 5px!important;font-size:11px!important}
 .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar{padding:0 14px 24px}
 .agenda-jg-root.agenda-jg-v2 .ajg-month-nav-row{margin-left:-14px;margin-right:-14px}
 .agenda-jg-root.agenda-jg-v2 .ajg-month-jump{min-width:104px;padding:0 9px;font-size:12px}
 .agenda-jg-root.agenda-jg-v2 .ajg-monthly-title{font-size:22px}
 .agenda-jg-root.agenda-jg-v2 .ajg-monthly-weekdays{gap:3px;font-size:11px}
 .agenda-jg-root.agenda-jg-v2 .ajg-monthly-days{gap:5px 3px}
 .agenda-jg-root.agenda-jg-v2 .ajg-monthly-day{min-height:48px;padding:3px}
 .agenda-jg-root.agenda-jg-v2 .ajg-day-number{font-size:13px}
 .agenda-jg-root.agenda-jg-v2 .ajg-monthly-events{padding:30px 16px 22px}
 .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event{grid-template-columns:25px minmax(0,1fr);gap:12px;padding:22px 2px}
 .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event-title{font-size:15px}
 .agenda-jg-root.agenda-jg-v2 .ajg-day-panel{grid-template-columns:1fr}
 .agenda-jg-root.agenda-jg-v2 .ajg-day-big{padding:24px;border-right:0;border-bottom:1px solid var(--ajg2-border)}
 .agenda-jg-root.agenda-jg-v2 .ajg-day-events-list{padding:12px 16px 22px}
 .agenda-jg-root.agenda-jg-v2 .ajg-detail{display:block}
}


/* Agenda JG 2.3: aplicación completa de colores configurables */
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-grid,
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar,
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-events,
.agenda-jg-root.agenda-jg-v2 .ajg-period-shell,
.agenda-jg-root.agenda-jg-v2 .ajg-week-day,
.agenda-jg-root.agenda-jg-v2 .ajg-month-jump,
.agenda-jg-root.agenda-jg-v2 .ajg-period-jump{
  background:var(--ajg2-white) !important;
}

.agenda-jg-root.agenda-jg-v2 .ajg-monthly-toolbar,
.agenda-jg-root.agenda-jg-v2 .ajg-day-big,
.agenda-jg-root.agenda-jg-v2 .ajg-detail-side{
  background:var(--ajg2-soft) !important;
}

.agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar-icon,
.agenda-jg-root.agenda-jg-v2 .ajg-month-select,
.agenda-jg-root.agenda-jg-v2 .ajg-year-select,
.agenda-jg-root.agenda-jg-v2 .ajg-week-date-picker,
.agenda-jg-root.agenda-jg-v2 .ajg-day-date-picker{
  background:var(--ajg2-white) !important;
  color:var(--ajg2-text) !important;
}

.agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button:not(.is-active):not([aria-pressed="true"]){
  background:var(--ajg2-white) !important;
  color:var(--ajg2-navy) !important;
}


/* =========================================================
   AGENDA JG 2.5 — COLOR HOVER CONFIGURABLE
   ========================================================= */

/* Pestañas inactivas */
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button:not(.is-active):not([aria-pressed="true"]):hover{
  background:var(--ajg2-navy-hover) !important;
  color:var(--ajg2-white) !important;
  border-color:var(--ajg2-navy-hover) !important;
}

/* Pestaña activa */
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button.is-active:hover,
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button[aria-pressed="true"]:hover{
  background:var(--ajg2-navy-hover) !important;
  color:var(--ajg2-white) !important;
  border-color:var(--ajg2-navy-hover) !important;
}

/* Botones de navegación mensual */
.agenda-jg-root.agenda-jg-v2 .ajg-month-jump:hover,
.agenda-jg-root.agenda-jg-v2 .ajg-period-jump:hover,
.agenda-jg-root.agenda-jg-v2 .ajg-nav-btn:hover,
.agenda-jg-root.agenda-jg-v2 .ajg-detail-nav:hover,
.agenda-jg-root.agenda-jg-v2 .ajg-strip-arrow:hover{
  background:var(--ajg2-navy-hover) !important;
  color:var(--ajg2-white) !important;
}

/* Días del calendario */
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-day:hover{
  background:var(--ajg2-navy-hover) !important;
  color:var(--ajg2-white) !important;
}

.agenda-jg-root.agenda-jg-v2 .ajg-monthly-day:hover .ajg-day-number{
  color:var(--ajg2-white) !important;
}

.agenda-jg-root.agenda-jg-v2 .ajg-monthly-day:hover .ajg-day-dot{
  background:var(--ajg2-white) !important;
}

/* Día activo al pasar el cursor */
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-day.is-selected:hover{
  background:var(--ajg2-navy-hover) !important;
  color:var(--ajg2-white) !important;
}

/* Días de la vista semanal */
.agenda-jg-root.agenda-jg-v2 .ajg-week-day-head:hover{
  background:var(--ajg2-navy-hover) !important;
}

.agenda-jg-root.agenda-jg-v2 .ajg-week-day-head:hover span,
.agenda-jg-root.agenda-jg-v2 .ajg-week-day-head:hover strong{
  color:var(--ajg2-white) !important;
}

/* Botón para limpiar filtro y controles menores */
.agenda-jg-root.agenda-jg-v2 .ajg-clear-filter:hover{
  background:var(--ajg2-navy-hover) !important;
  color:var(--ajg2-white) !important;
  border-color:var(--ajg2-navy-hover) !important;
}


/* ==========================================================================
   AGENDA JG 2.6 — AISLAMIENTO VISUAL DEL TEMA
   Esta capa final obliga al módulo a usar solamente los colores configurados
   en Agenda JG > Configuración.
   ========================================================================== */

/* Base tipográfica y de color */
body .agenda-jg-root.agenda-jg-v2{
  color:var(--ajg2-text) !important;
  background:transparent !important;
  font-family:inherit !important;
  font-style:normal !important;
  text-transform:none !important;
}

body .agenda-jg-root.agenda-jg-v2 *,
body .agenda-jg-root.agenda-jg-v2 *::before,
body .agenda-jg-root.agenda-jg-v2 *::after{
  box-sizing:border-box !important;
}

/* Neutralización de estilos globales del tema en controles */
body .agenda-jg-root.agenda-jg-v2 button,
body .agenda-jg-root.agenda-jg-v2 input,
body .agenda-jg-root.agenda-jg-v2 select,
body .agenda-jg-root.agenda-jg-v2 textarea{
  font-family:inherit !important;
  font-style:normal !important;
  letter-spacing:normal !important;
  text-transform:none !important;
  text-shadow:none !important;
  box-shadow:none !important;
  outline-offset:2px;
}

body .agenda-jg-root.agenda-jg-v2 button{
  -webkit-appearance:none !important;
  appearance:none !important;
  line-height:1.2 !important;
}

body .agenda-jg-root.agenda-jg-v2 a{
  color:var(--ajg2-navy) !important;
  text-decoration:none;
  text-shadow:none !important;
}

body .agenda-jg-root.agenda-jg-v2 a:hover{
  color:var(--ajg2-navy-hover) !important;
}
/* Textos principales */
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-title,
body .agenda-jg-root.agenda-jg-v2 .ajg-events-heading,
body .agenda-jg-root.agenda-jg-v2 .ajg-period-title,
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event-title,
body .agenda-jg-root.agenda-jg-v2 .ajg-week-event,
body .agenda-jg-root.agenda-jg-v2 .ajg-detail-title,
body .agenda-jg-root.agenda-jg-v2 .ajg-event-title,
body .agenda-jg-root.agenda-jg-v2 .ajg-day-big strong{
  color:var(--ajg2-text) !important;
}

/* Textos secundarios */
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event-range,
body .agenda-jg-root.agenda-jg-v2 .ajg-detail-full-date,
body .agenda-jg-root.agenda-jg-v2 .ajg-detail-description,
body .agenda-jg-root.agenda-jg-v2 .ajg-detail-month,
body .agenda-jg-root.agenda-jg-v2 .ajg-detail-year,
body .agenda-jg-root.agenda-jg-v2 .ajg-week-day-head span,
body .agenda-jg-root.agenda-jg-v2 .ajg-week-none,
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-empty,
body .agenda-jg-root.agenda-jg-v2 .ajg-empty-message,
body .agenda-jg-root.agenda-jg-v2 .ajg-filter-empty,
body .agenda-jg-root.agenda-jg-v2 .ajg-day-big span{
  color:var(--ajg2-muted) !important;
}
/* Fondos principales */
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-grid,
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar,
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-events,
body .agenda-jg-root.agenda-jg-v2 .ajg-period-shell,
body .agenda-jg-root.agenda-jg-v2 .ajg-week-day,
body .agenda-jg-root.agenda-jg-v2 .ajg-selected-events,
body .agenda-jg-root.agenda-jg-v2 .ajg-day-events-list,
body .agenda-jg-root.agenda-jg-v2 .ajg-card,
body .agenda-jg-root.agenda-jg-v2 .ajg-detail-main,
body .agenda-jg-root.agenda-jg-v2 .ajg-detail-body{
  background-color:var(--ajg2-white) !important;
}

/* Fondos suaves */
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-toolbar,
body .agenda-jg-root.agenda-jg-v2 .ajg-day-big,
body .agenda-jg-root.agenda-jg-v2 .ajg-detail-side,
body .agenda-jg-root.agenda-jg-v2 .ajg-detail-footer,
body .agenda-jg-root.agenda-jg-v2 .ajg-week-day.is-selected{
  background-color:var(--ajg2-soft) !important;
}

/* Bordes */
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-toolbar,
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-grid,
body .agenda-jg-root.agenda-jg-v2 .ajg-period-shell,
body .agenda-jg-root.agenda-jg-v2 .ajg-card,
body .agenda-jg-root.agenda-jg-v2 .ajg-detail,
body .agenda-jg-root.agenda-jg-v2 .ajg-month-select,
body .agenda-jg-root.agenda-jg-v2 .ajg-year-select,
body .agenda-jg-root.agenda-jg-v2 .ajg-week-date-picker,
body .agenda-jg-root.agenda-jg-v2 .ajg-day-date-picker,
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar-icon{
  border-color:var(--ajg2-border) !important;
}
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar,
body .agenda-jg-root.agenda-jg-v2 .ajg-month-nav-row,
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-weekdays,
body .agenda-jg-root.agenda-jg-v2 .ajg-selected-events,
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event,
body .agenda-jg-root.agenda-jg-v2 .ajg-period-nav,
body .agenda-jg-root.agenda-jg-v2 .ajg-week-day,
body .agenda-jg-root.agenda-jg-v2 .ajg-week-day-head,
body .agenda-jg-root.agenda-jg-v2 .ajg-week-event,
body .agenda-jg-root.agenda-jg-v2 .ajg-day-big,
body .agenda-jg-root.agenda-jg-v2 .ajg-detail-event,
body .agenda-jg-root.agenda-jg-v2 .ajg-event{
  border-color:var(--ajg2-border) !important;
}
/* Selectores e inputs */
body .agenda-jg-root.agenda-jg-v2 .ajg-month-select,
body .agenda-jg-root.agenda-jg-v2 .ajg-year-select,
body .agenda-jg-root.agenda-jg-v2 .ajg-week-date-picker,
body .agenda-jg-root.agenda-jg-v2 .ajg-day-date-picker,
body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker{
  background-color:var(--ajg2-white) !important;
  color:var(--ajg2-text) !important;
  border-color:var(--ajg2-border) !important;
}

/* Botones de pestañas */
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode{
  border-color:var(--ajg2-navy) !important;
  background-color:var(--ajg2-white) !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button{
  background-color:var(--ajg2-white) !important;
  color:var(--ajg2-navy) !important;
  border-color:var(--ajg2-navy) !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button.is-active,
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button[aria-pressed="true"]{
  background-color:var(--ajg2-navy) !important;
  color:var(--ajg2-white) !important;
  border-color:var(--ajg2-navy) !important;
}

/* Hover configurable */
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button:hover,
body .agenda-jg-root.agenda-jg-v2 .ajg-month-jump:hover,
body .agenda-jg-root.agenda-jg-v2 .ajg-period-jump:hover,
body .agenda-jg-root.agenda-jg-v2 .ajg-nav-btn:hover,
body .agenda-jg-root.agenda-jg-v2 .ajg-detail-nav:hover,
body .agenda-jg-root.agenda-jg-v2 .ajg-strip-arrow:hover,
body .agenda-jg-root.agenda-jg-v2 .ajg-clear-filter:hover,
body .agenda-jg-root.agenda-jg-v2 .ajg-week-day-head:hover,
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-day:hover{
  background-color:var(--ajg2-navy-hover) !important;
  color:var(--ajg2-white) !important;
  border-color:var(--ajg2-navy-hover) !important;
}

/* Navegación en estado normal */
body .agenda-jg-root.agenda-jg-v2 .ajg-month-jump,
body .agenda-jg-root.agenda-jg-v2 .ajg-period-jump,
body .agenda-jg-root.agenda-jg-v2 .ajg-nav-btn,
body .agenda-jg-root.agenda-jg-v2 .ajg-detail-nav,
body .agenda-jg-root.agenda-jg-v2 .ajg-strip-arrow,
body .agenda-jg-root.agenda-jg-v2 .ajg-clear-filter{
  background-color:var(--ajg2-white) !important;
  color:var(--ajg2-navy) !important;
  border-color:var(--ajg2-border) !important;
}

/* Día seleccionado y fechas destacadas */
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-day.is-selected,
body .agenda-jg-root.agenda-jg-v2 .ajg-selected-day-circle,
body .agenda-jg-root.agenda-jg-v2 .ajg-week-day.is-selected .ajg-week-day-head strong,
body .agenda-jg-root.agenda-jg-v2 .ajg-datebox{
  background-color:var(--ajg2-navy) !important;
  color:var(--ajg2-white) !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-day.is-selected .ajg-day-number,
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-day:hover .ajg-day-number,
body .agenda-jg-root.agenda-jg-v2 .ajg-week-day-head:hover span,
body .agenda-jg-root.agenda-jg-v2 .ajg-week-day-head:hover strong{
  color:var(--ajg2-white) !important;
}

/* Acentos */
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-accent,
body .agenda-jg-root.agenda-jg-v2 .ajg-event-accent{
  background-color:var(--ajg2-red) !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event-icon{
  border-color:var(--ajg2-red) !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event-icon::before,
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event-icon::after{
  background-color:var(--ajg2-red) !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-day-dot{
  background-color:var(--ajg2-navy) !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-day.is-selected .ajg-day-dot,
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-day:hover .ajg-day-dot{
  background-color:var(--ajg2-white) !important;
}

/* Evitar que Elementor añada gradientes a botones */
body .agenda-jg-root.agenda-jg-v2 button{
  background-image:none !important;
}

/* Accesibilidad de foco */
body .agenda-jg-root.agenda-jg-v2 button:focus-visible,
body .agenda-jg-root.agenda-jg-v2 input:focus-visible,
body .agenda-jg-root.agenda-jg-v2 select:focus-visible{
  outline:2px solid var(--ajg2-navy) !important;
  outline-offset:2px !important;
}


/* ==========================================================================
   AGENDA JG 2.7 — AISLAMIENTO VISUAL REFORZADO
   ========================================================================== */

/* Evita variables globales del tema dentro del módulo */
body .agenda-jg-root.agenda-jg-v2{
  --e-global-color-primary:var(--ajg2-navy) !important;
  --e-global-color-secondary:var(--ajg2-muted) !important;
  --e-global-color-text:var(--ajg2-text) !important;
  --e-global-color-accent:var(--ajg2-red) !important;
  --wp--preset--color--primary:var(--ajg2-navy) !important;
  --wp--preset--color--foreground:var(--ajg2-text) !important;
  --wp--preset--color--background:var(--ajg2-white) !important;
}

/* Reseteo visual de componentes interactivos */
body .agenda-jg-root.agenda-jg-v2 button,
body .agenda-jg-root.agenda-jg-v2 input,
body .agenda-jg-root.agenda-jg-v2 select,
body .agenda-jg-root.agenda-jg-v2 textarea{
  border-style:solid !important;
  border-width:1px !important;
  border-radius:6px !important;
  background-image:none !important;
  filter:none !important;
  text-decoration:none !important;
}

/* Asegura colores configurados en todos los textos relevantes */
body .agenda-jg-root.agenda-jg-v2 h1,
body .agenda-jg-root.agenda-jg-v2 h2,
body .agenda-jg-root.agenda-jg-v2 h3,
body .agenda-jg-root.agenda-jg-v2 h4,
body .agenda-jg-root.agenda-jg-v2 h5,
body .agenda-jg-root.agenda-jg-v2 h6,
body .agenda-jg-root.agenda-jg-v2 p,
body .agenda-jg-root.agenda-jg-v2 li,
body .agenda-jg-root.agenda-jg-v2 span,
body .agenda-jg-root.agenda-jg-v2 strong{
  text-shadow:none !important;
}

/* Paneles y tarjetas */
body .agenda-jg-root.agenda-jg-v2 .ajg-card,
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-grid,
body .agenda-jg-root.agenda-jg-v2 .ajg-period-shell,
body .agenda-jg-root.agenda-jg-v2 .ajg-detail{
  background:var(--ajg2-white) !important;
  border-color:var(--ajg2-border) !important;
}

/* Navegación */
body .agenda-jg-root.agenda-jg-v2 .ajg-month-jump,
body .agenda-jg-root.agenda-jg-v2 .ajg-period-jump,
body .agenda-jg-root.agenda-jg-v2 .ajg-nav-btn,
body .agenda-jg-root.agenda-jg-v2 .ajg-detail-nav,
body .agenda-jg-root.agenda-jg-v2 .ajg-strip-arrow,
body .agenda-jg-root.agenda-jg-v2 .ajg-clear-filter{
  background:var(--ajg2-white) !important;
  color:var(--ajg2-navy) !important;
  border-color:var(--ajg2-border) !important;
}

/* Hover de navegación */
body .agenda-jg-root.agenda-jg-v2 .ajg-month-jump:hover,
body .agenda-jg-root.agenda-jg-v2 .ajg-period-jump:hover,
body .agenda-jg-root.agenda-jg-v2 .ajg-nav-btn:hover,
body .agenda-jg-root.agenda-jg-v2 .ajg-detail-nav:hover,
body .agenda-jg-root.agenda-jg-v2 .ajg-strip-arrow:hover,
body .agenda-jg-root.agenda-jg-v2 .ajg-clear-filter:hover{
  background:var(--ajg2-navy-hover) !important;
  color:var(--ajg2-white) !important;
  border-color:var(--ajg2-navy-hover) !important;
}
/* Selectores */
body .agenda-jg-root.agenda-jg-v2 .ajg-month-select,
body .agenda-jg-root.agenda-jg-v2 .ajg-year-select,
body .agenda-jg-root.agenda-jg-v2 .ajg-week-date-picker,
body .agenda-jg-root.agenda-jg-v2 .ajg-day-date-picker,
body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker{
  background:var(--ajg2-white) !important;
  color:var(--ajg2-text) !important;
  border-color:var(--ajg2-border) !important;
  -webkit-text-fill-color:var(--ajg2-text) !important;
}

/* Días del calendario y vista semanal */
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-day,
body .agenda-jg-root.agenda-jg-v2 .ajg-week-day-head{
  background:transparent !important;
  color:var(--ajg2-text) !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-day:hover,
body .agenda-jg-root.agenda-jg-v2 .ajg-week-day-head:hover{
  background:var(--ajg2-navy-hover) !important;
  color:var(--ajg2-white) !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-day.is-selected,
body .agenda-jg-root.agenda-jg-v2 .ajg-week-day.is-selected .ajg-week-day-head strong{
  background:var(--ajg2-navy) !important;
  color:var(--ajg2-white) !important;
}

/* Pestañas */
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode{
  background:var(--ajg2-white) !important;
  border-color:var(--ajg2-navy) !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button{
  background:var(--ajg2-white) !important;
  color:var(--ajg2-navy) !important;
  border-color:var(--ajg2-navy) !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button:hover{
  background:var(--ajg2-navy-hover) !important;
  color:var(--ajg2-white) !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button.is-active,
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button[aria-pressed="true"]{
  background:var(--ajg2-navy) !important;
  color:var(--ajg2-white) !important;
}

/* Iconos y líneas de acento */
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-accent,
body .agenda-jg-root.agenda-jg-v2 .ajg-event-accent{
  background:var(--ajg2-red) !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event-icon{
  border-color:var(--ajg2-red) !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event-icon::before,
body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event-icon::after{
  background:var(--ajg2-red) !important;
}

/* Evita estados visitados del tema */
body .agenda-jg-root.agenda-jg-v2 a:visited{
  color:var(--ajg2-navy) !important;
}


/* ==========================================================================
   AGENDA JG 2.8 — FRANJA SUPERIOR DE DÍAS AISLADA DEL TEMA
   ========================================================================== */

/* Contenedor completo de la franja */
body .agenda-jg-root.agenda-jg-v2 .ajg-detail-strip{
  background:var(--ajg2-soft) !important;
  border-color:var(--ajg2-border) !important;
}

/* Flechas laterales */
body .agenda-jg-root.agenda-jg-v2 .ajg-strip-arrow{
  background:var(--ajg2-white) !important;
  color:var(--ajg2-navy) !important;
  border-color:var(--ajg2-border) !important;
  background-image:none !important;
  box-shadow:none !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-strip-arrow:hover{
  background:var(--ajg2-navy-hover) !important;
  color:var(--ajg2-white) !important;
  border-color:var(--ajg2-navy-hover) !important;
}

/* Cada día en estado normal */
body .agenda-jg-root.agenda-jg-v2 .ajg-strip-day{
  background:var(--ajg2-white) !important;
  color:var(--ajg2-text) !important;
  border-color:var(--ajg2-border) !important;
  border-bottom-color:var(--ajg2-border) !important;
  background-image:none !important;
  box-shadow:none !important;
  text-shadow:none !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-strip-day span,
body .agenda-jg-root.agenda-jg-v2 .ajg-strip-day strong{
  color:var(--ajg2-text) !important;
}

/* Hover de cada día */
body .agenda-jg-root.agenda-jg-v2 .ajg-strip-day:hover{
  background:var(--ajg2-navy-hover) !important;
  color:var(--ajg2-white) !important;
  border-color:var(--ajg2-navy-hover) !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-strip-day:hover span,
body .agenda-jg-root.agenda-jg-v2 .ajg-strip-day:hover strong{
  color:var(--ajg2-white) !important;
}

/* Día activo */
body .agenda-jg-root.agenda-jg-v2 .ajg-strip-day.is-active{
  background:var(--ajg2-navy) !important;
  color:var(--ajg2-white) !important;
  border-color:var(--ajg2-navy) !important;
  border-bottom-color:var(--ajg2-red) !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-strip-day.is-active span,
body .agenda-jg-root.agenda-jg-v2 .ajg-strip-day.is-active strong{
  color:var(--ajg2-white) !important;
}

/* Día activo al pasar el mouse */
body .agenda-jg-root.agenda-jg-v2 .ajg-strip-day.is-active:hover{
  background:var(--ajg2-navy-hover) !important;
  border-color:var(--ajg2-navy-hover) !important;
  border-bottom-color:var(--ajg2-red) !important;
}

/* Evitar estilos de botones de Elementor y del tema */
body .agenda-jg-root.agenda-jg-v2 .ajg-detail-strip button{
  font-family:inherit !important;
  font-weight:400 !important;
  text-transform:none !important;
  letter-spacing:normal !important;
  border-radius:0 !important;
  outline:none !important;
  filter:none !important;
}

body .agenda-jg-root.agenda-jg-v2 .ajg-detail-strip button:focus-visible{
  outline:2px solid var(--ajg2-navy) !important;
  outline-offset:-2px !important;
}

/* Separadores entre días */
body .agenda-jg-root.agenda-jg-v2 .ajg-strip-days{
  background:var(--ajg2-border) !important;
  gap:1px !important;
}

/* En móvil, mantener el mismo esquema de color */
@media(max-width:900px){
  body .agenda-jg-root.agenda-jg-v2 .ajg-strip-days{
    background:var(--ajg2-border) !important;
  }
}


/* ==========================================================================
   AGENDA JG 2.10 — COLORES INDEPENDIENTES PARA LOS DÍAS DEL WIDGET
   ========================================================================== */

/* Fondo de los días inactivos */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day{
  background-color:var(--ajg-widget-day-inactive-bg) !important;
}

/* Fondo del día activo */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day.is-active{
  background-color:var(--ajg-widget-day-active-bg) !important;
  border-color:var(--ajg2-border) !important;
  border-bottom-color:var(--ajg2-red) !important;
  border-bottom-width:1px !important;
}

/* Fondo al pasar el cursor */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day:hover,
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day.is-active:hover{
  background-color:var(--ajg-widget-day-hover-bg) !important;
}

/* Separadores con el mismo grosor que el resto del plugin */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-days{
  gap:0 !important;
  background:transparent !important;
}

body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day{
  border-width:0 1px 1px 0 !important;
  border-style:solid !important;
  border-color:var(--ajg2-border) !important;
}

body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day:first-child{
  border-left-width:1px !important;
}

body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-arrow{
  border-width:0 1px 1px 0 !important;
  border-style:solid !important;
  border-color:var(--ajg2-border) !important;
}


/* ==========================================================================
   AGENDA JG 2.11 — FONDO DE FLECHAS IGUAL A DÍAS INACTIVOS
   ========================================================================== */

body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-arrow{
  background-color:var(--ajg-widget-day-inactive-bg) !important;
  color:var(--ajg2-navy) !important;
  border-color:var(--ajg2-border) !important;
}

/* Mantener el color hover configurado para las flechas */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-arrow:hover{
  background-color:var(--ajg-widget-day-hover-bg) !important;
  color:var(--ajg2-white) !important;
  border-color:var(--ajg-widget-day-hover-bg) !important;
}

/* Mismo grosor de separadores */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-arrow{
  border-width:0 1px 1px 0 !important;
  border-style:solid !important;
}

body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip > .ajg-strip-arrow:last-child{
  border-right-width:0 !important;
}


/* ==========================================================================
   AGENDA JG 2.12 — FRANJA CONTINUA SIN SEPARADORES
   ========================================================================== */

/* Contenedor continuo */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip{
  overflow:hidden !important;
  border:0 !important;
  border-radius:8px 8px 0 0 !important;
  background:var(--ajg-widget-day-inactive-bg) !important;
}

/* Sin espacios ni líneas entre días */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-days{
  gap:0 !important;
  background:transparent !important;
}

/* Eliminar todos los separadores */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day,
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-arrow{
  border:0 !important;
  box-shadow:none !important;
}

/* Días inactivos y flechas con el mismo fondo */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day,
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-arrow{
  background-color:var(--ajg-widget-day-inactive-bg) !important;
}

/* Día activo */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day.is-active{
  background-color:var(--ajg-widget-day-active-bg) !important;
  border-bottom:0 !important;
}

/* Hover */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day:hover,
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-arrow:hover,
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day.is-active:hover{
  background-color:var(--ajg-widget-day-hover-bg) !important;
}

/* Esquinas exteriores */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip > .ajg-strip-arrow:first-child{
  border-radius:8px 0 0 0 !important;
}

body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip > .ajg-strip-arrow:last-child{
  border-radius:0 8px 0 0 !important;
}

/* Mantener elementos centrales unidos */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day{
  border-radius:0 !important;
}


/* ==========================================================================
   AGENDA JG 2.13 — DÍA ACTIVO Y LÍNEA DE ACENTO
   ========================================================================== */

body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day.is-active{
  position:relative !important;
  background-color:var(--ajg-widget-day-active-bg) !important;
  border:0 !important;
}

/* Línea inferior con el color y grosor del acento */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day.is-active::after{
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  height:4px !important;
  background-color:var(--ajg2-red) !important;
  pointer-events:none !important;
}

/* Mantener la línea al pasar el cursor */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day.is-active:hover::after{
  background-color:var(--ajg2-red) !important;
}


/* ==========================================================================
   AGENDA JG 2.14 — ESQUINA SUPERIOR IZQUIERDA SIN RADIO
   ========================================================================== */

/* La franja comienza recta junto a la columna lateral */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip{
  border-radius:0 8px 0 0 !important;
}

/* Flecha izquierda sin redondeo */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip > .ajg-strip-arrow:first-child{
  border-radius:0 !important;
}

/* Mantener redondeada únicamente la esquina superior derecha */
body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip > .ajg-strip-arrow:last-child{
  border-radius:0 8px 0 0 !important;
}


/* ==========================================================================
   AGENDA JG 2.15 — CALENDARIO MENSUAL SIN BORDES EN DÍAS INACTIVOS
   ========================================================================== */

/* Eliminar bordes de todos los días no seleccionados */
body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-day:not(.is-selected){
  border:0 !important;
  box-shadow:none !important;
}

/* Mantener limpio el fondo de los días normales */
body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-day:not(.is-selected):not(:hover){
  background:transparent !important;
}

/* Los días que no pertenecen al mes activo usan el texto secundario */
body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-day.is-outside,
body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-day.is-outside .ajg-day-number{
  color:var(--ajg2-muted) !important;
}

/* Hover de días de otros meses */
body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-day.is-outside:hover,
body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-day.is-outside:hover .ajg-day-number{
  color:var(--ajg2-white) !important;
}

/* Día activo conserva su estilo */
body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-day.is-selected{
  border:0 !important;
  box-shadow:none !important;
}


/* ==========================================================================
   AGENDA JG 2.16 — CABECERA CONFIGURABLE DEL WIDGET
   ========================================================================== */

body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-side{
  display:flex !important;
  flex-direction:column !important;
  min-height:100% !important;
}

body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-label{
  display:block !important;
  margin:0 0 14px !important;
  color:var(--ajg-widget-title-color) !important;
  font-size:18px !important;
  font-weight:400 !important;
  line-height:1.3 !important;
  text-decoration:none !important;
}

body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-date-content{
  display:block;
}

body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle-wrap{
  margin-top:auto !important;
  padding-top:24px !important;
}

body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle{
  display:inline-block !important;
  color:var(--ajg-widget-subtitle-color) !important;
  font-size:15px !important;
  font-weight:400 !important;
  line-height:1.4 !important;
  text-decoration:underline !important;
  text-underline-offset:3px !important;
}

body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] a.ajg-detail-subtitle:hover{
  color:var(--ajg-widget-subtitle-hover-color) !important;
}

@media(max-width:650px){
  body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-side{
    display:grid !important;
    grid-template-columns:auto auto auto 1fr !important;
  }

  body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-label{
    grid-column:1/-1 !important;
  }

  body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-date-content{
    display:contents !important;
  }

  body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle-wrap{
    grid-column:1/-1 !important;
    margin-top:10px !important;
    padding-top:8px !important;
  }
}


/* ==========================================================================
   AGENDA JG 2.17 — TÍTULO EN NEGRILLA Y SUBTÍTULO SIN SUBRAYADO
   ========================================================================== */

body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-label{
  font-weight:700 !important;
}

body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle{
  font-weight:500 !important;
  text-decoration:none !important;
  text-underline-offset:0 !important;
}

body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] a.ajg-detail-subtitle:hover{
  color:var(--ajg-widget-subtitle-hover-color) !important;
  text-decoration:none !important;
}


/* ==========================================================================
   AGENDA JG 2.18 — COMPATIBILIDAD UNIVERSAL CON TEMAS
   Refuerzo específico para temas que aplican estilos globales agresivos
   como Consulting, Divi, Avada, etc.
   ========================================================================== */

/* Reset interno controlado */
html body .agenda-jg-root.agenda-jg-v2,
html body .agenda-jg-root.agenda-jg-v2 *{
  font-family:inherit !important;
  box-sizing:border-box !important;
  text-transform:none !important;
  text-shadow:none !important;
  filter:none !important;
}

html body .agenda-jg-root.agenda-jg-v2 *::before,
html body .agenda-jg-root.agenda-jg-v2 *::after{
  box-sizing:border-box !important;
  text-shadow:none !important;
  filter:none !important;
}

/* Evitar estilos de enlaces del tema */
html body .agenda-jg-root.agenda-jg-v2 a,
html body .agenda-jg-root.agenda-jg-v2 a:link,
html body .agenda-jg-root.agenda-jg-v2 a:visited,
html body .agenda-jg-root.agenda-jg-v2 a:active{
  color:var(--ajg2-navy) !important;
  background:transparent !important;
  background-image:none !important;
  text-decoration:none !important;
  border:0 !important;
  box-shadow:none !important;
  outline:none !important;
}

html body .agenda-jg-root.agenda-jg-v2 a:hover{
  color:var(--ajg2-navy-hover) !important;
  text-decoration:none !important;
}

/* Evitar subrayados generados por pseudo-elementos del tema */
html body .agenda-jg-root.agenda-jg-v2 a::before,
html body .agenda-jg-root.agenda-jg-v2 a::after{
  content:none !important;
  display:none !important;
}

/* Botones: neutralizar estilos globales */
html body .agenda-jg-root.agenda-jg-v2 button,
html body .agenda-jg-root.agenda-jg-v2 input[type="button"],
html body .agenda-jg-root.agenda-jg-v2 input[type="submit"]{
  -webkit-appearance:none !important;
  appearance:none !important;
  background-image:none !important;
  text-shadow:none !important;
  box-shadow:none !important;
  letter-spacing:normal !important;
  font-style:normal !important;
  line-height:1.2 !important;
}

/* Formularios */
html body .agenda-jg-root.agenda-jg-v2 input,
html body .agenda-jg-root.agenda-jg-v2 select,
html body .agenda-jg-root.agenda-jg-v2 textarea{
  background-image:none !important;
  box-shadow:none !important;
  text-shadow:none !important;
  color:var(--ajg2-text) !important;
  border-color:var(--ajg2-border) !important;
}

/* Títulos, textos y fechas */
html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-label{
  color:var(--ajg-widget-title-color) !important;
  font-weight:700 !important;
  text-decoration:none !important;
  border:0 !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-label::before,
html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-label::after{
  content:none !important;
  display:none !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-subtitle,
html body .agenda-jg-root.agenda-jg-v2 a.ajg-detail-subtitle,
html body .agenda-jg-root.agenda-jg-v2 a.ajg-detail-subtitle:visited{
  color:var(--ajg-widget-subtitle-color) !important;
  font-weight:500 !important;
  text-decoration:none !important;
  border:0 !important;
  box-shadow:none !important;
}

html body .agenda-jg-root.agenda-jg-v2 a.ajg-detail-subtitle:hover{
  color:var(--ajg-widget-subtitle-hover-color) !important;
  text-decoration:none !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-day,
html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-month,
html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-year{
  background:transparent !important;
  background-image:none !important;
}

/* Franja superior */
html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip{
  background:var(--ajg-widget-day-inactive-bg) !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day,
html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-arrow{
  background:var(--ajg-widget-day-inactive-bg) !important;
  background-image:none !important;
  color:var(--ajg2-text) !important;
  border:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day span,
html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day strong{
  color:var(--ajg2-text) !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day.is-active{
  background:var(--ajg-widget-day-active-bg) !important;
  color:var(--ajg2-white) !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day.is-active span,
html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day.is-active strong{
  color:var(--ajg2-white) !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-arrow:hover{
  background:var(--ajg-widget-day-hover-bg) !important;
  color:var(--ajg2-white) !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day:hover span,
html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day:hover strong{
  color:var(--ajg2-white) !important;
}

/* Contenido central */
html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-body{
  background:var(--ajg2-white) !important;
  color:var(--ajg2-text) !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-empty,
html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-full-date{
  color:var(--ajg2-muted) !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-title{
  color:var(--ajg2-text) !important;
  font-weight:400 !important;
}

/* Footer y botones anterior/siguiente */
html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-footer{
  background:var(--ajg2-soft) !important;
  border-color:var(--ajg2-border) !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-nav{
  background:var(--ajg2-white) !important;
  background-image:none !important;
  color:var(--ajg2-navy) !important;
  border-color:var(--ajg2-border) !important;
  box-shadow:none !important;
  text-shadow:none !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-nav:hover{
  background:var(--ajg2-navy-hover) !important;
  color:var(--ajg2-white) !important;
  border-color:var(--ajg2-navy-hover) !important;
}

/* Flechas laterales */
html body .agenda-jg-root.agenda-jg-v2 .ajg-strip-arrow{
  color:var(--ajg2-navy) !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-strip-arrow:hover{
  color:var(--ajg2-white) !important;
}

/* Selector de fecha */
html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker{
  background:var(--ajg2-white) !important;
  color:var(--ajg2-text) !important;
  border:1px solid var(--ajg2-border) !important;
}

/* Compatibilidad con reglas del tema basadas en .button, input y spans */
html body .agenda-jg-root.agenda-jg-v2 .button,
html body .agenda-jg-root.agenda-jg-v2 [class*="button"]{
  background-image:none !important;
  text-shadow:none !important;
  box-shadow:none !important;
}

/* Evitar opacidades heredadas */
html body .agenda-jg-root.agenda-jg-v2 button,
html body .agenda-jg-root.agenda-jg-v2 a,
html body .agenda-jg-root.agenda-jg-v2 span,
html body .agenda-jg-root.agenda-jg-v2 strong{
  opacity:1 !important;
}

/* Focus accesible */
html body .agenda-jg-root.agenda-jg-v2 button:focus,
html body .agenda-jg-root.agenda-jg-v2 button:focus-visible,
html body .agenda-jg-root.agenda-jg-v2 a:focus,
html body .agenda-jg-root.agenda-jg-v2 input:focus{
  outline:2px solid var(--ajg2-navy) !important;
  outline-offset:2px !important;
  box-shadow:none !important;
}

/* Asegurar bordes y radios definidos por el plugin */
html body .agenda-jg-root.agenda-jg-v2 .ajg-detail{
  border:1px solid var(--ajg2-border) !important;
  border-radius:14px !important;
  overflow:hidden !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip{
  border-radius:0 8px 0 0 !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip > .ajg-strip-arrow:first-child{
  border-radius:0 !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip > .ajg-strip-arrow:last-child{
  border-radius:0 8px 0 0 !important;
}


/* ==========================================================================
   AGENDA JG 2.20 — SUBTÍTULO ANCLADO EN LA PARTE INFERIOR
   ========================================================================== */

html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-side{
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  min-height:100% !important;
  padding-bottom:76px !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle-wrap{
  position:absolute !important;
  left:28px !important;
  right:28px !important;
  bottom:28px !important;
  margin:0 !important;
  padding:0 !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle{
  display:inline-block !important;
  margin:0 !important;
}

/* En móviles vuelve al flujo normal para evitar superposiciones */
@media(max-width:650px){
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-side{
    padding-bottom:18px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle-wrap{
    position:static !important;
    left:auto !important;
    right:auto !important;
    bottom:auto !important;
    margin-top:14px !important;
  }
}
/* ==========================================================================
   AGENDA JG 2.21 — COMPATIBILIDAD UNIVERSAL EN VISTAS RESTANTES
   ========================================================================== */

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"],
html body .agenda-jg-root.agenda-jg-v2[data-view="proximas"]{
  color:var(--ajg2-text)!important;
}
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] *,
html body .agenda-jg-root.agenda-jg-v2[data-view="proximas"] *{
  box-sizing:border-box!important;
  text-transform:none!important;
  text-shadow:none!important;
  filter:none!important;
}
/* Neutralización de enlaces */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] a,
html body .agenda-jg-root.agenda-jg-v2[data-view="proximas"] a{
  color:var(--ajg2-navy)!important;
  text-decoration:none!important;
  background:none!important;
  border:0!important;
  box-shadow:none!important;
}
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] a:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="proximas"] a:hover{
  color:var(--ajg2-navy-hover)!important;
}
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] a::before,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] a::after,
html body .agenda-jg-root.agenda-jg-v2[data-view="proximas"] a::before,
html body .agenda-jg-root.agenda-jg-v2[data-view="proximas"] a::after{
  content:none!important;
  display:none!important;
}

/* Controles */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] button,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] input,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] select{
  background-image:none!important;
  box-shadow:none!important;
  text-shadow:none!important;
  font-family:inherit!important;
  opacity:1!important;
}
/* Paneles y fondos */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-grid,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-calendar,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-events,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-period-shell,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-week-day,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-day-events-list,
html body .agenda-jg-root.agenda-jg-v2[data-view="proximas"] .ajg-card{
  background:var(--ajg2-white)!important;
  border-color:var(--ajg2-border)!important;
}

/* Barra superior y selectores */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-toolbar{
  background:var(--ajg2-soft)!important;
  border-color:var(--ajg2-border)!important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-month-select,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-year-select,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-week-date-picker,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-day-date-picker{
  background:var(--ajg2-white)!important;
  color:var(--ajg2-text)!important;
  border-color:var(--ajg2-border)!important;
}

/* Pestañas */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-mode{
  background:var(--ajg2-white)!important;
  border-color:var(--ajg2-navy)!important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-mode button{
  background:var(--ajg2-white)!important;
  color:var(--ajg2-navy)!important;
  border-color:var(--ajg2-navy)!important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-mode button.is-active,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-mode button[aria-pressed="true"]{
  background:var(--ajg2-navy)!important;
  color:var(--ajg2-white)!important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-mode button:hover{
  background:var(--ajg2-navy-hover)!important;
  color:var(--ajg2-white)!important;
}

/* Navegación */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-month-jump,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-period-jump{
  background:var(--ajg2-white)!important;
  color:var(--ajg2-navy)!important;
  border-color:var(--ajg2-border)!important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-month-jump:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-period-jump:hover{
  background:var(--ajg2-navy-hover)!important;
  color:var(--ajg2-white)!important;
}

/* Calendario mensual */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-day{
  background:transparent!important;
  color:var(--ajg2-text)!important;
  border:0!important;
  box-shadow:none!important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-day.is-outside,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-day.is-outside .ajg-day-number{
  color:var(--ajg2-muted)!important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-day.is-selected{
  background:var(--ajg2-navy)!important;
  color:var(--ajg2-white)!important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-day:hover{
  background:var(--ajg2-navy-hover)!important;
  color:var(--ajg2-white)!important;
}

/* Semanal y diaria */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-week-day-head{
  background:transparent!important;
  color:var(--ajg2-text)!important;
  border-color:var(--ajg2-border)!important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-week-day-head:hover{
  background:var(--ajg2-navy-hover)!important;
  color:var(--ajg2-white)!important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-week-day.is-selected .ajg-week-day-head strong{
  background:var(--ajg2-navy)!important;
  color:var(--ajg2-white)!important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-day-big{
  background:var(--ajg2-soft)!important;
  border-color:var(--ajg2-border)!important;
}

/* Acentos */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-accent,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-event-accent{
  background:var(--ajg2-red)!important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-event-icon{
  border-color:var(--ajg2-red)!important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-event-icon::before,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-event-icon::after{
  background:var(--ajg2-red)!important;
}


/* ==========================================================================
   AGENDA JG 2.22
   - Selectores de mes y año corregidos
   - Texto blanco en hover semanal y diario
   ========================================================================== */

/* Icono del calendario */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-calendar-icon{
  background:var(--ajg2-white) !important;
  color:var(--ajg2-navy) !important;
  border:1px solid var(--ajg2-border) !important;
  border-right:0 !important;
  box-shadow:none !important;
}

/* Selectores de mes y año: aspecto limpio e independiente del tema */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-month-select,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-year-select{
  -webkit-appearance:auto !important;
  appearance:auto !important;
  background-color:var(--ajg2-white) !important;
  background-image:none !important;
  color:var(--ajg2-text) !important;
  -webkit-text-fill-color:var(--ajg2-text) !important;
  border:1px solid var(--ajg2-border) !important;
  box-shadow:none !important;
  opacity:1 !important;
}

/* Unión visual correcta entre icono, mes y año */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-month-select{
  border-radius:0 !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-year-select{
  border-left:0 !important;
  border-radius:0 6px 6px 0 !important;
}

/* Opciones internas del select */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-month-select option,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-year-select option{
  background:var(--ajg2-white) !important;
  color:var(--ajg2-text) !important;
}

/* Hover semanal: día y número siempre blancos */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-week-day-head:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-week-day-head:hover span,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-week-day-head:hover strong{
  background:var(--ajg2-navy-hover) !important;
  color:var(--ajg2-white) !important;
  -webkit-text-fill-color:var(--ajg2-white) !important;
}

/* Hover diario y navegación de periodo */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-period-jump:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-period-jump:hover span,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-period-jump:hover strong{
  background:var(--ajg2-navy-hover) !important;
  color:var(--ajg2-white) !important;
  -webkit-text-fill-color:var(--ajg2-white) !important;
}

/* Si la vista diaria reutiliza encabezados de día */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-day-view button:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-day-view button:hover span,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-day-view button:hover strong{
  color:var(--ajg2-white) !important;
  -webkit-text-fill-color:var(--ajg2-white) !important;
}

/* Refuerzo para temas que aplican color directo sobre hijos */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] button:hover *,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-week-day-head:hover *{
  color:var(--ajg2-white) !important;
  -webkit-text-fill-color:var(--ajg2-white) !important;
}


/* ==========================================================================
   AGENDA JG 2.23 — CORRECCIÓN DIRECTA PARA CONSULTING
   ========================================================================== */

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-monthly-selectors > select.ajg-month-select,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-monthly-selectors > select.ajg-year-select{
  appearance:auto !important;
  -webkit-appearance:auto !important;
  background-color:var(--ajg2-white) !important;
  background-image:none !important;
  color:var(--ajg2-text) !important;
  -webkit-text-fill-color:var(--ajg2-text) !important;
  border-color:var(--ajg2-border) !important;
  box-shadow:none !important;
  opacity:1 !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-week-view .ajg-week-day-head:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-week-view .ajg-week-day-head:hover *,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-week-view .ajg-period-jump:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-week-view .ajg-period-jump:hover *,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-day-view .ajg-period-jump:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-day-view .ajg-period-jump:hover *,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-day-view .ajg-monthly-mode button:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-day-view .ajg-monthly-mode button:hover *{
  color:var(--ajg2-white) !important;
  -webkit-text-fill-color:var(--ajg2-white) !important;
}


/* ==========================================================================
   AGENDA JG 2.25 — SELECTORES PROPIOS DE MES Y AÑO
   ========================================================================== */

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select{
  position:relative !important;
  height:46px !important;
  margin:0 !important;
  padding:0 !important;
  background:var(--ajg2-white) !important;
  border:1px solid var(--ajg2-border) !important;
  box-shadow:none !important;
  font-family:inherit !important;
  z-index:20;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-month-custom{
  width:230px !important;
  border-radius:0 !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-year-custom{
  width:150px !important;
  border-left:0 !important;
  border-radius:0 6px 6px 0 !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select-toggle{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  width:100% !important;
  height:44px !important;
  min-height:44px !important;
  margin:0 !important;
  padding:0 14px 0 18px !important;
  background:var(--ajg2-white) !important;
  background-image:none !important;
  color:var(--ajg2-text) !important;
  border:0 !important;
  border-radius:inherit !important;
  box-shadow:none !important;
  text-shadow:none !important;
  font-family:inherit !important;
  font-size:14px !important;
  font-weight:400 !important;
  line-height:1 !important;
  text-align:left !important;
  cursor:pointer !important;
  opacity:1 !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select-toggle:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select-toggle:focus{
  background:var(--ajg2-white) !important;
  color:var(--ajg2-text) !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select-label{
  color:var(--ajg2-text) !important;
  -webkit-text-fill-color:var(--ajg2-text) !important;
  font-weight:400 !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select-arrow{
  color:var(--ajg2-muted) !important;
  -webkit-text-fill-color:var(--ajg2-muted) !important;
  font-size:12px !important;
  line-height:1 !important;
  transition:transform .15s ease;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select.is-open .ajg-custom-select-arrow{
  transform:rotate(180deg);
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select-menu{
  position:absolute !important;
  top:calc(100% + 4px) !important;
  left:-1px !important;
  right:-1px !important;
  max-height:260px !important;
  overflow-y:auto !important;
  margin:0 !important;
  padding:5px !important;
  background:var(--ajg2-white) !important;
  border:1px solid var(--ajg2-border) !important;
  border-radius:6px !important;
  box-shadow:0 10px 24px rgba(0,0,0,.12) !important;
  z-index:9999 !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select-menu[hidden]{
  display:none !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select-option{
  display:block !important;
  width:100% !important;
  min-height:38px !important;
  margin:0 !important;
  padding:8px 12px !important;
  background:var(--ajg2-white) !important;
  background-image:none !important;
  color:var(--ajg2-text) !important;
  border:0 !important;
  border-radius:4px !important;
  box-shadow:none !important;
  text-align:left !important;
  font-family:inherit !important;
  font-size:14px !important;
  font-weight:400 !important;
  line-height:1.3 !important;
  cursor:pointer !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select-option:hover{
  background:var(--ajg2-navy-hover) !important;
  color:var(--ajg2-white) !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select-option.is-selected{
  background:var(--ajg2-navy) !important;
  color:var(--ajg2-white) !important;
  font-weight:600 !important;
}

@media(max-width:680px){
  html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-month-custom{
    width:52% !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-year-custom{
    width:32% !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select,
  html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select-toggle{
    height:42px !important;
    min-height:40px !important;
  }
}


/* ==========================================================================
   AGENDA JG 2.26 — SELECTORES NEUTROS SIN BUTTON
   ========================================================================== */

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select{
  display:block !important;
  position:relative !important;
  flex:0 0 auto !important;
  min-width:0 !important;
  height:46px !important;
  margin:0 !important;
  padding:0 !important;
  background-color:var(--ajg2-white) !important;
  border:1px solid var(--ajg2-border) !important;
  box-shadow:none !important;
  overflow:visible !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-month-custom{
  width:230px !important;
  min-width:230px !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-year-custom{
  width:150px !important;
  min-width:150px !important;
  border-left:0 !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] div.ajg-custom-select-toggle{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  width:100% !important;
  height:44px !important;
  min-height:44px !important;
  margin:0 !important;
  padding:0 14px 0 18px !important;
  background-color:var(--ajg2-white) !important;
  background-image:none !important;
  color:var(--ajg2-text) !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  font-family:inherit !important;
  font-size:14px !important;
  font-weight:400 !important;
  line-height:1 !important;
  text-align:left !important;
  cursor:pointer !important;
  opacity:1 !important;
  -webkit-text-fill-color:var(--ajg2-text) !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] div.ajg-custom-select-toggle:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] div.ajg-custom-select-toggle:focus{
  background-color:var(--ajg2-white) !important;
  color:var(--ajg2-text) !important;
  -webkit-text-fill-color:var(--ajg2-text) !important;
  outline:2px solid transparent !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select-label{
  display:block !important;
  color:var(--ajg2-text) !important;
  -webkit-text-fill-color:var(--ajg2-text) !important;
  font-size:14px !important;
  font-weight:400 !important;
  opacity:1 !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select-arrow{
  display:block !important;
  color:var(--ajg2-muted) !important;
  -webkit-text-fill-color:var(--ajg2-muted) !important;
  opacity:1 !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] div.ajg-custom-select-option{
  display:block !important;
  width:100% !important;
  min-height:38px !important;
  margin:0 !important;
  padding:9px 12px !important;
  background-color:var(--ajg2-white) !important;
  color:var(--ajg2-text) !important;
  -webkit-text-fill-color:var(--ajg2-text) !important;
  border:0 !important;
  border-radius:4px !important;
  box-shadow:none !important;
  font-family:inherit !important;
  font-size:14px !important;
  font-weight:400 !important;
  line-height:1.3 !important;
  cursor:pointer !important;
  opacity:1 !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] div.ajg-custom-select-option:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] div.ajg-custom-select-option:focus{
  background-color:var(--ajg2-navy-hover) !important;
  color:var(--ajg2-white) !important;
  -webkit-text-fill-color:var(--ajg2-white) !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] div.ajg-custom-select-option.is-selected{
  background-color:var(--ajg2-navy) !important;
  color:var(--ajg2-white) !important;
  -webkit-text-fill-color:var(--ajg2-white) !important;
  font-weight:600 !important;
}

@media(max-width:680px){
  html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-month-custom{
    width:52% !important;
    min-width:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-year-custom{
    width:32% !important;
    min-width:0 !important;
  }
}
/* ==========================================================================
   AGENDA JG 2.44 — RADIOS CONFIGURABLES
   ========================================================================== */

/* Tarjetas,
widgets y cajas internas */
html body .agenda-jg-root.agenda-jg-v2 .ajg-card,
html body .agenda-jg-root.agenda-jg-v2 .ajg-detail,
html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-toolbar,
html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-grid,
html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar,
html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-events,
html body .agenda-jg-root.agenda-jg-v2 .ajg-period-shell,
html body .agenda-jg-root.agenda-jg-v2 .ajg-week-day,
html body .agenda-jg-root.agenda-jg-v2 .ajg-day-events-list,
html body .agenda-jg-root.agenda-jg-v2 .ajg-day-big,
html body .agenda-jg-root.agenda-jg-v2 .ajg-custom-select-menu{
  border-radius:var(--ajg-radius-card, 8px) !important;
}
/* Botones,
campos,
días,
selectores y paginación */
html body .agenda-jg-root.agenda-jg-v2 button:not(.ajg-nav-btn),
html body .agenda-jg-root.agenda-jg-v2 input,
html body .agenda-jg-root.agenda-jg-v2 select,
html body .agenda-jg-root.agenda-jg-v2 textarea,
html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode,
html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-day,
html body .agenda-jg-root.agenda-jg-v2 .ajg-selected-day-circle,
html body .agenda-jg-root.agenda-jg-v2 .ajg-week-day-head strong,
html body .agenda-jg-root.agenda-jg-v2 .ajg-custom-select,
html body .agenda-jg-root.agenda-jg-v2 .ajg-custom-select-toggle,
html body .agenda-jg-root.agenda-jg-v2 .ajg-custom-select-option,
html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker,
html body .agenda-jg-root.agenda-jg-v2 .ajg-month-select,
html body .agenda-jg-root.agenda-jg-v2 .ajg-year-select,
html body .agenda-jg-root.agenda-jg-v2 .ajg-week-date-picker,
html body .agenda-jg-root.agenda-jg-v2 .ajg-day-date-picker{
  border-radius:var(--ajg-radius-control, 4px) !important;
}

/*
 * Se conservan circulares los elementos cuya forma tiene función visual:
 * flechas circulares, puntos indicadores y otros elementos redondos.
 */


/* ==========================================================================
   AGENDA JG 2.47 — ICONOS SVG UNIFICADOS
   ========================================================================== */

html body .agenda-jg-root.agenda-jg-v2 .ajg-activity-svg{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 auto !important;
  width:42px !important;
  height:42px !important;
  border:0 !important;
  border-radius:50% !important;
  box-sizing:border-box !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-activity-svg svg{
  display:block !important;
  width:25px !important;
  height:25px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.8 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-icon-group{
  color:#175fc4 !important;
  background:#e9f1fc !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-icon-church{
  color:#158a43 !important;
  background:#e7f5eb !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-icon-cross{
  color:#7432bf !important;
  background:#f0e8fb !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-icon-calendar{
  color:var(--ajg2-red) !important;
  background:#fceaea !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-event-simple{
  display:grid !important;
  grid-template-columns:42px minmax(0,1fr) !important;
  gap:16px !important;
  align-items:start !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-event-icon{
  margin-top:1px !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event{
  grid-template-columns:42px minmax(0,1fr) !important;
  gap:16px !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event-icon{
  position:static !important;
  width:42px !important;
  height:42px !important;
  margin-top:0 !important;
  border:0 !important;
  color:inherit !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event-icon::before,
html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event-icon::after{
  display:none !important;
  content:none !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar-icon{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:22px !important;
  height:22px !important;
  color:var(--ajg2-navy) !important;
  font-size:0 !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar-icon svg{
  width:18px !important;
  height:18px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.8 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

@media(max-width:680px){
  html body .agenda-jg-root.agenda-jg-v2 .ajg-activity-svg{
    width:36px !important;
    height:36px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-activity-svg svg{
    width:21px !important;
    height:21px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-event-simple,
  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event{
    grid-template-columns:36px minmax(0,1fr) !important;
    gap:12px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event-icon{
    width:36px !important;
    height:36px !important;
  }
}


/* ==========================================================================
   AGENDA JG 2.48 — COLUMNAS AUTOMÁTICAS EN VISTA DETALLE
   ========================================================================== */

html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-body{
  display:grid !important;
  align-content:start !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-body--one-column{
  grid-template-columns:minmax(0,1fr) !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-body--two-columns{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  column-gap:30px !important;
  row-gap:0 !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-body--two-columns .ajg-detail-event{
  min-width:0 !important;
  height:100% !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-body--two-columns .ajg-detail-event:nth-child(odd){
  border-right:1px solid var(--ajg2-border) !important;
  padding-right:28px !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-body--two-columns .ajg-detail-event:nth-child(even){
  padding-left:0 !important;
}

/* Si la última fila queda incompleta, la actividad permanece en la primera columna. */
html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-body--two-columns .ajg-detail-event:last-child:nth-child(odd){
  grid-column:1 / 2 !important;
}

/* En tabletas y móviles siempre se usa una sola columna. */
@media(max-width:900px){
  html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-body--two-columns{
    grid-template-columns:minmax(0,1fr) !important;
    column-gap:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-body--two-columns .ajg-detail-event:nth-child(odd){
    border-right:0 !important;
    padding-right:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-detail-body--two-columns .ajg-detail-event:last-child:nth-child(odd){
    grid-column:auto !important;
  }
}


/* ==========================================================================
   AGENDA JG 2.51 — SELECTOR DE FECHA UNIFICADO
   ========================================================================== */

/*
 * El bloque del icono, mes y año se comporta como una sola pieza visual.
 * Se neutralizan fondos, espacios y radios heredados del tema.
 */
html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-filters,
html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-date-controls{
  display:inline-flex !important;
  align-items:stretch !important;
  gap:0 !important;
  margin:0 !important;
  padding:0 !important;
  background:var(--ajg2-white) !important;
  border:1px solid var(--ajg2-border) !important;
  border-radius:var(--ajg-radius-control, 4px) !important;
  overflow:hidden !important;
  box-shadow:none !important;
}

/* Bloque del icono */
html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar-icon{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 58px !important;
  width:58px !important;
  min-width:58px !important;
  height:40px !important;
  margin:0 !important;
  padding:0 !important;
  background:var(--ajg2-white) !important;
  color:var(--ajg2-navy) !important;
  border:0 !important;
  border-right:1px solid var(--ajg2-border) !important;
  border-radius:0 !important;
  box-shadow:none !important;
  line-height:1 !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar-icon svg{
  display:block !important;
  width:18px !important;
  height:18px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.8 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

/* Mes y año */
html body .agenda-jg-root.agenda-jg-v2 .ajg-month-select,
html body .agenda-jg-root.agenda-jg-v2 .ajg-year-select,
html body .agenda-jg-root.agenda-jg-v2 .ajg-custom-select{
  height:40px !important;
  min-height:40px !important;
  margin:0 !important;
  padding:0 !important;
  background:var(--ajg2-white) !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-month-select,
html body .agenda-jg-root.agenda-jg-v2 .ajg-custom-select:first-of-type{
  border-right:1px solid var(--ajg2-border) !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-month-select,
html body .agenda-jg-root.agenda-jg-v2 .ajg-year-select{
  padding:0 38px 0 16px !important;
  color:var(--ajg2-text) !important;
}

/* Selectores personalizados */
html body .agenda-jg-root.agenda-jg-v2 .ajg-custom-select-toggle{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  width:100% !important;
  height:40px !important;
  min-height:40px !important;
  margin:0 !important;
  padding:0 14px !important;
  background:var(--ajg2-white) !important;
  color:var(--ajg2-text) !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-custom-select-toggle:hover,
html body .agenda-jg-root.agenda-jg-v2 .ajg-custom-select-toggle:focus,
html body .agenda-jg-root.agenda-jg-v2 .ajg-month-select:hover,
html body .agenda-jg-root.agenda-jg-v2 .ajg-year-select:hover,
html body .agenda-jg-root.agenda-jg-v2 .ajg-month-select:focus,
html body .agenda-jg-root.agenda-jg-v2 .ajg-year-select:focus{
  background:var(--ajg2-soft) !important;
  color:var(--ajg2-text) !important;
  outline:0 !important;
  box-shadow:inset 0 0 0 1px var(--ajg2-border) !important;
}

/* El radio pertenece solo al contenedor general */
html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar-icon:first-child{
  border-top-left-radius:calc(var(--ajg-radius-control, 4px) - 1px) !important;
  border-bottom-left-radius:calc(var(--ajg-radius-control, 4px) - 1px) !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-year-select:last-child,
html body .agenda-jg-root.agenda-jg-v2 .ajg-custom-select:last-child .ajg-custom-select-toggle{
  border-top-right-radius:calc(var(--ajg-radius-control, 4px) - 1px) !important;
  border-bottom-right-radius:calc(var(--ajg-radius-control, 4px) - 1px) !important;
}

/* Evitar que reglas del tema separen visualmente las tres piezas */
html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-filters > *,
html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-date-controls > *{
  margin-top:0 !important;
  margin-bottom:0 !important;
}

@media(max-width:680px){
  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar-icon{
    flex-basis:48px !important;
    width:48px !important;
    min-width:48px !important;
  }
}


/* ==========================================================================
   AGENDA JG 2.52 — SELECTOR IZQUIERDO IGUALADO A LAS PESTAÑAS
   ========================================================================== */

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-filters,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-date-controls{
  height:44px !important;
  min-height:44px !important;
  background:var(--ajg2-white) !important;
  border:1px solid var(--ajg2-navy) !important;
  border-radius:7px !important;
  overflow:hidden !important;
  box-shadow:none !important;
}

/* Las tres piezas usan la misma altura y el mismo fondo. */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-calendar-icon,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-month-select,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-year-select,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select-toggle{
  height:44px !important;
  min-height:44px !important;
  background:var(--ajg2-white) !important;
  color:var(--ajg2-navy) !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}

/* Separadores con el mismo color y grosor de las pestañas. */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-calendar-icon,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-month-select,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select:first-of-type{
  border-right:1px solid var(--ajg2-navy) !important;
}

/* Medidas equivalentes a los controles Mensualmente/Semanalmente/Diariamente. */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-calendar-icon{
  flex:0 0 58px !important;
  width:58px !important;
  min-width:58px !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select-toggle,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-month-select,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-year-select{
  font-family:inherit !important;
  font-size:13px !important;
  font-weight:500 !important;
  line-height:1 !important;
}

/* Hover equivalente al de las pestañas inactivas. */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-calendar-icon:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select-toggle:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select-toggle:focus,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-month-select:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-year-select:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-month-select:focus,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-year-select:focus{
  background:#edf2f5 !important;
  color:var(--ajg2-navy) !important;
  outline:0 !important;
  box-shadow:none !important;
}

/* El radio se aplica solo al perímetro exterior, como en las pestañas. */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-calendar-icon:first-child{
  border-top-left-radius:6px !important;
  border-bottom-left-radius:6px !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-year-select:last-child,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select:last-child .ajg-custom-select-toggle{
  border-top-right-radius:6px !important;
  border-bottom-right-radius:6px !important;
}

@media(max-width:680px){
  html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-calendar-icon{
    flex-basis:48px !important;
    width:48px !important;
    min-width:48px !important;
  }
}


/* ==========================================================================
   AGENDA JG 2.53 — SEPARADORES DEL SELECTOR
   ========================================================================== */

/* El borde exterior y los separadores internos usan el mismo color. */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-filters,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-date-controls{
  border-color:var(--ajg2-border) !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-monthly-calendar-icon,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-month-select,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select:first-of-type{
  border-right-color:var(--ajg2-border) !important;
}


/* ==========================================================================
   AGENDA JG 2.54 — SELECTOR DE FECHA EN FIREFOX
   ========================================================================== */

/*
 * Firefox distribuye internamente las secciones del input date de forma
 * diferente a Chromium. Se reserva más ancho y espacio para el icono nativo,
 * evitando que este se superponga al año.
 */
@-moz-document url-prefix(){
  html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker{
    box-sizing:border-box !important;
    width:146px !important;
    min-width:146px !important;
    max-width:146px !important;
    height:42px !important;
    min-height:42px !important;
    padding:4px 27px 4px 8px !important;
    font-size:12px !important;
    line-height:1.2 !important;
    text-align:left !important;
    white-space:nowrap !important;
    overflow:visible !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 input[type="date"].ajg-date-picker{
    appearance:auto !important;
    -moz-appearance:auto !important;
  }
}

/* Base segura para todos los navegadores. */
html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker{
  box-sizing:border-box !important;
}


/* ==========================================================================
   AGENDA JG 2.55 — SELECTOR DE FECHA FIREFOX UNIFICADO
   ========================================================================== */

@-moz-document url-prefix(){
  html body .agenda-jg-root.agenda-jg-v2 input[type="date"].ajg-date-picker{
    -moz-appearance:textfield !important;
    appearance:textfield !important;
    box-sizing:border-box !important;

    width:138px !important;
    min-width:138px !important;
    max-width:138px !important;
    height:46px !important;
    min-height:46px !important;

    margin:0 !important;
    padding:0 34px 0 14px !important;

    background-color:var(--ajg2-white) !important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230b3553' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 2v3M17 2v3M3.5 8.5h17M5.5 4h13a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E") !important;
    background-repeat:no-repeat !important;
    background-position:right 12px center !important;
    background-size:15px 15px !important;

    color:var(--ajg2-text) !important;
    border:1px solid var(--ajg2-border) !important;
    border-radius:var(--ajg-radius-control, 4px) !important;
    box-shadow:none !important;

    font-family:inherit !important;
    font-size:13px !important;
    font-weight:400 !important;
    line-height:44px !important;
    text-align:left !important;
    white-space:nowrap !important;
    overflow:hidden !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 input[type="date"].ajg-date-picker:hover,
  html body .agenda-jg-root.agenda-jg-v2 input[type="date"].ajg-date-picker:focus{
    background-color:var(--ajg2-white) !important;
    border-color:var(--ajg2-border) !important;
    outline:0 !important;
    box-shadow:none !important;
  }
}


/* ==========================================================================
   AGENDA JG 2.56 — FECHA MÁS LEGIBLE EN FIREFOX
   ========================================================================== */

@-moz-document url-prefix(){
  html body .agenda-jg-root.agenda-jg-v2 input[type="date"].ajg-date-picker{
    font-size:14px !important;
    font-weight:500 !important;
  }
}


/* ==========================================================================
   AGENDA JG 2.58 — CALENDARIO PROPIO CON INICIO EN DOMINGO
   ========================================================================== */

html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker-wrap{
  position:relative !important;
  display:block !important;
  width:138px !important;
  max-width:100% !important;
  margin-top:18px !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker-button{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  width:138px !important;
  min-width:138px !important;
  height:46px !important;
  margin:0 !important;
  padding:0 12px 0 14px !important;
  background:var(--ajg2-white) !important;
  color:var(--ajg2-text) !important;
  border:1px solid var(--ajg2-border) !important;
  border-radius:var(--ajg-radius-control, 4px) !important;
  box-shadow:none !important;
  font-family:inherit !important;
  font-size:14px !important;
  font-weight:500 !important;
  line-height:1 !important;
  cursor:pointer !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker-button:hover,
html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker-button:focus{
  background:var(--ajg2-white) !important;
  color:var(--ajg2-text) !important;
  border-color:var(--ajg2-border) !important;
  outline:0 !important;
  box-shadow:none !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker-text{
  display:block !important;
  min-width:0 !important;
  white-space:nowrap !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker-icon{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 16px !important;
  width:16px !important;
  height:16px !important;
  margin-left:10px !important;
  color:var(--ajg2-muted) !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker-icon svg{
  display:block !important;
  width:15px !important;
  height:15px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.8 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker-popover{
  position:absolute !important;
  z-index:9999 !important;
  top:calc(100% + 10px) !important;
  left:0 !important;
  width:300px !important;
  padding:18px !important;
  background:var(--ajg2-white) !important;
  color:var(--ajg2-text) !important;
  border:1px solid var(--ajg2-border) !important;
  border-radius:var(--ajg-radius-card, 8px) !important;
  box-shadow:0 12px 32px rgba(11,53,83,.16) !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker-popover[hidden]{
  display:none !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  margin-bottom:16px !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-head strong{
  color:var(--ajg2-text) !important;
  font-size:15px !important;
  font-weight:700 !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-nav{
  display:flex !important;
  align-items:center !important;
  gap:4px !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-nav button{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:32px !important;
  height:32px !important;
  min-width:32px !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  color:var(--ajg2-navy) !important;
  border:0 !important;
  border-radius:var(--ajg-radius-control, 4px) !important;
  box-shadow:none !important;
  font-size:22px !important;
  line-height:1 !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-nav button:hover{
  background:var(--ajg2-soft) !important;
  color:var(--ajg2-navy) !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-weekdays,
html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-days{
  display:grid !important;
  grid-template-columns:repeat(7,minmax(0,1fr)) !important;
  gap:4px !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-weekdays{
  margin-bottom:6px !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-weekdays span{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:28px !important;
  color:var(--ajg2-muted) !important;
  font-size:11px !important;
  font-weight:600 !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-day{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  height:34px !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  color:var(--ajg2-text) !important;
  border:0 !important;
  border-radius:var(--ajg-radius-control, 4px) !important;
  box-shadow:none !important;
  font-family:inherit !important;
  font-size:13px !important;
  font-weight:500 !important;
  cursor:pointer !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-day:hover{
  background:var(--ajg2-soft) !important;
  color:var(--ajg2-navy) !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-day.is-outside{
  color:var(--ajg2-muted) !important;
  opacity:.55 !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-day.is-sunday{
  color:var(--ajg2-red) !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-day.is-selected{
  background:var(--ajg2-navy) !important;
  color:var(--ajg2-white) !important;
}

@media(max-width:680px){
  html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker-popover{
    width:280px !important;
    max-width:calc(100vw - 32px) !important;
  }
}


/* ==========================================================================
   AGENDA JG 2.59 — CALENDARIO DESPLEGABLE COMPLETO
   ========================================================================== */

html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker-popover{
  position:fixed !important;
  z-index:2147483000 !important;
  top:auto;
  left:auto;
  width:320px !important;
  min-width:320px !important;
  max-width:calc(100vw - 24px) !important;
  padding:20px !important;
  overflow:visible !important;
}

/* Seis filas completas de fechas, incluso en meses que las necesitan. */
html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-days{
  grid-auto-rows:36px !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-day{
  height:36px !important;
}

/* Lunes primero y domingo como última columna. */
html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-weekdays span:last-child{
  color:var(--ajg2-red) !important;
}

@media(max-width:680px){
  html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker-popover{
    width:300px !important;
    min-width:0 !important;
    max-width:calc(100vw - 24px) !important;
    padding:16px !important;
  }
}


/* ==========================================================================
   AGENDA JG 2.60 — APERTURA Y SEMANAS CORREGIDAS
   ========================================================================== */
html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-selectors .ajg-inline-date-picker{
  width:150px !important;
  margin:0 !important;
}
html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-selectors .ajg-inline-date-picker .ajg-date-picker-button{
  width:150px !important;
  min-width:150px !important;
  height:44px !important;
  min-height:44px !important;
}
html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker-popover:not([hidden]){
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
}
html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-weekdays span:last-child{
  color:var(--ajg2-red) !important;
}


/* ==========================================================================
   AGENDA JG 2.61 — SEMANAS DESDE DOMINGO
   ========================================================================== */

html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-weekdays span:first-child,
html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-weekdays span:first-child{
  color:var(--ajg2-red) !important;
}

html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-weekdays span:last-child,
html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-weekdays span:last-child{
  color:inherit !important;
}


/* ==========================================================================
   AGENDA JG 2.62 — TEXTO VISIBLE EN HOVER SEMANAL Y DIARIO
   ========================================================================== */

/*
 * Algunas reglas antiguas asignan texto blanco a todos los hijos de botones
 * en hover. El selector de fecha conserva fondo blanco, por lo que la fecha
 * desaparecía visualmente. Esta regla específica restaura el color correcto.
 */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-week-view .ajg-inline-date-picker .ajg-date-picker-button:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-week-view .ajg-inline-date-picker .ajg-date-picker-button:focus,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-day-view .ajg-inline-date-picker .ajg-date-picker-button:hover,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-day-view .ajg-inline-date-picker .ajg-date-picker-button:focus{
  background:var(--ajg2-white) !important;
  color:var(--ajg2-text) !important;
  border-color:var(--ajg2-border) !important;
  -webkit-text-fill-color:var(--ajg2-text) !important;
  box-shadow:none !important;
  outline:0 !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-week-view .ajg-inline-date-picker .ajg-date-picker-button:hover *,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-week-view .ajg-inline-date-picker .ajg-date-picker-button:focus *,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-day-view .ajg-inline-date-picker .ajg-date-picker-button:hover *,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-day-view .ajg-inline-date-picker .ajg-date-picker-button:focus *{
  color:var(--ajg2-text) !important;
  -webkit-text-fill-color:var(--ajg2-text) !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-week-view .ajg-inline-date-picker .ajg-date-picker-button:hover
.ajg-date-picker-icon,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-week-view .ajg-inline-date-picker .ajg-date-picker-button:focus
.ajg-date-picker-icon,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-day-view .ajg-inline-date-picker .ajg-date-picker-button:hover
.ajg-date-picker-icon,
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
.ajg-day-view .ajg-inline-date-picker .ajg-date-picker-button:focus
.ajg-date-picker-icon{
  color:var(--ajg2-muted) !important;
  -webkit-text-fill-color:var(--ajg2-muted) !important;
}


/* ==========================================================================
   AGENDA JG 2.64 — CAPA RESPONSIVE
   Las reglas de escritorio permanecen intactas.
   ========================================================================== */

/* TABLETAS Y PANTALLAS INTERMEDIAS */
@media (max-width:1024px){

  html body .agenda-jg-root.agenda-jg-v2{
    width:100% !important;
    max-width:100% !important;
    overflow:visible !important;
  }

  /* Barras superiores */
  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-toolbar{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:14px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-selectors,
  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode{
    width:100% !important;
    max-width:100% !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }

  /* Calendario mensual: calendario arriba, actividades debajo */
  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-grid{
    grid-template-columns:minmax(0,1fr) !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar{
    min-height:0 !important;
    border-right:0 !important;
    border-bottom:1px solid var(--ajg2-border) !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-events{
    min-height:0 !important;
  }

  /* Vista detalle */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail{
    grid-template-columns:minmax(190px,26%) minmax(0,1fr) !important;
  }

  /* Semana: conservar siete columnas mediante desplazamiento horizontal */
  html body .agenda-jg-root.agenda-jg-v2 .ajg-week-columns{
    display:grid !important;
    grid-template-columns:repeat(7,minmax(145px,1fr)) !important;
    overflow-x:auto !important;
    overscroll-behavior-inline:contain !important;
    -webkit-overflow-scrolling:touch !important;
    scrollbar-width:thin !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-day-panel{
    grid-template-columns:minmax(170px,28%) minmax(0,1fr) !important;
  }
}


/* TELÉFONOS */
@media (max-width:767px){

  html body .agenda-jg-root.agenda-jg-v2{
    font-size:15px !important;
    overflow:visible !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 button,
  html body .agenda-jg-root.agenda-jg-v2 input,
  html body .agenda-jg-root.agenda-jg-v2 select{
    max-width:100% !important;
  }

  /* ================================================================
     VISTA DETALLE
     ================================================================ */

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail{
    display:block !important;
    overflow:visible !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-side{
    width:100% !important;
    min-height:0 !important;
    padding:22px 18px !important;
    border-right:0 !important;
    border-bottom:1px solid var(--ajg2-border) !important;
    text-align:center !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-date-content{
    display:grid !important;
    grid-template-columns:auto auto !important;
    justify-content:center !important;
    align-items:end !important;
    gap:0 10px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-day{
    grid-row:1 / span 2 !important;
    font-size:54px !important;
    line-height:.95 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-month,
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-year{
    text-align:left !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-wrap{
    width:150px !important;
    margin:16px auto 0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-button{
    width:150px !important;
    min-width:150px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle-wrap{
    margin-top:14px !important;
    text-align:center !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-main{
    min-width:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip{
    display:flex !important;
    width:100% !important;
    min-width:0 !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    overscroll-behavior-inline:contain !important;
    scrollbar-width:thin !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-arrow{
    position:sticky !important;
    flex:0 0 42px !important;
    min-width:42px !important;
    z-index:3 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-arrow:first-child{
    left:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-arrow:last-child{
    right:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-days{
    display:grid !important;
    grid-template-columns:repeat(7,minmax(66px,1fr)) !important;
    flex:0 0 auto !important;
    min-width:462px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-body{
    padding:6px 16px 10px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-event-simple{
    grid-template-columns:36px minmax(0,1fr) !important;
    gap:12px !important;
    padding:18px 0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-title{
    overflow-wrap:anywhere !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-footer{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    padding:14px 16px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-nav{
    width:100% !important;
    min-width:0 !important;
  }


  /* ================================================================
     TOOLBAR DE CALENDARIOS
     ================================================================ */

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-toolbar{
    padding:12px !important;
    gap:12px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-selectors{
    display:flex !important;
    align-items:stretch !important;
    width:100% !important;
    min-width:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-filters,
  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-date-controls{
    display:flex !important;
    width:100% !important;
    min-width:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar-icon{
    flex:0 0 44px !important;
    width:44px !important;
    min-width:44px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-month-custom{
    flex:1 1 58% !important;
    width:auto !important;
    min-width:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-year-custom{
    flex:1 1 42% !important;
    width:auto !important;
    min-width:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-custom-select-toggle{
    min-width:0 !important;
    padding:0 9px !important;
    font-size:12px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    width:100% !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button{
    width:100% !important;
    min-width:0 !important;
    padding:0 4px !important;
    font-size:11px !important;
    white-space:normal !important;
    line-height:1.15 !important;
  }


  /* ================================================================
     CALENDARIO MENSUAL
     ================================================================ */

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-grid{
    overflow:visible !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar{
    padding:0 10px 20px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-month-nav-row{
    min-height:54px !important;
    margin:0 -10px 6px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-month-jump{
    min-width:88px !important;
    min-height:54px !important;
    padding:0 8px !important;
    font-size:12px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-title{
    margin:18px 0 10px !important;
    font-size:23px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-weekdays{
    gap:2px !important;
    padding-top:14px !important;
    font-size:10px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-days{
    gap:4px 2px !important;
    margin-top:10px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-day{
    min-height:44px !important;
    padding:3px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-day-number{
    font-size:13px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-day-dot{
    width:5px !important;
    height:5px !important;
    margin-top:4px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-events{
    padding:28px 16px 22px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-events-heading{
    min-height:0 !important;
    font-size:13px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event{
    grid-template-columns:36px minmax(0,1fr) !important;
    gap:12px !important;
    padding:19px 0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-event-title{
    font-size:15px !important;
    overflow-wrap:anywhere !important;
  }


  /* ================================================================
     VISTA SEMANAL Y DIARIA
     ================================================================ */

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-selectors .ajg-inline-date-picker{
    width:100% !important;
    max-width:100% !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-selectors .ajg-inline-date-picker .ajg-date-picker-button{
    width:100% !important;
    min-width:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-shell{
    overflow:visible !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-nav{
    display:grid !important;
    grid-template-columns:44px minmax(0,1fr) 44px !important;
    align-items:center !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-title{
    min-width:0 !important;
    padding:0 6px !important;
    font-size:14px !important;
    overflow-wrap:anywhere !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-week-columns{
    grid-template-columns:repeat(7,145px) !important;
    width:100% !important;
    overflow-x:auto !important;
    scroll-snap-type:x proximity !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-week-day{
    scroll-snap-align:start !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-day-panel{
    grid-template-columns:minmax(0,1fr) !important;
    min-height:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-day-big{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
    padding:20px 16px !important;
    border-right:0 !important;
    border-bottom:1px solid var(--ajg2-border) !important;
    text-align:center !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-day-events-list{
    padding:12px 16px 22px !important;
  }


  /* ================================================================
     CALENDARIO EMERGENTE
     ================================================================ */

  html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker-popover{
    width:min(320px,calc(100vw - 20px)) !important;
    min-width:0 !important;
    max-width:calc(100vw - 20px) !important;
    padding:14px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-weekdays,
  html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-days{
    gap:2px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-datepicker-day{
    min-width:0 !important;
    height:34px !important;
    font-size:12px !important;
  }
}


/* TELÉFONOS PEQUEÑOS */
@media (max-width:480px){

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-toolbar{
    padding:10px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button{
    min-height:46px !important;
    font-size:10px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar-icon{
    flex-basis:40px !important;
    width:40px !important;
    min-width:40px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-custom-select-toggle{
    padding:0 6px !important;
    font-size:11px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-month-jump{
    min-width:76px !important;
    font-size:11px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-title{
    font-size:21px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-day{
    min-height:40px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-days{
    grid-template-columns:repeat(7,62px) !important;
    min-width:434px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-footer{
    grid-template-columns:minmax(0,1fr) !important;
  }
}


/* ==========================================================================
   AGENDA JG 2.65 — AJUSTES RESPONSIVE DE NAVEGACIÓN
   Solo teléfonos y tabletas pequeñas.
   ========================================================================== */

@media (max-width:767px){

  /* ================================================================
     FRANJA SUPERIOR DE DÍAS: UNA SOLA FILA
     ================================================================ */

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip{
    display:grid !important;
    grid-template-columns:44px minmax(0,1fr) 44px !important;
    align-items:stretch !important;
    width:100% !important;
    min-width:0 !important;
    overflow:hidden !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-arrow{
    position:relative !important;
    inset:auto !important;
    z-index:4 !important;
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
    height:100% !important;
    min-height:88px !important;
    padding:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-days{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:stretch !important;
    width:100% !important;
    min-width:0 !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    gap:1px !important;
    scroll-snap-type:x proximity !important;
    scroll-padding-inline:0 !important;
    overscroll-behavior-inline:contain !important;
    -webkit-overflow-scrolling:touch !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day{
    flex:0 0 72px !important;
    width:72px !important;
    min-width:72px !important;
    max-width:72px !important;
    min-height:88px !important;
    padding:10px 4px !important;
    scroll-snap-align:start !important;
  }

  /* ================================================================
     BARRA SEMANAL Y DIARIA
     ================================================================ */

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-nav{
    display:grid !important;
    grid-template-columns:54px minmax(0,1fr) 54px !important;
    align-items:stretch !important;
    width:100% !important;
    min-width:0 !important;
    min-height:62px !important;
    padding:0 !important;
    overflow:hidden !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-jump{
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:54px !important;
    min-width:54px !important;
    max-width:54px !important;
    min-height:62px !important;
    margin:0 !important;
    padding:0 !important;
    font-size:0 !important;
    line-height:1 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-jump::before{
    display:block !important;
    color:var(--ajg2-navy) !important;
    font-size:24px !important;
    font-weight:400 !important;
    line-height:1 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-jump:first-child::before{
    content:"‹" !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-jump:last-child::before{
    content:"›" !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-jump:hover::before,
  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-jump:focus::before{
    color:inherit !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-title{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    min-width:0 !important;
    min-height:62px !important;
    margin:0 !important;
    padding:8px 10px !important;
    text-align:center !important;
    font-size:14px !important;
    font-weight:700 !important;
    line-height:1.25 !important;
    overflow-wrap:anywhere !important;
  }

  /* ================================================================
     COLUMNAS DE LA SEMANA
     ================================================================ */

  html body .agenda-jg-root.agenda-jg-v2 .ajg-week-columns{
    display:grid !important;
    grid-template-columns:repeat(7,145px) !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scroll-padding-left:0 !important;
    scroll-snap-type:x proximity !important;
    overscroll-behavior-inline:contain !important;
    -webkit-overflow-scrolling:touch !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-week-day{
    width:145px !important;
    min-width:145px !important;
    max-width:145px !important;
    margin:0 !important;
    scroll-snap-align:start !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-week-day:first-child{
    margin-left:0 !important;
  }

  /* ================================================================
     VISTA DIARIA
     ================================================================ */

  html body .agenda-jg-root.agenda-jg-v2 .ajg-day-panel{
    margin:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-day-big{
    min-height:0 !important;
    padding:18px 14px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-day-big strong{
    font-size:54px !important;
    line-height:.95 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-day-big span{
    font-size:18px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-day-events-list{
    min-width:0 !important;
    padding-top:8px !important;
  }

  /* Evitar que cualquier texto largo provoque ancho adicional */
  html body .agenda-jg-root.agenda-jg-v2 .ajg-week-event,
  html body .agenda-jg-root.agenda-jg-v2 .ajg-day-event,
  html body .agenda-jg-root.agenda-jg-v2 .ajg-day-events-list,
  html body .agenda-jg-root.agenda-jg-v2 .ajg-week-day{
    overflow-wrap:anywhere !important;
    word-break:normal !important;
  }
}


@media (max-width:480px){

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip{
    grid-template-columns:40px minmax(0,1fr) 40px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-arrow{
    width:40px !important;
    min-width:40px !important;
    max-width:40px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day{
    flex-basis:66px !important;
    width:66px !important;
    min-width:66px !important;
    max-width:66px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-nav{
    grid-template-columns:48px minmax(0,1fr) 48px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-jump{
    width:48px !important;
    min-width:48px !important;
    max-width:48px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-title{
    padding-inline:6px !important;
    font-size:13px !important;
  }
}


/* ==========================================================================
   AGENDA JG 2.67 — CORRECCIÓN MÓVIL PRECISA
   Base restaurada desde v2.65. Solo se activa hasta 600 px.
   ========================================================================== */

@media (max-width:600px){

  html body .agenda-jg-root.agenda-jg-v2,
  html body .agenda-jg-root.agenda-jg-v2 *{
    box-sizing:border-box !important;
  }

  html body .agenda-jg-root.agenda-jg-v2{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow:visible !important;
  }

  /* ================================================================
     TOOLBAR MENSUAL: ICONO + MES + AÑO EN UNA SOLA FILA
     ================================================================ */

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-toolbar{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
    width:100% !important;
    padding:10px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-selectors{
    display:grid !important;
    grid-template-columns:44px minmax(0,1fr) 92px !important;
    align-items:stretch !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    gap:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar-icon{
    grid-column:1 !important;
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
    height:44px !important;
    min-height:44px !important;
    margin:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-month-custom{
    grid-column:2 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-year-custom{
    grid-column:3 !important;
    width:92px !important;
    min-width:92px !important;
    max-width:92px !important;
    margin:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-month-custom .ajg-custom-select-toggle,
  html body .agenda-jg-root.agenda-jg-v2 .ajg-year-custom .ajg-custom-select-toggle{
    width:100% !important;
    min-width:0 !important;
    height:44px !important;
    min-height:44px !important;
    margin:0 !important;
    padding:0 10px !important;
    font-size:12px !important;
  }

  /* Selector de fecha semanal/diario */
  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-selectors
  .ajg-inline-date-picker{
    grid-column:1 / -1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-selectors
  .ajg-inline-date-picker .ajg-date-picker-button{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:44px !important;
    min-height:44px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-mode button{
    width:100% !important;
    min-width:0 !important;
    min-height:48px !important;
    padding:4px 2px !important;
    font-size:10px !important;
    line-height:1.15 !important;
    white-space:normal !important;
  }


  /* ================================================================
     NAVEGACIÓN SEMANAL Y DIARIA: UNA SOLA FILA
     ================================================================ */

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-nav{
    display:grid !important;
    grid-template-columns:48px minmax(0,1fr) 48px !important;
    grid-template-rows:62px !important;
    align-items:stretch !important;
    width:100% !important;
    min-width:0 !important;
    min-height:62px !important;
    overflow:hidden !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-jump{
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    grid-row:1 !important;
    width:48px !important;
    min-width:48px !important;
    max-width:48px !important;
    height:62px !important;
    min-height:62px !important;
    margin:0 !important;
    padding:0 !important;
    font-size:0 !important;
    line-height:1 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-jump:first-child{
    grid-column:1 !important;
    border-right:1px solid var(--ajg2-border) !important;
    border-left:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-jump:last-child{
    grid-column:3 !important;
    border-left:1px solid var(--ajg2-border) !important;
    border-right:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-jump::before{
    display:block !important;
    color:var(--ajg2-navy) !important;
    font-size:25px !important;
    font-weight:400 !important;
    line-height:1 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-jump:first-child::before{
    content:"‹" !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-jump:last-child::before{
    content:"›" !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-title{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    grid-column:2 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    min-height:62px !important;
    margin:0 !important;
    padding:7px 8px !important;
    border-bottom:0 !important;
    text-align:center !important;
    font-size:13px !important;
    font-weight:700 !important;
    line-height:1.25 !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
  }


  /* ================================================================
     SEMANA: CONSERVAR COLUMNAS CON SCROLL, SIN CORTAR LA PRIMERA
     ================================================================ */

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-shell{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-week-columns{
    display:grid !important;
    grid-template-columns:repeat(7,145px) !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scroll-padding-inline:0 !important;
    scroll-snap-type:x proximity !important;
    overscroll-behavior-inline:contain !important;
    -webkit-overflow-scrolling:touch !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-week-day{
    width:145px !important;
    min-width:145px !important;
    max-width:145px !important;
    margin:0 !important;
    scroll-snap-align:start !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-week-day:first-child{
    margin-left:0 !important;
  }


  /* ================================================================
     VISTA DIARIA
     ================================================================ */

  html body .agenda-jg-root.agenda-jg-v2 .ajg-day-panel{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-day-big{
    width:100% !important;
    min-height:130px !important;
    padding:18px 14px !important;
    border-right:0 !important;
    border-bottom:1px solid var(--ajg2-border) !important;
    text-align:center !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-day-big strong{
    font-size:54px !important;
    line-height:.95 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-day-big span{
    font-size:18px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-day-events-list{
    width:100% !important;
    min-width:0 !important;
    padding:12px 14px 22px !important;
  }


  /* ================================================================
     VISTA DETALLE
     ================================================================ */

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip{
    display:grid !important;
    grid-template-columns:38px minmax(0,1fr) 38px !important;
    width:100% !important;
    min-width:0 !important;
    overflow:hidden !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-arrow{
    position:relative !important;
    inset:auto !important;
    width:38px !important;
    min-width:38px !important;
    max-width:38px !important;
    min-height:80px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-days{
    display:flex !important;
    flex-wrap:nowrap !important;
    width:100% !important;
    min-width:0 !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    scroll-snap-type:x proximity !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day{
    flex:0 0 64px !important;
    width:64px !important;
    min-width:64px !important;
    max-width:64px !important;
    min-height:80px !important;
    scroll-snap-align:start !important;
  }


  /* ================================================================
     CALENDARIO EMERGENTE
     ================================================================ */

  html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker-popover{
    width:calc(100vw - 20px) !important;
    min-width:0 !important;
    max-width:calc(100vw - 20px) !important;
    padding:12px !important;
  }
}

@media (max-width:380px){

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-selectors{
    grid-template-columns:40px minmax(0,1fr) 82px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-monthly-calendar-icon{
    width:40px !important;
    min-width:40px !important;
    max-width:40px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-year-custom{
    width:82px !important;
    min-width:82px !important;
    max-width:82px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-nav{
    grid-template-columns:44px minmax(0,1fr) 44px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2 .ajg-period-jump{
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
  }
}


/* ==========================================================================
   AGENDA JG 2.68 — CARRUSEL MÓVIL DE TRES DÍAS
   Solo teléfonos. Tableta y escritorio permanecen intactos.
   ========================================================================== */

@media (max-width:600px){

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip{
    display:grid !important;
    grid-template-columns:40px minmax(0,1fr) 40px !important;
    width:100% !important;
    min-width:0 !important;
    overflow:hidden !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-arrow{
    position:relative !important;
    inset:auto !important;
    z-index:3 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:40px !important;
    min-width:40px !important;
    max-width:40px !important;
    min-height:88px !important;
    padding:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-days{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:stretch !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    gap:0 !important;
    scroll-snap-type:x mandatory !important;
    overscroll-behavior-inline:contain !important;
    -webkit-overflow-scrolling:touch !important;
    scrollbar-width:none !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-days::-webkit-scrollbar{
    display:none !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day{
    flex:0 0 33.333333% !important;
    width:33.333333% !important;
    min-width:33.333333% !important;
    max-width:33.333333% !important;
    min-height:88px !important;
    padding:10px 3px !important;
    scroll-snap-align:center !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day span,
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-day strong{
    display:block !important;
    width:100% !important;
    text-align:center !important;
    white-space:nowrap !important;
  }
}

@media (max-width:380px){

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip{
    grid-template-columns:36px minmax(0,1fr) 36px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-strip-arrow{
    width:36px !important;
    min-width:36px !important;
    max-width:36px !important;
  }
}


/* ==========================================================================
   AGENDA JG 2.69 — ENCABEZADO MÓVIL COMPACTO
   Solo teléfonos. No altera la franja de días, tableta ni escritorio.
   ========================================================================== */

@media (max-width:600px){

  /*
   * En móvil, el encabezado se presenta como una tarjeta independiente:
   * título arriba, fecha resumida y selector en una misma línea,
   * y el enlace inferior centrado.
   */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail{
    background:transparent !important;
    overflow:visible !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-side{
    position:relative !important;
    display:block !important;
    width:100% !important;
    min-height:0 !important;
    margin:0 0 14px !important;
    padding:22px 16px 18px !important;
    background:var(--ajg2-white) !important;
    border:1px solid var(--ajg2-border) !important;
    border-radius:var(--ajg-radius-card, 8px) !important;
    box-shadow:0 8px 24px rgba(11,53,83,.08) !important;
    text-align:center !important;
    overflow:visible !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-label{
    display:block !important;
    width:100% !important;
    margin:0 0 18px !important;
    padding:0 !important;
    text-align:center !important;
    font-size:18px !important;
    font-weight:700 !important;
    line-height:1.2 !important;
  }

  /*
   * Tres zonas:
   * 1) número grande;
   * 2) mes y año;
   * 3) selector de fecha.
   */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-date-content{
    display:grid !important;
    grid-template-columns:64px minmax(64px,1fr) minmax(130px,1.55fr) !important;
    grid-template-rows:auto auto !important;
    align-items:center !important;
    justify-content:center !important;
    column-gap:10px !important;
    row-gap:2px !important;
    width:100% !important;
    max-width:340px !important;
    margin:0 auto !important;
    padding:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-day{
    grid-column:1 !important;
    grid-row:1 / span 2 !important;
    align-self:center !important;
    margin:0 !important;
    padding:0 !important;
    font-size:58px !important;
    font-weight:700 !important;
    line-height:.9 !important;
    text-align:center !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-month{
    grid-column:2 !important;
    grid-row:1 !important;
    align-self:end !important;
    margin:0 !important;
    padding:0 !important;
    text-align:left !important;
    font-size:18px !important;
    font-weight:500 !important;
    line-height:1.15 !important;
    white-space:nowrap !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-year{
    grid-column:2 !important;
    grid-row:2 !important;
    align-self:start !important;
    margin:0 !important;
    padding:0 !important;
    text-align:left !important;
    font-size:18px !important;
    font-weight:500 !important;
    line-height:1.15 !important;
    white-space:nowrap !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-wrap{
    grid-column:3 !important;
    grid-row:1 / span 2 !important;
    align-self:center !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-button{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:48px !important;
    min-height:48px !important;
    margin:0 !important;
    padding:0 12px !important;
    font-size:14px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle-wrap{
    position:static !important;
    inset:auto !important;
    display:block !important;
    width:100% !important;
    margin:20px 0 0 !important;
    padding:0 !important;
    text-align:center !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle{
    display:inline-block !important;
    margin:0 !important;
    padding:0 !important;
    font-size:16px !important;
    line-height:1.2 !important;
    text-align:center !important;
  }

  /* La franja queda separada visualmente de la tarjeta superior. */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-main{
    overflow:visible !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip{
    border-radius:var(--ajg-radius-card, 8px) var(--ajg-radius-card, 8px) 0 0 !important;
    overflow:hidden !important;
  }
}


/* Teléfonos muy estrechos: conservar la misma composición sin desbordar. */
@media (max-width:380px){

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-side{
    padding-inline:12px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-label{
    font-size:17px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-date-content{
    grid-template-columns:56px minmax(58px,1fr) minmax(118px,1.45fr) !important;
    column-gap:7px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-day{
    font-size:52px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-month,
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-year{
    font-size:16px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-button{
    padding-inline:9px !important;
    font-size:13px !important;
  }
}


/* ==========================================================================
   AGENDA JG 2.70 — FECHA ÚNICA EN VISTA DIARIA MÓVIL
   Solo teléfonos. Tableta y escritorio permanecen intactos.
   ========================================================================== */

@media (max-width:600px){

  /*
   * La fecha ya aparece completa en la barra de navegación superior.
   * Se oculta la tarjeta grande repetida para ganar espacio vertical.
   */
  html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
  .ajg-day-view .ajg-day-big{
    display:none !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
  .ajg-day-view .ajg-day-panel{
    display:block !important;
    min-height:0 !important;
    border-top:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
  .ajg-day-view .ajg-day-events-list{
    width:100% !important;
    min-width:0 !important;
    padding:14px 14px 22px !important;
    border-top:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"]
  .ajg-day-view .ajg-day-event:first-child{
    padding-top:4px !important;
  }
}


/* ==========================================================================
   AGENDA JG 3.0.3 — AJUSTE DE ESPACIADO EN ACTIVIDADES
   ========================================================================== */

/*
 * Se añade un poco de separación entre la línea divisoria y el contenido
 * de las actividades posteriores, conservando todos los demás estilos.
 */
html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"]
.ajg-detail-event-simple + .ajg-detail-event-simple{
  padding-top:22px !important;
}


/* ==========================================================================
   AGENDA JG 3.0.4 — ENCABEZADO MÓVIL EN DOS COLUMNAS
   Único cambio: composición del encabezado del widget principal.
   ========================================================================== */

@media (max-width:600px){

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-side{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    grid-template-rows:auto auto !important;
    align-items:center !important;
    column-gap:18px !important;
    row-gap:18px !important;
    width:100% !important;
    min-height:0 !important;
    margin:0 0 14px !important;
    padding:22px 20px !important;
    text-align:left !important;
  }

  /* AGENDA PASTORAL — arriba izquierda */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-label{
    grid-column:1 !important;
    grid-row:1 !important;
    align-self:center !important;
    justify-self:start !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    text-align:left !important;
    font-size:20px !important;
    font-weight:700 !important;
    line-height:1.15 !important;
  }

  /* Número + mes/año — arriba derecha */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-date-content{
    grid-column:2 !important;
    grid-row:1 !important;
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) !important;
    grid-template-rows:auto auto !important;
    align-items:center !important;
    justify-content:start !important;
    column-gap:10px !important;
    row-gap:0 !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-day{
    grid-column:1 !important;
    grid-row:1 / span 2 !important;
    align-self:center !important;
    justify-self:start !important;
    margin:0 !important;
    padding:0 !important;
    font-size:62px !important;
    font-weight:700 !important;
    line-height:.88 !important;
    text-align:left !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-month{
    grid-column:2 !important;
    grid-row:1 !important;
    align-self:end !important;
    justify-self:start !important;
    margin:0 !important;
    padding:0 !important;
    text-align:left !important;
    font-size:20px !important;
    font-weight:500 !important;
    line-height:1.1 !important;
    white-space:nowrap !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-year{
    grid-column:2 !important;
    grid-row:2 !important;
    align-self:start !important;
    justify-self:start !important;
    margin:0 !important;
    padding:0 !important;
    text-align:left !important;
    font-size:20px !important;
    font-weight:500 !important;
    line-height:1.1 !important;
    white-space:nowrap !important;
  }

  /* El selector sale del bloque de fecha y queda abajo izquierda */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-wrap{
    grid-column:1 !important;
    grid-row:2 !important;
    align-self:center !important;
    justify-self:start !important;
    width:100% !important;
    max-width:180px !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-button{
    width:100% !important;
    min-width:0 !important;
    max-width:180px !important;
    height:50px !important;
    min-height:50px !important;
    margin:0 !important;
    padding:0 12px !important;
    font-size:15px !important;
  }

  /* Ver más... — abajo derecha */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle-wrap{
    grid-column:2 !important;
    grid-row:2 !important;
    align-self:center !important;
    justify-self:start !important;
    position:static !important;
    inset:auto !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    text-align:left !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle{
    display:inline-block !important;
    margin:0 !important;
    padding:0 !important;
    font-size:18px !important;
    line-height:1.2 !important;
    text-align:left !important;
    white-space:nowrap !important;
  }
}


/* Ajuste mínimo para teléfonos muy estrechos, manteniendo la misma composición. */
@media (max-width:380px){

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-side{
    column-gap:12px !important;
    row-gap:16px !important;
    padding:18px 14px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-label{
    font-size:17px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-day{
    font-size:54px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-month,
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-year{
    font-size:17px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-wrap,
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-button{
    max-width:160px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle{
    font-size:16px !important;
  }
}


/* ==========================================================================
   AGENDA JG 3.0.5 — CORRECCIÓN EXACTA DEL ENCABEZADO MÓVIL
   ========================================================================== */

@media (max-width:600px){

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-side{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    grid-template-rows:auto auto !important;
    align-items:center !important;
    column-gap:18px !important;
    row-gap:18px !important;
    width:100% !important;
    min-height:0 !important;
    padding:22px 20px !important;
  }

  /*
   * Este contenedor envolvía número, mes/año y selector.
   * display:contents permite que esos elementos participen directamente
   * en la cuadrícula del encabezado.
   */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-date-content{
    display:contents !important;
  }

  /* Arriba izquierda */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-label{
    grid-column:1 !important;
    grid-row:1 !important;
    align-self:center !important;
    justify-self:start !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    text-align:left !important;
    font-size:20px !important;
    font-weight:700 !important;
    line-height:1.15 !important;
  }

  /* Arriba derecha: número */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-day{
    grid-column:2 !important;
    grid-row:1 !important;
    align-self:center !important;
    justify-self:start !important;
    margin:0 !important;
    padding:0 !important;
    font-size:62px !important;
    font-weight:700 !important;
    line-height:.88 !important;
    text-align:left !important;
    transform:none !important;
  }

  /* Mes y año, también arriba derecha, junto al número */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-month,
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-year{
    grid-column:2 !important;
    justify-self:start !important;
    margin-left:76px !important;
    padding:0 !important;
    text-align:left !important;
    font-size:20px !important;
    font-weight:500 !important;
    line-height:1.1 !important;
    white-space:nowrap !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-month{
    grid-row:1 !important;
    align-self:start !important;
    margin-top:2px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-year{
    grid-row:1 !important;
    align-self:end !important;
    margin-bottom:2px !important;
  }

  /* Abajo izquierda */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-wrap{
    grid-column:1 !important;
    grid-row:2 !important;
    align-self:center !important;
    justify-self:start !important;
    width:100% !important;
    max-width:180px !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-button{
    width:100% !important;
    max-width:180px !important;
    min-width:0 !important;
    height:50px !important;
    min-height:50px !important;
    margin:0 !important;
    padding:0 12px !important;
    font-size:15px !important;
  }

  /* Abajo derecha */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle-wrap{
    grid-column:2 !important;
    grid-row:2 !important;
    align-self:center !important;
    justify-self:start !important;
    position:static !important;
    inset:auto !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    text-align:left !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle{
    display:inline-block !important;
    margin:0 !important;
    padding:0 !important;
    font-size:18px !important;
    line-height:1.2 !important;
    white-space:nowrap !important;
    text-align:left !important;
  }
}

@media (max-width:380px){

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-side{
    column-gap:12px !important;
    row-gap:16px !important;
    padding:18px 14px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-label{
    font-size:17px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-day{
    font-size:54px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-month,
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-year{
    margin-left:66px !important;
    font-size:17px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-wrap,
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-button{
    max-width:160px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle{
    font-size:16px !important;
  }
}


/* ==========================================================================
   AGENDA JG 3.0.6 — ENCABEZADO MÓVIL FINAL SEGÚN REFERENCIA
   ========================================================================== */

@media (max-width:600px){

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-side{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    grid-template-rows:auto auto !important;
    align-items:center !important;
    gap:16px 18px !important;
    width:100% !important;
    padding:20px 16px !important;
    margin:0 0 14px !important;
    text-align:left !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-date-content{
    display:contents !important;
  }

  /* Arriba izquierda */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-label{
    grid-column:1 !important;
    grid-row:1 !important;
    align-self:center !important;
    justify-self:start !important;
    margin:0 !important;
    padding:0 !important;
    width:auto !important;
    font-size:19px !important;
    font-weight:700 !important;
    line-height:1.15 !important;
    text-align:left !important;
  }

  /* Arriba derecha: bloque visual 18 + Agosto / 2026 */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-day{
    grid-column:2 !important;
    grid-row:1 !important;
    align-self:center !important;
    justify-self:start !important;
    margin:0 !important;
    padding:0 !important;
    font-size:64px !important;
    font-weight:700 !important;
    line-height:.85 !important;
    text-align:left !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-month,
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-year{
    grid-column:2 !important;
    grid-row:1 !important;
    justify-self:start !important;
    margin-left:76px !important;
    padding:0 !important;
    font-size:18px !important;
    font-weight:500 !important;
    line-height:1.05 !important;
    text-align:left !important;
    white-space:nowrap !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-month{
    align-self:start !important;
    margin-top:2px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-year{
    align-self:end !important;
    margin-bottom:2px !important;
  }

  /* Abajo izquierda */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-wrap{
    grid-column:1 !important;
    grid-row:2 !important;
    align-self:center !important;
    justify-self:start !important;
    width:100% !important;
    max-width:190px !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-button{
    width:100% !important;
    min-width:0 !important;
    max-width:190px !important;
    height:50px !important;
    min-height:50px !important;
    margin:0 !important;
    padding:0 12px !important;
    font-size:14px !important;
  }

  /* Abajo derecha */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle-wrap{
    grid-column:2 !important;
    grid-row:2 !important;
    align-self:center !important;
    justify-self:start !important;
    position:static !important;
    inset:auto !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    text-align:left !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle{
    display:inline-block !important;
    margin:0 !important;
    padding:0 !important;
    font-size:17px !important;
    line-height:1.2 !important;
    white-space:nowrap !important;
    text-align:left !important;
  }
}

@media (max-width:380px){

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-side{
    gap:14px 12px !important;
    padding:18px 12px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-label{
    font-size:16px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-day{
    font-size:56px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-month,
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-year{
    margin-left:66px !important;
    font-size:16px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-wrap,
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-button{
    max-width:170px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle{
    font-size:15px !important;
  }
}


/* ==========================================================================
   AGENDA JG 3.0.7 — ENCABEZADO MÓVIL CORREGIDO
   Único cambio: distribución exacta del encabezado en teléfonos.
   ========================================================================== */

@media (max-width:600px){

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-side{
    position:relative !important;
    display:block !important;
    width:100% !important;
    min-height:162px !important;
    height:162px !important;
    margin:0 0 14px !important;
    padding:0 !important;
    overflow:visible !important;
    text-align:left !important;
  }

  /*
   * Se mantiene el contenedor original, pero sin intervenir en la
   * distribución. Sus hijos se posicionan respecto a .ajg-detail-side.
   */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-date-content{
    display:block !important;
    position:static !important;
    width:auto !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
  }

  /* AGENDA PASTORAL — arriba izquierda */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-label{
    position:absolute !important;
    top:18px !important;
    left:16px !important;
    width:44% !important;
    margin:0 !important;
    padding:0 !important;
    font-size:18px !important;
    font-weight:700 !important;
    line-height:1.18 !important;
    text-align:left !important;
  }

  /* Número — arriba derecha */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-day{
    position:absolute !important;
    top:12px !important;
    left:54% !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    font-size:62px !important;
    font-weight:700 !important;
    line-height:.9 !important;
    text-align:left !important;
    transform:none !important;
  }

  /* Mes / año — junto al número */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-month,
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-year{
    position:absolute !important;
    left:calc(54% + 72px) !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    font-size:17px !important;
    font-weight:500 !important;
    line-height:1.05 !important;
    text-align:left !important;
    white-space:nowrap !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-month{
    top:18px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-year{
    top:39px !important;
  }

  /* Selector — abajo izquierda */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-wrap{
    position:absolute !important;
    left:16px !important;
    bottom:16px !important;
    width:48% !important;
    max-width:190px !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-button{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:50px !important;
    min-height:50px !important;
    margin:0 !important;
    padding:0 12px !important;
    font-size:14px !important;
  }

  /* Ver más... — abajo derecha */
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle-wrap{
    position:absolute !important;
    left:56% !important;
    right:16px !important;
    bottom:31px !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    text-align:left !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle{
    display:inline-block !important;
    margin:0 !important;
    padding:0 !important;
    font-size:17px !important;
    line-height:1.2 !important;
    text-align:left !important;
    white-space:nowrap !important;
  }
}

/* Teléfonos muy estrechos: misma disposición, escalada. */
@media (max-width:380px){

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-side{
    min-height:154px !important;
    height:154px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-label{
    top:17px !important;
    left:12px !important;
    width:43% !important;
    font-size:16px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-day{
    top:12px !important;
    left:53% !important;
    font-size:54px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-month,
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-year{
    left:calc(53% + 62px) !important;
    font-size:15px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-month{
    top:18px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-year{
    top:37px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-date-picker-wrap{
    left:12px !important;
    bottom:14px !important;
    width:50% !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle-wrap{
    left:57% !important;
    right:12px !important;
    bottom:29px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle{
    font-size:15px !important;
  }
}


/* ==========================================================================
   AGENDA JG 3.0.8 — POSICIÓN FINAL DE “VER MÁS...”
   Único cambio: mover el enlace al lado derecho en móviles.
   ========================================================================== */

@media (max-width:600px){

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle-wrap{
    position:absolute !important;
    left:auto !important;
    right:18px !important;
    bottom:31px !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    text-align:right !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle{
    display:inline-block !important;
    margin:0 !important;
    padding:0 !important;
    font-size:17px !important;
    line-height:1.2 !important;
    text-align:right !important;
    white-space:nowrap !important;
  }
}

@media (max-width:380px){

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle-wrap{
    left:auto !important;
    right:12px !important;
    bottom:29px !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-subtitle{
    font-size:15px !important;
  }
}


/* ==========================================================================
   AGENDA JG 3.0.10 — MARGEN LATERAL EN MÓVIL
   Único cambio: separación derecha e izquierda del widget principal.
   ========================================================================== */

@media (max-width:600px){

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"]{
    width:calc(100% - 24px) !important;
    max-width:calc(100% - 24px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}

@media (max-width:380px){

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"]{
    width:calc(100% - 20px) !important;
    max-width:calc(100% - 20px) !important;
  }
}


/* ==========================================================================
   AGENDA JG 3.0.13 — DOMINGOS EN ROJO EN CALENDARIO MENSUAL
   ========================================================================== */

.agenda-jg-root.agenda-jg-v2 .ajg-monthly-weekdays .is-sunday,
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-day.is-sunday .ajg-day-number{
  color:#e53935 !important;
}

.agenda-jg-root.agenda-jg-v2 .ajg-monthly-day.is-selected.is-sunday .ajg-day-number,
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-day.is-sunday:hover .ajg-day-number{
  color:#ffffff !important;
}


/* Agenda JG 3.0.18 — festivos oficiales de Colombia */
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-day.is-holiday .ajg-day-number,
.agenda-jg-root.agenda-jg-v2 .ajg-datepicker-day.is-holiday{
  color:#e53935 !important;
}

.agenda-jg-root.agenda-jg-v2 .ajg-monthly-day.is-selected.is-holiday .ajg-day-number,
.agenda-jg-root.agenda-jg-v2 .ajg-monthly-day.is-holiday:hover .ajg-day-number,
.agenda-jg-root.agenda-jg-v2 .ajg-datepicker-day.is-selected.is-holiday{
  color:#ffffff !important;
}

.agenda-jg-root.agenda-jg-v2 .ajg-monthly-day.has-event .ajg-day-dot{
  display:block;
}


/* ==========================================================================
   AGENDA JG 4.0.1 — SEPARADORES EN VISTA DE DOS COLUMNAS
   - La línea horizontal izquierda no toca el separador vertical.
   - Los últimos elementos de ambas columnas no muestran línea inferior.
   - No se modifica contenido, espaciado ni comportamiento.
   ========================================================================== */

@media (min-width:901px){

  html body .agenda-jg-root.agenda-jg-v2
  .ajg-detail-body--two-columns .ajg-detail-event{
    position:relative !important;
    border-bottom:0 !important;
  }

  /*
   * Sustituye el border-bottom original por un separador independiente.
   * Los dos últimos elementos corresponden al final visual de las columnas,
   * por lo que no reciben línea inferior.
   */
  html body .agenda-jg-root.agenda-jg-v2
  .ajg-detail-body--two-columns
  .ajg-detail-event:not(:nth-last-child(-n+2))::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:1px;
    background:var(--ajg2-border);
    pointer-events:none;
  }

  /*
   * En la columna izquierda el separador termina antes de la línea vertical
   * central. El espacio resultante equivale al column-gap de la cuadrícula,
   * logrando el mismo respiro visual que ya tiene la columna derecha.
   */
  html body .agenda-jg-root.agenda-jg-v2
  .ajg-detail-body--two-columns
  .ajg-detail-event:nth-child(odd):not(:nth-last-child(-n+2))::after{
    right:30px;
  }
}


/* ==========================================================================
   AGENDA JG 4.0.2 — JERARQUÍA DE CAPAS / CABECERA STICKY
   Agenda JG conserva sus capas internas, pero queda contenido en un stacking
   context bajo para no superponerse al menú o cabecera fija del sitio.
   ========================================================================== */

html body .agenda-jg-root.agenda-jg-v2{
  position:relative !important;
  z-index:0 !important;
  isolation:isolate !important;
}

/* Selectores de mes y año: solo necesitan estar sobre el propio widget. */
html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select{
  z-index:2 !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select.is-open{
  z-index:8 !important;
}

html body .agenda-jg-root.agenda-jg-v2[data-view="calendario"] .ajg-custom-select-menu{
  z-index:9 !important;
}

/* Calendarios desplegables: visibles sobre Agenda JG, nunca sobre la cabecera. */
html body .agenda-jg-root.agenda-jg-v2 .ajg-date-picker-popover{
  z-index:10 !important;
}


/* ==========================================================================
   AGENDA JG 4.0.3 — ESQUINAS RECTAS EN FRANJA MÓVIL
   Único cambio: la esquina superior derecha queda a 90°, igual que la izquierda.
   ========================================================================== */

@media (max-width:600px){

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip{
    border-radius:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip > .ajg-strip-arrow:first-child,
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip > .ajg-strip-arrow:last-child{
    border-radius:0 !important;
  }
}


/* ==========================================================================
   AGENDA JG 4.0.4 — ESQUINA SUPERIOR DERECHA MÓVIL A 90°
   Único cambio visual: elimina cualquier redondeo residual en la esquina
   superior derecha de la franja de navegación de días.
   ========================================================================== */

@media (max-width:600px){

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip{
    border-top-right-radius:0 !important;
    overflow:visible !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip > *:last-child{
    border-top-right-radius:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip .ajg-strip-arrow:last-child,
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip button:last-child{
    border-top-right-radius:0 !important;
  }

  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip::before,
  html body .agenda-jg-root.agenda-jg-v2[data-view="detalle"] .ajg-detail-strip::after{
    border-top-right-radius:0 !important;
  }
}
