/* ==========================================================================
   TBF · Tertulias BCN Farma — CSS personalizado para YOOtheme Pro
   Pegar en: Personalizar > Avanzado > Código personalizado > CSS
   (o en Estilo > Avanzado > "Custom LESS", también acepta CSS plano)
   ========================================================================== */

:root {
  --tbf-blue: #4f80c2;        /* azul corporativo (banda cuenta atrás, títulos, botones) */
  --tbf-blue-strong: #1269b0; /* círculos de fecha */
  --tbf-link: #2266c4;        /* textos de programa / enlaces */
  --tbf-navy: #27304f;        /* footer y "TB" del logo */
  --tbf-night: #011321;       /* fondo hero */
  --tbf-gray: #ededed;        /* secciones grises */
  --tbf-dot: rgba(214, 219, 224, .82);
  --tbf-ink: #141414;
  --tbf-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tbf-display: "Montserrat", "Inter", system-ui, sans-serif;
}

body { font-family: var(--tbf-font); color: var(--tbf-ink); }
h1, h2, h3, h4, h5, h6, .uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6 { font-family: var(--tbf-font); }

/* ---------- Títulos de sección ("Agendas", "Localización"...) ---------- */
.tbf-kicker {
  color: var(--tbf-blue) !important;
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 1.9rem);
  letter-spacing: -.01em;
  margin: 0 0 1.4em;
}
.tbf-lead-title { font-size: clamp(1.5rem, 1.1rem + 1vw, 1.9rem); font-weight: 400; margin: 0; }

/* ---------- Botón pastilla azul ---------- */
.tbf-btn, .uk-button.tbf-btn, .tbf-btn .uk-button {
  background: var(--tbf-blue);
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.05rem;
  line-height: 46px;
  padding: 0 34px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12);
  transition: background .2s;
}
.tbf-btn:hover, .tbf-btn .uk-button:hover { background: #3c6eb3; color: #fff; }

/* ---------- Cabecera ---------- */
.tbf-header .uk-navbar-nav > li > a,
.tbf-menu a { color: #fff; font-size: 1.15rem; text-transform: none; min-height: 0; padding: 4px 0; font-family: var(--tbf-font); }
.tbf-header .uk-navbar-nav > li > a:hover, .tbf-menu a:hover { color: #9fc0ec; }
.tbf-menu { list-style: none; margin: 0; padding: 0; line-height: 1.6; }
.tbf-logo img { width: 140px; }

/* ---------- Hero ---------- */
.tbf-hero { background: var(--tbf-night); position: relative; }
.tbf-hero-grid { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 48px); }
.tbf-editions {
  writing-mode: vertical-rl; transform: rotate(180deg);
  color: #fff; letter-spacing: .04em; font-size: 1.1rem; white-space: nowrap;
}
.tbf-editions strong { font-weight: 700; }
.tbf-title {
  font-family: var(--tbf-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 1rem + 6.4vw, 7.4rem);
  line-height: .95;
  letter-spacing: .01em;
  color: #c7ccd2;
  margin: 0 0 .25em;
  text-transform: uppercase;
}
.tbf-title span { color: var(--tbf-blue); }
.tbf-subtitle { color: #fff; font-size: clamp(.95rem, .8rem + .35vw, 1.2rem); margin: 0; }
.tbf-credit { position: absolute; right: 24px; bottom: 14px; font-size: 10px; color: rgba(255,255,255,.75); }

/* ---------- Rejilla de círculos ---------- */
.tbf-dots { --d: clamp(42px, 6.2vw, 120px); display: grid; grid-template-columns: repeat(3, var(--d)); gap: calc(var(--d) * .1); }
.tbf-dot {
  width: var(--d); height: var(--d); border-radius: 50%;
  background: var(--tbf-dot);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.tbf-dot.is-light { background: #e9e9e9; }
.tbf-dot.is-white { background: #fff; }
.tbf-dot.is-ghost { background: rgba(255,255,255,.35); }
.tbf-dot.is-date {
  background: var(--tbf-blue-strong); color: #fff;
  font-family: var(--tbf-display); font-weight: 800; line-height: 1.05;
  font-size: calc(var(--d) * .23);
}
.tbf-dot.is-empty { visibility: hidden; }
.tbf-hero .tbf-dot.is-date { background: #2e74bd; }

/* ---------- Banda cuenta atrás ---------- */
.tbf-countdown-band { background: var(--tbf-blue); color: #fff; }
.tbf-countdown-band .uk-countdown-number { font-family: var(--tbf-font); font-weight: 300; font-size: clamp(2.2rem, 1.2rem + 3vw, 4.4rem); color: #fff; line-height: 1; }
.tbf-countdown-band .uk-countdown-separator { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.6rem); color: #fff; line-height: 1; }
.tbf-countdown-band .uk-countdown-label { color: #111; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; margin-top: 10px; }
.tbf-countdown-band .tbf-next { font-size: 1.25rem; margin: 0 0 12px; }

/* ---------- Agendas (acordeón) ---------- */
.tbf-agendas > li { margin-top: 0; border-bottom: 2px solid #d4d8de; padding-bottom: 28px; margin-bottom: 40px; position: relative; }
.tbf-agendas > li > .uk-accordion-title { color: inherit; padding-right: 60px; display: block; text-decoration: none; }
.tbf-agendas > li > .uk-accordion-title::before { display: none; }
.tbf-agenda-toggle {
  position: absolute; right: 0; bottom: 12px; width: 24px; height: 24px;
}
.tbf-agenda-toggle::before, .tbf-agenda-toggle::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: var(--tbf-blue); transition: transform .25s;
}
.tbf-agenda-toggle::after { transform: rotate(90deg); }
.uk-open .tbf-agenda-toggle::after { transform: rotate(0); }

.tbf-agenda-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: end; }
.tbf-agenda-media .tbf-dots { --d: clamp(48px, 6.3vw, 122px); margin-bottom: 8px; }
.tbf-agenda-img { position: relative; overflow: hidden; }
.tbf-agenda-img img { display: block; width: 100%; height: auto; }
.tbf-agenda-img .tbf-dots { position: absolute; top: 4%; left: 0; margin: 0; }
li:not(.uk-open) > .uk-accordion-title .tbf-agenda-img { display: none; }

.tbf-edition { color: var(--tbf-blue); font-family: var(--tbf-display); font-weight: 800; font-size: 1.3rem; line-height: 1.2; margin: 0 0 14px; text-transform: none; }
.tbf-talk { font-weight: 300; font-size: clamp(1.4rem, 1rem + 1.2vw, 2.05rem); line-height: 1.2; text-transform: uppercase; margin: 0 0 12px; color: var(--tbf-ink); }
.tbf-speaker { color: var(--tbf-blue); font-weight: 700; font-size: 1.2rem; margin: 0; }

.tbf-agenda-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; padding-top: 34px; }
.tbf-when { color: var(--tbf-blue); font-size: 1.25rem; line-height: 1.2; margin: 0 0 16px; }
.tbf-when strong { font-family: var(--tbf-display); font-weight: 800; text-transform: uppercase; display: block; }
.tbf-when span { display: block; text-transform: uppercase; font-weight: 300; }
.tbf-place { font-size: .85rem; margin: 0; line-height: 1.35; }
.tbf-agenda-aside { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.tbf-small { font-size: .82rem; font-weight: 700; margin: 12px 0 0; }

.tbf-program { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px 28px; margin: 0; }
.tbf-program dt { color: var(--tbf-link); font-weight: 400; font-size: 1rem; line-height: 1.25; }
.tbf-program dd { margin: 0; font-size: 1.02rem; line-height: 1.25; }
.tbf-program dd small { display: block; font-size: .78rem; line-height: 1.3; }
.tbf-program dd .tbf-talk-link { color: var(--tbf-link); font-weight: 700; display: block; margin-bottom: 6px; }
.tbf-program dd + dd { grid-column: 2; margin-top: -8px; }

.tbf-sponsors { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; padding-top: 40px; align-items: center; }
.tbf-sponsors .tbf-label { font-size: .85rem; align-self: start; }
.tbf-sponsors img { max-height: 70px; width: auto; }

/* ---------- Banda foto + Localización ---------- */
.tbf-photo-band { min-height: clamp(200px, 20vw, 380px); background-size: cover; background-position: center; }

/* ---------- ¿Qué es? ---------- */
.tbf-what .tbf-dots { --d: clamp(56px, 5.8vw, 112px); }
.tbf-logo-color { width: clamp(200px, 20vw, 350px); }
.tbf-quote { color: var(--tbf-link); font-style: italic; font-size: clamp(1.1rem, .9rem + .5vw, 1.45rem); line-height: 1.25; text-align: right; margin: 0; border: 0; padding: 0; }
.tbf-quote footer { color: var(--tbf-ink); font-style: normal; font-size: .8rem; margin-top: 18px; }
.tbf-quote footer::before { content: none; }

/* ---------- Comité ---------- */
.tbf-team img { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; }
.tbf-team .tbf-name { font-size: .82rem; margin-top: 10px; }

/* ---------- Actualidad ---------- */
.tbf-news { background: #fafafa; box-shadow: 0 6px 18px rgba(0,0,0,.08); height: 100%; display: flex; flex-direction: column; }
.tbf-news img { width: 100%; aspect-ratio: 380 / 220; object-fit: cover; display: block; }
.tbf-news-body { padding: 26px 22px 18px; display: flex; flex-direction: column; flex: 1; }
.tbf-news-date { font-size: .8rem; margin: 0 0 18px; }
.tbf-news-title { color: var(--tbf-link); font-size: 1.15rem; line-height: 1.2; font-weight: 400; margin: 0 0 40px; }
.tbf-news-more { color: var(--tbf-link); font-size: .82rem; margin-top: auto; }
.tbf-viewall { color: var(--tbf-link); font-size: .85rem; }

/* ---------- Footer ---------- */
.tbf-footer { background: var(--tbf-navy); color: #fff; }
.tbf-footer a { color: #fff; }
.tbf-footer .tbf-brand { font-weight: 700; letter-spacing: .02em; margin: 14px 0 34px; }
.tbf-footer .tbf-brand span { color: #2f9be0; }
.tbf-footer .tbf-legal { font-size: .72rem; text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.tbf-social { display: flex; gap: 18px; }
.tbf-social a { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--tbf-navy); display: inline-flex; align-items: center; justify-content: center; }
.tbf-social a:hover { background: var(--tbf-blue); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 959px) {
  .tbf-agenda-head, .tbf-agenda-body, .tbf-sponsors { grid-template-columns: 1fr; gap: 24px; }
  .tbf-program { grid-template-columns: 120px minmax(0, 1fr); }
  .tbf-hero-grid { flex-wrap: wrap; }
  .tbf-quote { text-align: left; }
}
@media (max-width: 479px) {
  .tbf-program { grid-template-columns: 1fr; gap: 6px; }
  .tbf-program dd { margin-bottom: 14px; }
  .tbf-program dd + dd { grid-column: 1; margin-top: 0; }
  .tbf-editions { display: none; }
}

/* ---------- Ajustes para elementos nativos del builder ---------- */
.tbf-team .el-title { font-size: .82rem; font-weight: 400; margin-top: 10px; }
.tbf-team .el-image { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; }
.tbf-news-grid .uk-card { background: #fafafa; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.tbf-news-grid .el-meta { font-size: .8rem; color: var(--tbf-ink); text-transform: none; }
.tbf-news-grid .el-title { color: var(--tbf-link); font-size: 1.15rem; font-weight: 400; line-height: 1.2; }
.tbf-news-grid .el-link { color: var(--tbf-link); font-size: .82rem; }

/* ---------- Ajustes globales sobre el estilo de YOOtheme ---------- */
.uk-section-muted { background-color: var(--tbf-gray); }
.uk-section-secondary.tbf-footer, .tbf-footer.uk-section-secondary { background-color: var(--tbf-navy); }
.uk-button-primary { background: var(--tbf-blue); color: #fff; border: 0; border-radius: 999px; font-weight: 700; text-transform: uppercase; padding: 0 34px; line-height: 46px; }
.uk-button-primary:hover, .uk-button-primary:focus { background: #3c6eb3; color: #fff; }
.tm-header .uk-navbar-nav > li > a,
.tm-header-mobile .uk-navbar-nav > li > a { font-family: var(--tbf-font); text-transform: none; font-size: 1.05rem; letter-spacing: 0; }
.tm-header .uk-logo img { width: 140px; height: auto; }
.uk-offcanvas-bar, .tm-header-mobile .uk-dropbar { font-family: var(--tbf-font); }
.tbf-hero .tbf-title, .tbf-hero .tbf-subtitle { text-transform: none; }
.tbf-hero .tbf-title { text-transform: uppercase; }
