/* ============================================================
   ÓPTICA FIJA — Formación / Imaging Academy · CSS autocontenido (scope .of-formacion)
   Conserva tokens, tipografía (Outfit) y color (#E02B20). Se encola en /formacion/ y fichas.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

.of-formacion{
  --of-red:#E02B20; --of-red-dark:#B81F17; --of-black:#000; --of-ink:#1A1A1A;
  --of-muted:#6B6B6B; --of-white:#FFF; --of-surface:#F7F6F5; --of-border:#E6E4E1;
  --of-radius:8px; --of-radius-lg:12px; --of-maxw:1160px;
  --of-font:'Outfit',Helvetica,Arial,sans-serif;
  font-family:var(--of-font); color:var(--of-ink);
}
.of-formacion *{ box-sizing:border-box; }
.of-formacion .of-wrap{ max-width:var(--of-maxw); margin:0 auto; padding-left:20px; padding-right:20px; }
.of-formacion h1,.of-formacion h2,.of-formacion h3{ text-transform:none; margin:0; }
.of-formacion p{ margin:0; }
.of-formacion a{ text-decoration:none; }
.of-formacion strong{ color:var(--of-red); font-weight:700; }
.of-formacion .of-accent,.of-formacion .of-fm-rh{ color:var(--of-red); }

/* full-bleed + ocultar título del tema */
body.of-formacion-page .page-header,
body.of-formacion-page .entry-title,
body.of-formacion-page .elementor-page-title{ display:none !important; }
body.of-formacion-page #content.site-main,
body.of-formacion-page main.site-main,
body.of-formacion-page .page-content{ max-width:100% !important; width:100% !important; margin:0 !important; padding:0 !important; }
body.of-formacion-page{ overflow-x:hidden; }
.of-formacion{ width:100%; }
.of-formacion > section{ width:100%; }

/* botón + teléfono */
.of-formacion .of-btn{ display:inline-flex; align-items:center; gap:.5em; font-family:var(--of-font); font-weight:700; font-size:1.0625rem; line-height:1; padding:16px 30px; border-radius:var(--of-radius); background:var(--of-red) !important; color:#fff !important; border:2px solid var(--of-red) !important; text-decoration:none; cursor:pointer; transition:background .2s ease,color .2s ease,border-color .2s ease; }
.of-formacion .of-btn:hover,.of-formacion .of-btn:focus-visible{ background:#fff !important; color:var(--of-red) !important; border-color:var(--of-red) !important; }
.of-formacion .of-btn svg{ width:18px; height:18px; flex-shrink:0; }
.of-formacion .of-tel-wrap{ position:relative; display:inline-block; }
.of-formacion .of-tel{ display:inline-flex; align-items:center; gap:10px; background:#fff; color:var(--of-red); padding:16px 28px; border-radius:var(--of-radius); font-weight:700; font-size:1.0625rem; line-height:1; text-decoration:none; border:2px solid var(--of-red); cursor:pointer; font-family:var(--of-font); transition:background .2s ease,color .2s ease,border-color .2s ease; }
.of-formacion .of-tel:hover,.of-formacion .of-tel[aria-expanded="true"]{ background:var(--of-red); color:#fff; }
.of-formacion .of-tel svg{ width:18px; height:18px; flex-shrink:0; }
.of-formacion .of-tel-pop{ position:absolute; left:50%; bottom:calc(100% + 12px); transform:translate(-50%,8px) scale(.96); transform-origin:bottom center; background:#16181D; color:#fff; border-radius:var(--of-radius-lg); padding:14px 14px 12px; min-width:248px; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .22s ease, transform .25s cubic-bezier(.2,.7,.2,1), visibility 0s linear .25s; box-shadow:0 22px 44px rgba(0,0,0,.28); z-index:30; }
.of-formacion .of-tel-pop::after{ content:""; position:absolute; top:100%; left:50%; transform:translateX(-50%); border:7px solid transparent; border-top-color:#16181D; }
.of-formacion .of-tel-pop.is-open{ opacity:1; visibility:visible; pointer-events:auto; transform:translate(-50%,0) scale(1); transition:opacity .22s ease, transform .25s cubic-bezier(.2,.7,.2,1), visibility 0s linear; }
.of-formacion .of-tel-pop-num{ display:flex; align-items:center; justify-content:center; gap:8px; font-weight:700; font-size:1.0625rem; padding-bottom:12px; }
.of-formacion .of-tel-pop-num svg{ width:16px; height:16px; }
.of-formacion .of-tel-pop-actions{ display:flex; gap:8px; }
.of-formacion .of-tel-pop-btn{ flex:1; display:inline-flex; align-items:center; justify-content:center; gap:7px; font-size:.875rem; font-weight:700; color:#fff; background:transparent; border:1px solid rgba(255,255,255,.28); border-radius:var(--of-radius); padding:10px; cursor:pointer; text-decoration:none; transition:background .2s ease,border-color .2s ease,color .2s ease; font-family:var(--of-font); }
.of-formacion .of-tel-pop-btn svg{ width:14px; height:14px; flex-shrink:0; }
.of-formacion .of-tel-pop-btn-copy:hover{ background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.55); }
.of-formacion .of-tel-pop-btn-copy.is-copied{ background:#1F9D57; border-color:#1F9D57; }
.of-formacion .of-tel-pop-btn-call{ background:var(--of-red); border-color:var(--of-red); }
.of-formacion .of-tel-pop-btn-call:hover{ background:var(--of-red-dark); border-color:var(--of-red-dark); }

/* censura + reveal + lenis */
.of-formacion .of-censored .of-cz{ position:relative; display:inline-block; overflow:hidden; padding-bottom:.16em; margin-bottom:-.16em; }
.of-formacion .of-censored .of-cz::after{ content:""; position:absolute; inset:0; background:currentColor; z-index:2; pointer-events:none; transform:translateY(0); }
.of-formacion .of-censored.is-on .of-cz::after{ transform:translateY(101%); transition:transform .55s cubic-bezier(.7,0,.2,1) var(--d); }
@media (prefers-reduced-motion: reduce){ .of-formacion .of-censored .of-cz::after{ display:none !important; } }
.of-js .of-formacion .js-reveal > *{ opacity:0; transform:translateY(18px); transition:opacity .55s ease, transform .55s ease; }
.of-js .of-formacion .js-reveal.is-in > *{ opacity:1; transform:none; }
.of-js .of-formacion .js-reveal.is-in > *:nth-child(1){ transition-delay:.04s; } .of-js .of-formacion .js-reveal.is-in > *:nth-child(2){ transition-delay:.1s; } .of-js .of-formacion .js-reveal.is-in > *:nth-child(3){ transition-delay:.16s; }
@media (prefers-reduced-motion: reduce){ .of-js .of-formacion .js-reveal > *{ opacity:1 !important; transform:none !important; transition:none !important; } }
html.lenis, html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto !important; }
.lenis.lenis-smooth [data-lenis-prevent]{ overscroll-behavior:contain; }
.lenis.lenis-stopped{ overflow:hidden; }
.lenis.lenis-smooth iframe{ pointer-events:none; }

/* títulos de sección */
.of-fm-h2{ font-size:clamp(1.7rem,3.4vw,2.4rem); font-weight:800; line-height:1.14; color:var(--of-black); }

/* ============================================================
   LANDING
   ============================================================ */
.of-fm-hero{ position:relative; overflow:hidden; text-align:center; color:#fff; background:#0E0F12; padding:clamp(116px,16vw,184px) 0 clamp(72px,10vw,116px); }
.of-fm-hero::before{ content:""; position:absolute; inset:-30px; z-index:0; background:url("/wp-content/uploads/2025/08/OPTICAFIJA_PMR3544.png") center/cover no-repeat; filter:blur(2.5px) saturate(1.06); transform:scale(1.04); }
.of-fm-hero::after{ content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.66) 100%); }
.of-fm-hero .of-wrap{ position:relative; z-index:2; max-width:840px; }
.of-fm-hero h1{ font-size:clamp(2.1rem,4.8vw,3.5rem); font-weight:800; line-height:1.05; color:#fff; letter-spacing:-.015em; text-shadow:0 2px 28px rgba(0,0,0,.42); }
.of-formacion .of-fm-hero .of-fm-rh{ color:#ff463a; }
.of-fm-lead{ margin:22px auto 0; max-width:60ch; font-size:1.1875rem; line-height:1.6; color:rgba(255,255,255,.86); }
.of-fm-hero-actions{ margin-top:32px; }
.of-fm-intro-txt{ text-align:center; max-width:760px; margin:0 auto; }

.of-fm-intro{ background:var(--of-surface); padding:clamp(44px,7vw,80px) 0; }
.of-fm-intro-grid{ display:grid; grid-template-columns:2fr 3fr; gap:clamp(28px,5vw,56px); align-items:center; }
@media (max-width:820px){ .of-fm-intro-grid{ grid-template-columns:1fr; } }
.of-fm-intro-img img{ width:100%; height:auto; border-radius:18px; display:block; }
.of-fm-intro-txt p{ margin:18px 0 0; color:var(--of-ink); font-size:1.0625rem; line-height:1.7; }
.of-fm-intro-icon{ height:120px; width:auto; margin-top:24px; }

.of-fm-oficial{ background:#fff; padding:clamp(44px,7vw,80px) 0; }
.of-fm-oficial-grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(28px,5vw,56px); align-items:center; }
@media (max-width:820px){ .of-fm-oficial-grid{ grid-template-columns:1fr; } }
.of-fm-oficial-logo{ display:flex; align-items:center; justify-content:center; }
.of-fm-oficial-logo img{ max-width:100%; max-height:220px; width:auto; object-fit:contain; }
.of-fm-incluye{ list-style:none; margin:24px 0 0; padding:0; display:grid; gap:13px; }
.of-fm-incluye li{ display:flex; gap:12px; align-items:flex-start; color:var(--of-ink); font-size:1.075rem; line-height:1.45; }
.of-fm-incluye svg{ width:22px; height:22px; flex-shrink:0; color:var(--of-red); margin-top:1px; }

.of-fm-presencial{ background:var(--of-surface); padding:clamp(44px,7vw,84px) 0; text-align:center; }
.of-fm-presencial .of-fm-h2{ max-width:22ch; margin:0 auto; }
.of-fm-presencial-txt{ max-width:74ch; margin:22px auto 0; }
.of-fm-presencial-txt p{ margin:0 0 14px; color:var(--of-muted); font-size:1.0625rem; line-height:1.7; }
.of-fm-features{ display:grid; grid-template-columns:repeat(5,1fr); gap:22px; margin-top:clamp(36px,5vw,52px); text-align:center; }
@media (max-width:980px){ .of-fm-features{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:600px){
  /* En móvil las tarjetas de características pasan a lista horizontal (icono izq + título/desc dcha):
     compactas, alineadas y sin huecos vacíos cuando un texto es más largo que otro. */
  .of-fm-features{ grid-template-columns:1fr; gap:12px; text-align:left; margin-top:28px; }
  .of-fm-feat{ display:grid; grid-template-columns:auto 1fr; grid-template-areas:"ic title" "ic desc"; column-gap:16px; row-gap:3px; align-items:center; padding:16px 18px; }
  .of-fm-feat-ic{ grid-area:ic; margin-bottom:0; }
  .of-fm-feat-t{ grid-area:title; align-self:end; }
  .of-fm-feat-d{ grid-area:desc; align-self:start; }
}
.of-fm-feat{ display:flex; flex-direction:column; align-items:center; gap:8px; background:#fff; border:1px solid var(--of-border); border-radius:16px; padding:22px 16px; }
.of-fm-feat-ic{ display:inline-flex; align-items:center; justify-content:center; width:46px; height:46px; border-radius:12px; background:rgba(224,43,32,.08); color:var(--of-red); margin-bottom:4px; }
.of-fm-feat-ic svg{ width:24px; height:24px; }
.of-fm-feat-t{ font-weight:800; font-size:.92rem; letter-spacing:.03em; text-transform:uppercase; color:var(--of-black); }
.of-fm-feat-d{ color:var(--of-muted); font-size:.92rem; line-height:1.45; }

.of-fm-cursos{ background:#fff; padding:clamp(48px,7vw,88px) 0; text-align:center; }
.of-fm-cursos .of-fm-h2{ margin-bottom:clamp(32px,4vw,44px); }
.of-fm-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; text-align:left; }
@media (max-width:900px){ .of-fm-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .of-fm-grid{ grid-template-columns:1fr; } }

/* tarjeta de curso */
.of-fm-card{ display:flex; flex-direction:column; background:#fff; border:1px solid var(--of-border); border-radius:18px; overflow:hidden; transition:border-color .2s ease; }
a.of-fm-card:hover{ border-color:var(--of-red); }
.of-fm-card.is-soon{ opacity:.96; }
.of-fm-card__media{ position:relative; aspect-ratio:16/10; background:var(--of-surface); overflow:hidden; }
.of-fm-card__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.of-fm-card.is-soon .of-fm-card__media img{ filter:grayscale(.4) opacity(.85); }
.of-fm-badge{ position:absolute; top:14px; left:14px; z-index:2; display:inline-flex; align-items:center; gap:6px; font-size:.74rem; font-weight:700; padding:5px 12px; border-radius:999px; color:#fff; }
.of-fm-badge::before{ content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.of-fm-badge--disponible{ background:var(--of-red); }
.of-fm-badge--proximamente{ background:rgba(22,24,29,.78); }
.of-fm-card__body{ display:flex; flex-direction:column; gap:14px; padding:22px 24px 24px; flex:1; }
.of-fm-card__title{ font-size:1.25rem; font-weight:800; line-height:1.22; color:var(--of-black); }
.of-fm-card__go{ margin-top:auto; display:inline-flex; align-items:center; gap:8px; color:var(--of-red); font-weight:700; }
.of-fm-card__go svg{ width:18px; height:18px; transition:transform .2s ease; }
a.of-fm-card:hover .of-fm-card__go svg{ transform:translateX(4px); }
.of-fm-card__soon{ margin-top:auto; color:var(--of-muted); font-weight:600; }
.of-fm-empty{ text-align:center; background:var(--of-surface); border:1px solid var(--of-border); border-radius:18px; padding:clamp(32px,5vw,56px); }
.of-fm-empty h3{ font-size:clamp(1.3rem,2.6vw,1.7rem); font-weight:800; color:var(--of-black); margin:0; }
.of-fm-empty p{ max-width:54ch; margin:12px auto 0; color:var(--of-muted); font-size:1.05rem; line-height:1.6; }

/* ============================================================
   FICHA DE CURSO (.of-curso)
   ============================================================ */
.of-curso .of-wrap{ max-width:1100px; }
.of-curso-hero{ background:#fff; padding:clamp(14px,2.5vw,30px) 0 clamp(20px,3vw,30px); }
.of-curso-crumb{ display:inline-flex; align-items:center; gap:7px; color:var(--of-red); font-weight:600; font-size:.95rem; margin-bottom:24px; }
.of-curso-crumb svg{ width:18px; height:18px; transform:rotate(180deg); }
.of-curso-grid{ display:grid; grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr); gap:clamp(28px,5vw,52px); align-items:center; }
@media (max-width:820px){ .of-curso-grid{ grid-template-columns:1fr; gap:26px; } }
.of-curso-poster{ position:relative; border:1px solid var(--of-border); border-radius:20px; overflow:hidden; background:var(--of-surface); box-shadow:0 18px 44px rgba(0,0,0,.08); }
.of-curso-poster img{ display:block; width:100%; height:auto; }
.of-curso-hero h1{ font-size:clamp(1.8rem,3.6vw,2.7rem); font-weight:800; line-height:1.12; color:var(--of-black); }
.of-curso-sub{ margin-top:14px; font-size:1.2rem; line-height:1.5; color:var(--of-ink); font-weight:500; }
.of-curso-cta{ margin-top:26px; }
.of-curso-soon{ display:inline-block; margin-top:24px; background:var(--of-surface); border:1px solid var(--of-border); color:var(--of-muted); font-weight:600; padding:12px 20px; border-radius:var(--of-radius); }

.of-curso-meta-sec{ background:#fff; padding:clamp(8px,2vw,20px) 0 0; }
.of-curso-meta{ display:grid; grid-template-columns:repeat(6,1fr); gap:16px; padding:24px; background:var(--of-surface); border:1px solid var(--of-border); border-radius:18px; }
@media (max-width:900px){ .of-curso-meta{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:520px){ .of-curso-meta{ grid-template-columns:repeat(2,1fr); } }
.of-curso-mi{ display:flex; flex-direction:column; align-items:flex-start; gap:5px; }
.of-curso-mi-ic{ color:var(--of-red); } .of-curso-mi-ic svg{ width:22px; height:22px; }
.of-curso-mi-t{ font-size:.74rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--of-muted); }
.of-curso-mi-v{ font-weight:700; color:var(--of-ink); font-size:1rem; line-height:1.3; }

.of-curso-body{ background:#fff; padding:clamp(28px,4vw,52px) 0 clamp(40px,7vw,80px); }
.of-curso-cols{ display:grid; grid-template-columns:1.7fr 1fr; gap:clamp(28px,4vw,48px); align-items:start; }
@media (max-width:820px){ .of-curso-cols{ grid-template-columns:1fr; } }
.of-curso-desc{ font-size:1.075rem; line-height:1.8; color:var(--of-ink); }
.of-curso-desc p{ margin:0 0 16px; } .of-curso-desc em{ color:var(--of-ink); }
.of-curso-temario{ background:var(--of-surface); border:1px solid var(--of-border); border-radius:18px; padding:26px; }
.of-curso-h3{ font-size:1.25rem; font-weight:800; color:var(--of-black); margin:0 0 16px; }
.of-curso-temario ul{ list-style:none; margin:0 0 20px; padding:0; display:grid; gap:12px; }
.of-curso-temario li{ display:flex; gap:11px; align-items:flex-start; color:var(--of-ink); font-size:1.0125rem; line-height:1.45; }
.of-curso-temario svg{ width:20px; height:20px; flex-shrink:0; color:var(--of-red); margin-top:1px; }
.of-curso-finimg{ margin-top:clamp(32px,5vw,48px); border:1px solid var(--of-border); border-radius:18px; overflow:hidden; }
.of-curso-finimg img{ display:block; width:100%; height:auto; }
.of-curso-back{ margin-top:clamp(28px,4vw,44px); }
.of-curso-back a{ display:inline-flex; align-items:center; gap:7px; color:var(--of-red); font-weight:600; font-size:1.0625rem; }
.of-curso-back svg{ width:18px; height:18px; transform:rotate(180deg); }

/* ============================================================
   CTA rojo
   ============================================================ */
.of-fm-cta{ padding:clamp(54px,8vw,104px) 0; background:var(--of-red); color:#fff; text-align:center; }
.of-fm-cta .of-wrap{ max-width:760px; }
.of-fm-cta h2{ font-size:clamp(1.8rem,3.8vw,2.5rem); font-weight:800; color:#fff; margin:0 auto !important; }
.of-fm-cta p{ max-width:58ch; margin:22px auto 0 !important; color:rgba(255,255,255,.92); font-size:1.0625rem; line-height:1.6; text-align:center !important; }
.of-fm-actions{ display:flex; flex-wrap:wrap; gap:14px; justify-content:center; margin-top:30px; }
.of-fm-cta .of-btn{ background:#fff !important; color:var(--of-red) !important; border-color:#fff !important; }
.of-fm-cta .of-btn:hover,.of-fm-cta .of-btn:focus-visible{ background:transparent !important; color:#fff !important; border-color:#fff !important; }
.of-fm-cta .of-tel{ background:rgba(255,255,255,.10); color:#fff; border:1.5px solid rgba(255,255,255,.5); }
.of-fm-cta .of-tel:hover,.of-fm-cta .of-tel[aria-expanded="true"]{ background:#fff; color:var(--of-red); border-color:#fff; }
@media (max-width:600px){ .of-fm-actions{ flex-direction:column; align-items:stretch; } .of-fm-actions .of-btn,.of-fm-actions .of-tel{ justify-content:center; } .of-fm-actions .of-tel-wrap{ display:block; } .of-fm-actions .of-tel{ width:100%; } }

/* overrides (gana al .page-content p del tema): hero centrado */
.of-formacion .of-fm-hero .of-fm-lead{ margin:22px auto 0 !important; text-align:center !important; color:rgba(255,255,255,.86) !important; }
.of-formacion .of-fm-hero h1{ margin:0 auto !important; text-align:center !important; color:#fff !important; }

/* ===== póster con zoom + galería propia + lightbox (ficha de curso) ===== */
.of-curso-zoom{ position:absolute; right:14px; bottom:14px; z-index:3; width:44px; height:44px; border-radius:12px; border:0; background:rgba(16,18,21,.6); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); color:#fff; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; transition:background .2s ease, transform .2s ease; }
.of-curso-zoom:hover{ background:var(--of-red); transform:scale(1.06); }
.of-curso-zoom svg{ width:21px; height:21px; }
.of-curso-gallery{ margin-top:clamp(34px,5vw,52px); }
.of-curso-gallery .of-curso-h3{ margin-bottom:18px; }
.of-curso-gal-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:12px; }
.of-curso-gal-item{ position:relative; aspect-ratio:4/3; border:1px solid var(--of-border); padding:0; border-radius:14px; overflow:hidden; background-size:cover; background-position:center; background-color:var(--of-surface); cursor:pointer; }
.of-curso-gal-item::after{ content:""; position:absolute; inset:0; background:rgba(16,18,21,0); transition:background .22s ease; }
.of-curso-gal-item:hover{ border-color:var(--of-red); }
.of-curso-gal-item:hover::after{ background:rgba(16,18,21,.16); }
@media (max-width:560px){ .of-curso-gal-grid{ grid-template-columns:1fr 1fr; } }

/* lightbox */
.of-curso-lb{ position:fixed; inset:0; z-index:99990; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:clamp(16px,4vw,52px); opacity:0; visibility:hidden; transition:opacity .28s ease, visibility 0s linear .28s; }
.of-curso-lb.is-open{ opacity:1; visibility:visible; transition:opacity .28s ease; }
.of-curso-lb-bg{ position:absolute; inset:0; background:rgba(10,11,13,.92); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); cursor:zoom-out; }
.of-curso-lb-img{ position:relative; z-index:2; max-width:min(1000px,92vw); max-height:74vh; width:auto; height:auto; object-fit:contain; border-radius:10px; box-shadow:0 30px 80px rgba(0,0,0,.55); transform:scale(.96); transition:transform .3s cubic-bezier(.2,.7,.2,1); }
.of-curso-lb.is-open .of-curso-lb-img{ transform:scale(1); }
.of-curso-lb-x{ position:absolute; top:18px; right:18px; z-index:4; width:46px; height:46px; border-radius:50%; border:0; background:rgba(255,255,255,.13); color:#fff; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; transition:background .2s ease; }
.of-curso-lb-x:hover{ background:var(--of-red); } .of-curso-lb-x svg{ width:22px; height:22px; }
.of-curso-lb-prev,.of-curso-lb-next{ position:absolute; top:50%; transform:translateY(-50%); z-index:4; width:50px; height:50px; border-radius:50%; border:0; background:rgba(255,255,255,.13); color:#fff; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; transition:background .2s ease; }
.of-curso-lb-prev{ left:clamp(8px,3vw,32px); } .of-curso-lb-next{ right:clamp(8px,3vw,32px); }
.of-curso-lb-prev:hover,.of-curso-lb-next:hover{ background:var(--of-red); } .of-curso-lb-prev svg,.of-curso-lb-next svg{ width:26px; height:26px; }
.of-curso-lb-thumbs{ position:relative; z-index:3; display:flex; gap:10px; margin-top:20px; max-width:92vw; overflow-x:auto; padding:6px 2px; }
.of-curso-lb-thumb{ width:74px; height:54px; border-radius:8px; border:2px solid transparent; background-size:cover; background-position:center; cursor:pointer; flex-shrink:0; opacity:.5; transition:opacity .2s ease, border-color .2s ease; }
.of-curso-lb-thumb:hover{ opacity:.85; } .of-curso-lb-thumb.is-active{ opacity:1; border-color:var(--of-red); }
.of-curso-lb--single .of-curso-lb-prev,.of-curso-lb--single .of-curso-lb-next,.of-curso-lb--single .of-curso-lb-thumbs{ display:none; }

/* ============================================================
   UPGRADE VISUAL — landing
   ============================================================ */
.of-fm-head{ text-align:center; max-width:720px; margin:0 auto clamp(34px,4vw,46px); }
.of-fm-sub{ margin-top:14px !important; color:var(--of-muted); font-size:1.0625rem; line-height:1.6; text-align:center !important; }

/* modalidades (2 tarjetas) */
.of-fm-modal{ background:#fff; padding:clamp(44px,7vw,84px) 0; }
.of-fm-modal-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
@media (max-width:780px){ .of-fm-modal-grid{ grid-template-columns:1fr; } }
.of-fm-modal-card{ background:#fff; border:1px solid var(--of-border); border-radius:22px; padding:clamp(28px,3vw,40px); transition:border-color .2s ease, box-shadow .2s ease; }
.of-fm-modal-card:hover{ border-color:var(--of-red); box-shadow:0 30px 56px -40px rgba(0,0,0,.4); }
.of-fm-modal-card.is-dark{ background:#0E0F12; border-color:#0E0F12; color:#fff; }
.of-fm-modal-ic{ display:inline-flex; align-items:center; justify-content:center; width:54px; height:54px; border-radius:15px; background:rgba(224,43,32,.10); color:var(--of-red); margin-bottom:18px; }
.of-fm-modal-card.is-dark .of-fm-modal-ic{ background:rgba(255,255,255,.08); }
.of-fm-modal-ic svg{ width:26px; height:26px; }
.of-fm-modal-card h3{ font-size:1.5rem; font-weight:800; color:var(--of-black); margin:0 0 12px; }
.of-fm-modal-card.is-dark h3{ color:#fff; }
.of-fm-modal-card > p{ color:var(--of-muted); font-size:1.05rem; line-height:1.65; }
.of-fm-modal-card.is-dark > p{ color:rgba(255,255,255,.74); }
.of-fm-modal-tags{ list-style:none; margin:22px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:9px; }
.of-fm-modal-tags li{ font-size:.86rem; font-weight:600; padding:7px 14px; border-radius:999px; background:var(--of-surface); border:1px solid var(--of-border); color:var(--of-ink); }
.of-fm-modal-card.is-dark .of-fm-modal-tags li{ background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.16); color:#fff; }

/* curso oficial: panel logo + checklist */
.of-fm-oficial-grid{ grid-template-columns:.82fr 1.18fr; align-items:stretch; }
@media (max-width:820px){ .of-fm-oficial-grid{ grid-template-columns:1fr; } }
.of-fm-oficial-card{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:20px; background:var(--of-surface); border:1px solid var(--of-border); border-radius:22px; padding:clamp(30px,4vw,48px); }
.of-fm-oficial-logo{ max-width:100%; max-height:150px; width:auto; object-fit:contain; }
.of-fm-oficial-tag{ display:inline-flex; align-items:center; gap:8px; font-size:.82rem; font-weight:700; color:var(--of-red); }
.of-fm-oficial-tag svg{ width:18px; height:18px; }

/* features: hover sutil (sin elevación) */
.of-fm-feat{ transition:border-color .2s ease, background .2s ease; }
.of-fm-feat:hover{ border-color:var(--of-red); }
.of-fm-feat:hover .of-fm-feat-ic{ background:var(--of-red); color:#fff; transition:background .2s ease, color .2s ease; }

/* banda de credenciales */
.of-fm-creds{ background:#0E0F12; color:#fff; padding:clamp(48px,7vw,84px) 0; text-align:center; }
.of-fm-creds .of-wrap{ max-width:880px; }
.of-fm-creds-eyebrow{ display:inline-flex; align-items:center; gap:9px; font-size:.92rem; font-weight:700; letter-spacing:.02em; color:#fff; }
.of-fm-creds-eyebrow svg{ width:22px; height:22px; color:var(--of-red); }
.of-fm-creds-badges{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin:26px 0; }
.of-fm-creds-badges span{ font-size:1rem; font-weight:700; padding:11px 22px; border-radius:999px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.18); }
.of-fm-creds-txt{ max-width:64ch; margin:0 auto; color:rgba(255,255,255,.66); font-size:1.0625rem; line-height:1.7; }

/* ficha: descripción más legible + decorada */
.of-curso-desc{ line-height:1.9; }
.of-curso-desc p{ margin:0 0 24px; }
.of-curso-desc > p:first-child{ font-size:1.2rem; line-height:1.6; color:var(--of-black); font-weight:500; }
.of-curso-desc strong{ color:var(--of-red); font-weight:700; }
.of-curso-desc em{ color:var(--of-ink); font-style:italic; font-weight:600; }

/* ===== ficha rediseñada: layout 2-col + tarjeta de inscripción ===== */
.of-curso-cols{ grid-template-columns:1.6fr .85fr; gap:clamp(28px,4vw,52px); align-items:start; }
@media (max-width:860px){ .of-curso-cols{ grid-template-columns:1fr; } }
.of-curso-dirigido{ display:flex; gap:16px; align-items:flex-start; margin-top:32px; padding:22px 24px; background:var(--of-surface); border:1px solid var(--of-border); border-radius:18px; }
.of-curso-dirigido-ic{ display:inline-flex; align-items:center; justify-content:center; width:46px; height:46px; border-radius:13px; background:rgba(224,43,32,.10); color:var(--of-red); flex-shrink:0; }
.of-curso-dirigido-ic svg{ width:22px; height:22px; }
.of-curso-dirigido-tx b{ display:block; font-size:1.05rem; font-weight:800; color:var(--of-black); margin-bottom:5px; }
.of-curso-dirigido-tx p{ color:var(--of-muted); font-size:1rem; line-height:1.6; }
/* tarjeta de inscripción (sticky) */
.of-curso-card{ position:sticky; top:104px; background:#fff; border:1px solid var(--of-border); border-radius:20px; padding:24px 24px 26px; box-shadow:0 26px 52px -40px rgba(0,0,0,.4); }
@media (max-width:860px){ .of-curso-card{ position:static; } }
.of-curso-facts{ list-style:none; margin:0; padding:0; }
.of-curso-facts li{ display:flex; align-items:center; gap:13px; padding:13px 0; }
.of-curso-facts li:first-child{ padding-top:0; }
.of-curso-facts li + li{ border-top:1px solid var(--of-border); }
.of-curso-fact-ic{ display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:11px; background:rgba(224,43,32,.09); color:var(--of-red); flex-shrink:0; }
.of-curso-fact-ic svg{ width:19px; height:19px; }
.of-curso-fact-tx{ display:flex; flex-direction:column; gap:1px; min-width:0; }
.of-curso-fact-tx b{ font-size:.72rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--of-muted); }
.of-curso-fact-tx > span{ font-size:1rem; font-weight:700; color:var(--of-ink); line-height:1.3; }
.of-curso-card .of-curso-temario{ margin-top:18px; padding:18px 0 0; border:0; border-top:1px solid var(--of-border); border-radius:0; background:none; }
.of-curso-card-h{ font-size:1.05rem; font-weight:800; color:var(--of-black); margin:0 0 14px; }
.of-curso-card .of-curso-temario ul{ list-style:none; margin:0; padding:0; display:grid; gap:11px; }
.of-curso-card .of-curso-temario li{ display:flex; gap:10px; align-items:flex-start; color:var(--of-ink); font-size:.98rem; line-height:1.4; }
.of-curso-card .of-curso-temario svg{ width:19px; height:19px; flex-shrink:0; color:var(--of-red); margin-top:1px; }
.of-curso-card-cta{ width:100%; justify-content:center; margin-top:22px; }
.of-curso-card-soon{ display:flex; align-items:center; justify-content:center; gap:8px; margin-top:22px; background:var(--of-surface); border:1px solid var(--of-border); color:var(--of-muted); font-weight:600; padding:13px; border-radius:var(--of-radius); text-align:center; }
.of-curso-card-soon svg{ width:18px; height:18px; flex-shrink:0; }
