:root {
  --paper: #f3f0ea;
  --paper-2: #ebe7df;
  --ink: #1c1c1a;
  --muted: #76716a;
  --line: rgba(28, 28, 26, .14);
  --accent: #8b6b47;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, sans-serif;
  --label: "TikTok Sans", "Montserrat", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 80px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(40px, 5.5vw, 72px); line-height: 1; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }

/* Etiqueta como la de sus vídeos: solo en la portada */
.tag { display: inline-block; font: 700 16px/1 var(--label); color: #fff; background: rgba(24, 24, 24, .55); backdrop-filter: blur(6px); padding: 8px 12px 9px; border-radius: 9px; }

/* Navegación */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--gutter); color: #fff; transition: background .3s, color .3s, padding .3s; }
.nav.solid { background: rgba(243, 240, 234, .92); backdrop-filter: blur(10px); color: var(--ink); padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.nav-logo { font: 400 26px var(--serif); text-decoration: none; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 13px; letter-spacing: .06em; text-decoration: none; opacity: .85; }
.nav-links a:hover { opacity: 1; }

/* Portada */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 30%, transparent 55%, rgba(0,0,0,.45)); }
.hero-content { position: absolute; left: var(--gutter); bottom: clamp(40px, 9vh, 96px); }
.hero h1 { font-size: clamp(64px, 10vw, 150px); line-height: .95; margin: 18px 0 10px; }
.hero-content p { margin: 0; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }

/* Intro */
.intro { text-align: center; padding: clamp(90px, 13vw, 170px) var(--gutter); max-width: 900px; margin: 0 auto; }
.intro-big { font: italic 400 clamp(40px, 6vw, 76px)/1.05 var(--serif); margin: 0 0 24px; }
.intro-small { color: var(--muted); font-size: 18px; margin: 0 auto 30px; max-width: 560px; }
.social { display: flex; justify-content: center; gap: 28px; }
.social a { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.social a:hover { border-color: var(--ink); }

/* Secciones */
section { scroll-margin-top: 60px; }
.section { padding: clamp(70px, 10vw, 140px) var(--gutter); border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 720px; }
.lead { color: var(--muted); font-size: 18px; margin: 20px 0 0; }

/* Galería */
.gallery { columns: 3 300px; column-gap: 14px; }
.gallery button { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; break-inside: avoid; overflow: hidden; }
.gallery img { width: 100%; height: auto; transition: transform .8s ease, opacity .4s; }
.gallery button:hover img { transform: scale(1.025); }

/* Vídeos */
.feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: 72px; }
.feature h3 { font: 400 clamp(30px, 3.4vw, 46px)/1.08 var(--serif); margin: 8px 0 14px; }
.feature .meta { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: pointer; aspect-ratio: 16/9; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.thumb:hover img { transform: scale(1.03); }
.thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(243,240,234,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%231c1c1a'/%3E%3C/svg%3E") center/26px no-repeat; opacity: 0; transition: opacity .3s; }
.thumb:hover::after, .feature .thumb::after { opacity: 1; }
.dur { position: absolute; right: 8px; bottom: 8px; font: 700 12px var(--label); color: #fff; background: rgba(24,24,24,.6); padding: 3px 7px; border-radius: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 28px; }
.filters button, .suggest button, .link-btn { background: none; border: 0; padding: 4px 0; font: 400 14px var(--sans); color: var(--muted); cursor: pointer; border-bottom: 1px solid transparent; }
.filters button:hover, .suggest button:hover, .link-btn:hover { color: var(--ink); }
.filters button.active { color: var(--ink); border-color: var(--ink); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 22px; }
.card h4 { font: 500 15px/1.4 var(--sans); margin: 12px 0 2px; }
.card .meta { color: var(--muted); font-size: 13px; margin: 0; }
.link-btn { margin-top: 36px; color: var(--ink); border-color: var(--ink); letter-spacing: .06em; }

/* En sus palabras */
.search input { width: 100%; max-width: 720px; background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 12px 0; font: 400 clamp(24px, 3vw, 36px) var(--serif); color: var(--ink); outline: none; border-radius: 0; }
.search input::placeholder { color: #a7a198; }
.suggest { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 16px 0 0; }
.search-meta { color: var(--muted); font-size: 14px; margin: 26px 0 8px; min-height: 1.6em; }
.results { display: grid; max-width: 1000px; }
.result { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.result h4 { font: 400 24px/1.15 var(--serif); margin: 0 0 10px; }
.moment { display: flex; gap: 14px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; padding: 7px 0; color: var(--ink); font: 400 15px/1.55 var(--sans); cursor: pointer; }
.moment:hover span:last-child { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.ts { flex: none; font: 700 12px var(--label); color: #fff; background: rgba(24,24,24,.8); padding: 3px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
mark { background: none; color: var(--accent); font-weight: 500; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(70px, 9vw, 120px); }
.quote { background: none; border: 0; padding: 0; text-align: left; color: var(--ink); cursor: pointer; }
.quote q { display: block; font: italic 400 clamp(22px, 2.2vw, 28px)/1.3 var(--serif); quotes: "“" "”"; }
.quote small { display: block; margin-top: 14px; color: var(--muted); font-size: 13px; }
.quote:hover small { color: var(--ink); }

/* Sobre Fran */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-text { font: 400 clamp(26px, 2.8vw, 38px)/1.25 var(--serif); margin: 0; max-width: 560px; }

/* Contacto */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; max-width: 820px; }
.contact-form label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; font: 400 17px var(--sans); color: var(--ink); outline: none; resize: vertical; border-radius: 0; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.form-actions { display: flex; align-items: center; gap: 20px; }
.btn { background: var(--ink); color: var(--paper); border: 0; padding: 14px 30px; font: 500 14px var(--sans); letter-spacing: .08em; cursor: pointer; }
.btn:hover { background: #000; }
.form-status { font-size: 14px; color: var(--muted); }

/* Pie */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding: 36px var(--gutter); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer .social { justify-content: flex-end; }

/* Modales */
.modal { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; color: #f3f0ea; }
.modal::backdrop { background: rgba(14, 14, 13, .94); }
.modal-close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border: 0; background: none; color: #f3f0ea; font-size: 32px; font-weight: 300; cursor: pointer; }
.player-frame { aspect-ratio: 16/9; background: #000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; }
.player-title { font: 400 24px var(--serif); margin: 14px 0 0; }
.lightbox { max-width: 96vw; width: auto; }
.lightbox img { max-height: 90vh; max-width: 90vw; margin: auto; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; background: none; color: #f3f0ea; font-size: 40px; font-weight: 200; cursor: pointer; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }

/* Aparición */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .feature, .about, .result { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .gallery { columns: 2; column-gap: 8px; }
  .gallery button { margin-bottom: 8px; }
  .footer, .footer .social { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- Redes: protagonistas desde la portada ---------- */
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.net { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(10px); color: #fff; text-decoration: none; font: 500 15px var(--sans); transition: background .2s, color .2s; --hole: #fff; }
.net svg { width: 20px; height: 20px; }
.net:hover { background: #fff; color: var(--ink); --hole: #fff; }
.net:first-child { background: #fff; color: var(--ink); }
.net:first-child:hover { background: rgba(255,255,255,.85); }
.nav { gap: 24px; }
.nav-links { margin-left: auto; }
.nav-icons { display: flex; gap: 16px; padding-left: 24px; border-left: 1px solid currentColor; border-color: rgba(127,127,127,.4); }
.nav-icons a { display: grid; opacity: .9; --hole: #555; }
.nav-icons a:hover { opacity: 1; }
.nav-icons svg { width: 20px; height: 20px; }
.hero-new { position: absolute; right: var(--gutter); bottom: clamp(40px, 9vh, 96px); width: 300px; display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; padding: 10px; background: rgba(20,20,20,.45); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.2); color: #fff; text-decoration: none; border-radius: 10px; }
.hero-new img { width: 112px; aspect-ratio: 16/9; object-fit: cover; border-radius: 5px; }
.hero-new small { display: block; font: 700 11px var(--label); letter-spacing: .02em; opacity: .8; margin-bottom: 3px; }
.hero-new b { display: block; font: 500 13px/1.35 var(--sans); }
.hero-new:hover { background: rgba(20,20,20,.65); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-icons { border-left: 0; padding-left: 0; }
  .hero-new { display: none !important; }
  .net { padding: 10px 16px 10px 13px; font-size: 14px; }
}
/* triángulo del icono de YouTube */
.net svg path[fill^="var"], .nav-icons svg path[fill^="var"] { fill: rgba(0,0,0,.55); }
.net:hover svg path[fill^="var"], .nav.solid .nav-icons svg path[fill^="var"] { fill: var(--paper); }
@media (max-width: 480px) {
  .hero-links { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px; }
  .net { gap: 7px; padding: 9px 13px 9px 11px; font-size: 13px; }
  .net svg { width: 17px; height: 17px; }
}
