/* CacharreoGeek Setup — "Sobre mí" y agradecimiento de "Apoya" (se adapta a los dos temas y al modo claro/oscuro) */
.cga {
	--cga-bg: var(--bg, var(--cg-bg, #FFFFFF));
	--cga-text: var(--text, var(--cg-text, #1D1D1F));
	--cga-muted: var(--text-2, var(--cg-muted, #6E6E73));
	--cga-card: var(--card, var(--cg-surface, #FFFFFF));
	--cga-soft: var(--card-2, var(--cg-surface-2, #F2F2F4));
	--cga-line: var(--line, var(--cg-line, rgba(0, 0, 0, .08)));
	--cga-accent: var(--accent, var(--cg-accent, #0A7EA4));
	--cga-on-accent: var(--on-accent, var(--cg-on-accent, #FFFFFF));
	--cga-shadow: var(--shadow-lg, 0 4px 12px rgba(0, 0, 0, .08), 0 24px 60px rgba(0, 0, 0, .16));
	--cga-font: var(--font, var(--cg-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif));
	--cga-head: var(--cg-head, var(--cga-font));
	--cga-mono: var(--mono, var(--cg-mono, ui-monospace, Menlo, Consolas, monospace));
	--cga-script: "Snell Roundhand", "Segoe Script", "Brush Script MT", "URW Chancery L", cursive;
	color: var(--cga-text);
	font-family: var(--cga-font);
	font-size: 17px;
	line-height: 1.6;
}
.cga *, .cga *::before, .cga *::after { box-sizing: border-box; }
.cga :where(p, h1, h2, h3, dl, dd, ol, ul, figure) { margin: 0; }
.cga a.cga-btn, .cga a.cga-btn:hover { text-decoration: none; }
body:has(.cga-hero) { overflow-x: clip; }

/* Cabecera con la escena detrás */
.cga-hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: -24px; }
.cg-page-full .cga-hero { width: auto; margin-left: 0; margin-top: 0; }
.cga-hero__scene { position: relative; aspect-ratio: 1600 / 760; max-height: 76vh; min-height: 300px; overflow: hidden; background: #0a1322; }
.cga-hero__scene svg { display: block; width: 100%; height: 100%; }
.cga-hero__scene::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; background: linear-gradient(to bottom, transparent, var(--cga-bg)); pointer-events: none; }
.cga-hero__card { position: relative; z-index: 2; max-width: 900px; margin: -170px auto 0; padding: 44px 48px 40px; background: var(--cga-card); border: 1px solid var(--cga-line); border-radius: 30px; box-shadow: var(--cga-shadow); }
.cga-hero--plain .cga-hero__card { margin-top: 40px; }
.cga-kicker { font-family: var(--cga-mono); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cga-accent); }
.cga .cga-title { margin-top: 10px; font-family: var(--cga-head); font-size: clamp(36px, 5.4vw, 64px); line-height: 1.03; letter-spacing: -.035em; font-weight: 700; color: var(--cga-text); }
.cga-lead { margin-top: 18px; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.6; color: var(--cga-muted); }
.cga-person { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.cga-person div strong { display: block; font-size: 17px; }
.cga-person div span { display: block; font-size: 14px; color: var(--cga-muted); }
.cga-person__img { width: 58px; height: 58px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--cga-card), 0 0 0 5px var(--cga-accent); }
.cga-person__img--initial { position: relative; display: grid; place-items: center; background: linear-gradient(135deg, #22d3ee, #6366f1); color: #fff; font-size: 24px; font-weight: 700; }
.cga-person__img--initial svg { position: absolute; right: -6px; bottom: -4px; width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: #ef233c; color: #fff; }
.cga-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 28px; }
.cga-stats > div { display: flex; flex-direction: column-reverse; padding: 16px 18px; border-radius: 18px; background: var(--cga-soft); }
.cga-stats dd { font-family: var(--cga-head); font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--cga-accent); font-variant-numeric: tabular-nums; }
.cga-stats dt { margin-top: 4px; font-size: 13px; color: var(--cga-muted); }

/* Secciones */
.cga-section { max-width: 1120px; margin: 96px auto 0; padding: 0 22px; }
.cga-section--narrow { max-width: 860px; }
.cga .cga-h2 { margin: 0 0 40px; text-align: center; font-family: var(--cga-head); font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; color: var(--cga-text); }

/* Línea del tiempo */
.cga .cga-timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 0; list-style: none; }
.cga-timeline::before { content: ""; position: absolute; left: 19px; top: 30px; bottom: 30px; width: 2px; border-radius: 2px; background: linear-gradient(var(--cga-accent), rgba(167, 139, 250, .8), rgba(244, 114, 182, .5)); }
.cga .cga-step { position: relative; margin: 0 0 22px 52px; padding: 22px 26px; border-radius: 22px; background: var(--cga-card); border: 1px solid var(--cga-line); }
.cga-step:last-child { margin-bottom: 0; }
.cga-step__dot { position: absolute; left: -41px; top: 26px; width: 18px; height: 18px; border-radius: 50%; background: var(--cga-card); border: 4px solid var(--cga-accent); }
.cga-step--first .cga-step__dot { border-color: #ef233c; background: #ef233c; box-shadow: 0 0 0 0 rgba(239, 35, 60, .5); animation: cga-rec 2s ease-out infinite; }
@keyframes cga-rec { 0% { box-shadow: 0 0 0 0 rgba(239, 35, 60, .5); } 100% { box-shadow: 0 0 0 14px rgba(239, 35, 60, 0); } }
.cga-step__date { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--cga-soft); font-family: var(--cga-mono); font-size: 13px; font-weight: 600; color: var(--cga-accent); }
.cga-step--first .cga-step__date { background: rgba(239, 35, 60, .12); color: #e11d48; }
.cga .cga-step__title { margin: 10px 0 6px; font-family: var(--cga-head); font-size: 22px; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; color: var(--cga-text); }
.cga-step__text { color: var(--cga-muted); font-size: 17px; }

/* Ficha técnica */
.cga-spec { position: relative; overflow: hidden; border-radius: 24px; background: #0b1220; color: #e2e8f0; font-family: var(--cga-mono); box-shadow: var(--cga-shadow); }
.cga-spec__bar { display: flex; align-items: center; gap: 7px; padding: 13px 18px; background: #111a2e; border-bottom: 1px solid #1e293b; }
.cga-spec__bar span { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
.cga-spec__bar span:nth-child(2) { background: #f59e0b; }
.cga-spec__bar span:nth-child(3) { background: #22c55e; }
.cga-spec__bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: #64748b; }
.cga .cga-spec__title { padding: 24px 28px 6px; font-family: var(--cga-mono); font-size: 18px; font-weight: 700; letter-spacing: 0; color: #22d3ee; }
.cga-spec__title::before { content: "$ cat "; color: #64748b; font-weight: 400; }
.cga-spec dl { padding: 10px 28px 26px; }
.cga-spec dl > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px dashed #1e293b; }
.cga-spec dl > div:last-child { border-bottom: 0; }
.cga-spec dt { color: #4ade80; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.cga-spec dd { color: #f1f5f9; font-size: 15px; }

/* Proyectos */
.cga-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.cga-proj { display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: var(--cga-card); border: 1px solid var(--cga-line); box-shadow: var(--cga-shadow); }
.cga-proj__media { display: grid; place-items: center; height: 220px; padding: 18px; background: radial-gradient(circle at 30% 20%, #fde68a 0, transparent 45%), linear-gradient(135deg, #f97316, #db2777); }
.cga-proj--2 .cga-proj__media { background: radial-gradient(circle at 70% 20%, #67e8f9 0, transparent 45%), linear-gradient(135deg, #0e7490, #312e81); }
.cga-proj__art { width: 100%; max-width: 300px; height: auto; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .3)); }
.cga-proj__body { display: flex; flex-direction: column; flex: 1; padding: 28px 30px 30px; }
.cga-proj__tag { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--cga-soft); font-size: 13px; font-weight: 600; color: var(--cga-accent); }
.cga .cga-proj__title { margin: 14px 0 8px; font-family: var(--cga-head); font-size: 30px; line-height: 1.1; letter-spacing: -.03em; font-weight: 700; color: var(--cga-text); }
.cga-proj__text { color: var(--cga-muted); }
.cga .cga-proj__points { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; padding: 0; list-style: none; }
.cga .cga-proj__points li { margin: 0; padding: 6px 12px 6px 30px; border-radius: 999px; border: 1px solid var(--cga-line); font-size: 14px; position: relative; }
.cga-proj__points li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 11px; height: 6px; margin-top: -5px; border-left: 2px solid var(--cga-accent); border-bottom: 2px solid var(--cga-accent); transform: rotate(-45deg); }
.cga-proj .cga-btn { margin-top: auto; align-self: flex-start; }
.cga-reel { transform-box: fill-box; transform-origin: center; animation: cga-spin 2.6s linear infinite; }
@keyframes cga-spin { to { transform: rotate(360deg); } }
.cga-eq { transform-box: fill-box; transform-origin: 50% 100%; animation: cga-eq .8s ease-in-out infinite alternate; }
@keyframes cga-eq { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.cga-swing { transform-box: fill-box; transform-origin: 50% 0; animation: cga-swing 3s ease-in-out infinite; }
@keyframes cga-swing { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }

/* Botones */
.cga a.cga-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--cga-accent); color: var(--cga-on-accent); font-size: 16px; font-weight: 600; transition: transform .2s, opacity .2s; }
.cga a.cga-btn:hover { opacity: .9; color: var(--cga-on-accent); }
.cga a.cga-btn--ghost { background: transparent; color: var(--cga-text); box-shadow: inset 0 0 0 1.5px var(--cga-line); }
.cga a.cga-btn--ghost:hover { color: var(--cga-accent); box-shadow: inset 0 0 0 1.5px var(--cga-accent); }
.cga a.cga-btn--love { background: linear-gradient(135deg, #ec4899, #f43f5e); color: #fff; }
.cga a.cga-btn--love:hover { color: #fff; }
.cga-btn svg { width: 17px; height: 17px; }
@media (hover: hover) { .cga a.cga-btn:hover { transform: translateY(-1px); } }

/* Cierre */
.cga-cta { margin-bottom: 40px; padding: 48px 40px; text-align: center; border-radius: 30px; background: linear-gradient(var(--cga-card), var(--cga-card)) padding-box, linear-gradient(135deg, #22d3ee, #a78bfa, #f472b6) border-box; border: 2px solid transparent; }
.cga .cga-cta__title { font-family: var(--cga-head); font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.1; font-weight: 700; color: var(--cga-text); }
.cga-cta__text { max-width: 620px; margin: 14px auto 0; color: var(--cga-muted); }
.cga-cta__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }

/* Agradecimiento en "Apoya" */
.cga-thanks { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; align-items: center; max-width: 1180px; margin: 8px auto 48px; }
.cga-thanks--plain { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.cga-frame { position: relative; }
.cga-frame svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .28)); }
.cga-frame figcaption { margin-top: 14px; text-align: center; font-size: 15px; font-style: italic; color: var(--cga-muted); }
@media (min-width: 900px) {
	.cga-thanks:not(.cga-thanks--plain) { align-items: start; }
	.cga-frame { position: sticky; top: 110px; }
}
@media (min-width: 900px) and (hover: hover) {
	.cga-frame svg { transform: rotate(-1.4deg); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
	.cga-frame:hover svg { transform: rotate(0) scale(1.01); }
}
.cga-letter { position: relative; padding: 42px 42px 36px; border-radius: 26px; background: var(--cga-card); border: 1px solid var(--cga-line); box-shadow: var(--cga-shadow); }
.cga-letter::before { content: ""; position: absolute; left: 42px; right: 42px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #22d3ee, #a78bfa, #f472b6); }
.cga .cga-letter__title { margin: 10px 0 18px; font-family: var(--cga-head); font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; color: var(--cga-text); }
.cga .cga-letter p { margin: 0 0 1em; font-size: 18px; line-height: 1.7; }
.cga .cga-letter p.cga-kicker { margin: 0; font-size: 13px; }
.cga-letter__first::first-letter { float: left; margin: 6px 10px 0 0; font-family: var(--cga-head); font-size: 58px; line-height: .85; font-weight: 700; color: var(--cga-accent); }
.cga .cga-letter p.cga-letter__sign { margin: 22px 0 0; text-align: right; font-family: var(--cga-script); font-size: 30px; line-height: 1.2; color: var(--cga-accent); }

@media (max-width: 899px) {
	.cga-thanks { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.cga-projects { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
	.cga-hero__scene { aspect-ratio: auto; height: 300px; max-height: none; }
	.cga-hero__card { margin: -56px 14px 0; padding: 28px 22px 24px; border-radius: 24px; }
	.cga-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cga-stats > div { padding: 14px; }
	.cga-stats dd { font-size: 26px; }
	.cga-section { margin-top: 64px; padding: 0 14px; }
	.cga .cga-h2 { margin-bottom: 28px; }
	.cga .cga-step { margin-left: 34px; padding: 18px; }
	.cga-timeline::before { left: 8px; }
	.cga-step__dot { left: -34px; }
	.cga-spec dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.cga-spec dl, .cga .cga-spec__title { padding-left: 20px; padding-right: 20px; }
	.cga-proj__media { height: 180px; }
	.cga-proj__body { padding: 22px 20px 24px; }
	.cga-cta { padding: 34px 20px; }
	.cga-letter { padding: 32px 22px 26px; }
	.cga-letter::before { left: 22px; right: 22px; }
	.cga .cga-letter p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	.cga *, .cga *::before { animation: none !important; transition: none !important; }
}

/* Comunidad: equipo de directos y Telegram */
.cga .cga-sub { max-width: 640px; margin: -22px auto 34px; text-align: center; font-size: 18px; color: var(--cga-muted); }
.cga-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: stretch; }
.cga-mate { display: flex; gap: 18px; align-items: flex-start; padding: 26px; border-radius: 26px; background: var(--cga-card); border: 1px solid var(--cga-line); box-shadow: var(--cga-shadow); }
.cga-mate__av { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: #fff; font-size: 28px; font-weight: 800; }
.cga-mate__av svg { position: absolute; right: -8px; bottom: -8px; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: #ef233c; color: #fff; box-shadow: 0 0 0 3px var(--cga-card); }
.cga .cga-mate__name { font-family: var(--cga-head); font-size: 22px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; color: var(--cga-text); }
.cga-mate__role { display: inline-block; margin-top: 4px !important; padding: 2px 10px; border-radius: 999px; background: rgba(239, 35, 60, .12); color: #e11d48; font-family: var(--cga-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cga-mate__text { margin-top: 10px !important; color: var(--cga-muted); font-size: 16px; }
.cga-tg { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 26px; border-radius: 26px; background: linear-gradient(150deg, #2aabee, #1e6fb8 70%, #1b4f8f); color: #fff; box-shadow: var(--cga-shadow); }
.cga-tg__icon { position: absolute; right: -14px; top: -14px; width: 120px; height: 120px; opacity: .9; }
.cga-tg__chat { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; max-width: 78%; }
.cga-tg__chat span { align-self: flex-start; padding: 7px 12px; border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, .95); color: #0f172a; font-size: 13px; line-height: 1.35; animation: cga-pop .5s both; }
.cga-tg__chat span.is-me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #d9fdd3; animation-delay: .5s; }
.cga-tg__chat span:nth-child(3) { animation-delay: 1s; }
@keyframes cga-pop { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
.cga .cga-tg__title { font-family: var(--cga-head); font-size: 24px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; color: #fff; }
.cga-tg__text { margin: 8px 0 20px !important; color: rgba(255, 255, 255, .88); font-size: 16px; }
.cga a.cga-btn--tg { margin-top: auto; align-self: flex-start; background: #fff; color: #1e6fb8; }
.cga a.cga-btn--tg:hover { color: #1e6fb8; }
@media (max-width: 680px) { .cga .cga-sub { margin-top: -14px; font-size: 17px; } .cga-mate, .cga-tg { padding: 22px 20px; } }
.cga .cga-cta__title, .cga .cga-tg__title, .cga .cga-mate__name, .cga .cga-spec__title { margin-top: 0; margin-bottom: 0; }
.cga .cga-spec__title { padding-top: 24px; }
