/*
Theme Name: La Fundición 1970
Theme URI: https://lafundicion1970.com
Author: Trivix Digital
Author URI: https://trivixdigital.com
Description: Tema a medida para La Fundición 1970 — espacio creativo de joyería en Granada, respaldado por Loalba Joyeros (desde 1958). Diseño elegante y dinámico: verde bosque, cobre y crema, con animaciones al scroll, línea de tiempo viva y CPTs de Cursos y Testimonios. Cada sección es también una página independiente para el menú.
Version: 30.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lafundicion1970
*/

/* ==========================================================================
   0. TOKENS / VARIABLES
   ========================================================================== */
:root{
  /* Paleta original de La Fundición 1970 */
  --lf-forest-950:#0d1f18;
  --lf-forest-900:#14352a;
  --lf-forest-800:#1a3a2e;
  --lf-forest-700:#22493a;
  --lf-teal:#0f6f62;
  --lf-teal-bright:#3ab8a0;
  --lf-teal-deep:#0b544a;
  --lf-teal-soft:#17a999;
  --lf-cream:#f4ede0;
  --lf-paper:#fbf8f1;
  --lf-sage:#ced3c7;
  --lf-copper:#c9884d;
  --lf-copper-light:#e6b980;
  --lf-gold-a:#f0c892;
  --lf-gold-b:#c9884d;
  --lf-ink:#141414;
  --lf-ink-2:#2a2a2a;
  --lf-ink-muted:#625e53;

  --lf-font-head:"Cormorant Garamond", Georgia, "Times New Roman", serif;
  --lf-font-body:"Outfit","Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --lf-maxw:1200px;
  --lf-maxw-wide:1440px;
  --lf-radius:16px;
  --lf-radius-lg:28px;
  --lf-shadow-soft:0 18px 50px -34px rgba(13,31,24,.55);
  --lf-shadow-card:0 14px 36px -18px rgba(18,28,23,.5);
  --lf-ease:cubic-bezier(.45,0,.2,1);
  --lf-header-h:78px;
}

/* ==========================================================================
   1. RESET / BASE
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--lf-font-body);
  color:var(--lf-ink);
  background:var(--lf-paper);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--lf-teal);text-decoration:none;transition:color .25s ease}
a:hover{color:var(--lf-teal-deep)}
h1,h2,h3,h4{font-family:var(--lf-font-head);font-weight:700;line-height:1.05;margin:0 0 .4em;letter-spacing:-.01em}
p{margin:0 0 1rem}
ul{margin:0;padding:0}
button{font-family:inherit}
:focus-visible{outline:2px solid var(--lf-teal-bright);outline-offset:3px}

.lf-container{max-width:var(--lf-maxw);margin-inline:auto;padding-inline:clamp(1rem,4vw,2rem)}
.lf-container--wide{max-width:var(--lf-maxw-wide)}
.lf-section{position:relative;padding-block:clamp(3.5rem,7vw,6rem);overflow:hidden}
.lf-section--paper{background:var(--lf-paper)}
.lf-section--cream{background:var(--lf-cream)}
.lf-section--sage{background:var(--lf-sage)}
.lf-section--forest{background:var(--lf-forest-950);color:var(--lf-cream)}
.lf-section--forest h1,.lf-section--forest h2,.lf-section--forest h3{color:var(--lf-cream)}

/* Radial glow decoration */
.lf-glow{position:absolute;border-radius:50%;pointer-events:none;filter:blur(10px);opacity:.5;z-index:0}
.lf-glow--teal{background:radial-gradient(circle,rgba(58,184,160,.14),transparent 70%)}

/* ==========================================================================
   2. HELPERS: eyebrow, headings, dividers, buttons
   ========================================================================== */
.lf-eyebrow{
  display:block;margin-bottom:.85rem;
  font-family:var(--lf-font-body);
  font-size:.72rem;font-weight:600;letter-spacing:.25em;text-transform:uppercase;
  color:var(--lf-teal);
}
.lf-section--forest .lf-eyebrow{color:var(--lf-teal-bright)}
.lf-h2{font-size:clamp(1.9rem,4.4vw,3.1rem);color:var(--lf-ink)}
.lf-section--forest .lf-h2{color:var(--lf-cream)}
.lf-lead{font-size:clamp(1rem,1.6vw,1.15rem);color:var(--lf-ink-muted);max-width:60ch}
.lf-section--forest .lf-lead{color:rgba(244,237,224,.65)}
.lf-section__head{max-width:44rem;margin:0 auto clamp(2.5rem,5vw,4rem);text-align:center}

.lf-divider{width:64px;height:2px;margin:1.4rem auto 0;position:relative;background:linear-gradient(90deg,transparent,var(--lf-copper),transparent)}
.lf-divider--left{margin-inline:0}

.lf-gold-text{
  background:linear-gradient(120deg,var(--lf-gold-a),var(--lf-gold-b));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}

.lf-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.85rem 1.8rem;border-radius:999px;border:1px solid transparent;
  font-family:var(--lf-font-body);font-weight:600;font-size:.95rem;letter-spacing:.02em;
  cursor:pointer;transition:transform .25s var(--lf-ease),box-shadow .25s ease,background .25s ease,color .25s ease;
  text-align:center;
}
.lf-btn--primary{background:var(--lf-teal-bright);color:var(--lf-forest-950);box-shadow:0 10px 26px -12px rgba(58,184,160,.6)}
.lf-btn--primary:hover{background:var(--lf-teal-soft);color:var(--lf-forest-950);transform:translateY(-2px)}
.lf-btn--gold{background:linear-gradient(135deg,var(--lf-gold-a),var(--lf-gold-b));color:var(--lf-forest-950);border:1px solid rgba(255,255,255,.55);box-shadow:0 8px 22px -8px rgba(201,136,77,.6)}
.lf-btn--gold:hover{transform:translateY(-2px);filter:brightness(1.05);color:var(--lf-forest-950)}
.lf-btn--ghost{background:transparent;color:var(--lf-cream);border:1px solid rgba(244,237,224,.4);backdrop-filter:blur(4px)}
.lf-btn--ghost:hover{background:rgba(244,237,224,.1);color:var(--lf-cream);transform:translateY(-2px)}
.lf-btn--outline-teal{background:transparent;color:var(--lf-teal);border:1px solid var(--lf-teal)}
.lf-btn--outline-teal:hover{background:var(--lf-teal);color:#fff}
.lf-btn--block{width:100%}

/* ==========================================================================
   3. HEADER / NAV
   ========================================================================== */
.lf-header{
  position:fixed;inset:0 0 auto 0;z-index:100;
  padding-block:1.1rem;
  transition:background .35s ease,padding .35s ease,box-shadow .35s ease;
  background:linear-gradient(180deg,rgba(0,0,0,.55),rgba(0,0,0,.22),transparent);
}
.lf-header.is-scrolled{
  background:rgba(13,31,24,.92);
  backdrop-filter:blur(10px);
  padding-block:.6rem;
  box-shadow:0 10px 30px -20px rgba(0,0,0,.8);
}
.lf-header__inner{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.lf-brand{display:flex;flex-direction:column;line-height:1;flex-shrink:0}
.lf-brand__name{font-family:var(--lf-font-head);font-weight:700;letter-spacing:.18em;font-size:clamp(1.05rem,2vw,1.5rem);color:var(--lf-teal-bright)}
.lf-brand__tag{font-size:9px;letter-spacing:.25em;text-transform:uppercase;color:rgba(244,237,224,.72);margin-top:2px}

.lf-nav{display:none;align-items:center;gap:1.35rem}
@media(min-width:1080px){.lf-nav{display:flex}}
.lf-nav a{
  position:relative;color:var(--lf-cream);font-weight:500;font-size:.9rem;white-space:nowrap;
  text-shadow:0 1px 12px rgba(0,0,0,.45);
}
.lf-nav a::after{content:"";position:absolute;left:0;right:100%;bottom:-6px;height:1.5px;background:var(--lf-teal-bright);transition:right .3s var(--lf-ease)}
.lf-nav a:hover{color:var(--lf-teal-bright)}
.lf-nav a:hover::after{right:0}
.lf-nav .lf-nav__cta{background:var(--lf-teal);color:var(--lf-paper);padding:.55rem 1.25rem;border-radius:999px;text-shadow:none}
.lf-nav .lf-nav__cta::after{display:none}
.lf-nav .lf-nav__cta:hover{background:var(--lf-teal-deep);color:#fff}

/* Burger */
.lf-burger{display:inline-grid;place-items:center;width:44px;height:44px;border:none;background:transparent;color:var(--lf-cream);border-radius:999px;cursor:pointer;transition:background .2s}
.lf-burger:hover{background:rgba(255,255,255,.1)}
@media(min-width:1080px){.lf-burger{display:none}}
.lf-burger span{display:block;width:22px;height:2px;background:currentColor;position:relative;transition:transform .3s,opacity .2s}
.lf-burger span::before,.lf-burger span::after{content:"";position:absolute;left:0;width:22px;height:2px;background:currentColor;transition:transform .3s,top .3s}
.lf-burger span::before{top:-7px}
.lf-burger span::after{top:7px}
body.lf-menu-open .lf-burger span{background:transparent}
body.lf-menu-open .lf-burger span::before{top:0;transform:rotate(45deg)}
body.lf-menu-open .lf-burger span::after{top:0;transform:rotate(-45deg)}

/* Mobile menu */
.lf-mobile{
  position:fixed;inset:0;z-index:99;
  background:rgba(13,31,24,.98);
  display:flex;flex-direction:column;justify-content:center;gap:.25rem;
  padding:6rem 2rem 3rem;
  transform:translateY(-100%);opacity:0;visibility:hidden;
  transition:transform .45s var(--lf-ease),opacity .35s ease,visibility .45s;
}
body.lf-menu-open .lf-mobile{transform:translateY(0);opacity:1;visibility:visible}
.lf-mobile a{
  color:var(--lf-cream);font-family:var(--lf-font-head);font-size:1.7rem;font-weight:600;
  padding:.55rem 0;border-bottom:1px solid rgba(58,184,160,.12);
}
.lf-mobile a:hover{color:var(--lf-teal-bright)}
.lf-mobile .lf-btn{margin-top:1.4rem;font-family:var(--lf-font-body);font-size:1rem}

/* ==========================================================================
   4. HERO
   ========================================================================== */
.lf-hero{position:relative;min-height:100svh;display:flex;align-items:center;justify-content:center;text-align:center;padding:8rem 1.25rem 5rem;overflow:hidden}
.lf-hero__bg{position:absolute;inset:0;z-index:0;background:var(--lf-forest-950)}
.lf-hero__bg img,.lf-hero__bg .lf-hero__ph{position:absolute;inset:-3%;width:106%;height:106%;object-fit:cover;object-position:center;animation:lf-kenburns 22s ease-in-out infinite alternate}
.lf-hero__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:0}
.lf-hero__ph{
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(58,184,160,.18), transparent 55%),
    radial-gradient(120% 120% at 80% 90%, rgba(201,136,77,.22), transparent 55%),
    linear-gradient(160deg,#0f2a20,#0a1c15 60%,#08160f);
}
@keyframes lf-kenburns{from{transform:scale(1.02)}to{transform:scale(1.12)}}
.lf-hero__scrim{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(9,24,19,.4) 0%,rgba(9,24,19,.55) 48%,rgba(9,24,19,.82) 100%)}
.lf-hero__inner{position:relative;z-index:2;max-width:60rem;margin:0 auto}
.lf-hero__title{color:var(--lf-cream);text-shadow:0 3px 28px rgba(0,0,0,.72);margin-bottom:.2em}
.lf-hero__title .lf-line1{display:block;font-size:clamp(2.2rem,7.5vw,5.4rem);white-space:nowrap}
.lf-rotator{display:block;margin-top:.15em;height:1.05em;position:relative;color:var(--lf-teal-bright);font-size:clamp(2rem,5.8vw,4rem);line-height:1}
.lf-rotator__word{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;filter:blur(6px);transform:translateY(.35em);transition:opacity .6s ease,filter .6s ease,transform .6s ease}
.lf-rotator__word.is-active{opacity:1;filter:blur(0);transform:translateY(0)}
.lf-hero__sub{margin:1.4rem auto 0;max-width:34rem;font-family:var(--lf-font-head);font-size:clamp(1.05rem,2.2vw,1.4rem);font-weight:600;color:var(--lf-cream);text-shadow:0 2px 24px rgba(0,0,0,.75)}
.lf-hero__cta{margin-top:2.2rem;display:flex;flex-wrap:wrap;gap:1rem;justify-content:center}
.lf-hero__scroll{position:absolute;left:50%;bottom:1.4rem;transform:translateX(-50%);z-index:2;color:rgba(244,237,224,.7);font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;display:flex;flex-direction:column;align-items:center;gap:.4rem}
.lf-hero__scroll::after{content:"";width:1px;height:34px;background:linear-gradient(var(--lf-teal-bright),transparent);animation:lf-scrolldash 1.8s ease-in-out infinite}
@keyframes lf-scrolldash{0%,100%{opacity:.3;transform:scaleY(.6)}50%{opacity:1;transform:scaleY(1)}}

/* Marquee */
.lf-marquee{background:var(--lf-forest-800);overflow:hidden;padding-block:1.1rem;white-space:nowrap;position:relative;z-index:3}
.lf-marquee__track{display:inline-flex;align-items:center;gap:2.5rem;padding-left:2.5rem;animation:lf-scroll-left 26s linear infinite;will-change:transform}
.lf-marquee:hover .lf-marquee__track{animation-play-state:paused}
.lf-marquee__item{font-family:var(--lf-font-head);font-style:italic;font-size:clamp(1.4rem,3.4vw,2.25rem);letter-spacing:.06em;color:rgba(244,237,224,.8)}
.lf-marquee__dot{width:12px;height:12px;background:var(--lf-teal-bright);transform:rotate(45deg);flex-shrink:0}
@keyframes lf-scroll-left{to{transform:translateX(-50%)}}

/* ==========================================================================
   5. QUÉ ES
   ========================================================================== */
.lf-about__grid{display:grid;gap:clamp(2rem,5vw,4rem);align-items:center;grid-template-columns:1fr}
@media(min-width:900px){.lf-about__grid{grid-template-columns:7fr 5fr}}
.lf-about__quote{border-left:2px solid rgba(15,111,98,.4);padding-left:1.4rem;margin:1.4rem 0;font-style:italic}
.lf-about__quote p{font-family:var(--lf-font-head);font-size:clamp(1.15rem,2vw,1.5rem);color:var(--lf-teal-deep);margin:0}
.lf-about__quote cite{display:block;margin-top:.5rem;font-style:normal;font-size:.72rem;letter-spacing:.15em;text-transform:uppercase;color:var(--lf-ink-muted)}
.lf-about__media{position:relative}
.lf-about__media::before{content:"";position:absolute;inset:-14px;border:1px solid rgba(15,111,98,.2);border-radius:var(--lf-radius);transform:translate(10px,10px)}
.lf-about__media .lf-frame{position:relative;border-radius:var(--lf-radius);overflow:hidden;border:1px solid rgba(15,111,98,.3);box-shadow:var(--lf-shadow-soft);aspect-ratio:4/3}
.lf-frame img,.lf-frame .lf-ph{width:100%;height:100%;object-fit:cover}

/* Image placeholder (para secciones sin foto todavía) */
.lf-ph{background:linear-gradient(135deg,var(--lf-forest-800),var(--lf-forest-950));display:grid;place-items:center;color:rgba(244,237,224,.35);font-family:var(--lf-font-head);font-style:italic;font-size:1rem;text-align:center;padding:1rem}
.lf-ph--copper{background:linear-gradient(135deg,#4a3320,#2a1d12)}

/* ==========================================================================
   6. SERVICIOS / CURSOS (cards)
   ========================================================================== */
.lf-filters{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-bottom:clamp(2rem,4vw,3rem)}
.lf-filter{padding:.6rem 1.3rem;border-radius:999px;border:1px solid rgba(58,184,160,.15);background:rgba(20,53,42,.6);color:rgba(244,237,224,.7);font-weight:600;font-size:.85rem;letter-spacing:.02em;cursor:pointer;transition:all .3s var(--lf-ease)}
.lf-filter:hover{border-color:rgba(58,184,160,.4);color:var(--lf-cream)}
.lf-filter.is-active{background:var(--lf-teal-bright);color:var(--lf-forest-950);border-color:var(--lf-teal-bright);box-shadow:0 6px 18px -8px rgba(58,184,160,.5)}

.lf-cards{display:grid;gap:1.75rem;grid-template-columns:1fr}
@media(min-width:640px){.lf-cards{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1000px){.lf-cards{grid-template-columns:repeat(3,1fr)}}

.lf-card{position:relative;height:520px;border-radius:var(--lf-radius-lg);overflow:hidden;background:var(--lf-forest-800);border:1px solid rgba(58,184,160,.3);box-shadow:var(--lf-shadow-card);transition:transform .35s var(--lf-ease),box-shadow .35s ease}
.lf-card:hover{transform:translateY(-8px);box-shadow:0 26px 50px -22px rgba(0,0,0,.6)}
.lf-card__img,.lf-card__img img,.lf-card__img .lf-ph{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s var(--lf-ease)}
.lf-card:hover .lf-card__img{transform:scale(1.08)}
.lf-card__scrim{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.94) 0%,rgba(0,0,0,.55) 45%,rgba(0,0,0,.1) 100%)}
.lf-card__badges{position:absolute;top:1rem;left:1rem;z-index:2;display:flex;flex-direction:column;gap:.4rem;align-items:flex-start}
.lf-card__badge{display:inline-flex;align-items:center;gap:.3rem;font-size:.68rem;font-weight:600;letter-spacing:.08em;padding:.28rem .6rem;border-radius:5px;background:rgba(13,31,24,.85);color:var(--lf-teal-bright);border:1px solid rgba(58,184,160,.4);backdrop-filter:blur(4px);text-transform:uppercase}
.lf-card__badge--mono{background:rgba(244,237,224,.95);color:#8a4f36;border-color:rgba(200,138,98,.5)}
.lf-card__badge--gold{color:var(--lf-copper-light);border-color:rgba(230,185,128,.4)}
.lf-card__spots{position:absolute;top:1rem;right:1rem;z-index:2;font-size:.66rem;font-weight:700;letter-spacing:.02em;padding:.2rem .55rem;border-radius:999px;background:rgba(13,31,24,.8);color:rgba(244,237,224,.75);border:1px solid rgba(244,237,224,.15)}
.lf-card__body{position:absolute;inset:auto 0 0 0;z-index:2;padding:1.5rem;display:flex;flex-direction:column;gap:.75rem}
.lf-card__title{color:#fff;font-size:clamp(1.35rem,2.4vw,1.7rem);margin:0}
.lf-card__reveal{display:grid;grid-template-rows:1fr;opacity:1;transition:grid-template-rows .9s var(--lf-ease),opacity .6s ease}
@media(min-width:768px){.lf-card__reveal{grid-template-rows:0fr;opacity:0}.lf-card:hover .lf-card__reveal,.lf-card:focus-within .lf-card__reveal{grid-template-rows:1fr;opacity:1}}
.lf-card__reveal-inner{min-height:0;display:flex;flex-direction:column;gap:.85rem}
.lf-card__desc{color:rgba(244,237,224,.95);font-size:.86rem;line-height:1.55;margin:0;text-shadow:0 1px 3px rgba(0,0,0,.7)}
.lf-card__price-label{font-size:.62rem;letter-spacing:.15em;text-transform:uppercase;color:rgba(244,237,224,.55)}
.lf-card__price{font-size:1.5rem;font-weight:700;color:var(--lf-copper)}
.lf-card__actions{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
.lf-card__actions .lf-btn{padding:.65rem;font-size:.85rem}

/* ==========================================================================
   7. CALENDARIO (teaser)
   ========================================================================== */
.lf-calendar{border:1px solid rgba(15,111,98,.15);border-radius:var(--lf-radius);background:rgba(255,255,255,.65);overflow:hidden;box-shadow:var(--lf-shadow-soft)}
.lf-calendar__head{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;border-bottom:1px solid rgba(15,111,98,.1)}
.lf-calendar__title{font-family:var(--lf-font-head);font-size:clamp(1.2rem,2.5vw,1.6rem);font-weight:700;color:var(--lf-ink);text-transform:capitalize;margin:0}
.lf-calendar__nav{width:40px;height:40px;border-radius:999px;border:1px solid rgba(15,111,98,.2);background:transparent;color:var(--lf-teal);cursor:pointer;display:grid;place-items:center;transition:all .2s}
.lf-calendar__nav:hover{background:var(--lf-teal);color:#fff}
.lf-calendar__nav:disabled{opacity:.4;cursor:default}
.lf-calendar__nav:disabled:hover{background:transparent;color:var(--lf-teal)}
.lf-calendar.is-loading{opacity:.55;pointer-events:none;transition:opacity .15s}
/* CTA bajo el calendario */
.lf-cal-cta{margin-top:clamp(3rem,6vw,4.5rem);display:flex;flex-direction:column;align-items:center;text-align:center;gap:1.75rem;padding:clamp(2.5rem,5vw,3.75rem) clamp(1.5rem,4vw,3rem);border-radius:var(--lf-radius-lg);background:linear-gradient(135deg,var(--lf-forest-900),#123128 60%,#0c241d);border:1px solid rgba(58,184,160,.2);box-shadow:var(--lf-shadow-soft);position:relative;overflow:hidden}
.lf-cal-cta::before{content:"";position:absolute;left:-80px;bottom:-90px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(58,184,160,.16),transparent 70%);pointer-events:none}
.lf-cal-cta::after{content:"";position:absolute;right:-70px;top:-80px;width:280px;height:280px;border-radius:50%;background:radial-gradient(circle,rgba(201,162,75,.22),transparent 70%);pointer-events:none}
.lf-cal-cta__text{position:relative;z-index:1;max-width:34ch}
.lf-cal-cta__title{margin:0 0 .6rem;color:#fff;font-size:clamp(1.7rem,3.5vw,2.4rem);line-height:1.1;letter-spacing:-.01em}
.lf-cal-cta__sub{margin:0 auto;color:rgba(255,255,255,.78);font-size:1.02rem;line-height:1.55;max-width:52ch}
.lf-cal-cta__btns{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:.85rem;justify-content:center}
.lf-cal-cta__btns .lf-btn{display:inline-flex;align-items:center;gap:.5rem}
.lf-cal-cta__btns .lf-btn--outline-teal{border-color:rgba(58,184,160,.5);color:var(--lf-teal-bright)}
.lf-cal-cta__btns .lf-btn--outline-teal:hover{background:rgba(58,184,160,.12)}
.lf-cal-cta__btns .lf-btn svg{width:18px;height:18px}
@media(max-width:640px){.lf-cal-cta__btns{width:100%}.lf-cal-cta__btns .lf-btn{flex:1 1 100%;justify-content:center}}
/* Enlace de crédito en el footer */
.lf-credit-link{color:inherit;text-decoration:none;font-weight:600;transition:color .2s}
.lf-credit-link:hover{color:var(--lf-teal-bright)}
.lf-calendar__grid{display:grid;grid-template-columns:repeat(7,1fr);padding:.75rem}
.lf-calendar__dow{text-align:center;font-size:.7rem;font-weight:700;color:rgba(20,20,20,.45);padding:.4rem 0}
.lf-calendar__cell{min-height:76px;border-right:1px solid rgba(15,111,98,.08);border-bottom:1px solid rgba(15,111,98,.08);padding:.35rem;background:rgba(251,248,241,.55)}
.lf-calendar__grid .lf-calendar__cell:nth-child(7n){border-right:none}
.lf-calendar__daynum{display:block;font-size:.72rem;font-weight:700;color:rgba(20,20,20,.6);margin-bottom:.25rem}
.lf-event{display:block;border-radius:4px;padding:.15rem .35rem;font-size:.6rem;font-weight:700;color:#fff;line-height:1.25;margin-bottom:.2rem;text-shadow:0 1px 2px rgba(0,0,0,.35);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lf-legend{display:grid;gap:.5rem 1rem;grid-template-columns:1fr;padding:1rem 1.25rem;border-top:1px solid rgba(15,111,98,.1);background:rgba(251,248,241,.45)}
@media(min-width:640px){.lf-legend{grid-template-columns:repeat(2,1fr)}}
@media(min-width:960px){.lf-legend{grid-template-columns:repeat(3,1fr)}}
.lf-legend__item{display:flex;align-items:flex-start;gap:.65rem}
.lf-legend__swatch{width:16px;height:16px;border-radius:4px;flex-shrink:0;margin-top:2px}
.lf-legend__name{font-size:.85rem;font-weight:700;color:var(--lf-ink);line-height:1.2}
.lf-legend__price{font-size:.75rem;color:rgba(20,20,20,.55)}

/* ==========================================================================
   8. BANDAS DE CONTENIDO (media + texto)
   ========================================================================== */
.lf-band__grid{display:grid;gap:clamp(2rem,5vw,4rem);align-items:center;grid-template-columns:1fr}
@media(min-width:900px){.lf-band__grid{grid-template-columns:1fr 1fr}}
.lf-band--reverse .lf-band__media{order:-1}
@media(min-width:900px){.lf-band--reverse .lf-band__media{order:2}}
.lf-band__media{border-radius:var(--lf-radius-lg);overflow:hidden;border:1px solid rgba(15,111,98,.24);aspect-ratio:4/3;box-shadow:var(--lf-shadow-soft)}
.lf-band__media img,.lf-band__media .lf-ph{width:100%;height:100%;object-fit:cover}
.lf-band__title{font-size:clamp(1.7rem,3.6vw,2.6rem)}

/* Galería */
.lf-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;margin-top:2.5rem}
@media(min-width:768px){.lf-gallery{grid-template-columns:repeat(3,1fr)}}
.lf-gallery__item{border-radius:12px;overflow:hidden;border:1px solid rgba(23,169,153,.2);aspect-ratio:1;position:relative}
.lf-gallery__item img,.lf-gallery__item .lf-ph{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--lf-ease)}
.lf-gallery__item:hover img{transform:scale(1.06)}

/* ==========================================================================
   9. EL ESPACIO (equipamiento)
   ========================================================================== */
.lf-space__grid{display:grid;gap:clamp(2rem,4vw,3.5rem);align-items:start;grid-template-columns:1fr}
@media(min-width:960px){.lf-space__grid{grid-template-columns:1fr 1fr}}
.lf-space__gallery{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.lf-space__gallery .lf-frame:first-child{grid-column:1/-1;aspect-ratio:16/10}
.lf-space__gallery .lf-frame{aspect-ratio:4/3;position:relative}
.lf-space__gallery .lf-tag{position:absolute;left:.6rem;bottom:.6rem;font-size:.62rem;letter-spacing:.06em;text-transform:uppercase;font-weight:600;color:var(--lf-cream);background:rgba(13,31,24,.8);padding:.15rem .5rem;border-radius:4px}
/* Mosaico de fotos del espacio */
.lf-space-mosaic{margin-top:clamp(2.5rem,5vw,4rem)}
.lf-space-grid9{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(.75rem,1.5vw,1.1rem)}
@media(max-width:820px){.lf-space-grid9{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.lf-space-grid9{grid-template-columns:1fr}}
.lf-tile{margin:0;border-radius:var(--lf-radius);overflow:hidden;border:1px solid rgba(15,111,98,.18);box-shadow:var(--lf-shadow-soft);position:relative;aspect-ratio:4/3}
.lf-tile img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s var(--lf-ease)}
.lf-tile:hover img{transform:scale(1.06)}
.lf-tile::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(13,31,24,0) 60%,rgba(13,31,24,.3) 100%);opacity:0;transition:opacity .4s;pointer-events:none}
.lf-tile:hover::after{opacity:1}
.lf-equip__title{margin:0 0 1.1rem;font-size:1.05rem;letter-spacing:.02em;color:var(--lf-ink);font-weight:700}
.lf-equip{display:grid;grid-template-columns:1fr;gap:.6rem 1.5rem;padding-top:1.25rem;border-top:1px solid rgba(15,111,98,.15)}
@media(min-width:520px){.lf-equip{grid-template-columns:1fr 1fr}}
.lf-equip li{display:flex;gap:.6rem;align-items:flex-start;list-style:none;font-size:.86rem;color:rgba(20,20,20,.85)}
.lf-equip .lf-check{width:20px;height:20px;border-radius:999px;background:rgba(15,111,98,.1);border:1px solid rgba(15,111,98,.3);display:grid;place-items:center;flex-shrink:0;margin-top:1px;color:var(--lf-teal)}
.lf-equip .lf-check svg{width:12px;height:12px}

/* ==========================================================================
   10. HISTORIA (timeline)
   ========================================================================== */
.lf-timeline{position:relative;max-width:60rem;margin-inline:auto;padding-left:2rem}
.lf-timeline__line{position:absolute;left:0;top:.4rem;bottom:.4rem;width:2px;background:rgba(58,184,160,.15)}
.lf-timeline__line span{position:absolute;inset:0;transform-origin:top;transform:scaleY(0);background:linear-gradient(var(--lf-teal-bright),rgba(58,184,160,.3));transition:transform 1.4s var(--lf-ease)}
.lf-timeline.is-inview .lf-timeline__line span{transform:scaleY(1)}
.lf-tl{position:relative;margin-bottom:clamp(2.5rem,5vw,3.5rem)}
.lf-tl:last-child{margin-bottom:0}
.lf-tl__dot{position:absolute;left:calc(-2rem - 9px);top:6px;width:18px;height:18px;border-radius:999px;border:1px solid var(--lf-teal-bright);background:var(--lf-forest-950);display:grid;place-items:center;z-index:2;transition:background .3s}
.lf-tl__dot::after{content:"";width:6px;height:6px;border-radius:999px;background:var(--lf-teal-bright);transition:background .3s}
.lf-tl:hover .lf-tl__dot{background:var(--lf-teal-bright)}
.lf-tl:hover .lf-tl__dot::after{background:var(--lf-forest-950)}
.lf-tl__card{background:rgba(20,53,42,.7);border:1px solid rgba(58,184,160,.1);padding:1.5rem;border-radius:12px;transition:border-color .3s,transform .3s}
.lf-tl:hover .lf-tl__card{border-color:rgba(58,184,160,.3);transform:translateY(-3px)}
.lf-tl__year{display:inline-block;font-family:var(--lf-font-head);font-size:2rem;font-weight:700;color:var(--lf-copper);margin-bottom:.3rem}
.lf-tl__title{font-size:1.25rem;color:var(--lf-cream);margin:0 0 .5rem;transition:color .3s}
.lf-tl:hover .lf-tl__title{color:var(--lf-teal-bright)}
.lf-tl__text{font-size:.88rem;color:rgba(244,237,224,.7);margin:0}
/* Tarjetas de la línea de tiempo con imagen (zig-zag) */
.lf-tl__card--media{padding:0;overflow:hidden;display:grid;grid-template-columns:1fr}
.lf-tl__media{position:relative;overflow:hidden;aspect-ratio:16/11}
.lf-tl__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .7s var(--lf-ease)}
.lf-tl__card--media:hover .lf-tl__media img{transform:scale(1.06)}
.lf-tl__body{padding:1.5rem}
@media(min-width:680px){
	.lf-tl__card--media{grid-template-columns:0.92fr 1.08fr;align-items:stretch}
	.lf-tl__card--media.is-right{grid-template-columns:1.08fr 0.92fr}
	.lf-tl__card--media.is-right .lf-tl__media{order:2}
	.lf-tl__media{aspect-ratio:auto;min-height:100%}
	.lf-tl__body{padding:clamp(1.5rem,2.5vw,2.25rem);align-self:center}
}

/* ==========================================================================
   11. TESTIMONIOS
   ========================================================================== */
.lf-quotes{display:grid;gap:1.75rem;grid-template-columns:1fr}
@media(min-width:768px){.lf-quotes{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.lf-quotes{grid-template-columns:repeat(3,1fr)}}
.lf-quote{position:relative;background:var(--lf-forest-900);border:1px solid rgba(58,184,160,.15);border-radius:var(--lf-radius);padding:2rem;display:flex;flex-direction:column;justify-content:space-between;transition:border-color .3s,box-shadow .3s,transform .3s}
.lf-quote:hover{border-color:rgba(58,184,160,.4);box-shadow:0 20px 44px -22px rgba(0,0,0,.5);transform:translateY(-4px)}
.lf-quote__mark{position:absolute;top:1.25rem;right:1.5rem;font-family:var(--lf-font-head);font-size:4rem;line-height:1;color:rgba(58,184,160,.15)}
.lf-quote__stars{display:flex;gap:.15rem;margin-bottom:1rem;color:var(--lf-copper)}
.lf-quote__stars svg{width:16px;height:16px;fill:currentColor}
.lf-quote__text{color:rgba(244,237,224,.85);font-size:.9rem;font-style:italic;line-height:1.65;margin:0}
.lf-quote__foot{display:flex;align-items:center;gap:.75rem;margin-top:1.5rem;padding-top:1rem;border-top:1px solid rgba(58,184,160,.15)}
.lf-quote__avatar{width:40px;height:40px;border-radius:999px;background:rgba(58,184,160,.1);border:1px solid rgba(58,184,160,.3);display:grid;place-items:center;color:var(--lf-teal-bright);font-weight:700;flex-shrink:0}
.lf-quote__name{display:block;font-family:var(--lf-font-head);font-weight:700;color:var(--lf-cream);letter-spacing:.02em}
.lf-quote__role{font-size:.62rem;letter-spacing:.15em;text-transform:uppercase;color:rgba(244,237,224,.5)}

/* ==========================================================================
   12. FAQ (accordion)
   ========================================================================== */
.lf-faq{max-width:52rem;margin-inline:auto;background:var(--lf-forest-900);border:1px solid rgba(58,184,160,.15);border-radius:var(--lf-radius-lg);padding:clamp(1.25rem,3vw,2rem)}
.lf-acc{border-bottom:1px solid rgba(58,184,160,.15)}
.lf-acc:last-child{border-bottom:none}
.lf-acc__q{width:100%;text-align:left;background:none;border:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.15rem .25rem;font-family:var(--lf-font-head);font-size:1.15rem;font-weight:600;color:var(--lf-cream);transition:color .25s}
.lf-acc__q:hover{color:var(--lf-teal-bright)}
.lf-acc__icon{flex-shrink:0;width:20px;height:20px;position:relative;transition:transform .35s var(--lf-ease)}
.lf-acc__icon::before,.lf-acc__icon::after{content:"";position:absolute;background:var(--lf-teal-bright);border-radius:2px;transition:opacity .3s}
.lf-acc__icon::before{top:9px;left:0;width:20px;height:2px}
.lf-acc__icon::after{top:0;left:9px;width:2px;height:20px}
.lf-acc.is-open .lf-acc__icon{transform:rotate(135deg)}
.lf-acc__a{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s var(--lf-ease)}
.lf-acc.is-open .lf-acc__a{grid-template-rows:1fr}
.lf-acc__a-inner{min-height:0;overflow:hidden}
.lf-acc__a p{color:rgba(244,237,224,.72);font-size:.92rem;line-height:1.6;padding:0 .25rem 1.15rem}

/* ==========================================================================
   13. CONTACTO
   ========================================================================== */
.lf-contact__grid{display:grid;gap:clamp(2rem,5vw,4rem);align-items:center;grid-template-columns:1fr}
@media(min-width:900px){.lf-contact__grid{grid-template-columns:1fr 1fr}}
.lf-contact__intro h2{font-size:clamp(2.2rem,5vw,3.4rem)}
.lf-contact__facts{display:flex;flex-direction:column;gap:1rem;margin-top:1.5rem}
.lf-contact__fact{display:flex;align-items:center;gap:.75rem;color:rgba(20,20,20,.8);font-size:.92rem}
.lf-contact__ico{width:36px;height:36px;border-radius:999px;background:rgba(15,111,98,.1);border:1px solid rgba(15,111,98,.25);display:grid;place-items:center;color:var(--lf-teal);flex-shrink:0}
.lf-contact__ico svg{width:16px;height:16px}
.lf-contact__card{background:var(--lf-forest-900);border:1px solid rgba(58,184,160,.15);border-radius:var(--lf-radius-lg);padding:clamp(1.5rem,4vw,2.5rem);box-shadow:var(--lf-shadow-soft)}
.lf-contact__wa{display:flex;align-items:center;gap:1rem;margin-bottom:1rem}
.lf-contact__wa-ico{width:48px;height:48px;border-radius:999px;background:rgba(58,184,160,.1);border:1px solid rgba(58,184,160,.3);display:grid;place-items:center;color:var(--lf-teal-bright);flex-shrink:0}
.lf-contact__wa small{font-size:.62rem;letter-spacing:.15em;text-transform:uppercase;color:rgba(244,237,224,.5);display:block}
.lf-contact__wa b{font-size:1.15rem;color:var(--lf-cream);font-family:var(--lf-font-body)}
.lf-contact__rule{height:1px;background:rgba(58,184,160,.15);margin:1.5rem 0}
/* Formulario de contacto (sobre tarjeta oscura) */
.lf-cform__title{margin:0 0 1.1rem;font-size:1.25rem;color:#fff}
.lf-cform__row{display:grid;grid-template-columns:1fr 1fr;gap:.85rem}
.lf-cform__field{margin-bottom:.85rem}
.lf-cform__field label{display:block;font-size:.8rem;font-weight:600;color:rgba(255,255,255,.8);margin-bottom:.35rem}
.lf-cform__field label span{color:var(--lf-teal-bright)}
.lf-cform__field input,.lf-cform__field select,.lf-cform__field textarea{width:100%;box-sizing:border-box;background:rgba(255,255,255,.06);border:1px solid rgba(58,184,160,.25);border-radius:12px;padding:.7rem .85rem;font-size:.95rem;color:#fff;font-family:inherit;transition:border-color .18s,box-shadow .18s}
.lf-cform__field input::placeholder,.lf-cform__field textarea::placeholder{color:rgba(255,255,255,.4)}
.lf-cform__field select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233ab8a0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .9rem center;padding-right:2.2rem}
.lf-cform__field option{color:#1d2b28}
.lf-cform__field input:focus,.lf-cform__field select:focus,.lf-cform__field textarea:focus{outline:0;border-color:var(--lf-teal-bright);box-shadow:0 0 0 3px rgba(58,184,160,.18)}
.lf-cform__field textarea{resize:vertical}
.lf-cform__error{color:#ff9a8a;font-size:.85rem;font-weight:600;margin:.4rem 0 0;min-height:0}
.lf-cform__error:empty{margin:0}
.lf-cform__done{margin:.9rem 0 0;padding:.8rem 1rem;background:rgba(58,184,160,.12);border:1px solid rgba(58,184,160,.3);border-radius:12px;color:var(--lf-teal-bright);font-size:.9rem;font-weight:600;text-align:center}
.lf-cform button[type="submit"]{margin-top:.4rem}
@media (max-width:560px){.lf-cform__row{grid-template-columns:1fr}}
.lf-contact__link{display:flex;align-items:center;gap:1rem;padding:.75rem;margin:0 -.75rem;border-radius:12px;transition:background .2s}
.lf-contact__link:hover{background:rgba(58,184,160,.06)}
.lf-contact__link small{font-size:.62rem;letter-spacing:.15em;text-transform:uppercase;color:rgba(244,237,224,.5);display:block}
.lf-contact__link b{font-size:.92rem;color:var(--lf-cream);font-family:var(--lf-font-body);font-weight:700}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.lf-footer{background:var(--lf-forest-950);color:rgba(244,237,224,.6);border-top:1px solid rgba(58,184,160,.1);padding:clamp(3rem,6vw,4rem) 0 2rem}
.lf-footer__grid{display:grid;gap:2.5rem;grid-template-columns:1fr}
@media(min-width:768px){.lf-footer__grid{grid-template-columns:1.4fr 1fr 1fr}}
.lf-footer__brand .lf-brand__name{color:var(--lf-teal-bright)}
.lf-footer__brand p{font-size:.88rem;line-height:1.6;margin-top:1rem;max-width:34ch}
.lf-footer__col h4{font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;color:var(--lf-teal-bright);font-family:var(--lf-font-body);font-weight:600;margin-bottom:1rem}
.lf-footer__col nav,.lf-footer__col ul{display:flex;flex-direction:column;gap:.65rem}
.lf-footer__col a,.lf-footer__col li{color:rgba(244,237,224,.6);font-size:.88rem}
.lf-footer__col a:hover{color:var(--lf-teal-bright)}
.lf-footer__col li{display:flex;gap:.6rem;align-items:flex-start;list-style:none}
.lf-footer__social{display:flex;gap:.75rem;margin-top:1.25rem}
.lf-footer__social a{width:38px;height:38px;border-radius:999px;background:var(--lf-forest-900);border:1px solid rgba(58,184,160,.15);display:grid;place-items:center;color:var(--lf-cream);transition:all .25s}
.lf-footer__social a:hover{color:var(--lf-teal-bright);border-color:var(--lf-teal-bright);transform:translateY(-2px)}
.lf-footer__social svg{width:18px;height:18px}
.lf-footer__bottom{margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid rgba(58,184,160,.1);display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:center;justify-content:space-between;font-size:.78rem;color:rgba(244,237,224,.5)}
.lf-footer__legal{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .6rem;justify-content:center}
.lf-footer__legal .lf-credit-link{color:rgba(244,237,224,.55);font-weight:500}
.lf-footer__legal .lf-credit-link:hover{color:var(--lf-teal-bright)}
.lf-footer__legal-sep{color:rgba(244,237,224,.3)}

/* ==========================================================================
   Páginas legales (Aviso Legal / Privacidad)
   ========================================================================== */
.lf-legal{background:var(--lf-paper);padding:clamp(2.5rem,5vw,4rem) 0 clamp(3rem,6vw,5rem)}
.lf-legal__inner{max-width:52rem;margin-inline:auto;color:var(--lf-ink-2);font-size:1rem;line-height:1.75}
.lf-legal__inner h2{font-size:clamp(1.25rem,2.4vw,1.6rem);color:var(--lf-ink);margin:2.25rem 0 .75rem;padding-top:1.25rem;border-top:1px solid rgba(15,111,98,.14)}
.lf-legal__inner h2:first-child{border-top:none;padding-top:0;margin-top:0}
.lf-legal__inner p{margin:0 0 1rem}
.lf-legal__inner a{color:var(--lf-teal-deep);text-decoration:underline;text-underline-offset:2px}
.lf-legal__inner a:hover{color:var(--lf-teal)}
.lf-legal__inner ul{margin:0 0 1.15rem;padding-left:1.3rem}
.lf-legal__inner li{margin-bottom:.5rem}
.lf-legal__inner strong{color:var(--lf-ink)}
.lf-legal__data{list-style:none;padding:0;margin:0 0 1.15rem;display:grid;gap:.5rem;background:#fff;border:1px solid rgba(15,111,98,.14);border-radius:14px;padding:1.1rem 1.25rem;box-shadow:0 10px 26px -24px rgba(26,40,33,.4)}
.lf-legal__data li{display:flex;flex-wrap:wrap;gap:.4rem .75rem;margin:0;font-size:.95rem}
.lf-legal__data li span{flex:0 0 8.5rem;font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--lf-ink-muted);font-weight:700;align-self:center}
@media(max-width:520px){.lf-legal__data li span{flex-basis:100%}}

/* ==========================================================================
   15. SINGLE / ARCHIVE / PAGE genéricos
   ========================================================================== */
.lf-page-hero{background:var(--lf-forest-950);color:var(--lf-cream);padding:calc(var(--lf-header-h) + 4rem) 0 3.5rem;text-align:center;position:relative;overflow:hidden}
.lf-page-hero h1{color:var(--lf-cream);font-size:clamp(2rem,5vw,3.4rem)}
.lf-page-hero .lf-eyebrow{color:var(--lf-teal-bright)}
.lf-content{max-width:44rem;margin-inline:auto;padding-block:clamp(2.5rem,5vw,4rem)}
.lf-content h2{font-size:1.9rem;margin-top:2rem}
.lf-content img{border-radius:var(--lf-radius);margin-block:1.5rem}
.lf-single__meta{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;margin-top:1.25rem}
.lf-chip{font-size:.78rem;font-weight:600;padding:.35rem .85rem;border-radius:999px;background:rgba(58,184,160,.12);color:var(--lf-teal-bright);border:1px solid rgba(58,184,160,.3)}
.lf-single__price{font-size:2rem;font-weight:700;color:var(--lf-copper);font-family:var(--lf-font-body)}

/* Contenido enriquecido de la ficha de curso */
.lf-entry{color:var(--lf-ink);font-size:1rem;line-height:1.7}
.lf-entry h2{font-size:1.5rem;color:var(--lf-ink);margin:2rem 0 .6rem;padding-top:1.25rem;border-top:1px solid rgba(15,111,98,.15)}
.lf-entry h2:first-child{border-top:none;padding-top:0;margin-top:0}
.lf-entry h3{font-size:1.15rem;color:var(--lf-teal-deep);margin:1.4rem 0 .4rem}
.lf-entry p{margin:0 0 1rem;color:var(--lf-ink-2)}
.lf-entry ul,.lf-entry ol{margin:0 0 1rem;padding-left:1.4rem}
.lf-entry li{margin-bottom:.4rem}
.lf-entry strong,.lf-entry b{color:var(--lf-ink)}
.lf-entry blockquote{margin:1.25rem 0;padding:.5rem 0 .5rem 1.25rem;border-left:2px solid rgba(15,111,98,.4);font-style:italic;color:var(--lf-teal-deep)}
.lf-acc2__a.lf-entry>*:first-child{margin-top:1rem}

/* ==========================================================================
   FICHA DE CURSO (single-curso)
   ========================================================================== */
.lf-course{background:var(--lf-paper);padding:calc(var(--lf-header-h) + 1.5rem) 0 clamp(3rem,6vw,5rem)}
.lf-course__wrap{max-width:64rem;margin-inline:auto;padding-inline:clamp(1rem,4vw,2rem)}
.lf-course__banner{position:relative;border-radius:var(--lf-radius-lg);overflow:hidden;border:1px solid rgba(58,184,160,.25);aspect-ratio:16/7;box-shadow:var(--lf-shadow-soft)}
.lf-course__banner img,.lf-course__banner .lf-ph,.lf-course__video{width:100%;height:100%;object-fit:cover}
.lf-course__video{display:block}
.lf-course__banner::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(13,31,24,0) 45%,rgba(13,31,24,.6) 100%);pointer-events:none}
/* Hero de vídeo a todo el ancho de la web (rompe el contenedor). */
.lf-course__banner--video{position:relative;left:50%;right:50%;width:100vw;margin-left:-50vw;margin-right:-50vw;border-radius:0;border-left:0;border-right:0;aspect-ratio:auto;height:clamp(20rem,60vh,42rem);margin-bottom:clamp(1.5rem,4vw,2.5rem)}
.lf-course__badge{position:absolute;top:1rem;left:1rem;z-index:2;display:inline-flex;align-items:center;gap:.35rem;font-size:.7rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:.3rem .7rem;border-radius:6px;background:rgba(13,31,24,.85);color:var(--lf-teal-bright);border:1px solid rgba(58,184,160,.4);backdrop-filter:blur(4px)}
.lf-course__badge svg{width:14px;height:14px}
.lf-course__head{display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-end;justify-content:space-between;margin-top:1.75rem}
.lf-course__title{font-size:clamp(1.8rem,4.5vw,2.8rem);color:var(--lf-ink);margin:0;flex:1;min-width:60%}
.lf-course__price{text-align:right}
.lf-course__price-label{display:block;font-size:.62rem;letter-spacing:.15em;text-transform:uppercase;color:var(--lf-ink-muted)}
.lf-course__price-val{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:700;color:var(--lf-copper);font-family:var(--lf-font-body)}
.lf-course__meta{display:flex;flex-wrap:wrap;gap:.6rem 1.25rem;margin-top:1.1rem;padding-top:1.1rem;border-top:1px solid rgba(58,184,160,.18)}
.lf-course__metaitem{display:inline-flex;align-items:center;gap:.4rem;font-size:.85rem;color:var(--lf-ink-2)}
.lf-course__metaitem svg{width:16px;height:16px;color:var(--lf-teal-bright)}
.lf-course__intro{margin:1.5rem 0 0;font-size:1.05rem;line-height:1.7;color:var(--lf-ink-2);max-width:52rem}
.lf-course__block{margin-top:clamp(2.25rem,5vw,3.25rem)}
.lf-course__block .lf-eyebrow{margin-bottom:.4rem}
.lf-course__h2{font-size:clamp(1.5rem,3vw,2rem);color:var(--lf-ink);margin:0 0 1.25rem}

/* Cards de convocatoria (verdes) */
.lf-conv-grid{display:grid;gap:1rem;grid-template-columns:1fr}
@media(min-width:640px){.lf-conv-grid{grid-template-columns:1fr 1fr}}
.lf-conv{display:flex;flex-direction:column;background:var(--lf-forest-800);border:1px solid rgba(58,184,160,.3);border-radius:var(--lf-radius-lg);box-shadow:0 12px 28px -20px rgba(13,31,24,.7);padding:1.35rem}
.lf-conv__head{display:flex;gap:.75rem;align-items:flex-start;justify-content:space-between}
.lf-conv__title{color:var(--lf-cream);font-size:1.25rem;margin:0;line-height:1.15}
.lf-conv__spots{flex-shrink:0;font-size:.64rem;font-weight:700;padding:.28rem .6rem;border-radius:999px;background:rgba(58,184,160,.14);color:#7dd3c7;border:1px solid rgba(58,184,160,.28);white-space:nowrap}
.lf-conv__desc{margin:.75rem 0 0;font-size:.86rem;line-height:1.55;color:rgba(244,237,224,.9)}
.lf-conv__note{margin:.85rem 0 0;font-size:.72rem;font-style:italic;line-height:1.5;color:rgba(244,237,224,.6)}
.lf-conv__cal{margin-top:.85rem;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(0,0,0,.15);overflow:hidden}
.lf-conv__cal summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.7rem .9rem;font-size:.85rem;font-weight:600;color:#7dd3c7}
.lf-conv__cal summary::-webkit-details-marker{display:none}
.lf-conv__cal-lbl{display:inline-flex;align-items:center;gap:.5rem}
.lf-conv__cal-lbl svg{width:16px;height:16px}
.lf-conv__cal .lf-chev svg{width:16px;height:16px;transition:transform .3s var(--lf-ease)}
.lf-conv__cal[open] .lf-chev svg{transform:rotate(180deg)}
.lf-conv__dates{list-style:none;margin:0;padding:.4rem .9rem .85rem;border-top:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column;gap:.45rem}
.lf-conv__dates li{display:flex;gap:.5rem;align-items:flex-start;font-size:.82rem;color:rgba(244,237,224,.82)}
.lf-conv__dates li svg{width:15px;height:15px;flex-shrink:0;margin-top:2px;color:var(--lf-teal-bright)}
.lf-conv__btn{margin-top:1rem;width:100%}

/* Datos rápidos */
.lf-facts{display:grid;grid-template-columns:repeat(2,1fr);gap:.65rem;margin-top:1.75rem}
@media(min-width:640px){.lf-facts{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}}
.lf-fact{display:flex;align-items:center;gap:.7rem;padding:.85rem 1rem;border-radius:14px;background:#fff;border:1px solid rgba(15,111,98,.14);box-shadow:0 10px 26px -24px rgba(26,40,33,.4)}
.lf-fact__ico{flex-shrink:0;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:var(--lf-teal);background:linear-gradient(135deg,rgba(58,184,160,.16),rgba(15,111,98,.08));border:1px solid rgba(15,111,98,.18)}
.lf-fact__ico svg{width:18px;height:18px}
.lf-fact__body{display:flex;flex-direction:column;min-width:0}
.lf-fact__label{font-size:.62rem;letter-spacing:.14em;text-transform:uppercase;color:var(--lf-ink-muted)}
.lf-fact__value{font-size:.95rem;font-weight:700;color:var(--lf-ink);font-family:var(--lf-font-head);letter-spacing:.01em}

/* Acordeón tipo FAQ (cards desplegables) */
.lf-acc2{display:flex;flex-direction:column;gap:.85rem}
.lf-acc2__item{position:relative;border:1px solid rgba(15,111,98,.16);border-radius:16px;background:#fff;overflow:hidden;transition:border-color .25s ease,box-shadow .3s ease,transform .3s var(--lf-ease)}
.lf-acc2__item::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(var(--lf-gold-a),var(--lf-gold-b));opacity:0;transition:opacity .3s ease}
.lf-acc2__item:hover{transform:translateY(-2px);box-shadow:0 16px 34px -26px rgba(26,40,33,.4)}
.lf-acc2__item[open]{border-color:rgba(15,111,98,.35);box-shadow:0 18px 40px -28px rgba(26,40,33,.45)}
.lf-acc2__item[open]::before{opacity:1}
.lf-acc2__q{list-style:none;cursor:pointer;display:flex;align-items:center;gap:.9rem;padding:.95rem 1.15rem;transition:background .25s}
.lf-acc2__q::-webkit-details-marker{display:none}
.lf-acc2__item:hover .lf-acc2__q{background:rgba(58,184,160,.04)}
.lf-acc2__chip{flex-shrink:0;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;color:var(--lf-teal);background:rgba(58,184,160,.1);border:1px solid rgba(15,111,98,.18);transition:background .3s,color .3s,transform .3s var(--lf-ease)}
.lf-acc2__chip svg{width:18px;height:18px}
.lf-acc2__num{font-family:var(--lf-font-head);font-weight:700;font-size:1.05rem;color:var(--lf-copper);line-height:1}
.lf-acc2__item[open] .lf-acc2__chip{background:var(--lf-teal);color:#fff;border-color:var(--lf-teal);transform:rotate(-4deg) scale(1.04)}
.lf-acc2__item[open] .lf-acc2__num{color:#fff}
.lf-acc2__label{flex:1;font-family:var(--lf-font-body);font-weight:700;font-size:.92rem;letter-spacing:.04em;text-transform:uppercase;color:var(--lf-ink-2);transition:color .25s}
.lf-acc2__item[open] .lf-acc2__label{color:var(--lf-teal-deep)}
.lf-acc2__ico{flex-shrink:0;width:28px;height:28px;border-radius:999px;display:grid;place-items:center;color:var(--lf-teal);transition:transform .35s var(--lf-ease)}
.lf-acc2__ico svg{width:18px;height:18px}
.lf-acc2__item[open] .lf-acc2__ico{transform:rotate(180deg)}
.lf-acc2__a{padding:.2rem 1.25rem 1.4rem 4rem;border-top:1px solid rgba(15,111,98,.1)}
.lf-acc2__item[open] .lf-acc2__a{animation:lf-accin .4s var(--lf-ease)}
@media(max-width:520px){.lf-acc2__a{padding-left:1.25rem}}
@keyframes lf-accin{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.lf-acc2__item[open] .lf-acc2__a{animation:none}}

/* CTA final */
.lf-course__cta{margin-top:clamp(2.5rem,5vw,3.5rem);padding:1.5rem;border-radius:var(--lf-radius-lg);background:var(--lf-sage);border:1px solid rgba(15,111,98,.3);display:flex;flex-wrap:wrap;gap:1.25rem;align-items:center;justify-content:space-between}
.lf-course__cta h2{font-size:1.35rem;color:var(--lf-ink);margin:0}
.lf-course__cta p{margin:.25rem 0 0;font-size:.88rem;color:rgba(20,20,20,.65)}
.lf-course__cta-btns{display:flex;gap:.75rem;flex-wrap:wrap}

.lf-postcard{background:#fff;border:1px solid rgba(15,111,98,.12);border-radius:var(--lf-radius);overflow:hidden;box-shadow:var(--lf-shadow-card);transition:transform .3s,box-shadow .3s}
.lf-postcard:hover{transform:translateY(-5px);box-shadow:var(--lf-shadow-soft)}
.lf-postcard__media{aspect-ratio:16/10;overflow:hidden}
.lf-postcard__media img,.lf-postcard__media .lf-ph{width:100%;height:100%;object-fit:cover}
.lf-postcard__body{padding:1.5rem}
.lf-postcard__body h3{font-size:1.35rem;margin-bottom:.5rem}

/* ==========================================================================
   16. REVEAL ANIMATIONS
   ========================================================================== */
.lf-reveal{opacity:0;transform:translateY(28px);transition:opacity .8s var(--lf-ease),transform .8s var(--lf-ease)}
.lf-reveal.is-inview{opacity:1;transform:none}
.lf-reveal--left{transform:translateX(-40px)}
.lf-reveal--right{transform:translateX(40px)}
.lf-reveal--scale{transform:scale(.94)}
.lf-reveal[data-delay="1"]{transition-delay:.12s}
.lf-reveal[data-delay="2"]{transition-delay:.24s}
.lf-reveal[data-delay="3"]{transition-delay:.36s}
.lf-reveal[data-delay="4"]{transition-delay:.48s}
.lf-reveal[data-delay="5"]{transition-delay:.6s}
@media(prefers-reduced-motion:reduce){
  .lf-reveal{opacity:1!important;transform:none!important}
  .lf-hero__bg img,.lf-hero__bg .lf-hero__ph{animation:none}
  .lf-marquee__track{animation:none}
  html{scroll-behavior:auto}
}

/* WP admin bar offset */
.admin-bar .lf-header{top:32px}
@media(max-width:782px){.admin-bar .lf-header{top:46px}}

/* WP core alignments for editor content */
.aligncenter{margin-inline:auto;display:block}
.alignright{float:right;margin:0 0 1rem 1.5rem}
.alignleft{float:left;margin:0 1.5rem 1rem 0}
.wp-caption-text{font-size:.8rem;color:var(--lf-ink-muted);text-align:center}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}

/* ==========================================================================
   Ajustes de responsive (móvil / tablet)
   ========================================================================== */
/* Ningún medio se sale del ancho de pantalla */
img,video,iframe{max-width:100%}
/* Nada se desborda horizontalmente en móvil */
html,body{overflow-x:hidden}
/* Palabras largas no rompen las cajas */
.lf-hero__title,.lf-h2,.lf-course__title,.lf-tl__title,.lf-conv__title,.lf-fact__value,.lf-card__title{overflow-wrap:break-word}

@media (max-width:900px){
	/* Hero de vídeo de la ficha: altura más contenida en tablet/móvil */
	.lf-course__banner--video{height:clamp(16rem,52vh,26rem)}
}

/* ---- Tablet / móvil grande ---- */
@media (max-width:720px){
	/* Calendario: rejilla más compacta y eventos como barras de color */
	.lf-calendar__head{padding:.85rem 1rem}
	.lf-calendar__grid{padding:.4rem}
	.lf-calendar__cell{min-height:52px;padding:.25rem}
	.lf-calendar__dow{font-size:.62rem;padding:.3rem 0}
	.lf-calendar__daynum{font-size:.66rem;margin-bottom:.2rem}
	/* El nombre del evento no cabe: lo mostramos como barrita de color
	   (la leyenda de abajo indica a qué actividad corresponde cada color). */
	.lf-event{font-size:0;line-height:0;height:7px;padding:0;margin-bottom:3px;border-radius:3px;text-shadow:none}
}

/* ---- Móvil ---- */
@media (max-width:600px){
	.lf-course__banner--video{height:clamp(13rem,44vh,20rem)}
	/* La convocatoria y las tarjetas siempre a una columna */
	.lf-conv-grid{grid-template-columns:1fr}
	/* Cabecera de la ficha: título y precio apilados y alineados */
	.lf-course__head{flex-direction:column;align-items:flex-start;gap:.75rem}
	.lf-course__price{text-align:left}
	/* Botonera del CTA a ancho completo */
	.lf-course__cta{flex-direction:column;align-items:stretch}
	.lf-course__cta-btns{display:flex;gap:.6rem}
	.lf-course__cta-btns .lf-btn{flex:1 1 auto;text-align:center}
	/* Formulario de contacto: email y teléfono apilados */
	.lf-cform__row{grid-template-columns:1fr}
	/* Botones a ancho completo para tocar cómodo */
	.lf-hero__cta{flex-direction:column;align-items:stretch}
	.lf-hero__cta .lf-btn{width:100%}
}

/* ---- Móvil estrecho ---- */
@media (max-width:560px){
	/* Datos rápidos (NIVEL / DURACIÓN / RESULTADO…): una sola columna
	   para que el texto no se parta palabra a palabra */
	.lf-facts{grid-template-columns:1fr}
	.lf-fact{padding:.9rem 1.1rem}
	.lf-fact__value{font-size:1rem;white-space:normal;word-break:normal}
	/* Galería del espacio a una columna en pantallas pequeñas */
	.lf-space__gallery{grid-template-columns:1fr}
	/* Título del hero puede partir en varias líneas (no se recorta) */
	.lf-hero__title .lf-line1{white-space:normal}
}

@media (max-width:400px){
	/* Evita que textos largos rompan el layout */
	.lf-course__title{font-size:1.6rem;line-height:1.15}
	.lf-h2{font-size:1.7rem}
	/* Calendario: aún más compacto */
	.lf-calendar__cell{min-height:46px}
	.lf-calendar__title{font-size:1.05rem}
	.lf-calendar__nav{width:34px;height:34px}
}
