/*
 * Luis Fortuna — marca personal · rediseño editorial
 * Tecnología, educación e innovación.
 * Navy dominante · fondos claros · asimetría · jerarquía fuerte.
 */

:root {
  --navy:     #0B1F3A;
  --navy-800: #0e2647;
  --navy-700: #14345c;
  --blue:     #2563EB;
  --blue-600: #1d4ed8;
  --teal:     #14B8A6;   /* acento: SOLO IA/innovación/interacción */
  --white:    #FFFFFF;
  --gray-50:  #F6F8FB;
  --border:   #E5E7EB;
  --text-2:   #667085;
  --ink:      #111827;

  --font:   'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-b: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espaciado (base 8) */
  --sp-xs: .5rem; --sp-s: 1rem; --sp-m: 1.5rem; --sp-l: 2.5rem; --sp-xl: 4rem; --sp-2xl: 6.5rem;

  --r-sm: 8px; --r-md: 16px; --r-lg: 24px;
  --sh-sm: 0 4px 14px rgba(11,31,58,.05);
  --sh-md: 0 12px 34px rgba(11,31,58,.09);
  --sh-lg: 0 28px 64px rgba(11,31,58,.16);

  --nav-h: 74px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); color: var(--ink); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; margin: 0; font-size: 1.02rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; width: 100%; }

/* Tipografía — jerarquía fuerte, tracking ajustado */
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); margin: 0; }
.lf-h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.lf-h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.lf-h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-600); }
img { max-width: 100%; height: auto; }

.lf-eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font); font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.lf-eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--blue); display: inline-block; }
.lf-eyebrow--light { color: var(--teal); }
.lf-eyebrow--light::before { background: var(--teal); }
.lf-muted { color: var(--text-2); }

/* Reveal + stagger — mejora progresiva: visible por defecto, se anima solo con JS (html.js) */
.js .lf-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s cubic-bezier(.22,.61,.36,1); transition-delay: var(--d, 0ms); }
.js .lf-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .lf-reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Buttons */
.lf-btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font); font-weight: 600; font-size: .95rem; padding: .82rem 1.5rem; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; transition: all .22s ease; }
.lf-btn--primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.lf-btn--primary:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37,99,235,.3); }
.lf-btn--ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.lf-btn--ghost:hover { border-color: var(--navy); background: var(--gray-50); color: var(--navy); }
.lf-btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.lf-btn--outline:hover { background: var(--blue); color: #fff; }
.lf-btn--link { background: transparent; color: var(--blue); border: 0; padding: .5rem .3rem; }
.lf-btn--link:hover { gap: .75rem; color: var(--blue-600); }
.lf-btn--sm { padding: .5rem 1rem; font-size: .85rem; }
.lf-btn--lg { padding: .95rem 1.9rem; font-size: 1.02rem; }

/* Sections */
.lf-section { padding: var(--sp-2xl) 0; }
.lf-section--soft { background: var(--gray-50); }
.lf-section--dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.lf-section--dark .lf-h2, .lf-section--dark h3 { color: #fff; }
.lf-sechead { max-width: 620px; margin-bottom: var(--sp-xl); }
.lf-sechead__lead { color: var(--text-2); margin-top: .9rem; font-size: 1.1rem; }
.lf-section--dark .lf-sechead__lead { color: rgba(255,255,255,.68); }
.lf-sechead--row { display: flex; align-items: flex-end; justify-content: space-between; max-width: none; gap: 1rem; flex-wrap: wrap; }

/* ============ HEADER ============ */
.lf-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.lf-header.is-stuck { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(11,31,58,.05); }
.lf-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.lf-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--navy); }
.lf-brand__mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--navy); color: #fff; font-family: var(--font); font-weight: 800; font-size: .95rem; }
.lf-brand__name { font-family: var(--font); font-weight: 800; font-size: 1.12rem; color: var(--navy); letter-spacing: -.02em; }
.lf-brand__img { height: 38px; width: auto; }
.lf-brand__markimg { height: 34px; width: auto; display: block; }
.lf-brand__markimg--footer { height: 30px; }
.lf-post__mark { width: 44%; max-width: 120px; height: auto; opacity: .92; }
.lf-nav__list { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.lf-nav__link { font-family: var(--font); font-weight: 600; font-size: .9rem; color: var(--navy); padding: .5rem .8rem; border-radius: 8px; }
.lf-nav__link:hover { color: var(--blue); background: var(--gray-50); }
.lf-nav__item--cta { margin-left: .4rem; }
.lf-navtoggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.lf-navtoggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ============ HERO (editorial, asimétrico) ============ */
.lf-hero { position: relative; padding: var(--sp-2xl) 0 0; background:
    radial-gradient(circle at 1px 1px, rgba(11,31,58,.06) 1px, transparent 0) 0 0 / 26px 26px,
    linear-gradient(180deg, #fff, var(--gray-50)); }
.lf-hero__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--sp-xl); align-items: center; padding-bottom: var(--sp-2xl); }
.lf-hero__eyebrow { color: var(--blue); font-family: var(--font); font-weight: 700; font-size: .95rem; margin-bottom: 1.2rem; }
.lf-hero__title { color: var(--navy); }
.lf-hero__title em { font-style: normal; color: var(--blue); }
.lf-hero__lead { color: var(--text-2); font-size: clamp(1.1rem, 1.7vw, 1.28rem); margin: 1.4rem 0 2rem; max-width: 40ch; }
.lf-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
/* Índice de roles (columna derecha) */
.lf-hero__index { border-top: 2px solid var(--navy); }
.lf-hero__role { display: flex; align-items: baseline; gap: .9rem; padding: 1.05rem 0; border-bottom: 1px solid var(--border); }
.lf-hero__role-n { font-family: var(--font); font-weight: 800; font-size: .82rem; color: var(--blue); letter-spacing: .05em; min-width: 26px; }
.lf-hero__role-t { font-family: var(--font); font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.lf-hero__role:last-child .lf-hero__role-n { color: var(--teal); }
.lf-hero__avail { margin-top: 1.2rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-2); font-weight: 500; }
.lf-hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,.18); }

/* Placeholder de foto reutilizable (listo para imagen real) */
.lf-photo-ph { position: relative; width: 100%; height: 100%; display: grid; place-items: center; background: var(--gray-50); border: 1px dashed var(--border); }
.lf-photo-ph--hero { background: linear-gradient(155deg, var(--navy), var(--navy-800) 60%, #0a3060); border: 0; }
.lf-photo-ph__mono { font-family: var(--font); font-weight: 800; font-size: clamp(4rem, 10vw, 6rem); color: rgba(255,255,255,.08); }
.lf-photo-ph__label { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: .45rem; font-family: var(--font); font-weight: 600; font-size: .8rem; color: var(--text-2); }
.lf-photo-ph--hero .lf-photo-ph__label { color: rgba(255,255,255,.5); }
.lf-photo-ph__label i { font-size: .95rem; }

/* Hero: retrato fijo */
.lf-hero__photo { margin: 0; width: 100%; aspect-ratio: 5/6; max-height: 470px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.lf-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* Sobre mí: foto contextual flotada */
.lf-about__photo { float: right; width: 44%; max-width: 300px; aspect-ratio: 3/4; margin: .3rem 0 1.2rem 2rem; border-radius: var(--r-md); overflow: hidden; }
.lf-about__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .lf-about__photo { float: none; width: 100%; max-width: none; margin: 1.2rem 0; aspect-ratio: 4/3; } }

/* En acción: galería en mosaico asimétrico */
.lf-gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 210px; gap: var(--sp-m); }
.lf-gallery__item { margin: 0; border-radius: var(--r-md); overflow: hidden; }
.lf-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lf-gallery__item:hover img { transform: scale(1.04); }
.lf-gallery__item--1 { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.lf-gallery__item--2 { grid-column: 8 / span 5; grid-row: 1 / span 1; }
.lf-gallery__item--3 { grid-column: 8 / span 5; grid-row: 2 / span 1; }
@media (max-width: 720px) { .lf-gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; } .lf-gallery__item--1, .lf-gallery__item--2, .lf-gallery__item--3 { grid-column: auto; grid-row: auto; } }

/* Hero slider (visual rotativo) — conservado por si se revierte al slider */
.lf-slider { width: 100%; }
.lf-slider__track { position: relative; width: 100%; aspect-ratio: 5/6; max-height: 460px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(155deg, var(--navy), var(--navy-800) 60%, #0a3060); box-shadow: var(--sh-lg); }
.lf-slide { position: absolute; inset: 0; padding: clamp(1.5rem, 2.5vw, 2.2rem); display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transform: translateY(14px) scale(.99); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); pointer-events: none; }
.lf-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.lf-slide__top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.lf-slide__n { font-family: var(--font); font-weight: 800; font-size: 1rem; letter-spacing: .1em; color: rgba(255,255,255,.55); }
.lf-slide__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(37,99,235,.22); color: #fff; font-size: 1.5rem; }
.lf-slide--ai .lf-slide__icon { background: rgba(20,184,166,.2); color: var(--teal); }
.lf-slide__body { position: relative; z-index: 2; }
.lf-slide__title { display: block; font-family: var(--font); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); color: #fff; letter-spacing: -.02em; margin-bottom: .6rem; }
.lf-slide__line { display: block; color: rgba(255,255,255,.72); font-size: 1rem; line-height: 1.55; }
.lf-slide .lf-shape { position: absolute; z-index: 1; border-radius: 50%; filter: blur(2px); }
.lf-slide .lf-shape--a { width: 160px; height: 160px; background: rgba(37,99,235,.4); top: -40px; right: -40px; }
.lf-slide--ai .lf-shape--a { background: rgba(20,184,166,.38); }
.lf-slide .lf-shape--b { width: 90px; height: 90px; border-radius: 22px; border: 1.5px solid rgba(255,255,255,.14); background: transparent; filter: none; bottom: 90px; right: 30px; transform: rotate(16deg); }
.lf-slider__dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1.1rem; }
.lf-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--border); transition: width .3s ease, background .3s ease; }
.lf-dot.is-active { width: 26px; border-radius: 5px; background: var(--blue); }

/* Clients strip */
.lf-clients { border-top: 1px solid var(--border); padding: 1.5rem 0; }
.lf-clients .container { display: flex; align-items: center; gap: 1rem 2.5rem; flex-wrap: wrap; }
.lf-clients__label { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.lf-clients__row { display: flex; gap: 1.2rem 2.4rem; flex-wrap: wrap; }
.lf-clients__item { font-family: var(--font); font-weight: 700; color: var(--navy); opacity: .5; font-size: 1.02rem; transition: opacity .2s; }
.lf-clients__item:hover { opacity: 1; }

/* ============ SOBRE MÍ (editorial 12-col + sticky) ============ */
.lf-about { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--sp-m); }
.lf-about__head { grid-column: 1 / span 4; position: sticky; top: calc(var(--nav-h) + var(--sp-l)); align-self: start; padding-left: var(--sp-m); border-left: 2px solid var(--navy); }
.lf-about__body { grid-column: 6 / span 7; }
.lf-about__lead { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-family: var(--font); font-weight: 600; color: var(--ink); line-height: 1.4; letter-spacing: -.01em; margin-bottom: 1.6rem; }
.lf-about__body p { color: var(--text-2); font-size: 1.08rem; }
.lf-about__tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.lf-about__tags span { font-family: var(--font); font-weight: 600; font-size: .85rem; color: var(--navy); background: var(--gray-50); border: 1px solid var(--border); padding: .45rem 1rem; border-radius: 999px; }

/* ============ MI EMPRESA (Fortness) ============ */
.lf-company { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--sp-l); align-items: center; color: #fff; text-decoration: none;
  background: linear-gradient(150deg, var(--navy), var(--navy-800) 65%, #0a2c5c); border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3.2rem);
  position: relative; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.lf-company::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0) 0 0 / 28px 28px; pointer-events: none; }
.lf-company:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); color: #fff; }
.lf-company__main { position: relative; z-index: 1; }
.lf-company__name { font-family: var(--font); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: #fff; letter-spacing: -.025em; margin: .8rem 0 .8rem; }
.lf-company__desc { color: rgba(255,255,255,.75); max-width: 46ch; margin: 0 0 1.4rem; }
.lf-company__cta { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font); font-weight: 700; color: var(--teal); transition: gap .2s ease; }
.lf-company:hover .lf-company__cta { gap: .8rem; }
.lf-company__badge { position: relative; z-index: 1; justify-self: end; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.lf-company__logo { width: clamp(96px, 13vw, 150px); height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.lf-company__tag { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font); font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.lf-company__tag i { color: var(--teal); }
@media (max-width: 720px) { .lf-company { grid-template-columns: 1fr; } .lf-company__badge { justify-self: start; flex-direction: row; } }

/* ============ ÁREAS (lista numerada grande) ============ */
.lf-areas { border-top: 1px solid var(--border); }
.lf-area { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: var(--sp-m); padding: var(--sp-l) var(--sp-m); border-bottom: 1px solid var(--border); position: relative; transition: background-color .35s ease, padding-left .35s ease; }
.lf-area::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); transform: scaleY(0); transform-origin: top; transition: transform .35s ease; }
.lf-area:hover { background: var(--gray-50); padding-left: calc(var(--sp-m) + 10px); }
.lf-area:hover::before { transform: scaleY(1); }
.lf-area__num { font-family: var(--font); font-weight: 800; font-size: 2.4rem; color: var(--border); letter-spacing: -.02em; transition: color .35s ease; }
.lf-area:hover .lf-area__num { color: var(--blue); }
.lf-area__title { font-family: var(--font); font-weight: 700; font-size: 1.4rem; color: var(--navy); margin-bottom: .35rem; letter-spacing: -.015em; }
.lf-area__desc { color: var(--text-2); margin: 0; max-width: 60ch; }
.lf-area__icon { font-size: 1.7rem; color: var(--navy); opacity: .25; transition: opacity .35s, color .35s, transform .35s; }
.lf-area:hover .lf-area__icon { opacity: 1; color: var(--blue); transform: translateX(-6px); }
.lf-area--ai:hover .lf-area__num, .lf-area--ai:hover .lf-area__icon { color: var(--teal); }
.lf-area--ai::before { background: var(--teal); }

/* ============ PROYECTOS (grid asimétrico, oscuro) ============ */
.lf-section--dark::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0) 0 0 / 30px 30px; pointer-events: none; }
.lf-section--dark > .container { position: relative; z-index: 1; }
.lf-projects { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-m); }
.lf-project { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); padding: var(--sp-l); transition: transform .35s ease, background .35s, border-color .35s; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.lf-project:hover { color: inherit; }
.lf-project__tech { transition: gap .2s ease; }
a.lf-project:hover .lf-project__tech { color: var(--teal); gap: .7rem; }
.lf-project--feat { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-l); align-items: center; }
.lf-project:hover { transform: translateY(-5px); background: rgba(255,255,255,.06); border-color: rgba(20,184,166,.45); }
.lf-project__tag { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font); font-weight: 600; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: .7rem; }
.lf-project__name { font-family: var(--font); font-weight: 800; color: #fff; margin-bottom: .7rem; font-size: 1.45rem; letter-spacing: -.02em; }
.lf-project--feat .lf-project__name { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.lf-project__desc { color: rgba(255,255,255,.72); margin: 0 0 1.2rem; }
.lf-project__tech { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.5); font-family: var(--font); font-weight: 600; }

/* ============ FORMACIÓN ============ */
.lf-formacion { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xl); align-items: center; }
.lf-formacion__intro p { color: var(--text-2); font-size: 1.1rem; margin: 1.1rem 0 1.8rem; }
.lf-formacion__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.lf-formacion__list li { display: flex; align-items: center; gap: 1rem; font-family: var(--font); font-weight: 600; color: var(--navy); padding: 1.1rem .4rem; border-bottom: 1px solid var(--border); transition: padding-left .3s, color .3s; }
.lf-formacion__list li:hover { padding-left: 1rem; color: var(--blue); }
.lf-formacion__list i { color: var(--teal); font-size: 1.15rem; }

/* Comunidad de capacitaciones (canal WhatsApp) */
.lf-community { display: flex; align-items: center; gap: 1.5rem; margin-top: var(--sp-xl); padding: clamp(1.4rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.4rem); border-radius: var(--r-lg); background: linear-gradient(150deg, var(--navy), var(--navy-800) 70%, #0a2c5c); color: #fff; text-decoration: none; box-shadow: var(--sh-md); transition: transform .3s ease, box-shadow .3s ease; }
.lf-community:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); color: #fff; }
.lf-community__icon { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: #25D366; color: #fff; font-size: 1.9rem; }
.lf-community__text { display: flex; flex-direction: column; margin-right: auto; }
.lf-community__title { font-family: var(--font); font-weight: 700; font-size: 1.25rem; color: #fff; letter-spacing: -.01em; }
.lf-community__desc { color: rgba(255,255,255,.75); font-size: .95rem; margin-top: .35rem; max-width: 52ch; }
.lf-community__cta { flex: none; display: inline-flex; align-items: center; gap: .5rem; background: #25D366; color: #06371c; font-family: var(--font); font-weight: 700; font-size: .92rem; padding: .8rem 1.4rem; border-radius: 10px; transition: gap .2s ease, background .2s ease; white-space: nowrap; }
.lf-community:hover .lf-community__cta { gap: .75rem; background: #22c35e; }
@media (max-width: 720px) { .lf-community { flex-direction: column; align-items: flex-start; } .lf-community__cta { width: 100%; justify-content: center; } }

/* ============ PUBLICACIONES (asimétrico: destacado + 2) ============ */
.lf-posts { display: grid; gap: var(--sp-m); grid-template-columns: 1fr 1fr; }
.lf-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; color: inherit; transition: transform .35s ease, box-shadow .35s ease; }
.lf-post:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.lf-post--feat { grid-row: span 2; }
.lf-post__media { aspect-ratio: 16/10; background: var(--gray-50); overflow: hidden; }
.lf-post--feat .lf-post__media { aspect-ratio: 16/9; }
.lf-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lf-post:hover .lf-post__media img { transform: scale(1.05); }
.lf-post__media--empty { display: grid; place-items: center; background: linear-gradient(140deg, var(--navy), var(--navy-800)); }
.lf-post__media--empty span { font-family: var(--font); font-weight: 800; font-size: 2rem; color: rgba(255,255,255,.85); }
.lf-post__body { padding: var(--sp-m); display: flex; flex-direction: column; flex: 1; }
.lf-post__date { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.lf-post__title { font-family: var(--font); font-weight: 700; font-size: 1.15rem; color: var(--navy); margin: .5rem 0 .5rem; letter-spacing: -.01em; }
.lf-post--feat .lf-post__title { font-size: 1.6rem; }
.lf-post__excerpt { color: var(--text-2); font-size: .96rem; margin: 0 0 1rem; }
.lf-post__more { margin-top: auto; font-family: var(--font); font-weight: 600; color: var(--blue); font-size: .9rem; display: inline-flex; align-items: center; gap: .4rem; }
.lf-post:hover .lf-post__more { gap: .7rem; }

/* ============ REDES (sígueme) ============ */
.lf-social { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-m); max-width: 860px; margin: 0 auto; }
.lf-social__card { display: flex; align-items: center; gap: 1.2rem; padding: 1.7rem 1.9rem; border-radius: var(--r-lg); color: #fff; text-decoration: none; position: relative; overflow: hidden; box-shadow: var(--sh-md); transition: transform .3s ease, box-shadow .3s ease; }
.lf-social__card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); color: #fff; }
.lf-social__card--li { background: #0A66C2; }
.lf-social__card--ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 22%, #dc2743 50%, #cc2366 74%, #bc1888 100%); }
.lf-social__card::after { content: ''; position: absolute; top: -40%; right: -10%; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.12); pointer-events: none; }
.lf-social__icon { font-size: 2.5rem; line-height: 1; position: relative; z-index: 1; }
.lf-social__body { display: flex; flex-direction: column; margin-right: auto; position: relative; z-index: 1; }
.lf-social__net { font-family: var(--font); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.lf-social__handle { opacity: .88; font-size: .95rem; }
.lf-social__cta { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font); font-weight: 700; font-size: .88rem; background: rgba(255,255,255,.2); padding: .5rem .95rem; border-radius: 999px; position: relative; z-index: 1; transition: gap .2s ease, background .2s ease; white-space: nowrap; }
.lf-social__card:hover .lf-social__cta { gap: .7rem; background: rgba(255,255,255,.32); }
@media (max-width: 620px) { .lf-social { grid-template-columns: 1fr; } }

/* ============ CONTACTO ============ */
.lf-cta { background: linear-gradient(150deg, var(--navy), var(--navy-800) 70%, #0a2c5c); color: #fff; position: relative; overflow: hidden; }
.lf-cta__mark { position: absolute; right: -30px; bottom: -55px; width: clamp(200px, 26vw, 340px); height: auto; opacity: .07; pointer-events: none; user-select: none; }
.lf-cta__inner { position: relative; z-index: 1; }
.lf-cta__inner { max-width: 720px; }
.lf-cta .lf-h2 { color: #fff; }
.lf-cta__lead { color: rgba(255,255,255,.75); font-size: 1.15rem; margin: 1rem 0 2rem; max-width: 52ch; }
.lf-cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.lf-cta__mail { font-family: var(--font); }

/* Contacto con formulario (2 columnas) */
.lf-contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 1; }
.lf-contact__intro { max-width: 30rem; }
.lf-contact__mail { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-family: var(--font); font-weight: 600; margin-top: 1.2rem; }
.lf-contact__mail:hover { color: var(--teal); }
.lf-contact__form { background: #fff; border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--sh-lg); }
.lf-contact__form .form-label { font-family: var(--font); font-weight: 600; color: var(--navy); font-size: .88rem; margin-bottom: .35rem; }
.lf-contact__form .form-control, .lf-contact__form .form-select { border-radius: 10px; border: 1px solid var(--border); padding: .7rem .9rem; font-size: .98rem; color: var(--ink); background: var(--gray-50); }
.lf-contact__form .form-control:focus, .lf-contact__form .form-select:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.15); outline: none; }
.lf-contact__form textarea.form-control { min-height: 120px; resize: vertical; }
.lf-contact__form .btn, .lf-contact__form button[type="submit"] { background: var(--blue); border: 1.5px solid var(--blue); color: #fff; border-radius: 10px; font-family: var(--font); font-weight: 600; padding: .8rem 1.7rem; transition: all .22s ease; }
.lf-contact__form .btn:hover, .lf-contact__form button[type="submit"]:hover { background: var(--blue-600); border-color: var(--blue-600); transform: translateY(-2px); }
.lf-contact__form .invalid-feedback, .lf-contact__form .text-danger { color: #dc2626; font-size: .82rem; }
.lf-contact__form .alert-success { background: rgba(20,184,166,.12); border: 1px solid rgba(20,184,166,.4); color: #0f766e; border-radius: 10px; }
@media (max-width: 860px) { .lf-contact { grid-template-columns: 1fr; } .lf-contact__intro { max-width: none; } }

/* ============ FOOTER ============ */
.lf-footer { background: #071528; color: rgba(255,255,255,.72); padding: 3.5rem 0 2rem; }
.lf-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.lf-brand--footer .lf-brand__name { color: #fff; }
.lf-footer__desc { margin: 1rem 0 .3rem; color: rgba(255,255,255,.7); }
.lf-footer__tagline { color: var(--teal); font-family: var(--font); font-weight: 600; margin: 0 0 .8rem; }
.lf-footer__domain { color: rgba(255,255,255,.5); font-size: .9rem; }
.lf-footer__h { font-family: var(--font); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin: 0 0 1rem; }
.lf-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.lf-footer__nav a, .lf-footer__mail { color: rgba(255,255,255,.72); }
.lf-footer__nav a:hover, .lf-footer__mail:hover { color: #fff; }
.lf-footer__mail { display: inline-block; margin-bottom: 1.2rem; }
.lf-footer__social { display: flex; gap: .7rem; }
.lf-footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); color: #fff; font-size: 1.1rem; transition: background .2s; }
.lf-footer__social a:hover { background: var(--blue); }
.lf-footer__bottom { padding-top: 1.5rem; font-size: .85rem; color: rgba(255,255,255,.42); }
.lf-footer__bottom p { margin: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .lf-navtoggle { display: flex; }
  .lf-nav { position: fixed; inset: var(--nav-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--sh-md); padding: 1rem 24px 1.4rem; }
  .lf-nav:not(.show) { display: none; }
  .lf-nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .lf-nav__link { padding: .8rem .6rem; }
  .lf-nav__item--cta { margin: .6rem 0 0; }
  .lf-nav__item--cta .lf-btn { width: 100%; justify-content: center; }

  .lf-hero__grid { grid-template-columns: 1fr; gap: var(--sp-l); }
  .lf-about { grid-template-columns: 1fr; }
  .lf-about__head { grid-column: auto; position: static; }
  .lf-about__body { grid-column: auto; }
  .lf-project--feat { grid-template-columns: 1fr; }
  .lf-projects, .lf-formacion, .lf-posts { grid-template-columns: 1fr; }
  .lf-post--feat { grid-row: auto; }
}
@media (max-width: 620px) {
  .lf-area { grid-template-columns: 56px 1fr; padding: var(--sp-m) var(--sp-s); }
  .lf-area__num { font-size: 1.7rem; }
  .lf-area__icon { display: none; }
  .lf-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .lf-sechead--row { flex-direction: column; align-items: flex-start; }
}

/* ============ BLOG (Publicaciones + detalle) ============ */
.lf-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* Listado / archivo */
.lf-archive-head { padding-bottom: var(--sp-l); }
.lf-archive-head__title { color: var(--navy); margin-top: .8rem; }
.lf-archive-head__desc { color: var(--text-2); font-size: 1.15rem; max-width: 55ch; margin-top: 1rem; }
.lf-posts--grid { grid-template-columns: repeat(3, 1fr); }

/* Chips (categorías / tags) */
.lf-chip { display: inline-block; font-family: var(--font); font-weight: 600; font-size: .8rem; color: var(--blue); background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.18); padding: .32rem .8rem; border-radius: 999px; margin: 0 .35rem .35rem 0; transition: background .2s ease; }
.lf-chip:hover { background: rgba(37,99,235,.15); color: var(--blue-600); }
.lf-chip--soft { color: var(--text-2); background: var(--gray-50); border-color: var(--border); }
.lf-chip--soft:hover { color: var(--navy); }

/* Detalle del post */
.lf-article { padding-bottom: var(--sp-2xl); }
.lf-article__head { padding: var(--sp-xl) 0 var(--sp-l); }
.lf-article__back { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font); font-weight: 600; font-size: .88rem; color: var(--text-2); margin-bottom: 1.4rem; }
.lf-article__back:hover { color: var(--blue); }
.lf-article__cats { margin-bottom: 1.2rem; }
.lf-article__title { color: var(--navy); letter-spacing: -.03em; }
.lf-article__meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; color: var(--text-2); font-size: .92rem; margin-top: 1.3rem; }
.lf-article__meta i { color: var(--blue); }
.lf-dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--border); display: inline-block; }
.lf-article__cover { max-width: 960px; margin: var(--sp-l) auto 0; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); }
.lf-article__cover img { width: 100%; height: 100%; object-fit: cover; }

/* Prosa del post */
.lf-prose { margin-top: var(--sp-xl); font-size: 1.12rem; line-height: 1.8; color: #1f2937; }
.lf-prose > :first-child { margin-top: 0; }
.lf-prose p, .lf-prose ul, .lf-prose ol, .lf-prose blockquote, .lf-prose figure, .lf-prose pre { margin: 0 0 1.35rem; }
.lf-prose h2 { font-family: var(--font); font-weight: 800; font-size: 1.7rem; letter-spacing: -.02em; color: var(--navy); margin: 2.6rem 0 1rem; }
.lf-prose h3 { font-family: var(--font); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; color: var(--navy); margin: 2rem 0 .8rem; }
.lf-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.lf-prose a:hover { color: var(--blue-600); }
.lf-prose ul, .lf-prose ol { padding-left: 1.4rem; }
.lf-prose li { margin: .4rem 0; }
.lf-prose img { border-radius: var(--r-md); display: block; }
.lf-prose blockquote { border-left: 3px solid var(--blue); padding: .2rem 0 .2rem 1.4rem; margin-left: 0; color: var(--text-2); font-style: italic; font-size: 1.2rem; }
.lf-prose code { background: var(--gray-50); border: 1px solid var(--border); border-radius: 6px; padding: .12em .4em; font-size: .9em; }
.lf-prose pre { background: var(--navy); color: #eef2f7; padding: 1.3rem; border-radius: var(--r-md); overflow-x: auto; }
.lf-prose pre code { background: none; border: 0; color: inherit; padding: 0; }

/* Tags, share, author, prev/next */
.lf-article__tags { margin: 2.2rem 0; }
.lf-share { display: flex; align-items: center; gap: .6rem; margin: 2.2rem 0; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.lf-share__label { font-family: var(--font); font-weight: 600; font-size: .85rem; color: var(--text-2); margin-right: .3rem; }
.lf-share a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--gray-50); border: 1px solid var(--border); color: var(--navy); font-size: 1.05rem; transition: all .2s ease; }
.lf-share a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.lf-authorbox { display: flex; gap: 1.2rem; align-items: center; background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.5rem; margin: 2.2rem 0; }
.lf-authorbox__avatar { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: #fff; border: 1px solid var(--border); padding: 7px; }
.lf-authorbox__avatar img { width: 100%; height: 100%; object-fit: contain; }
.lf-authorbox__label { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.lf-authorbox__name { display: block; font-family: var(--font); font-weight: 700; color: var(--navy); font-size: 1.1rem; margin-top: .1rem; }
.lf-authorbox__bio { margin: .2rem 0 0; color: var(--text-2); font-size: .95rem; }
.lf-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0 0; }
.lf-prevnext__item { display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem 1.4rem; border: 1px solid var(--border); border-radius: var(--r-md); transition: border-color .25s ease, transform .25s ease; }
.lf-prevnext__item:hover { border-color: var(--blue); transform: translateY(-2px); }
.lf-prevnext__item--next { text-align: right; }
.lf-prevnext__dir { font-family: var(--font); font-weight: 600; font-size: .8rem; color: var(--blue); }
.lf-prevnext__title { font-family: var(--font); font-weight: 700; color: var(--navy); }
.lf-related { margin-top: var(--sp-2xl); }

@media (max-width: 960px) { .lf-posts--grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .lf-posts--grid { grid-template-columns: 1fr; } .lf-prevnext { grid-template-columns: 1fr; } .lf-prevnext__item--next { text-align: left; } }
