/* ==========================================================================
   The Turtle Code · landing (TVBGN Productions)
   Todo va dentro de body.ttc-page para no interferir con el resto de la web.
   ========================================================================== */

@font-face {
	font-family: "TTC Fraunces";
	src: url("../fonts/fraunces-latin.woff2") format("woff2-variations"), url("../fonts/fraunces-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "TTC Figtree";
	src: url("../fonts/figtree-latin.woff2") format("woff2-variations"), url("../fonts/figtree-latin.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "TTC Figtree";
	src: url("../fonts/figtree-latin-italic.woff2") format("woff2-variations"), url("../fonts/figtree-latin-italic.woff2") format("woff2");
	font-weight: 300 900;
	font-style: italic;
	font-display: swap;
}

:root {
	--ttc-bg: #0c181a;
	--ttc-bg-2: #0f2023;
	--ttc-hero-end: #0f3a3b;
	--ttc-ink: #f1ebdf;
	--ttc-ink-2: #d9dfdc;
	--ttc-muted: #9fb0ad;
	--ttc-accent: #47e3d1;
	--ttc-accent-ink: #062523;
	--ttc-olive: #a7b66e;
	--ttc-line: rgba(241, 235, 223, 0.14);
	--ttc-line-strong: rgba(241, 235, 223, 0.24);
	--ttc-heading: var(--ttc-ink);
	--ttc-accent-text: var(--ttc-accent);
	--ttc-accent-hover: #6ff0e1;
	--ttc-olive-line: rgba(167, 182, 110, .55);
	--ttc-ghost-bg: rgba(12, 24, 26, .35);
	--ttc-header-bg: rgba(12, 24, 26, .82);
	--ttc-panel-bg: rgba(12, 24, 26, .97);
	--ttc-chip-bg: rgba(241, 235, 223, .03);
	--ttc-hero-bg: linear-gradient(180deg, #0b1517 0%, #0c1d1f 45%, var(--ttc-hero-end) 100%);
	--ttc-colabora-bg: radial-gradient(90% 70% at 15% 100%, rgba(15, 58, 59, .55) 0%, transparent 70%);
	--ttc-player-bg: radial-gradient(120% 90% at 50% 100%, #12403f 0%, var(--ttc-bg-2) 60%);
	--ttc-chrome-bg: #071012; /* franja y pie TVBGN */
	--ttc-particles: 92, 236, 214;
	--ttc-particles-alpha: 1;
	--ttc-serif: "TTC Fraunces", "Iowan Old Style", Georgia, serif;
	--ttc-sans: "TTC Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--ttc-gutter: clamp(1rem, 4vw, 2.5rem);
	--ttc-header-h: 72px;
	--ttc-section-y: clamp(4.5rem, 10vw, 8.5rem);
}

/* ---------- Reset acotado ---------- */
html.ttc-html { scroll-behavior: smooth; background: var(--ttc-bg); }
body.ttc-page {
	margin: 0;
	background: var(--ttc-bg);
	color: var(--ttc-ink);
	font-family: var(--ttc-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
/* :where() deja la especificidad a 0, así los componentes siempre ganan al reset */
:where(body.ttc-page) *,
:where(body.ttc-page) *::before,
:where(body.ttc-page) *::after { box-sizing: border-box; }
:where(body.ttc-page) :where(h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; padding: 0; }
:where(body.ttc-page) :where(ul, ol) { list-style: none; }
:where(body.ttc-page) :where(img) { display: block; max-width: 100%; height: auto; border: 0; }
:where(body.ttc-page) :where(a) { color: inherit; text-decoration: none; }
:where(body.ttc-page) :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
body.ttc-page :focus-visible { outline: 2px solid var(--ttc-accent); outline-offset: 3px; border-radius: 4px; }
body.ttc-page ::selection { background: var(--ttc-accent); color: var(--ttc-accent-ink); }

.ttc-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--ttc-gutter); }

.ttc-skip {
	position: absolute; left: 1rem; top: -100px; z-index: 100;
	background: var(--ttc-accent); color: var(--ttc-accent-ink) !important;
	padding: .6rem 1rem; border-radius: 999px; font-weight: 600;
}
.ttc-skip:focus { top: 1rem; }

/* ---------- Tipografía ---------- */
.ttc-h2 {
	font-family: var(--ttc-serif);
	font-weight: 340;
	font-variation-settings: "opsz" 96;
	font-size: clamp(2.3rem, 5.2vw, 3.75rem);
	line-height: 1.08;
	letter-spacing: -0.015em;
	color: var(--ttc-heading);
	max-width: 15ch;
}
.ttc-h2--narrow { max-width: 13ch; }
.ttc-h3 {
	font-family: var(--ttc-serif);
	font-weight: 400;
	font-variation-settings: "opsz" 48;
	font-size: clamp(1.4rem, 2.2vw, 1.7rem);
	line-height: 1.2;
	color: var(--ttc-heading);
	margin-bottom: .45rem !important;
}
.ttc-lead {
	margin-top: clamp(1.25rem, 2.5vw, 2rem) !important;
	max-width: 38ch;
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	font-weight: 450;
	line-height: 1.6;
	color: var(--ttc-ink);
}
.ttc-body { margin-top: 1.25rem !important; max-width: 62ch; color: var(--ttc-ink-2); font-size: 1rem; line-height: 1.7; }
.ttc-partners {
	display: flex; flex-wrap: wrap; gap: .6rem;
	margin-top: clamp(1.75rem, 3vw, 2.5rem) !important;
}
.ttc-partners li {
	padding: .55rem 1rem; border-radius: 999px;
	border: 1px solid var(--ttc-line);
	background: var(--ttc-chip-bg);
	font-size: .92rem; color: var(--ttc-ink-2);
}
.ttc-note { margin-top: 1.5rem !important; color: var(--ttc-muted); font-size: .95rem; max-width: 60ch; }

/* ---------- Botones ---------- */
.ttc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 52px; padding: .8rem 1.5rem;
	border-radius: 999px;
	font-family: var(--ttc-sans); font-size: 1rem; font-weight: 600; line-height: 1;
	white-space: nowrap;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.ttc-btn--sm { min-height: 46px; padding: .7rem 1.4rem; }
.ttc-btn--primary { background: var(--ttc-accent); color: var(--ttc-accent-ink) !important; }
.ttc-btn--primary:hover { background: var(--ttc-accent-hover); transform: translateY(-1px); }
.ttc-btn--ghost { border: 1px solid var(--ttc-line-strong); color: var(--ttc-ink) !important; background: var(--ttc-ghost-bg); }
.ttc-btn--ghost:hover { border-color: var(--ttc-accent); color: var(--ttc-accent-text) !important; }
.ttc-btn--pending { border: 1px dashed var(--ttc-olive); color: var(--ttc-olive); font-weight: 500; cursor: help; }

/* ---------- Franja TVBGN ---------- */
.ttc-brandbar {
	position: relative; z-index: 31;
	background: var(--ttc-chrome-bg);
	border-bottom: 1px solid var(--ttc-line);
	font-size: .82rem;
	color: var(--ttc-muted);
}
.ttc-brandbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 1rem; }
.ttc-brandbar__home { display: inline-flex; align-items: center; gap: .6rem; }
.ttc-brandbar__logo { height: 26px; width: auto; opacity: .95; }
.ttc-brandbar__label { letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; color: var(--ttc-muted); }
.ttc-brandbar__link { transition: color .2s; }
.ttc-brandbar__link:hover, .ttc-brandbar__home:hover .ttc-brandbar__label { color: var(--ttc-accent); }
.ttc-wordmark { font-family: var(--ttc-sans); font-weight: 700; letter-spacing: .04em; color: var(--ttc-ink); height: auto !important; }

/* ---------- Cabecera ---------- */
.ttc-header {
	position: sticky; top: 0; z-index: 30;
	height: var(--ttc-header-h);
	transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
	border-bottom: 1px solid transparent;
}
body.admin-bar .ttc-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ttc-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .ttc-header { top: 0; } }
.ttc-header.is-scrolled {
	background: var(--ttc-header-bg);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	border-bottom-color: var(--ttc-line);
}
.ttc-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ttc-header__title {
	font-family: var(--ttc-serif); font-weight: 650; font-variation-settings: "opsz" 24;
	font-size: 1.15rem; letter-spacing: -.005em; color: var(--ttc-ink);
}
.ttc-header__title { display: inline-flex; align-items: center; }
.ttc-header__logo { height: 44px; width: auto; }
@media (max-width: 760px) { .ttc-header__logo { height: 36px; } }
.ttc-nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); }
.ttc-nav__list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.6rem); }
.ttc-nav__list a { color: var(--ttc-ink-2); font-size: .98rem; transition: color .2s; }
.ttc-nav__list a:hover { color: var(--ttc-accent-text); }
.ttc-nav__toggle { display: none; }

@media (max-width: 760px) {
	.ttc-nav__toggle {
		display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem;
		border: 1px solid var(--ttc-line-strong); border-radius: 999px; font-size: .92rem; font-weight: 500;
	}
	.ttc-nav__list {
		position: absolute; top: calc(100% + 1px); left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: .5rem var(--ttc-gutter) 1rem;
		background: var(--ttc-panel-bg);
		border-bottom: 1px solid var(--ttc-line);
		visibility: hidden; opacity: 0; transform: translateY(-6px);
		transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
	}
	.ttc-nav__list a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--ttc-line); font-size: 1.05rem; }
	.ttc-nav__list li:last-child a { border-bottom: 0; }
	.ttc-nav.is-open .ttc-nav__list { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.ttc-header:has(.ttc-nav.is-open) { background: var(--ttc-panel-bg); }
	.ttc-header__title { font-size: 1.02rem; }
}
@media (max-width: 380px) { .ttc-nav .ttc-btn--sm { padding-inline: 1rem; } }

/* ---------- Portada ---------- */
.ttc-hero {
	position: relative;
	margin-top: calc(var(--ttc-header-h) * -1);
	min-height: calc(100vh - 48px);
	min-height: calc(100svh - 48px);
	display: flex; align-items: flex-end;
	padding: calc(var(--ttc-header-h) + 4rem) 0 clamp(4rem, 11vh, 7.5rem);
	background: var(--ttc-hero-bg);
	overflow: hidden;
	isolation: isolate;
}
.ttc-hero::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--ttc-line);
}
.ttc-hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.ttc-hero__kicker {
	margin-bottom: clamp(1rem, 2vw, 1.5rem) !important;
	font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--ttc-accent-text);
	max-width: 56ch;
}
.ttc-hero__title {
	font-family: var(--ttc-serif);
	font-weight: 300;
	font-variation-settings: "opsz" 144;
	font-size: clamp(3.4rem, 10.5vw, 8.4rem);
	line-height: .95;
	letter-spacing: -.035em;
	color: var(--ttc-heading);
	margin-left: -.04em !important;
}
.ttc-hero__tagline {
	margin-top: clamp(1.5rem, 3vw, 2.25rem) !important;
	max-width: 27ch;
	font-family: var(--ttc-serif);
	font-weight: 380;
	font-variation-settings: "opsz" 28;
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
	line-height: 1.55;
	color: var(--ttc-ink);
}
.ttc-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.75rem, 3vw, 2.25rem); }
.ttc-hero__meta { margin-top: 1.75rem !important; font-size: .92rem; color: var(--ttc-muted); }

/* ---------- Secciones ---------- */
.ttc-section { padding: var(--ttc-section-y) 0; scroll-margin-top: calc(var(--ttc-header-h) - 1px); }
.ttc-section + .ttc-section { padding-top: 0; }
#historia { padding-top: var(--ttc-section-y); }

/* Cifras */
.ttc-stats {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem;
	margin-top: clamp(2.5rem, 5vw, 3.75rem) !important;
	padding-top: clamp(1.75rem, 3vw, 2.25rem) !important;
	border-top: 1px solid var(--ttc-line);
}
.ttc-stat__num {
	font-family: var(--ttc-serif); font-weight: 300; font-variation-settings: "opsz" 120;
	font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.02em;
	color: var(--ttc-accent-text);
}
.ttc-stat__label { margin-top: .6rem !important; font-size: .95rem; color: var(--ttc-ink-2); }
@media (max-width: 820px) { .ttc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Reproductor */
.ttc-player {
	position: relative; display: block; width: 100%;
	margin-top: clamp(2rem, 4vw, 3rem);
	aspect-ratio: 16 / 9;
	border-radius: 6px; overflow: hidden;
	background: var(--ttc-player-bg);
	border: 1px solid var(--ttc-line);
}
.ttc-player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ttc-player:hover img { transform: scale(1.02); }
.ttc-player__play {
	position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%);
	border-radius: 50%; background: var(--ttc-accent);
	box-shadow: 0 0 0 10px rgba(71, 227, 209, .18), 0 10px 40px rgba(0, 0, 0, .35);
	transition: transform .2s ease;
}
.ttc-player__play::after {
	content: ""; position: absolute; left: 53%; top: 50%; transform: translate(-50%, -50%);
	border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--ttc-accent-ink);
}
.ttc-player:hover .ttc-player__play { transform: translate(-50%, -50%) scale(1.06); }
.ttc-player iframe, .ttc-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Calendario */
.ttc-timeline { margin-top: clamp(2.5rem, 5vw, 3.5rem) !important; border-top: 1px solid var(--ttc-line); }
.ttc-phase {
	display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem 2.5rem;
	padding: 2rem 0; border-bottom: 1px solid var(--ttc-line);
}
.ttc-phase__date { color: var(--ttc-accent-text); font-size: .95rem; padding-top: .35rem; }
.ttc-phase.is-next .ttc-phase__date { color: var(--ttc-olive); }
.ttc-phase__body p { color: var(--ttc-ink-2); max-width: 62ch; }
.ttc-tag {
	display: inline-block; margin-top: .9rem;
	padding: .3rem .8rem; border-radius: 999px;
	border: 1px solid var(--ttc-line-strong);
	font-size: .8rem; color: var(--ttc-ink-2);
}
.ttc-tag--proximo { border-color: var(--ttc-olive-line); color: var(--ttc-olive); }
@media (max-width: 640px) {
	.ttc-phase { grid-template-columns: 1fr; gap: .35rem; padding: 1.6rem 0; }
	.ttc-phase__date { padding-top: 0; }
}

/* Galería */
.ttc-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.ttc-gallery__item { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--ttc-bg-2); }
.ttc-gallery__item.is-main { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.ttc-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.ttc-gallery__item figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .85rem;
	background: linear-gradient(transparent, rgba(6, 14, 15, .75));
	font-size: .88rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
@media (max-width: 640px) {
	.ttc-gallery { grid-template-columns: 1fr 1fr; gap: .6rem; }
	.ttc-gallery__item.is-main { aspect-ratio: 4 / 3; }
	.ttc-gallery__item:not(.is-main):last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

/* Voces */
.ttc-voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2.5rem 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.ttc-voice__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; margin-bottom: 1.1rem; filter: saturate(.9); }
.ttc-voice__quote { font-family: var(--ttc-serif); font-weight: 380; font-size: 1.25rem; line-height: 1.4; margin-bottom: 1rem !important; }
.ttc-voice__name { font-weight: 600; }
.ttc-voice__role { color: var(--ttc-muted); font-size: .92rem; }

/* Canales */
.ttc-channels { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: clamp(2rem, 4vw, 2.75rem) !important; }
.ttc-channel {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 60px; padding: .9rem 1.6rem;
	border: 1px solid var(--ttc-line-strong); border-radius: 4px;
	font-weight: 650; font-size: 1.02rem; color: var(--ttc-ink);
}
.ttc-channel img { max-height: 32px; width: auto; }

/* Columnas (equipo, colabora) */
.ttc-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2.5rem; margin-top: clamp(1.75rem, 3vw, 2.25rem); }
.ttc-col p { color: var(--ttc-ink-2); font-size: .98rem; line-height: 1.65; }
.ttc-col em { font-style: italic; }
.ttc-col a:not(.ttc-btn) { color: var(--ttc-ink); border-bottom: 1px solid var(--ttc-line-strong); transition: color .2s, border-color .2s; }
.ttc-col a:not(.ttc-btn):hover { color: var(--ttc-accent-text); border-color: var(--ttc-accent); }
.ttc-col .ttc-btn { margin-top: 1.4rem; }
.ttc-cols--ruled { margin-top: clamp(2.5rem, 5vw, 3.25rem); padding-top: clamp(2rem, 4vw, 2.5rem); border-top: 1px solid var(--ttc-line); }
@media (max-width: 820px) { .ttc-cols { grid-template-columns: 1fr; gap: 2.25rem; } }

.ttc-section--colabora {
	background: var(--ttc-colabora-bg);
	padding-top: var(--ttc-section-y) !important;
}

/* ---------- Pie TVBGN ---------- */
.ttc-footer { background: var(--ttc-chrome-bg); border-top: 1px solid var(--ttc-line); color: var(--ttc-muted); font-size: .93rem; }
.ttc-footer__inner {
	display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem;
	padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: 2.5rem;
}
.ttc-footer__logo { height: 42px; width: auto; margin-bottom: 1.25rem; }
.ttc-footer__brand p { max-width: 44ch; line-height: 1.65; }
.ttc-footer__brand em { color: var(--ttc-ink); font-style: italic; }
.ttc-footer a { transition: color .2s; }
.ttc-footer a:hover { color: var(--ttc-accent); }
.ttc-footer__brand p a { color: var(--ttc-ink); }
.ttc-footer__more { display: inline-block; margin-top: 1.1rem; color: var(--ttc-ink); font-weight: 600; }
.ttc-footer__heading { color: var(--ttc-ink); font-weight: 600; margin-bottom: .75rem !important; letter-spacing: .02em; }
.ttc-footer__sedes { margin-top: .75rem !important; font-size: .85rem; }
.ttc-footer__social li + li { margin-top: .35rem; }
.ttc-footer__legal {
	display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	padding-top: 1.25rem; padding-bottom: 1.5rem; border-top: 1px solid var(--ttc-line); font-size: .82rem;
}
@media (max-width: 820px) { .ttc-footer__inner { grid-template-columns: 1fr 1fr; } .ttc-footer__brand { grid-column: 1 / -1; } }

/* ---------- Modal del teaser ---------- */
.ttc-modal {
	width: min(1100px, 94vw); max-width: none; padding: 0; border: 0; border-radius: 8px;
	background: #000; color: var(--ttc-ink); overflow: visible;
}
.ttc-modal::backdrop { background: rgba(4, 10, 11, .88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ttc-modal__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; }
.ttc-modal__close {
	position: absolute; right: 0; top: -52px; width: 44px; height: 44px; border-radius: 50%;
	font-size: 1.8rem !important; line-height: 1; color: #f1ebdf !important; border: 1px solid rgba(241, 235, 223, .3) !important;
}
.ttc-modal__close:hover { color: var(--ttc-accent) !important; border-color: var(--ttc-accent) !important; }

/* ---------- Huecos pendientes (solo editores) ---------- */
.ttc-ph {
	display: flex; align-items: center; justify-content: center; text-align: center;
	min-height: 160px; padding: 1.5rem; margin-top: 2rem;
	border: 1px dashed rgba(167, 182, 110, .6); border-radius: 6px;
	background: repeating-linear-gradient(135deg, rgba(167, 182, 110, .05) 0 12px, transparent 12px 24px);
	color: var(--ttc-olive); font-size: .9rem;
}
.ttc-ph--video { aspect-ratio: 16 / 9; }
.ttc-gallery .ttc-ph { margin-top: 0; min-height: 0; }
.ttc-editor-note {
	position: fixed; left: 1rem; bottom: 1rem; z-index: 50; max-width: 340px;
	padding: .75rem 1rem; border-radius: 8px;
	background: #1d2a12; border: 1px solid rgba(167, 182, 110, .6); color: #dfe8bd; font-size: .8rem; line-height: 1.45;
}
.ttc-editor-note code { font-size: .78rem; color: #fff; }

/* ---------- H1 de portada (antetítulo + título) ---------- */
.ttc-hero__h1 { margin: 0; font-weight: inherit; }
.ttc-hero__h1 .ttc-hero__kicker,
.ttc-hero__h1 .ttc-hero__title { display: block; }

/* ---------- Texto enriquecido: negritas y enlaces dentro del texto ---------- */
body.ttc-page strong { font-weight: 650; color: var(--ttc-ink); }
.ttc-lead a, .ttc-body a, .ttc-note a, .ttc-phase__body a, .ttc-faq__a a {
	color: var(--ttc-ink);
	text-decoration: underline;
	text-decoration-color: var(--ttc-accent);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	transition: color .2s, text-decoration-color .2s;
}
.ttc-lead a:hover, .ttc-body a:hover, .ttc-note a:hover, .ttc-phase__body a:hover, .ttc-faq__a a:hover { color: var(--ttc-accent-text); }
.ttc-col a:not(.ttc-btn) { border-bottom-color: var(--ttc-accent); }
.ttc-body + .ttc-body { margin-top: 1rem !important; }
.ttc-role {
	margin: -.2rem 0 .7rem !important;
	font-size: .78rem !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	color: var(--ttc-accent-text) !important;
}

/* ---------- Canales: tarjetas claras para que los logos se vean en su color ---------- */
.ttc-channel {
	background: #f6f2e7; color: #2c2f17; border-color: transparent;
	min-width: 170px; min-height: 76px;
}
.ttc-channel img { max-height: 40px; max-width: 150px; width: auto; height: auto; }

/* ---------- Patrocinadores y colaboradores ---------- */
.ttc-label {
	margin-top: clamp(2rem, 4vw, 2.75rem) !important; margin-bottom: 1rem !important;
	font-family: var(--ttc-sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--ttc-accent-text);
}
.ttc-sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .85rem; }
.ttc-sponsor {
	display: flex; align-items: center; justify-content: center; text-align: center;
	min-height: 104px; padding: 1rem 1.25rem; border-radius: 6px;
	background: #fffdf8; border: 1px solid var(--ttc-line);
	font-family: var(--ttc-serif); font-weight: 420; font-variation-settings: "opsz" 24;
	font-size: 1.08rem; line-height: 1.25; color: var(--ttc-heading);
}
.ttc-sponsor img { max-height: 58px; max-width: 100%; width: auto; height: auto; }
.ttc-sponsor.has-logo { grid-column: span 2; }
@media (max-width: 520px) { .ttc-sponsors { grid-template-columns: 1fr 1fr; } .ttc-sponsor { min-height: 88px; font-size: .98rem; } .ttc-sponsor.has-logo { grid-column: 1 / -1; } }
.ttc-partners { margin-top: 0 !important; }
.ttc-partners li.has-logo { display: inline-flex; align-items: center; padding-block: .3rem; }
.ttc-partners li.has-logo img { height: 30px; width: auto; }

/* ---------- Preguntas frecuentes ---------- */
.ttc-faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .ttc-faq-wrap { grid-template-columns: 1fr; } }
.ttc-faq { border-top: 1px solid var(--ttc-line); }
.ttc-faq__item { border-bottom: 1px solid var(--ttc-line); }
.ttc-faq__q {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1.25rem 0; cursor: pointer; list-style: none;
}
.ttc-faq__q::-webkit-details-marker { display: none; }
.ttc-faq__q h3 {
	margin: 0; font-family: var(--ttc-serif); font-weight: 420; font-variation-settings: "opsz" 36;
	font-size: clamp(1.12rem, 1.8vw, 1.3rem); line-height: 1.3; color: var(--ttc-heading);
}
.ttc-faq__q::after {
	content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--ttc-line-strong); color: var(--ttc-accent-text); font-size: 1.2rem; line-height: 1;
	transition: transform .2s ease;
}
.ttc-faq__item[open] > .ttc-faq__q::after { content: "−"; }
.ttc-faq__q:hover h3 { color: var(--ttc-accent-text); }
.ttc-faq__a { padding: 0 3rem 1.4rem 0; color: var(--ttc-ink-2); max-width: 62ch; line-height: 1.7; }

/* ==========================================================================
   TEMA CLARO · colores del logo (verde azulado #52afa9 y oliva #54582d)
   Se activa con 'tema' => 'claro' en config.php
   ========================================================================== */
body.ttc-theme-claro {
	--ttc-bg: #f6f2e7;            /* arena clara */
	--ttc-bg-2: #ebe5d3;
	--ttc-ink: #2c2f17;           /* oliva muy oscuro para el texto */
	--ttc-ink-2: #4b4e33;
	--ttc-muted: #686b4f;
	--ttc-heading: #54582d;       /* oliva del logo */
	--ttc-accent: #52afa9;        /* verde azulado del logo */
	--ttc-accent-ink: #0d2c29;
	--ttc-accent-text: #23736d;   /* verde azulado oscurecido para textos pequeños */
	--ttc-accent-hover: #63bdb7;
	--ttc-olive: #54582d;
	--ttc-olive-line: rgba(84, 88, 45, .45);
	--ttc-line: rgba(84, 88, 45, .16);
	--ttc-line-strong: rgba(84, 88, 45, .3);
	--ttc-ghost-bg: rgba(255, 255, 255, .55);
	--ttc-header-bg: rgba(246, 242, 231, .9);
	--ttc-panel-bg: rgba(246, 242, 231, .98);
	--ttc-chip-bg: rgba(255, 255, 255, .6);
	--ttc-hero-bg: linear-gradient(180deg, #f6f2e7 0%, #eff0e3 45%, #d6ebe4 100%);
	--ttc-colabora-bg: radial-gradient(90% 70% at 15% 100%, rgba(82, 175, 169, .16) 0%, transparent 70%);
	--ttc-player-bg: radial-gradient(120% 90% at 50% 100%, #cfe7e1 0%, var(--ttc-bg-2) 60%);
	--ttc-chrome-bg: #2e3119;     /* oliva profundo para la firma TVBGN */
	--ttc-particles: 82, 175, 169;
	--ttc-particles-alpha: 1;
}
html.ttc-html:has(body.ttc-theme-claro) { background: #f6f2e7; }
/* Franja y pie TVBGN: siguen oscuros para que el logo blanco de TVBGN se vea bien */
body.ttc-theme-claro .ttc-brandbar,
body.ttc-theme-claro .ttc-footer {
	--ttc-ink: #f1ebdf;
	--ttc-ink-2: #dedcc8;
	--ttc-muted: #b4b69a;
	--ttc-accent: #7fcbc5;
	--ttc-accent-text: #7fcbc5;
	--ttc-line: rgba(241, 235, 223, .14);
	color: var(--ttc-muted);
}
/* Secciones alternas con un tono arena más intenso */
body.ttc-theme-claro #viaje,
body.ttc-theme-claro #apoyos {
	background: var(--ttc-bg-2);
	padding-top: var(--ttc-section-y);
}
body.ttc-theme-claro #viaje + .ttc-section,
body.ttc-theme-claro #apoyos + .ttc-section { padding-top: var(--ttc-section-y); }
body.ttc-theme-claro #apoyos .ttc-partners li { background: rgba(255, 255, 255, .7); }
body.ttc-theme-claro .ttc-gallery__item { box-shadow: 0 12px 30px -18px rgba(44, 47, 23, .45); }
body.ttc-theme-claro .ttc-channel { background: rgba(255, 255, 255, .55); }
body.ttc-theme-claro .ttc-section--colabora { border-top: 1px solid var(--ttc-line); }
body.ttc-theme-claro .ttc-editor-note { background: #fbfaf3; color: #3d4120; }
body.ttc-theme-claro .ttc-editor-note code { color: #23736d; }

/* ==========================================================================
   TEMA MEDIO · término medio entre el oscuro y el claro
   Verde marino profundo (de la familia del verde azulado del logo) con texto crema.
   Se activa con 'tema' => 'medio' en config.php
   ========================================================================== */
body.ttc-theme-medio {
	--ttc-bg: #2b4543;            /* verde marino profundo */
	--ttc-bg-2: #34524f;          /* un punto más claro para secciones alternas */
	--ttc-hero-end: #436b66;
	--ttc-ink: #f4efe2;           /* crema */
	--ttc-ink-2: #dce3dd;
	--ttc-muted: #b3c4bf;
	--ttc-heading: #f4efe2;
	--ttc-accent: #52afa9;        /* verde azulado del logo (botones) */
	--ttc-accent-ink: #0d2c29;
	--ttc-accent-text: #92ddd5;   /* verde azulado aclarado para textos pequeños */
	--ttc-accent-hover: #67c2bc;
	--ttc-olive: #c8d08f;         /* oliva del logo aclarado */
	--ttc-olive-line: rgba(200, 208, 143, .55);
	--ttc-line: rgba(244, 239, 226, .16);
	--ttc-line-strong: rgba(244, 239, 226, .28);
	--ttc-ghost-bg: rgba(255, 255, 255, .06);
	--ttc-header-bg: rgba(43, 69, 67, .88);
	--ttc-panel-bg: rgba(43, 69, 67, .98);
	--ttc-chip-bg: rgba(244, 239, 226, .06);
	--ttc-hero-bg: linear-gradient(180deg, #284140 0%, #2f4c49 45%, var(--ttc-hero-end) 100%);
	--ttc-colabora-bg: radial-gradient(90% 70% at 15% 100%, rgba(82, 175, 169, .22) 0%, transparent 70%);
	--ttc-player-bg: radial-gradient(120% 90% at 50% 100%, #4a7a75 0%, var(--ttc-bg-2) 60%);
	--ttc-chrome-bg: #1d302f;     /* franja y pie TVBGN, un tono más hondo */
	--ttc-particles: 146, 221, 213;
	--ttc-particles-alpha: .9;
}
html.ttc-html:has(body.ttc-theme-medio) { background: #2b4543; }
/* Secciones de contraste en arena clara con los colores del logo (oliva y verde azulado).
   Para cambiar qué secciones van en claro, añade o quita su id en las dos listas. */
body.ttc-theme-medio #viaje,
body.ttc-theme-medio #apoyos {
	--ttc-bg-2: #ebe5d3;
	--ttc-ink: #2c2f17;
	--ttc-ink-2: #4b4e33;
	--ttc-muted: #686b4f;
	--ttc-heading: #54582d;
	--ttc-accent-text: #23736d;
	--ttc-olive: #54582d;
	--ttc-olive-line: rgba(84, 88, 45, .45);
	--ttc-line: rgba(84, 88, 45, .18);
	--ttc-line-strong: rgba(84, 88, 45, .32);
	--ttc-chip-bg: rgba(255, 255, 255, .7);
	background: #f3eee0;
	color: var(--ttc-ink);
	padding-top: var(--ttc-section-y);
}
body.ttc-theme-medio #viaje + .ttc-section,
body.ttc-theme-medio #apoyos + .ttc-section { padding-top: var(--ttc-section-y); }
body.ttc-theme-medio #apoyos .ttc-partners li { border-color: rgba(82, 175, 169, .45); }
body.ttc-theme-medio .ttc-gallery__item { box-shadow: 0 14px 34px -20px rgba(8, 20, 19, .7); }
body.ttc-theme-medio .ttc-section--colabora { border-top: 1px solid var(--ttc-line); }
body.ttc-theme-medio .ttc-player__play { box-shadow: 0 0 0 10px rgba(82, 175, 169, .22), 0 10px 40px rgba(0, 0, 0, .3); }

/* ==========================================================================
   v1.6 · Más visual: foto de portada, secciones con imagen, fases con foto,
   galería en mosaico y visor de fotos
   ========================================================================== */

/* Portada con foto de fondo */
.ttc-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -3; }
.ttc-hero.has-image::before {
	content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(24, 41, 40, .9) 0%, rgba(24, 41, 40, .62) 42%, rgba(24, 41, 40, .12) 100%),
		linear-gradient(0deg, var(--ttc-bg) 0%, rgba(43, 69, 67, 0) 38%);
}
body.ttc-theme-claro .ttc-hero.has-image::before {
	background:
		linear-gradient(90deg, rgba(246, 242, 231, .94) 0%, rgba(246, 242, 231, .7) 45%, rgba(246, 242, 231, .1) 100%),
		linear-gradient(0deg, var(--ttc-bg) 0%, rgba(246, 242, 231, 0) 38%);
}
.ttc-hero.has-image .ttc-hero__title, .ttc-hero.has-image .ttc-hero__tagline { text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
@media (max-width: 760px) {
	.ttc-hero__bg { object-position: 30% center; }
	.ttc-hero.has-image::before {
		background: linear-gradient(0deg, var(--ttc-bg) 0%, rgba(24, 41, 40, .78) 45%, rgba(24, 41, 40, .45) 100%);
	}
}

/* Texto + imagen en dos columnas */
.ttc-split.has-image {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
	gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.ttc-split--reverse.has-image { grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); }
.ttc-split--reverse .ttc-split__media { order: -1; }
.ttc-split .ttc-lead, .ttc-split .ttc-body { max-width: none; }
.ttc-split__media img {
	width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px;
	box-shadow: 0 24px 50px -28px rgba(5, 14, 13, .75);
}
.ttc-split--reverse .ttc-split__media img { aspect-ratio: 5 / 6; }
.ttc-justify { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 860px) {
	.ttc-split.has-image, .ttc-split--reverse.has-image { grid-template-columns: 1fr; }
	.ttc-split--reverse .ttc-split__media { order: 0; }
	.ttc-split__media img, .ttc-split--reverse .ttc-split__media img { aspect-ratio: 4 / 3; }
}
#legado { padding-top: var(--ttc-section-y); background: var(--ttc-bg-2); }
#legado .ttc-h2 { max-width: 16ch; margin-bottom: 1.5rem !important; }
#legado .ttc-body:first-of-type { margin-top: 0 !important; }

/* Fases del viaje con foto */
.ttc-phase.has-image { grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 300px); align-items: start; }
.ttc-phase__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 14px 30px -20px rgba(44, 47, 23, .55); }
@media (max-width: 960px) {
	.ttc-phase.has-image { grid-template-columns: 9rem minmax(0, 1fr); }
	.ttc-phase.has-image .ttc-phase__media { grid-column: 2; max-width: 420px; }
}
@media (max-width: 640px) {
	.ttc-phase.has-image { grid-template-columns: 1fr; }
	.ttc-phase.has-image .ttc-phase__media { grid-column: 1; max-width: none; margin-top: .6rem; }
}

/* Galería en mosaico */
.ttc-gallery {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: clamp(150px, 17vw, 220px);
	grid-auto-flow: dense;
	gap: .75rem;
}
.ttc-gallery .ttc-gallery__item { aspect-ratio: auto; grid-column: auto; }
.ttc-gallery .ttc-gallery__item.is-wide { grid-column: span 2; }
.ttc-gallery .ttc-gallery__item.is-tall { grid-row: span 2; }
.ttc-gallery__item a { display: block; height: 100%; cursor: zoom-in; }
.ttc-gallery__item img { transition: transform .6s ease; }
.ttc-gallery__item a:hover img { transform: scale(1.04); }
.ttc-gallery__item figcaption { pointer-events: none; }
@media (max-width: 640px) {
	.ttc-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: .5rem; }
	.ttc-gallery .ttc-gallery__item:not(.is-main):last-child:nth-child(even) { grid-column: auto; aspect-ratio: auto; }
	.ttc-gallery__item figcaption { font-size: .78rem; padding: 1.75rem .6rem .5rem; }
}

/* Visor de fotos */
.ttc-lightbox {
	width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
	background: rgba(6, 14, 14, .95); color: #f4efe2;
}
.ttc-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.ttc-lightbox::backdrop { background: rgba(6, 14, 14, .95); }
.ttc-lightbox__figure { margin: 0; max-width: 92vw; text-align: center; }
.ttc-lightbox__figure img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; object-fit: contain; border-radius: 4px; margin: 0 auto; }
.ttc-lightbox__figure figcaption { margin-top: .9rem; font-size: .95rem; color: #dce3dd; }
.ttc-lightbox__close, .ttc-lightbox__nav {
	position: absolute; display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 50%;
	border: 1px solid rgba(244, 239, 226, .3) !important; color: #f4efe2 !important;
	background: rgba(6, 14, 14, .5) !important; font-size: 1.9rem !important; line-height: 1;
}
.ttc-lightbox__close { top: 1rem; right: 1rem; }
.ttc-lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.ttc-lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.ttc-lightbox__close:hover, .ttc-lightbox__nav:hover { border-color: var(--ttc-accent) !important; color: var(--ttc-accent) !important; }
@media (max-width: 640px) { .ttc-lightbox__nav { top: auto; bottom: 1.25rem; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	html.ttc-html { scroll-behavior: auto; }
	body.ttc-page * { transition: none !important; }
}

/* Canales en móvil: rejilla de dos columnas */
@media (max-width: 520px) {
	.ttc-channels { display: grid; grid-template-columns: 1fr 1fr; }
	.ttc-channel { min-width: 0; padding-inline: .75rem; text-align: center; }
	.ttc-channel:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.ttc-closing { margin-top: clamp(2rem, 4vw, 3rem) !important; max-width: 46ch; font-family: var(--ttc-serif); font-weight: 380; font-size: clamp(1.2rem, 2vw, 1.45rem); color: var(--ttc-heading); }

/* ---------- Ajuste óptico: Surf Channel es un logo redondo y se veía pequeño ---------- */
.ttc-channel img[src*="surf-channel"] { max-height: 58px; margin: -9px 0; }

/* ---------- Colaboradores con logo: rejilla de tarjetas claras, como los patrocinadores pero más pequeñas ---------- */
.ttc-partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
.ttc-partners li {
	display: flex; align-items: center; justify-content: center; text-align: center;
	min-height: 92px; padding: .8rem 1rem; border-radius: 6px;
	background: #fffdf8; line-height: 1.3;
}
.ttc-partners li.has-logo { display: flex; padding-block: .8rem; }
.ttc-partners li.has-logo img { width: auto; height: auto; max-width: 100%; max-height: 56px; }
@media (max-width: 520px) {
	.ttc-partners { grid-template-columns: 1fr 1fr; gap: .55rem; }
	.ttc-partners li { min-height: 80px; font-size: .86rem; }
	.ttc-partners li.has-logo img { max-height: 46px; }
}
/* Sansa es un logo muy apaisado: tarjeta doble para que no quede diminuto */
.ttc-partners li:has(img[src*="sansa"]) { grid-column: span 2; }
.ttc-partners li img[src*="sansa"] { max-height: 34px; }

/* Sección del vídeo: más aire encima del título */
#playa { padding-top: clamp(2.5rem, 5vw, 4.5rem); }

/* Vídeo sin portada: el primer fotograma del propio vídeo hace de portada */
.ttc-player__play { z-index: 2; }
.ttc-player.is-playing .ttc-player__play { display: none; }
.ttc-player iframe.ttc-player__preview { z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.ttc-player.has-frame iframe.ttc-player__preview { opacity: 1; }

/* ---------- Canales con enlace: toda la tarjeta es clicable ---------- */
.ttc-channel.has-link { position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.ttc-channel.has-link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.ttc-channel__link { display: inline-flex; align-items: center; justify-content: center; color: inherit; text-decoration: none; }
.ttc-channel__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ttc-channel__link:focus-visible { outline: none; }
.ttc-channel.has-link:focus-within { outline: 2px solid #52afa9; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	.ttc-channel.has-link { transition: none; }
	.ttc-channel.has-link:hover { transform: none; }
}
