:root {
  --maroon: #6b1d2e;
  --maroon-dark: #4a1420;
  --gold: #c9a227;
  --cream: #faf6ee;
  --card-bg: #ffffff;
  --ink: #2a2321;
  --gray: #6b6058;
  --line: #e7ddd0;
  --taller: #5b3a8e;
  --regular: #1f6f7a;
  --particular: #b5651d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: #2a2020;
  line-height: 1.5;
}
header.hoy-header {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: #fff;
  padding: 22px 20px;
  text-align: center;
}
header.hoy-header h1 { margin: 0 0 4px 0; font-family: 'Playfair Display', Georgia, serif; font-size: 1.5em; letter-spacing: 0.4px; font-weight: 700; }
header.hoy-header p { margin: 0; color: var(--gold); font-size: 0.85em; font-style: italic; }

header.hoy-header h1 a, header.hoy-header p a { color: inherit; text-decoration: none; }
header.hoy-header h1 a:hover, header.hoy-header p a:hover { text-decoration: underline; }

.site-logo { vertical-align: middle; margin-right: 8px; border-radius: 50%; background: #fff; }

.hoy-wrap { max-width: 560px; margin: 0 auto; padding: 20px 18px 40px; }
.hoy-day { min-height: unset; }
.hoy-nav { padding: 16px 14px 6px; text-align: center; border-top: 1px dashed #e0d5bd; margin-top: 4px; }
.hoy-progreso { display: block; font-size: 0.78rem; color: var(--gray); margin-bottom: 10px; }
.hoy-nav-row { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.hoy-siguiente, .hoy-anterior { border-radius: 24px; font-weight: 600; font-size: 0.92rem; font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; cursor: pointer; transition: background 0.15s, color 0.15s; padding: 11px 22px; }
.hoy-siguiente { background: var(--maroon); color: #fff; border: none; }
.hoy-siguiente:hover { background: var(--maroon-dark); }
.hoy-anterior { background: #fff; color: var(--maroon); border: 1px solid var(--maroon); }
.hoy-anterior:hover { background: #f5ece0; }
.hoy-fin { color: var(--gray); font-style: italic; font-size: 0.88rem; }
.hoy-swipe-hint { display: none; margin-top: 10px; font-size: 0.74rem; color: #a8988a; letter-spacing: 0.3px; }

@media (max-width: 640px), (pointer: coarse) {
  .hoy-swipe-hint { display: block; }
}

.day-col { background: #fff; border-radius: 14px; box-shadow: 0 4px 18px rgba(107,29,46,0.12); display: flex; flex-direction: column; overflow: hidden; touch-action: pan-y; }
.day-header { background: var(--maroon); color: #fff; padding: 16px 18px; position: relative; }
.day-header.hoy { background: var(--gold); color: var(--maroon-dark); }
.day-name { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.35em; text-transform: capitalize; }
.day-date { font-size: 0.88em; opacity: 0.85; letter-spacing: 0.3px; }
.hoy-badge { position: absolute; top: 8px; right: 10px; background: var(--maroon-dark); color: var(--gold); font-size: 0.7em; font-weight: bold; padding: 2px 8px; border-radius: 8px; }
.day-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.empty { color: #a09080; font-style: italic; font-size: 0.85em; padding: 8px 0; }

.card { border: 1px solid #ecdfc9; border-left: 5px solid var(--maroon); border-radius: 8px; padding: 14px 16px; background: #fffdf9; font-size: 0.88em; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.card.practica { border-left-color: #7a8c6b; }
.card.concierto { border-left-color: #2f5c73; }
.card.festival { border-left-color: var(--gold); }
.card.clase-regular { border-left-color: var(--regular); }
.card.clase-taller { border-left-color: var(--taller); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.type-badge { font-size: 0.68em; text-transform: uppercase; letter-spacing: 0.6px; font-weight: bold; padding: 2px 8px; border-radius: 10px; background: var(--maroon); color: #fff; }
.type-badge.practica { background: #7a8c6b; }
.type-badge.concierto { background: #2f5c73; }
.type-badge.festival { background: var(--gold); color: var(--maroon-dark); }
.type-badge.clase-regular { background: var(--regular); }
.type-badge.clase-taller { background: var(--taller); }
.hours { font-weight: bold; color: var(--maroon-dark); font-size: 0.92em; font-family: 'Playfair Display', Georgia, serif; }
.card-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.15em; margin-bottom: 5px; color: var(--maroon-dark); }
.tag-especial { font-size: 0.65em; font-weight: normal; font-style: italic; color: #8a7a5a; }
.card-subtitle { font-size: 0.84em; font-style: italic; color: #7a6b5a; margin: -2px 0 5px 0; }
.card-logo { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; margin-right: 5px; border-radius: 50%; }
.card-flyer { display: block; width: 100%; max-height: 280px; object-fit: contain; background: #efe6d2; border-radius: 10px; margin: 8px 0; cursor: zoom-in; }

.card-flyer-full { max-height: none; height: auto; margin-top: 4px; cursor: default; }
.card-destacada-img .card-head { margin-bottom: 6px; }
.card-title-inline { font-weight: 700; font-family: 'Playfair Display', Georgia, serif; color: var(--maroon-dark); text-align: right; margin-left: 8px; }
.popup-box .card-flyer { max-height: 420px; }

.fc-clicable { cursor: pointer; border-radius: 8px; transition: box-shadow 0.15s, transform 0.1s; }
.fc-clicable:hover, .fc-clicable:focus { box-shadow: 0 2px 10px rgba(107, 29, 46, 0.25); outline: none; }
.fc-clicable:hover .card, .fc-clicable:focus .card { border-left-color: var(--gold); }
a.fc-clicable { display: block; text-decoration: none; color: inherit; }

.popup-overlay { display: none; position: fixed; inset: 0; background: rgba(42, 32, 32, 0.55); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.popup-overlay.active { display: flex; }
.popup-box { position: relative; background: var(--cream); border-radius: 14px; max-width: 420px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 20px; box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.popup-box .card { font-size: 0.95em; }
.popup-label { font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.5px; color: #8a7a5a; font-weight: bold; margin-bottom: 8px; }
.popup-close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 1.3em; line-height: 1; color: var(--maroon); cursor: pointer; padding: 2px 6px; }
.popup-close:hover { color: var(--maroon-dark); }

.img-lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(20, 12, 12, 0.88); z-index: 2000; align-items: center; justify-content: center; padding: 30px; }
.img-lightbox-overlay.active { display: flex; }
.img-lightbox-overlay img { max-width: 92vw; max-height: 92vh; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.img-lightbox-close { position: fixed; top: 16px; right: 22px; background: none; border: none; color: #fff; font-size: 2em; line-height: 1; cursor: pointer; z-index: 2001; }
.img-lightbox-close:hover { color: var(--gold); }

.line { margin: 2px 0; line-height: 1.35; }
.line.espacio { color: #4a4030; }

.line.espacio a, a.maps { color: var(--maroon); text-decoration: none; font-weight: 600; }
.line.espacio a:hover, a.maps:hover { text-decoration: underline; }
.tel a, a.tel { color: var(--maroon); text-decoration: none; font-weight: 600; }
.tel a:hover, a.tel:hover { text-decoration: underline; }
ul.timeline { list-style: none; margin: 6px 0 0 0; padding: 6px 0 0 0; border-top: 1px dashed #e0d5bd; }
ul.timeline li { font-size: 0.92em; margin: 3px 0; color: #4a4030; }
.t-time { display: inline-block; min-width: 42px; font-weight: bold; color: var(--maroon-dark); }
.t-badge { font-size: 0.68em; text-transform: uppercase; padding: 1px 5px; border-radius: 3px; background: #ded0b0; color: #4a3a1a; margin-right: 4px; }
.t-badge.milonga { background: var(--maroon); color: #fff; }
.t-badge.practica { background: #7a8c6b; color: #fff; }
.t-badge.show { background: #8a3a5c; color: #fff; }
.t-badge.clase { background: #3a6a4a; color: #fff; }
.t-badge.tdj, .t-badge.tdjr { background: #2f5c73; color: #fff; }
.t-badge.ropa, .t-badge.calzado, .t-badge.mercadillo { background: #a08840; color: #fff; }

footer.hoy-footer { text-align: center; padding: 16px; font-size: 0.78em; color: #7a6b5a; }
footer.hoy-footer a { color: var(--maroon); text-decoration: none; }
footer.hoy-footer a:hover { text-decoration: underline; }

footer.legal-footer {
  text-align: center;
  padding: 10px 16px 22px;
  font-size: 0.68em;
  color: #a89a89;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 4px;
}
footer.legal-footer a { color: #a89a89; text-decoration: none; }
footer.legal-footer a:hover { color: var(--maroon); text-decoration: underline; }
footer.legal-footer .legal-sep { padding: 0 6px; color: #cfc3b4; }

.hoy-cargando { text-align: center; color: var(--gray); font-style: italic; padding: 40px 0; }

.card.nivel-bronce { border-left: 4px solid #b98a4a; background: #fffdf9; }
.card.nivel-plata { border-left: 6px solid #c9a227; background: linear-gradient(160deg, #fbf3d9 0%, #fffdf9 65%); }
.card.nivel-oro { border-left: 9px solid #ad841a; background: linear-gradient(160deg, #f3dfa0 0%, #fdf6e0 60%); }

.school-card.nivel-bronce, .class-card.nivel-bronce { border-left: 4px solid #b98a4a; }
.school-card.nivel-plata, .class-card.nivel-plata { border-left: 6px solid #c9a227; background: linear-gradient(160deg, #fbf3d9 0%, #fffdf9 65%); }
.school-card.nivel-oro, .class-card.nivel-oro { border-left: 9px solid #ad841a; background: linear-gradient(160deg, #f3dfa0 0%, #fdf6e0 60%); }

.hoy-tabs { max-width: 560px; margin: 0 auto; padding: 14px 18px 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.hoy-tab-btn { flex: 1; max-width: 220px; min-width: 96px; border: 1px solid var(--maroon); background: #fff; color: var(--maroon); border-radius: 24px; font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; font-weight: 600; font-size: 0.86rem; padding: 9px 14px; cursor: pointer; transition: background 0.15s, color 0.15s; text-decoration: none; text-align: center; }
.hoy-tab-btn:hover { background: #f5ece0; }
.hoy-tab-btn.active { background: var(--maroon); color: #fff; }

.particulares-list, .escuelas-list { display: flex; flex-direction: column; gap: 4px; }
.teacher-chip { display: inline-block; background: #f4ece0; color: var(--maroon-dark); border-radius: 999px; padding: 3px 12px; font-size: 0.78rem; margin: 3px 4px 0 0; font-weight: 600; }
.class-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.class-card .top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.class-card h4 { margin: 0 0 4px; font-size: 1.02rem; color: var(--ink); }
.class-card .meta { font-size: 0.82rem; color: var(--gray); margin: 2px 0; }
.class-card .addr { font-size: 0.82rem; color: var(--ink); margin: 2px 0; }
.class-card .teachers { margin-top: 8px; }
.class-card-flyer { display: block; height: 180px; width: auto; max-width: 100%; object-fit: contain; background: #efe6d2; border-radius: 8px; margin: 8px auto; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; padding: 4px 10px; border-radius: 999px; color: #fff; white-space: nowrap; }
.tag.regular { background: var(--regular); }
.tag.taller { background: var(--taller); }
.tag.particular { background: var(--particular); }

.school-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.school-card h3 { margin: 0 0 6px; font-size: 1.12rem; color: var(--maroon-dark); }
.contact-row { font-size: 0.85rem; margin: 4px 0; color: var(--ink); display: flex; gap: 6px; align-items: baseline; }
.contact-row a { color: var(--maroon); text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }
.contact-row .lbl { color: var(--gray); min-width: 64px; flex-shrink: 0; }
.contact-row.addr { font-weight: 500; }

.bcn-day-picker { display: flex; gap: 5px; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 560px; margin: 0 auto; padding: 14px 12px 4px; }
.bcn-day-pick { flex: 0 0 auto; border-radius: 10px; border: 1px solid var(--maroon); background: #fff; color: var(--maroon); font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; padding: 5px 9px; cursor: pointer; transition: background 0.15s, color 0.15s; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.bcn-day-pick .wd { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.bcn-day-pick .num { font-size: 0.92rem; font-weight: 700; font-family: 'Playfair Display', Georgia, serif; }
.bcn-day-pick:hover { background: #f5ece0; }
.bcn-day-pick.active { background: var(--maroon); color: #fff; border-color: var(--maroon); }

.bcn-day-pick-plus, .bcn-day-pick-star { justify-content: center; }
.bcn-day-pick-plus .plus, .bcn-day-pick-star .star { font-size: 1.55rem; font-weight: 700; line-height: 1; font-family: 'Playfair Display', Georgia, serif; }

.day-header.bcn-extra-header { text-align: center; }

.card-date { font-weight: 600; color: var(--gray); font-size: 0.78em; }

.bcn-send-row { text-align: center; padding: 14px 16px 0; }

.bcn-send-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--maroon); color: var(--maroon); border-radius: 20px; padding: 7px 16px; font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; font-weight: 600; font-size: 0.78rem; cursor: pointer; text-decoration: none; transition: background 0.15s, color 0.15s; }
.bcn-send-btn:hover { background: #f5ece0; }
.bcn-send-btn .ico-enviar, .bcn-send-btn .ico-clasica { width: 16px; height: 16px; flex-shrink: 0; }

.send-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(20, 12, 12, 0.6); z-index: 2100; align-items: center; justify-content: center; padding: 20px; }
.send-modal-overlay.active { display: flex; }
.send-modal-box { position: relative; background: var(--cream); border-radius: 14px; max-width: 440px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 24px 20px 18px; box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.send-modal-close { position: absolute; top: 8px; right: 10px; background: none; border: none; font-size: 1.5em; line-height: 1; color: var(--maroon); cursor: pointer; padding: 4px 10px; }
.send-modal-close:hover { color: var(--maroon-dark); }
.send-modal-box h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--maroon-dark); margin: 4px 0 8px; font-size: 1.15rem; }
.send-modal-intro { font-size: 0.85rem; color: var(--gray); line-height: 1.5; margin: 0 0 16px; }
.send-card { border: 1px solid #ecdfc9; border-left: 5px solid var(--maroon); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.send-card h4 { margin: 0 0 6px; font-family: 'Playfair Display', Georgia, serif; color: var(--maroon-dark); font-size: 1.02rem; }
.send-card p { margin: 0 0 10px; font-size: 0.82rem; color: #4a4030; line-height: 1.4; }
.send-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.send-btns a { text-decoration: none; border-radius: 20px; padding: 8px 14px; font-size: 0.8rem; font-weight: 700; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1ebc59; }
.btn-mail { background: #fff; color: var(--maroon); border: 1px solid var(--maroon); }
.btn-mail:hover { background: #f5ece0; }
.send-modal-note { font-size: 0.74rem; color: #8a7a5a; font-style: italic; text-align: center; margin-top: 4px; }

.bcn-cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000; background: var(--cream); border-top: 1px solid rgba(0,0,0,0.08); box-shadow: 0 -4px 18px rgba(0,0,0,0.12); padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.bcn-cookie-banner[hidden] { display: none; }
.bcn-cookie-banner p { margin: 0; font-size: 0.82rem; color: var(--ink); max-width: 640px; text-align: center; line-height: 1.4; }
.bcn-cookie-banner a { color: var(--maroon); text-decoration: underline; }
.bcn-cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.bcn-cookie-btn { border-radius: 20px; padding: 8px 18px; font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; font-weight: 600; font-size: 0.82rem; cursor: pointer; transition: background 0.15s, color 0.15s; border: 1px solid var(--maroon); }
.bcn-cookie-accept { background: var(--maroon); color: #fff; }
.bcn-cookie-accept:hover { background: var(--maroon-dark); }
.bcn-cookie-reject { background: #fff; color: var(--maroon); }
.bcn-cookie-reject:hover { background: #f5ece0; }
@media (max-width: 480px) {
  .bcn-cookie-banner { flex-direction: column; }
}
