*{box-sizing:border-box}
body{margin:0;background:#FBF8F2;color:#0F2A44;font-family:'DM Sans',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:#0F2A44}a:hover{color:#8A6A22}
.fm-wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.fm-serif{font-family:Lora,Georgia,serif}

.fm-top{background:#fff;border-bottom:1.67px solid #A8843E;box-shadow:0 2px 16px rgba(15,42,68,.08);position:sticky;top:0;z-index:50}
.fm-top-in{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:space-between;gap:12px;min-height:62px;padding:0 48px}
.fm-brand{display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;padding:8px 0}
.fm-brand:hover{color:#0F2A44}
.fm-brand-main{font-family:Lora,serif;font-weight:700;font-size:20px;letter-spacing:.18em;color:#0F2A44}
.fm-brand-sub{font-family:'DM Mono',monospace;font-size:10px;letter-spacing:.16em;color:#8A6A22;text-transform:uppercase}
.fm-nav{display:flex;flex-wrap:wrap;align-items:stretch}
.fm-nav a{display:flex;align-items:center;font-family:'DM Mono',monospace;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#0F2A44;opacity:.75;padding:0 12px;min-height:44px;text-decoration:none;border-bottom:1.67px solid transparent;white-space:nowrap}
.fm-nav a:hover{opacity:1;color:#0F2A44}
.fm-nav a.on{opacity:1;border-bottom-color:#A8843E}

.fm-hero{background:#0F2A44;color:#fff;border-top:1px solid rgba(201,168,76,.35)}
.fm-hero-in{display:flex;flex-wrap:wrap;gap:48px;align-items:flex-end;padding-top:72px;padding-bottom:80px}
.fm-hero.compacto .fm-hero-in{padding-top:44px;padding-bottom:48px}
.fm-hero.compacto h1{font-size:42px}
.fm-hero-main{flex:999 1 560px;min-width:0}
.fm-kicker{margin:0 0 18px;font-size:12px;letter-spacing:.22em;color:#C9A84C;font-weight:600}
.fm-hero h1{margin:0;font-family:Lora,serif;font-weight:500;font-size:52px;line-height:1.12}
.fm-hero-lead{margin:24px 0 0;max-width:680px;font-size:18px;line-height:1.6;color:#D5DAE6}
.fm-hero-side{flex:1 1 280px;border-left:1px solid rgba(201,168,76,.45);padding-left:28px}
.fm-hero-side p{margin:0;font-family:Lora,serif;font-style:italic;font-size:17px;line-height:1.55;color:#EDE3C8}

.fm-puertas-wrap{padding-top:56px;padding-bottom:72px}
.fm-puertas-tit{margin:0 0 28px;font-family:Lora,serif;font-weight:500;font-size:32px;text-align:center}
.fm-puertas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;max-width:1040px;margin:0 auto}
.fm-puerta{display:flex;flex-direction:column;gap:12px;padding:40px 36px;border-radius:14px;text-decoration:none;min-height:300px;transition:transform .15s ease,box-shadow .15s ease}
.fm-puerta:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(26,38,68,.14)}
.fm-puerta .fm-ico{width:44px;height:44px;stroke-width:1.5}
.fm-puerta b{font-family:Lora,serif;font-weight:500;font-size:38px;line-height:1.1}
.fm-puerta .txt{font-size:17px;line-height:1.55;max-width:420px}
.fm-puerta .num{margin-top:auto;font-size:13px;letter-spacing:.14em;text-transform:uppercase;font-weight:600}
.fm-puerta .ir{font-weight:600;font-size:16px}
.fm-puerta.linea{background:#0F2A44;color:#fff}
.fm-puerta.linea:hover{color:#fff}
.fm-puerta.linea .txt{color:#D5DAE6}
.fm-puerta.linea .num{color:#C9A84C}
.fm-puerta.presencial{background:#F1EADC;color:#0F2A44;border:1.5px solid #C9A84C}
.fm-puerta.presencial:hover{color:#0F2A44}
.fm-puerta.presencial .txt{color:#3A4460}
.fm-puerta.presencial .num{color:#6B5A2E}
.fm-puertas-pie{text-align:center;margin:28px 0 0;font-size:15px;color:#4A5470}
.fm-modos{background:#fff;border-bottom:1px solid #E7E0D0}
.fm-modos-in{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:20px;padding-bottom:20px}
.fm-modo{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:16px 20px;border:1.5px solid #D8CFBC;border-radius:10px;text-decoration:none;color:#0F2A44;background:#fff;min-height:72px}
.fm-modo:hover{border-color:#0F2A44;color:#0F2A44}
.fm-modo .fm-ico{grid-row:1/3;width:28px;height:28px}
.fm-modo b{font-family:Lora,serif;font-size:20px;font-weight:600}
.fm-modo span{font-size:13px;color:#4A5470}
.fm-modo:first-child{grid-template-columns:1fr}
.fm-modo.on{background:#0F2A44;border-color:#0F2A44;color:#fff}
.fm-modo.on span{color:#D5DAE6}
.fm-ico{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.fm-grupo-cab{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:8px 0 18px;padding-bottom:12px;border-bottom:2px solid #0F2A44}
.fm-grupo-cab.presencial{border-bottom-color:#C9A84C}
.fm-grupo-cab .fm-ico{width:26px;height:26px}
.fm-grupo-cab h3{margin:0;font-family:Lora,serif;font-weight:600;font-size:26px}
.fm-grupo-cab span{font-size:14px;color:#4A5470}
.fm-grupo{margin-bottom:48px}
.fm-grupo-vacio{margin:0 0 48px;color:#4A5470}
.fm-chip{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;letter-spacing:.04em;padding:7px 12px;border-radius:999px}
.fm-chip.linea{background:#0F2A44;color:#fff}
.fm-chip.presencial{background:#C9A84C;color:#0F2A44}
.fm-chip.hibrida{background:#fff;color:#0F2A44;border:1.5px solid #0F2A44}
.fm-chip .fm-ico{width:16px;height:16px}
.fm-estado-txt{font-weight:600;color:#0F2A44}
.fm-aval{margin:-4px 0 0;font-size:13px;line-height:1.45;color:#3A4460}
.fm-filtros{background:#fff;border-bottom:1px solid #E7E0D0}
.fm-filtros-in{display:flex;flex-direction:column;gap:18px;padding-top:24px;padding-bottom:24px}
.fm-pills{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.fm-label{font-size:12px;letter-spacing:.14em;font-weight:600;color:#4A5470;margin-right:8px}
.fm-pill{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:22px;border:1px solid #D8CFBC;background:#fff;color:#0F2A44;text-decoration:none;font-size:14px;font-weight:500}
.fm-pill:hover{border-color:#0F2A44;color:#0F2A44}
.fm-pill.on{background:#0F2A44;border-color:#0F2A44;color:#fff;font-weight:600}
.fm-campos{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end}
.fm-campo{display:flex;flex-direction:column;gap:6px;font-size:12px;letter-spacing:.1em;font-weight:600;color:#4A5470;flex:1 1 200px}
.fm-campo.ancho{flex:2 1 260px}
.fm-campo select,.fm-campo input{font-family:inherit;font-size:15px;padding:12px;border:1px solid #D8CFBC;border-radius:6px;background:#fff;color:#0F2A44;width:100%}
.fm-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border-radius:6px;border:1px solid #0F2A44;background:#0F2A44;color:#fff;font-family:inherit;font-size:15px;font-weight:600;text-decoration:none;cursor:pointer}
.fm-btn:hover{background:#24345c;color:#fff}
.fm-btn.sec{background:#fff;color:#0F2A44}
.fm-btn.sec:hover{background:#F1EADC;color:#0F2A44}

.fm-main{padding-top:40px;padding-bottom:72px}
.fm-cab{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:24px}
.fm-cab h2{margin:0;font-family:Lora,serif;font-weight:500;font-size:28px}
.fm-cab p{margin:0;font-size:14px;color:#4A5470}
.fm-tabs{display:flex;gap:6px;margin-bottom:24px;border-bottom:1px solid #E7E0D0}
.fm-tabs a{padding:12px 16px;text-decoration:none;font-size:15px;color:#4A5470;border-bottom:2px solid transparent;margin-bottom:-1px}
.fm-tabs a.on{color:#0F2A44;font-weight:600;border-bottom-color:#C9A84C}

.fm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:24px}
.fm-card{background:#fff;border:1px solid #E7E0D0;border-radius:10px;padding:28px;display:flex;flex-direction:column;gap:16px}
.fm-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.fm-tag{font-size:12px;letter-spacing:.14em;font-weight:600;color:#0F2A44;background:#F1EADC;padding:6px 10px;border-radius:4px;text-transform:uppercase}
.fm-estado{font-size:11px;letter-spacing:.12em;font-weight:600;padding:5px 9px;border-radius:4px;text-transform:uppercase}
.fm-estado.en_curso{background:#0F2A44;color:#fff}
.fm-estado.abierto{background:#E4ECF7;color:#0F2A44}
.fm-estado.archivado{background:#EFEDE8;color:#4A4A4A}
.fm-esp{margin:0;font-size:13px;color:#4A5470}
.fm-card h3{margin:0;font-family:Lora,serif;font-weight:600;font-size:21px;line-height:1.3}
.fm-card h3 a{text-decoration:none}
.fm-soc{margin:0;font-size:14px;color:#3A4460}
.fm-datos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px 0;border-top:1px solid #EFE9DC;border-bottom:1px solid #EFE9DC}
.fm-dato{display:flex;flex-direction:column;gap:4px}
.fm-dato span:first-child{font-size:11px;letter-spacing:.12em;font-weight:600;color:#5A6380}
.fm-dato span:last-child{font-size:14px}
.fm-puntos{display:flex;gap:14px;align-items:center}
.fm-puntos b{font-family:Lora,serif;font-size:30px;font-weight:600;min-width:56px;text-align:center}
.fm-puntos span{font-size:13px;line-height:1.45;color:#3A4460}
.fm-card .fm-btn{margin-top:auto}

.fm-card-img{display:block;margin:-28px -28px 0;border-radius:10px 10px 0 0;overflow:hidden;aspect-ratio:16/9;background:#F1EADC}
.fm-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.fm-muestra{position:relative;overflow:hidden;user-select:none}
.fm-muestra-in{display:flex;flex-direction:column;gap:16px;filter:blur(5px);opacity:.75}
.fm-proximamente{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(251,248,242,.35)}
.fm-proximamente span{font-family:Lora,serif;font-style:italic;font-size:26px;color:#0F2A44;background:#FFFFFF;border:1px solid #C9A84C;padding:12px 28px;border-radius:6px;letter-spacing:.02em}
.fm-ficha-img{border-radius:10px;overflow:hidden;background:#F1EADC}
.fm-ficha-img img{width:100%;display:block}
.fm-vacio{background:#fff;border:1px dashed #D8CFBC;border-radius:10px;padding:48px 28px;text-align:center}
.fm-vacio h3{margin:0 0 10px;font-family:Lora,serif;font-weight:500;font-size:24px}
.fm-vacio p{margin:0 auto;max-width:560px;color:#3A4460;line-height:1.6}

.fm-soc-cta{background:#F1EADC;border-top:1px solid #E2D6BC}
.fm-soc-cta-in{display:flex;flex-wrap:wrap;gap:32px;align-items:center;justify-content:space-between;padding-top:56px;padding-bottom:56px}
.fm-soc-cta-in>div{flex:999 1 520px;min-width:0}
.fm-soc-cta .fm-kicker{color:#6B5A2E;margin-bottom:10px;letter-spacing:.2em}
.fm-soc-cta h2{margin:0;font-family:Lora,serif;font-weight:500;font-size:30px;line-height:1.25}
.fm-soc-cta p.txt{margin:14px 0 0;font-size:16px;line-height:1.6;color:#3A4460;max-width:640px}

.fm-foot{background:#0F2A44;color:#C9CFDD}
.fm-foot-in{display:flex;flex-wrap:wrap;gap:24px;justify-content:space-between;padding-top:40px;padding-bottom:40px;font-size:13px;line-height:1.6}
.fm-foot p{margin:0;max-width:640px}
.fm-foot-sede{color:#C9A84C;letter-spacing:.14em;font-weight:600}

/* Ficha */
.fm-ruta{font-size:13px;color:#C2C9D9}
.fm-ruta a{color:#C2C9D9}
.fm-ficha-hero{padding-top:32px;padding-bottom:64px;display:flex;flex-direction:column;gap:20px}
.fm-ficha-hero h1{font-size:46px;line-height:1.15;max-width:900px}
.fm-ficha-hero .fm-org{margin:0;font-size:18px;color:#D5DAE6}
.fm-tags{display:flex;flex-wrap:wrap;gap:10px}
.fm-tag-dark{font-size:12px;letter-spacing:.14em;font-weight:600;color:#EDE3C8;border:1px solid rgba(201,168,76,.6);padding:5px 10px;border-radius:4px;text-transform:uppercase}
.fm-ficha{display:flex;flex-wrap:wrap;gap:40px;align-items:flex-start;padding-top:48px;padding-bottom:72px}
.fm-ficha-txt{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:36px}
.fm-ficha-txt h2{margin:0 0 14px;font-family:Lora,serif;font-weight:500;font-size:26px}
.fm-ficha-txt .txt{font-size:17px;line-height:1.7;color:#2E3754;white-space:pre-line}
.fm-aviso{background:#F1EADC;border-radius:8px;padding:20px 24px;font-size:14px;line-height:1.6;color:#3A4460}
.fm-aviso.archivo{background:#EFEDE8}
.fm-lado{flex:1 1 340px;background:#fff;border:1px solid #E7E0D0;border-radius:10px;padding:28px;display:flex;flex-direction:column;gap:20px}
.fm-lado .fm-puntos{padding-bottom:20px;border-bottom:1px solid #EFE9DC}
.fm-lado .fm-puntos b{font-size:44px;line-height:1;min-width:0}
.fm-lado dl{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
.fm-lado dt{font-size:11px;letter-spacing:.12em;font-weight:600;color:#5A6380}
.fm-lado dd{margin:4px 0 0;font-size:15px}
.fm-lado .fm-btn{min-height:52px}
.fm-lado .nota{margin:0;font-size:13px;line-height:1.5;color:#4A5470;text-align:center}

@media (max-width:640px){
  .fm-modos-in{grid-template-columns:1fr}
  .fm-top-in{padding:0 16px}
  .fm-nav a{padding:0 8px;font-size:11px}
  .fm-puertas{grid-template-columns:1fr}
  .fm-puerta{min-height:0;padding:28px 24px}
  .fm-puerta b{font-size:30px}
  .fm-puertas-tit{font-size:26px}

  .fm-hero h1{font-size:36px}
  .fm-ficha-hero h1{font-size:32px}
  .fm-hero-in{padding-top:48px;padding-bottom:56px}
  .fm-grid{grid-template-columns:1fr}
  .fm-hero-side{border-left:0;padding-left:0;border-top:1px solid rgba(201,168,76,.45);padding-top:20px}
}

/* ===== Móvil (06/11/2026): cabecera en una línea deslizable, portada compacta y filtros plegados ===== */
.fm-filtrar{display:none}
@media (max-width:640px){
  .fm-top{position:static}
  .fm-top-in{flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;min-height:0;padding:0}
  .fm-brand{padding:12px 16px 4px}
  .fm-nav{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:0 8px}
  .fm-nav::-webkit-scrollbar{display:none}
  .fm-acc-soc-in{padding-top:10px;padding-bottom:12px}
  .fm-acc-soc span{font-size:13px}
  .fm-hero-in{padding-top:32px;padding-bottom:36px;gap:20px}
  .fm-hero h1{font-size:30px}
  .fm-hero-lead{margin-top:14px;font-size:15px}
  .fm-hero-side{display:none}
  .fm-modos-in{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:14px;padding-bottom:14px}
  .fm-modo{grid-template-columns:1fr;justify-items:center;text-align:center;padding:10px 6px;min-height:0;row-gap:4px}
  .fm-modo .fm-ico{grid-row:auto;width:22px;height:22px}
  .fm-modo b{font-size:15px}
  .fm-modo span{display:none}
  .fm-filtros-in{padding-top:14px;padding-bottom:14px;gap:14px}
  .fm-filtrar{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:46px;padding:0 16px;border:1.5px solid #D8CFBC;border-radius:8px;background:#fff;font-family:'DM Sans',sans-serif;font-size:15px;font-weight:600;color:#0F2A44;cursor:pointer}
  .fm-filtrar:after{content:'+';color:#A8843E;font-size:20px}
  .fm-filtros.abierto .fm-filtrar:after{content:'–'}
  .fm-filtros:not(.abierto) .fm-pills,.fm-filtros:not(.abierto) .fm-campos{display:none}
  .fm-ficha-hero h1{font-size:28px}
}
/* Filtros plegados en escritorio mientras la sección está en «Próximamente» */
.fm-filtros.plegable .fm-filtrar{display:inline-flex;align-items:center;gap:10px;align-self:flex-start;min-height:42px;padding:0 18px;border:1.5px solid #D8CFBC;border-radius:999px;background:#fff;font-family:'DM Sans',sans-serif;font-size:14px;font-weight:600;color:#0F2A44;cursor:pointer}
.fm-filtros.plegable .fm-filtrar:after{content:'+';color:#A8843E;font-size:18px}
.fm-filtros.plegable.abierto .fm-filtrar:after{content:'–'}
.fm-filtros.plegable:not(.abierto) .fm-pills,.fm-filtros.plegable:not(.abierto) .fm-campos{display:none}
.fm-filtros.plegable:not(.abierto) .fm-filtros-in{padding-top:16px;padding-bottom:16px}
