.smf-courses,.smf-details {
  --smf-blue:#183d62;--smf-ink:#24364b;--smf-muted:#53677b;--smf-line:#dbe3ec;--smf-soft:#f3f6f9;--smf-tint:#e8eff6;
  color:var(--smf-ink);font-family:inherit;line-height:1.6;box-sizing:border-box;
}
.smf-courses *,.smf-details *{box-sizing:border-box}
.smf-courses a,.smf-details a{color:var(--smf-blue)}
.smf-courses .smf-intro{text-align:center;padding:10px 0 26px}
.smf-courses .smf-intro .smf-kicker{color:var(--smf-blue);font-size:.72rem;font-weight:700;letter-spacing:.13em;margin:0 0 8px}
.smf-courses .smf-intro h2{font-family:inherit;font-size:clamp(1.65rem,3vw,2.25rem);font-weight:700;line-height:1.2;letter-spacing:-.025em;color:var(--smf-ink);margin:0 0 10px}
.smf-courses .smf-intro>p:last-child{color:var(--smf-muted);margin:0;font-size:.96rem}
.smf-courses .smf-filter-panel{border:1px solid var(--smf-line);border-radius:12px;background:#fff;margin:0 0 24px;overflow:hidden}
.smf-courses .smf-filter-panel summary{display:flex;align-items:center;gap:10px;min-height:52px;padding:12px 18px;font-size:.9rem;font-weight:600;cursor:pointer;list-style:none;color:var(--smf-blue)}
.smf-courses .smf-filter-panel summary::-webkit-details-marker{display:none}
.smf-courses .smf-filter-panel summary::after{content:'+';margin-left:auto;font-size:1.4rem;font-weight:400;line-height:1}
.smf-courses .smf-filter-panel[open] summary::after{content:'−'}
.smf-courses .smf-filter-panel[open] summary{border-bottom:1px solid var(--smf-line)}
.smf-courses .smf-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:end;padding:20px;background:var(--smf-soft);margin:0}
.smf-courses .smf-filters label{display:flex;flex-direction:column;gap:6px;font-size:.84rem;font-weight:600}
.smf-courses :is(input,select){display:block;width:100%;min-width:0;min-height:44px;border:1px solid #a6b4c3;border-radius:6px;background:#fff;color:var(--smf-ink);padding:9px 12px;font:inherit;line-height:1.3;box-shadow:none}
.smf-courses .smf-filter-actions{display:flex;gap:20px;align-items:center;flex-wrap:wrap;grid-column:1/-1;font-size:.875rem}
.smf-courses button,.smf-details a.smf-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:0;border-radius:7px;background:var(--smf-blue);color:#fff!important;padding:10px 20px;font:inherit;font-weight:600;text-decoration:none;cursor:pointer}
.smf-courses button:hover,.smf-details a.smf-button:hover{background:#102e4a}
.smf-courses .smf-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin:0 0 8px}
.smf-courses .smf-count{font-size:.93rem;font-weight:600;color:var(--smf-muted);margin:0}
.smf-courses .smf-view-switch{display:flex;gap:6px}
.smf-courses .smf-view-switch a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid var(--smf-line);border-radius:7px;background:#fff;color:var(--smf-blue)!important;text-decoration:none}
.smf-courses .smf-view-switch a[aria-current=true]{background:var(--smf-blue);border-color:var(--smf-blue);color:#fff!important}
.smf-courses .smf-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.smf-courses .smf-card{position:relative;display:grid;grid-template-columns:66px minmax(0,1fr) 94px;align-items:center;gap:20px;min-width:0;padding:20px;background:#fff;border:1px solid var(--smf-line);border-radius:12px;box-shadow:0 2px 8px #183d6204;transition:border-color .18s,box-shadow .18s}
.smf-courses .smf-card:hover{border-color:#8ca8c2;box-shadow:0 5px 18px #183d6210}
.smf-courses .smf-card:focus-within{outline:3px solid #537b9f;outline-offset:3px}
.smf-courses .smf-date-badge{display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:center;min-height:68px;width:64px;background:var(--smf-soft);border:1px solid #c7d7e5;border-radius:10px;color:var(--smf-blue);line-height:1.15;gap:5px;box-shadow:inset 0 0 0 2px #fff}
.smf-courses .smf-date-day{font-size:1.6rem;font-weight:750;font-variant-numeric:tabular-nums;letter-spacing:-.035em}
.smf-courses .smf-date-month{font-size:.66rem;font-weight:700;letter-spacing:.07em}
.smf-courses .smf-date-estimate .smf-date-day{font-size:1.05rem;letter-spacing:0}
.smf-courses .smf-date-unknown{font-size:.62rem;font-weight:600}
.smf-courses .smf-date-unknown svg{width:23px;height:23px}
.smf-courses .smf-card-main{min-width:0}
.smf-courses .smf-card-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 12px;padding:0;margin:0 0 8px;background:none}
.smf-courses .smf-card-title{font-family:inherit;font-size:1.03rem;font-weight:700;line-height:1.45;letter-spacing:0;color:var(--smf-ink);margin:0;overflow-wrap:anywhere;min-width:0}
.smf-courses .smf-card-title a{color:var(--smf-ink)!important;text-decoration:none;border:0}
.smf-courses .smf-card-title a::after{content:'';position:absolute;inset:0;z-index:1;border-radius:12px}
.smf-courses .smf-title-link:focus-visible{outline:0}
.smf-courses .smf-card:hover .smf-card-title a{color:var(--smf-blue)!important}
.smf-courses .smf-badge{display:inline-block;flex-shrink:0;max-width:100%;margin:0;padding:3px 9px;border-radius:30px;background:var(--smf-tint);color:var(--smf-blue);font-size:.63rem;font-weight:700;letter-spacing:.025em;text-transform:uppercase;line-height:1.5;overflow-wrap:anywhere}
.smf-courses .smf-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px 16px;color:var(--smf-muted);font-size:.78rem;line-height:1.5}
.smf-courses .smf-meta-item{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-width:0}
.smf-courses .smf-meta-item>span{min-width:0;overflow-wrap:anywhere}
.smf-courses .smf-meta-item svg{flex:0 0 14px;width:14px;height:14px;color:#607e99}
.smf-courses .smf-center{margin:7px 0 0;font-size:.75rem;font-weight:400;line-height:1.4;color:var(--smf-muted);overflow-wrap:anywhere}
.smf-courses .smf-more{display:inline-flex;align-items:center;justify-content:flex-end;gap:7px;align-self:center;white-space:nowrap;font-size:.78rem;font-weight:600;color:var(--smf-blue);padding:12px 0;line-height:1.4}
.smf-courses .smf-more svg{flex-shrink:0;width:15px;height:15px}
.smf-courses.smf-view-tarjetas .smf-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px}
.smf-courses.smf-view-tarjetas .smf-card{grid-template-columns:64px minmax(0,1fr);align-items:start;gap:16px}
.smf-courses.smf-view-tarjetas .smf-date-badge{align-self:start}
.smf-courses.smf-view-tarjetas .smf-card-heading{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.smf-courses.smf-view-tarjetas .smf-card-meta{display:grid;gap:8px}
.smf-courses.smf-view-tarjetas .smf-more{grid-column:1/-1;justify-content:space-between;margin:0;padding:12px 0 0;border-top:1px solid var(--smf-line)}
.smf-courses .smf-empty{padding:28px;border:1px solid var(--smf-line);border-radius:12px;background:var(--smf-soft)}
.smf-courses .smf-empty p{margin:8px 0 0}
.smf-courses .smf-pagination{display:flex;flex-wrap:wrap;gap:8px;margin:28px 0}
.smf-courses .smf-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid var(--smf-line);border-radius:7px;text-decoration:none}
.smf-courses .smf-pagination .current{background:var(--smf-blue);color:#fff}
.smf-courses .smf-note,.smf-details .smf-note{font-size:.8rem;color:var(--smf-muted);margin:24px 0 0}
.smf-details dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:18px;padding:24px;background:var(--smf-soft);border:1px solid var(--smf-line);border-radius:12px}
.smf-details dt{font-size:.8rem;font-weight:600;color:var(--smf-muted)}
.smf-details dd{margin:4px 0 0;font-weight:600;overflow-wrap:anywhere}
.smf-details section{margin:28px 0}
.smf-details h2{font-size:1.35rem;color:var(--smf-blue)}
.smf-details .smf-actions{display:flex;align-items:center;flex-wrap:wrap;gap:20px;margin-top:28px}
.smf-details .smf-warning{padding:16px;background:#fff5df;border-left:4px solid #a85b08}
.smf-courses :is(a,button,input,select,summary):focus-visible,.smf-details a:focus-visible{outline:3px solid #537b9f;outline-offset:3px}
.smf-courses .smf-card .smf-title-link:focus-visible{outline:none}
@media(max-width:767px){
  .smf-courses .smf-intro{padding-bottom:22px;text-align:left}
  .smf-courses .smf-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:14px}
  .smf-courses .smf-filters label:first-of-type{grid-column:1/-1}
  .smf-courses .smf-filter-actions button{width:100%}
  .smf-courses .smf-view-switch{display:none}
  .smf-courses:is(.smf-view-lista,.smf-view-tarjetas) .smf-grid{grid-template-columns:minmax(0,1fr);gap:10px}
  .smf-courses:is(.smf-view-lista,.smf-view-tarjetas) .smf-card{grid-template-columns:49px minmax(0,1fr) 16px;gap:12px;padding:15px 12px;align-items:start}
  .smf-courses .smf-date-badge{width:49px;min-height:57px;border-radius:8px;align-self:start}
  .smf-courses .smf-date-day{font-size:1.35rem}
  .smf-courses .smf-date-month{font-size:.6rem}
  .smf-courses .smf-card-title{font-size:.94rem;line-height:1.45}
  .smf-courses .smf-card-heading,.smf-courses.smf-view-tarjetas .smf-card-heading{flex-direction:column;align-items:flex-start;gap:7px}
  .smf-courses .smf-card-meta,.smf-courses.smf-view-tarjetas .smf-card-meta{display:flex;font-size:.77rem;gap:5px 12px}
  .smf-courses .smf-center{font-size:.73rem}
  .smf-courses .smf-more,.smf-courses.smf-view-tarjetas .smf-more{grid-column:auto;border:0;margin:0;padding:0;font-size:0;align-self:center;gap:0}
  .smf-courses .smf-more svg{width:16px;height:18px}
  .smf-details dl{padding:18px}
}
@media(max-width:390px){.smf-courses .smf-filters{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.smf-courses .smf-card{transition:none}}

/* En lista, el encabezado y el resumen ocupan una línea cada uno. */
.smf-courses.smf-view-lista .smf-card{padding:10px 14px;gap:12px}
.smf-courses.smf-view-lista .smf-date-badge{min-height:46px;gap:2px;align-self:center}
.smf-courses.smf-view-lista .smf-date-day{font-size:1.25rem}
.smf-courses.smf-view-lista .smf-card-heading{flex-direction:row;align-items:center;flex-wrap:nowrap;gap:5px;margin:0 0 3px}
.smf-courses.smf-view-lista .smf-card-title{flex:0 1 auto}
.smf-courses.smf-view-lista .smf-title-link>span,.smf-courses .smf-compact-summary{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.smf-courses.smf-view-lista .smf-title-link>span{display:block}
.smf-courses .smf-compact-summary{display:none;margin:0;color:var(--smf-muted);font-size:.78rem;line-height:1.45}
.smf-courses.smf-view-lista .smf-compact-summary{display:block}
.smf-courses.smf-view-lista .smf-expanded-summary{display:none}
@media(max-width:767px){
  .smf-courses.smf-view-tarjetas .smf-card{padding:10px 12px;gap:10px}
  .smf-courses.smf-view-tarjetas .smf-date-badge{min-height:46px;gap:2px;align-self:center}
  .smf-courses.smf-view-tarjetas .smf-card-heading{flex-direction:row;align-items:center;flex-wrap:nowrap;gap:5px;margin:0 0 3px}
  .smf-courses.smf-view-tarjetas .smf-title-link>span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .smf-courses.smf-view-tarjetas .smf-compact-summary{display:block}
  .smf-courses.smf-view-tarjetas .smf-expanded-summary{display:none}
  .smf-courses .smf-card-heading .smf-badge:not(.smf-featured-badge){display:none}
}


.smf-courses .smf-badge.smf-featured-badge{padding:3px 7px;background:#fff0cb;color:#634100;white-space:nowrap;text-transform:none}
.smf-courses.smf-view-lista .smf-mode-badge{display:none}
.smf-courses .smf-page-size{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0}
.smf-courses .smf-page-size label{display:flex;align-items:center;gap:8px;font-size:.82rem;font-weight:600}
.smf-courses .smf-page-size select{width:auto;min-width:64px;min-height:44px;padding:6px;font:inherit;border:1px solid #a6b4c3;border-radius:6px;background:#fff;color:inherit}
.smf-courses .smf-page-size button{padding:6px 12px;font-size:.82rem}
.single-smf_curso #main,.single-smf_curso .wp-site-blocks main{background-color:#eef4fa}
.smf-details{background-color:#eef4fa;border-radius:12px;padding:clamp(14px,3vw,30px)}
.smf-details dl{background-color:#e4edf7}
