/*
Theme Name: GRS Portfolio
Text Domain: grs-portfolio
Version: 1.1.0
Requires at least: 6.6
Description: Tema de CV y portfolio de Gonzalo de Ramón. Montserrat, fondo blanco y banda amarilla #F6B400→#FFD866, acento #D98E00.
Author: Gonzalo de Ramón
WPVibe: yes
Update URI: false
*/

:root {
	--grs-ink: #1c1c1b;
	--grs-text: #3b3b3b;
	--grs-mute: #77736c;
	--grs-accent: #d98e00;
	--grs-accent-ink: #9a6200;
	--grs-y1: #f6b400;
	--grs-y2: #ffd866;
	--grs-line: rgba(28, 28, 27, .12);
	--grs-shadow: 0 10px 30px rgba(0, 0, 0, .07);
	--grs-shadow-img: 0 18px 44px rgba(0, 0, 0, .16);
	--grs-band: linear-gradient(180deg, var(--grs-y1) 0%, var(--grs-y2) 100%);
	--grs-ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; font-feature-settings: "kern" 1, "liga" 1; text-rendering: optimizeLegibility; }
.wp-site-blocks { position: relative; z-index: 1; }
p, li { max-width: 68ch; }
.has-text-align-center { margin-inline: auto; }
::selection { background: var(--grs-y2); color: var(--grs-ink); }
a { text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--grs-accent-ink); outline-offset: 3px; }
h1 strong, h2 strong { font-weight: 600; }
h1 em, h2 em { font-style: italic; font-weight: 300; color: var(--grs-accent); }
.grs-line { padding-bottom: .04em; }

/* Banda amarilla del CV en el borde derecho */
body::after {
	content: ""; position: fixed; top: 0; right: 0; bottom: 0; width: 10px;
	background: var(--grs-band); z-index: 60; pointer-events: none;
}
@media (min-width: 1100px) { body::after { width: 14px; } }

/* ---------- Fondo vivo y grano ---------- */
.grs-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.grs-grain {
	position: fixed; inset: -50%; z-index: 55; pointer-events: none; opacity: .06;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) {
	.grs-grain { animation: grs-grain 1.2s steps(6) infinite; }
	@keyframes grs-grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
}
body { background: #fff; }
.wp-site-blocks > main, .grs-main { background: transparent; }

/* ---------- Cabecera ---------- */
.grs-header {
	position: sticky; top: 0; z-index: 40;
	background: rgba(255, 255, 255, .72);
	-webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
	box-shadow: 0 1px 0 var(--grs-line);
	transition: padding .5s var(--grs-ease), transform .6s var(--grs-ease), background .4s ease, box-shadow .4s ease;
}
.grs-header.is-scrolled { padding-top: .55rem !important; padding-bottom: .55rem !important; background: rgba(255, 255, 255, .88); box-shadow: 0 8px 30px rgba(0,0,0,.05); }
.grs-header.is-hidden { transform: translateY(-110%); }
body.admin-bar .grs-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .grs-header { top: 0; } }
.grs-brand { margin: 0; font-size: 1rem; letter-spacing: -.01em; }
.grs-brand a { text-decoration: none; color: var(--grs-ink); font-weight: 300; }
.grs-brand strong { font-weight: 600; }
.grs-header .wp-block-navigation { font-size: .8125rem !important; font-weight: 500 !important; letter-spacing: .06em; text-transform: uppercase; }
.grs-header .wp-block-navigation a { text-decoration: none; position: relative; }
.grs-header .wp-block-navigation-item:not(.grs-nav-cta) > a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--grs-ink);
	transform: scaleX(0); transform-origin: right; transition: transform .5s var(--grs-ease);
}
.grs-header .wp-block-navigation-item:not(.grs-nav-cta) > a:hover::after { transform: scaleX(1); transform-origin: left; }
.grs-nav-cta > a { background: var(--grs-y1); border-radius: 999px; padding: .6rem 1.15rem !important; font-weight: 600; display: inline-block; }
.grs-nav-cta > a:hover { background: var(--grs-y2); }

/* ---------- Utilidades de texto ---------- */
.grs-kicker {
	font-size: .75rem !important; font-weight: 600; letter-spacing: .2em; line-height: 1.4;
	text-transform: uppercase; color: var(--grs-accent-ink); margin-bottom: .9rem !important;
	display: flex; align-items: center; gap: .7rem;
}
.grs-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.has-text-align-center.grs-kicker { justify-content: center; }
.grs-lead { font-size: clamp(1.15rem, 1.5vw, 1.45rem) !important; font-weight: 300; line-height: 1.55; color: var(--grs-ink); letter-spacing: -.005em; }
.grs-tools { font-size: .8125rem; font-weight: 500; letter-spacing: .02em; color: var(--grs-mute); }
.grs-tools::before { content: "Herramientas — "; color: var(--grs-accent-ink); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; }
.grs-note { font-size: .875rem; color: var(--grs-mute); }
.grs-num { font-size: .75rem; font-weight: 600; letter-spacing: .2em; color: var(--grs-accent-ink); font-variant-numeric: tabular-nums; }
.grs-small-h { font-size: .72rem !important; font-weight: 600 !important; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 .3rem !important; color: var(--grs-ink); }
.grs-small-h + p { margin-top: 0; margin-bottom: 1.2rem; color: var(--grs-ink); font-weight: 300; }

/* ---------- Cabecera de página ---------- */
.grs-page-head h1 { font-size: var(--wp--preset--font-size--xx-large) !important; }

/* ---------- Portada ---------- */
.grs-hero { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--60); }
.grs-ycol { background: var(--grs-band); text-align: center; box-shadow: 0 30px 60px rgba(217, 142, 0, .22); }
.grs-ycol .wp-block-image img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.grs-ycol h1 { font-weight: 200; font-size: clamp(2.2rem, 3.4vw, 3.2rem) !important; margin-bottom: .35rem; line-height: 1; }
.grs-role { font-weight: 600; font-size: clamp(1.05rem, 1.3vw, 1.3rem); line-height: 1.3; color: var(--grs-ink); letter-spacing: -.005em; }
.grs-role span { display: block; font-weight: 300; font-size: .85em; }
.grs-hero h2 { font-size: clamp(2.2rem, 4.4vw, 4.4rem) !important; font-weight: 200; letter-spacing: -.03em; text-wrap: balance; }

/* ---------- Tarjetas ---------- */
.grs-card { background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: var(--grs-shadow); height: 100%; transition: box-shadow .5s var(--grs-ease); will-change: transform; }
.grs-card:hover { box-shadow: 0 22px 50px rgba(0,0,0,.11); }
.grs-card h3 { font-size: 1.25rem !important; font-weight: 500; }
.grs-band-block { background: var(--grs-band) !important; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--grs-ink); border: 0; box-shadow: inset 0 0 0 1px rgba(28,28,27,.3); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--grs-ink); color: #fff; box-shadow: none; }
.wp-block-button__link { transition: background-color .35s ease, color .35s ease, box-shadow .35s ease; }

/* ---------- Secciones ---------- */
.grs-section + .grs-section { border-top: 1px solid var(--grs-line); }
.grs-sticky { position: sticky; top: 110px; }
@media (max-width: 781px) { .grs-sticky { position: static; } }

/* ---------- Experiencia ---------- */
.grs-job { background: rgba(255,255,255,.86); box-shadow: var(--grs-shadow); display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1.5rem; }
.grs-job.is-main { box-shadow: inset 4px 0 0 var(--grs-y1), var(--grs-shadow); }
.grs-job .grs-when { color: var(--grs-accent-ink); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; margin: 0; padding-top: .35rem; }
.grs-job h3 { margin: 0 0 .15rem; font-size: 1.3rem !important; font-weight: 400; letter-spacing: -.015em; }
.grs-job .grs-org { color: var(--grs-mute); font-size: .9rem; margin: 0 0 .8rem; }
.grs-job ul { margin: 0; padding-left: 1.1rem; }
.grs-job li { margin-bottom: .35rem; }
.grs-job li::marker { color: var(--grs-accent); }
.grs-job > div > p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .grs-job { grid-template-columns: 1fr; gap: .3rem; } }

/* ---------- Galerías e imágenes ---------- */
.wp-block-gallery.grs-gallery .wp-block-image { overflow: hidden; box-shadow: var(--grs-shadow-img); transform-style: preserve-3d; will-change: transform; }
.wp-block-gallery.grs-gallery .wp-block-image img { transition: filter .6s ease; }
.wp-block-gallery.grs-gallery .wp-block-image:hover img { filter: saturate(1.08) contrast(1.03); }
.wp-block-gallery.grs-gallery figcaption {
	background: rgba(255,255,255,.94) !important; color: var(--grs-ink) !important;
	font-family: inherit; font-size: .75rem; font-weight: 500; letter-spacing: .02em; text-shadow: none;
	padding: .5rem .85rem !important; width: auto !important; left: 0; right: auto; bottom: 0; max-height: none;
	transform: translateY(100%); transition: transform .5s var(--grs-ease);
}
.wp-block-gallery.grs-gallery .wp-block-image:hover figcaption, .wp-block-gallery.grs-gallery .wp-block-image:focus-within figcaption { transform: none; }
@media (hover: none) { .wp-block-gallery.grs-gallery figcaption { transform: none; } }
.wp-block-gallery.grs-gallery.is-cropped .wp-block-image img { aspect-ratio: 16 / 10; height: auto; }
.wp-block-gallery.grs-gallery.columns-6 .wp-block-image img { aspect-ratio: 16 / 9; }
.wp-block-gallery.grs-gallery.grs-hero-first > .wp-block-image:first-child { width: 100% !important; flex-basis: 100% !important; }
.wp-block-gallery.grs-gallery.grs-hero-first > .wp-block-image:first-child img { aspect-ratio: 16 / 8; }
@media (max-width: 600px) {
	.wp-block-gallery.grs-gallery.columns-4 > .wp-block-image, .wp-block-gallery.grs-gallery.columns-6 > .wp-block-image { width: calc(50% - .45rem) !important; }
}
.grs-shot { overflow: hidden; will-change: transform; }
.grs-shot img { box-shadow: var(--grs-shadow-img); }
.grs-feature .grs-shot { margin-bottom: 1.2rem; }
.grs-feature .grs-shot img { width: 100%; transition: transform 1.2s var(--grs-ease); }
.grs-feature:hover .grs-shot img { transform: scale(1.04); }
.grs-feature h3 a { text-decoration: none; }
.grs-feature h3 a::after { content: " →"; color: var(--grs-accent); display: inline-block; transition: transform .5s var(--grs-ease); }
.grs-feature:hover h3 a::after { transform: translateX(.35rem); }
.grs-feature .grs-kicker { margin-bottom: .25rem !important; }

/* ---------- Vídeos ---------- */
.grs-yt { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; max-width: none; }
.grs-yt li { margin: 0; max-width: none; }
.grs-yt a {
	display: flex; align-items: center; gap: .9rem; height: 100%; box-sizing: border-box;
	padding: .95rem 1.1rem; background: rgba(255,255,255,.88); box-shadow: var(--grs-shadow);
	text-decoration: none; font-weight: 500; font-size: .92rem; line-height: 1.35;
	transition: transform .5s var(--grs-ease), box-shadow .5s var(--grs-ease);
}
.grs-yt a::before { content: "▶"; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; background: var(--grs-y1); color: var(--grs-ink); transition: transform .5s var(--grs-ease); }
.grs-yt a:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.1); color: var(--grs-ink); }
.grs-yt a:hover::before { transform: scale(1.12); }
.grs-video video { box-shadow: 0 20px 50px rgba(0,0,0,.2); width: 100%; }

/* ---------- Índice de proyectos ---------- */
.grs-index { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .5rem; max-width: none; }
.grs-index li { margin: 0; }
.grs-index a { display: inline-block; padding: .5rem 1rem; border-radius: 999px; background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px rgba(28,28,27,.16); text-decoration: none; font-size: .8rem; font-weight: 500; letter-spacing: .02em; transition: background .3s, box-shadow .3s; }
.grs-index a:hover { background: var(--grs-y1); box-shadow: none; color: var(--grs-ink); }
[id] { scroll-margin-top: 100px; }

/* ---------- Pie ---------- */
.grs-footer { position: relative; z-index: 2; }
.grs-footer h2 { font-size: clamp(2.8rem, 6.5vw, 6rem) !important; font-weight: 200 !important; letter-spacing: -.04em; margin-bottom: .5rem; }
.grs-footer a { color: var(--grs-ink); }
.grs-footer-links { font-size: 1.1rem; font-weight: 400; line-height: 1.9; }
.grs-copy { margin-top: var(--wp--preset--spacing--50) !important; opacity: .7; letter-spacing: .02em; }
@media (max-width: 781px) { .grs-footer-links { text-align: left !important; } }

/* ---------- Cortina de transición ---------- */
.grs-curtain {
	position: fixed; inset: 0; z-index: 9000; pointer-events: none;
	background: var(--grs-band); transform: scaleY(0); transform-origin: 50% 100%;
	display: grid; place-items: center;
}
html.grs-entering .grs-curtain { transform: scaleY(1); }
.grs-curtain__mark { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 200; letter-spacing: -.04em; color: var(--grs-ink); }
.grs-curtain__mark b { font-weight: 600; }

/* ---------- Cursor propio ---------- */
/* Selector de idioma: botón plegado, siempre visible arriba a la derecha */
.grs-lang { position: fixed; top: 14px; right: clamp(12px, 2vw, 24px); z-index: 60; font-size: .75rem; font-weight: 600; letter-spacing: .08em; }
body.admin-bar .grs-lang { top: 46px; }
@media (max-width: 782px) { body.admin-bar .grs-lang { top: 60px; } }
.grs-lang__toggle {
	display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .7rem .5rem .55rem; border: 0; border-radius: 999px;
	background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	box-shadow: 0 6px 20px -10px rgba(60,40,0,.35), 0 0 0 1px rgba(28,28,27,.08); color: var(--grs-ink); font: inherit; letter-spacing: inherit;
	transition: box-shadow .3s, background .3s;
}
.grs-lang__toggle:hover { background: #fff; box-shadow: 0 10px 26px -12px rgba(60,40,0,.45), 0 0 0 1px rgba(217,142,0,.45); }
.grs-lang .grs-flag { display: inline-block; width: 20px; height: 14px; border-radius: 3px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.grs-lang .grs-flag svg { width: 100%; height: 100%; display: block; }
.grs-lang__chev { width: 9px; height: 6px; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.grs-lang[data-open="true"] .grs-lang__chev { transform: rotate(180deg); }
.grs-lang__list {
	list-style: none; margin: .45rem 0 0; padding: .35rem; position: absolute; right: 0; top: 100%; min-width: 9.5rem;
	background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 14px;
	box-shadow: 0 18px 40px -18px rgba(60,40,0,.4), 0 0 0 1px rgba(28,28,27,.06);
	opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
	transition: opacity .25s, transform .35s cubic-bezier(.16,1,.3,1), visibility 0s .35s;
}
.grs-lang[data-open="true"] .grs-lang__list { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .35s cubic-bezier(.16,1,.3,1); }
.grs-lang__list button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .65rem; border: 0; border-radius: 9px; background: none; color: var(--grs-ink); font: inherit; font-weight: 500; letter-spacing: .02em; text-align: left; }
.grs-lang__list button:hover, .grs-lang__list button:focus-visible { background: rgba(246,180,0,.14); }
.grs-lang__list button[aria-current="true"] { font-weight: 700; }
.grs-lang__list button[aria-current="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grs-y1); margin-left: auto; }
body .wp-block-group.grs-header { padding-right: calc(var(--wp--style--root--padding-right, 0px) + 78px) !important; }
@media (min-width: 1500px) { body .wp-block-group.grs-header { padding-right: var(--wp--style--root--padding-right, 0px) !important; } }

.grs-cursor { position: fixed; left: 0; top: 0; z-index: 10050; pointer-events: none; opacity: 0; transition: opacity .3s; display: none; }
html.grs-has-cursor .grs-cursor { display: block; }
.grs-cursor.is-visible { opacity: 1; }
html.grs-has-cursor, html.grs-has-cursor a, html.grs-has-cursor button, html.grs-has-cursor label { cursor: none; }
html.grs-has-cursor input, html.grs-has-cursor textarea, html.grs-has-cursor [contenteditable] { cursor: auto; }
.grs-cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--grs-ink); }
.grs-cursor__ring {
	position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
	border: 1px solid rgba(28,28,27,.45); display: grid; place-items: center;
	transition: width .45s var(--grs-ease), height .45s var(--grs-ease), margin .45s var(--grs-ease), background .35s, border-color .35s;
}
.grs-cursor.is-link .grs-cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(246,180,0,.28); border-color: transparent; }
.grs-cursor.is-label .grs-cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--grs-y1); border-color: transparent; }
.grs-cursor.is-label .grs-cursor__dot, .grs-cursor.is-link .grs-cursor__dot { opacity: 0; }
.grs-cursor.is-down .grs-cursor__ring { transform: scale(.85); }
.grs-cursor__label { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--grs-ink); opacity: 0; transition: opacity .3s; }
.grs-cursor.is-label .grs-cursor__label { opacity: 1; }

/* ---------- Interruptor de sonido ---------- */
.grs-sound {
	position: fixed; left: clamp(1rem, 2vw, 1.75rem); bottom: clamp(1rem, 2vw, 1.75rem); z-index: 70;
	display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .95rem .55rem .8rem;
	border: 0; border-radius: 999px; background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	box-shadow: inset 0 0 0 1px rgba(28,28,27,.12), 0 8px 24px rgba(0,0,0,.06);
	font: 600 .68rem/1 Montserrat, system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--grs-ink);
}
.grs-sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.grs-sound__bars i { width: 2px; height: 3px; background: var(--grs-ink); border-radius: 1px; transition: height .3s; }
html.grs-sound-on .grs-sound__bars i { animation: grs-eq 1s ease-in-out infinite; }
html.grs-sound-on .grs-sound__bars i:nth-child(2) { animation-delay: -.3s; }
html.grs-sound-on .grs-sound__bars i:nth-child(3) { animation-delay: -.6s; }
html.grs-sound-on .grs-sound__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes grs-eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.grs-sound__label::after { content: " · off"; color: var(--grs-mute); }
html.grs-sound-on .grs-sound__label::after { content: " · on"; color: var(--grs-accent-ink); }

/* ---------- Bienvenida (primera visita) ---------- */
body.grs-locked { overflow: hidden; }
.grs-welcome { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 1.25rem; overflow-y: auto; }
.grs-welcome[hidden] { display: none; }
.grs-welcome__veil { position: fixed; inset: 0; background: rgba(14, 13, 12, .8); -webkit-backdrop-filter: blur(10px) saturate(.7); backdrop-filter: blur(10px) saturate(.7); opacity: 0; }
.grs-welcome.is-open .grs-welcome__veil { opacity: 1; }
.grs-welcome__card {
	position: relative; overflow: hidden; width: min(600px, 100%);
	background: #fff; color: var(--grs-text); padding: clamp(2rem, 5vw, 3.2rem) clamp(1.5rem, 5vw, 3.2rem) clamp(1.6rem, 4vw, 2.4rem);
	box-shadow: 0 50px 120px rgba(0,0,0,.5);
}
.grs-welcome__band { position: absolute; top: 0; right: 0; bottom: 0; width: 12px; background: var(--grs-band); transform-origin: top; }
.grs-welcome__kicker { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--grs-accent-ink); margin: 0 0 1.1rem; }
.grs-welcome__title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 200; letter-spacing: -.035em; line-height: 1.02; color: var(--grs-ink); margin: 0 0 1rem; }
.grs-welcome__text { font-size: 1rem; font-weight: 300; line-height: 1.6; margin: 0 0 1rem; color: var(--grs-ink); }
.grs-welcome__thanks { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .15rem; }
.grs-welcome__thanks li { font-size: .88rem; font-weight: 300; font-style: italic; color: var(--grs-mute); }
.grs-welcome__ask { font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--grs-ink); margin: 0 0 .8rem; }
.grs-welcome__langs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.grs-welcome__langs button {
	font: 500 .95rem/1 Montserrat, system-ui, sans-serif; color: var(--grs-ink); cursor: pointer;
	display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 0; border-radius: 999px; background: #fff;
	box-shadow: inset 0 0 0 1px rgba(28,28,27,.16); transition: background .35s ease, box-shadow .35s ease;
}
.grs-welcome__langs button:hover, .grs-welcome__langs button:focus-visible { background: var(--grs-y1); box-shadow: 0 12px 26px rgba(217,142,0,.28); outline: 0; }
.grs-flag { width: 28px; height: 19px; flex: none; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08); display: block; }
.grs-flag svg { width: 100%; height: 100%; display: block; }
.grs-welcome__lang { flex: 1; text-align: left; }
.grs-welcome__code { font-size: .65rem; font-weight: 700; letter-spacing: .14em; color: var(--grs-mute); }
.grs-welcome__sound { display: flex; align-items: center; gap: .7rem; margin-top: 1.3rem; font-size: .82rem; font-weight: 500; color: var(--grs-ink); cursor: pointer; }
.grs-welcome__sound input { position: absolute; opacity: 0; pointer-events: none; }
.grs-switch { width: 38px; height: 22px; border-radius: 999px; background: rgba(28,28,27,.16); position: relative; transition: background .3s; flex: none; }
.grs-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .4s var(--grs-ease); }
.grs-welcome__sound input:checked + .grs-switch { background: var(--grs-y1); }
.grs-welcome__sound input:checked + .grs-switch::after { transform: translateX(16px); }
.grs-welcome__sound input:focus-visible + .grs-switch { outline: 2px solid var(--grs-accent-ink); outline-offset: 2px; }
@media (max-width: 440px) { .grs-welcome__langs { grid-template-columns: 1fr; } }

/* =========================================================
   UN ÚNICO ESPACIO: sin recuadros, todo por degradados suaves
   ========================================================= */
body::after { width: 140px !important; background: linear-gradient(90deg, rgba(246,180,0,0) 0%, rgba(246,180,0,.07) 55%, rgba(246,180,0,.28) 100%); z-index: 0; }
.grs-header { box-shadow: none; background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.55)); }
.grs-header.is-scrolled { box-shadow: 0 18px 40px -28px rgba(0,0,0,.25); }
.has-card-background-color { background: transparent !important; }
.grs-card, .grs-job, .grs-job.is-main {
	background: transparent !important; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none !important;
	padding-left: 0 !important; padding-right: 0 !important; border-radius: 0;
	border-top: 1px solid; border-image: linear-gradient(90deg, rgba(217,142,0,.7), rgba(217,142,0,.12) 60%, rgba(217,142,0,0)) 1;
}
.grs-band-block { background: radial-gradient(120% 160% at 0% 0%, rgba(255,216,102,.55) 0%, rgba(255,216,102,.18) 45%, rgba(255,216,102,0) 75%) !important; border-image: none !important; border-top: 0 !important; padding-left: 2rem !important; padding-right: 2rem !important; border-radius: 28px !important; }
.grs-section + .grs-section { border-top: 1px solid; border-image: linear-gradient(90deg, rgba(28,28,27,0), rgba(28,28,27,.12) 30%, rgba(28,28,27,.12) 70%, rgba(28,28,27,0)) 1; }
.wp-block-gallery.grs-gallery .wp-block-image, .grs-shot, .grs-shot img, .grs-video video { border-radius: 16px; }
.wp-block-gallery.grs-gallery .wp-block-image { box-shadow: 0 36px 70px -38px rgba(60,40,0,.45); }
.grs-shot img { box-shadow: 0 40px 80px -40px rgba(60,40,0,.5); }
.wp-block-gallery.grs-gallery figcaption { border-radius: 0 12px 0 0; }
.grs-yt a { background: rgba(255,255,255,.45); box-shadow: none; border-radius: 16px; }
.grs-yt a:hover { background: rgba(255,255,255,.8); box-shadow: 0 24px 50px -30px rgba(60,40,0,.45); }
.grs-footer { background: linear-gradient(180deg, rgba(255,216,102,0) 0%, rgba(255,216,102,.35) 30%, rgba(255,216,102,.85) 70%, rgba(246,180,0,.95) 100%) !important; padding-top: var(--wp--preset--spacing--70) !important; }

/* ---------- Home: presentación por escenas ---------- */
.grs-scene { display: flex; flex-direction: column; justify-content: center; padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.grs-scene:first-child { min-height: calc(88svh - 90px); }
.grs-display { font-size: clamp(2.6rem, 5.4vw, 5.2rem) !important; font-weight: 200 !important; letter-spacing: -.045em !important; line-height: .95 !important; margin: 0 0 1.4rem; }
.grs-display strong { font-weight: 600; }
.grs-portrait { position: relative; isolation: isolate; margin-inline: auto; max-width: 420px; }
.grs-portrait::before { content: ""; position: absolute; inset: -38%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(246,180,0,.6), rgba(255,216,102,.32) 45%, rgba(255,216,102,0) 100%); }
.grs-portrait img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 100%; box-shadow: 0 50px 90px -40px rgba(110,70,0,.55); }
@media (prefers-reduced-motion: no-preference) { .grs-portrait::before { animation: grs-breathe 7s ease-in-out infinite; } }
@keyframes grs-breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .8; } }
.grs-words { font-size: clamp(2.2rem, 5.2vw, 5.4rem) !important; font-weight: 200; letter-spacing: -.04em; line-height: 1.04; color: var(--grs-ink); max-width: 17ch !important; margin-inline: auto; text-wrap: balance; }
.grs-words em { font-style: normal; font-weight: 500; color: var(--grs-accent); }
.grs-big-num { font-size: clamp(3rem, 5vw, 4.5rem) !important; font-weight: 200; letter-spacing: -.05em; line-height: 1; color: var(--grs-accent); margin: 0 0 1rem !important; }
.grs-pillar h3 { font-size: 1.4rem !important; font-weight: 400; letter-spacing: -.02em; }
.grs-more a { font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--grs-accent-ink); }
.grs-more a::after { content: " →"; display: inline-block; transition: transform .5s var(--grs-ease); }
.grs-more a:hover::after { transform: translateX(.35rem); }

/* ---------- Recorrido horizontal (trayectoria y fichas) ---------- */
.grs-hscroll { overflow: hidden; }
.grs-hscroll__track { display: flex !important; flex-wrap: nowrap !important; gap: clamp(2.5rem, 6vw, 6rem) !important; padding-top: 3.2rem; position: relative; width: max-content; max-width: none !important; }
.grs-hscroll__track::before { content: ""; position: absolute; top: 1.1rem; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(217,142,0,.9), rgba(217,142,0,.15)); }
.grs-step { width: clamp(250px, 26vw, 360px); flex: none !important; position: relative; }
.grs-step::before { content: ""; position: absolute; top: -2.45rem; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--grs-y1); box-shadow: 0 0 0 7px rgba(246,180,0,.18); }
.grs-year { font-size: clamp(3rem, 5vw, 4.6rem) !important; font-weight: 200; letter-spacing: -.05em; line-height: 1; color: var(--grs-ink); margin: 0 0 .8rem !important; font-variant-numeric: tabular-nums; }
.grs-step.is-now .grs-year { color: var(--grs-accent); }
.grs-step h3 { font-size: 1.15rem !important; font-weight: 500; margin: 0 0 .2rem; }
.grs-step .grs-org { color: var(--grs-mute); font-size: .88rem; margin: 0 0 .6rem; }
.grs-step p { font-size: .95rem; }
@media (max-width: 781px) {
	.grs-hscroll { overflow: visible; }
	.grs-hscroll__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.grs-step { scroll-snap-align: start; width: 78vw; }
}

/* =========================================================
   PORTFOLIO: categorías, recorrido horizontal y vídeos
   ========================================================= */
.grs-tabs {
	position: sticky; top: 72px; z-index: 30; margin: 1rem 0 var(--wp--preset--spacing--40);
	padding: .9rem 0 1.1rem; background: linear-gradient(180deg, rgba(255,255,255,.95) 55%, rgba(255,255,255,0));
	transition: top .6s var(--grs-ease);
}
body:has(.grs-header.is-hidden) .grs-tabs { top: 0; }
body.admin-bar .grs-tabs { top: 104px; }
body.admin-bar:has(.grs-header.is-hidden) .grs-tabs { top: 32px; }
.grs-tabs__list { display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); overflow-x: auto; scrollbar-width: none; position: relative; }
.grs-tabs__list::-webkit-scrollbar { display: none; }
.grs-tab {
	appearance: none; border: 0; background: none; padding: .35rem 0; cursor: pointer; white-space: nowrap;
	font: 400 clamp(1rem, 1.5vw, 1.3rem)/1.2 Montserrat, system-ui, sans-serif; letter-spacing: -.01em; color: var(--grs-mute);
	transition: color .4s ease;
}
.grs-tab sup { font-size: .6em; font-weight: 600; letter-spacing: .08em; margin-left: .25em; color: var(--grs-accent-ink); }
.grs-tab:hover { color: var(--grs-ink); }
.grs-tab.is-active { color: var(--grs-ink); font-weight: 500; }
.grs-tabs__ink { position: absolute; left: 0; bottom: .75rem; height: 2px; width: 0; background: linear-gradient(90deg, var(--grs-accent), var(--grs-y2)); border-radius: 2px; }
.grs-cat[hidden] { display: none !important; }
.grs-pnum { font-variant-numeric: tabular-nums; color: var(--grs-mute); margin-right: .2rem; }

/* Proyecto con recorrido horizontal */
.grs-project.is-h { overflow: hidden; }
.grs-project.is-h .wp-block-columns { flex-wrap: nowrap !important; align-items: center !important; }
.grs-project.is-h .wp-block-column:first-child { position: relative; z-index: 3; }
.grs-project.is-h .wp-block-column:first-child::before {
	content: ""; position: absolute; z-index: -1; top: -30vh; bottom: -30vh; left: -60vw; right: -7rem; pointer-events: none;
	background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.94) 72%, rgba(255,255,255,0) 100%);
}
.grs-project.is-h .wp-block-column:last-child { position: relative; z-index: 1; min-width: 0; overflow: visible; }
.grs-project.is-h .wp-block-gallery.has-nested-images { flex-wrap: nowrap !important; width: max-content !important; gap: clamp(1rem, 2vw, 1.75rem) !important; will-change: transform; }
.grs-project.is-h .wp-block-gallery.has-nested-images figure.wp-block-image:not(#grs) {
	width: auto !important; flex: none !important; height: min(62vh, 600px); margin: 0 !important;
}
.grs-project.is-h .wp-block-gallery.has-nested-images figure.wp-block-image:not(#grs) img {
	height: 100% !important; width: auto !important; max-width: none !important; object-fit: cover; flex: none !important; contain-intrinsic-size: none !important;
}
.grs-hcount { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--grs-mute); }
.grs-hcount__n { font-variant-numeric: tabular-nums; }
.grs-hcount__n b { color: var(--grs-ink); font-weight: 600; }
.grs-hcount__bar { width: 140px; height: 2px; background: rgba(28,28,27,.1); border-radius: 2px; overflow: hidden; }
.grs-hcount__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--grs-accent), var(--grs-y2)); transform: scaleX(.04); transform-origin: left; }
@media (min-width: 782px) {
	.grs-project.is-h { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
}
@media (max-width: 781px) {
	.grs-project.is-h .wp-block-columns { flex-wrap: wrap !important; }
	.grs-project.is-h .wp-block-column:first-child::before { display: none; }
	.grs-project.is-h .wp-block-gallery.has-nested-images { width: auto !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: none; }
	.grs-project.is-h .wp-block-gallery.has-nested-images figure.wp-block-image:not(#grs) { height: 58vw; scroll-snap-align: start; }
	.grs-hcount__hint { display: inline; }
}

/* Huecos reservados (próximamente) */
.grs-soon__stage {
	position: relative; isolation: isolate; min-height: clamp(260px, 32vw, 420px);
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.grs-soon__stage::before {
	content: ""; position: absolute; inset: -12% -4%; z-index: -1; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(246,180,0,.42), rgba(255,216,102,.2) 50%, rgba(255,216,102,0) 100%);
}
@media (prefers-reduced-motion: no-preference) { .grs-soon__stage::before { animation: grs-breathe 6s ease-in-out infinite; } }
.grs-soon__label { font-size: .72rem !important; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--grs-accent-ink); margin: 0 0 .6rem !important; display: inline-flex; align-items: center; gap: .6rem; }
.grs-soon__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grs-y1); box-shadow: 0 0 0 0 rgba(246,180,0,.6); animation: grs-ping 2s ease-out infinite; }
@keyframes grs-ping { 0% { box-shadow: 0 0 0 0 rgba(246,180,0,.6); } 100% { box-shadow: 0 0 0 14px rgba(246,180,0,0); } }
.grs-soon__title { font-size: clamp(2.4rem, 5vw, 4.4rem) !important; font-weight: 200; letter-spacing: -.045em; line-height: 1; color: var(--grs-ink); margin: 0 auto !important; }

/* ---------- Destacado: desarrollo con IA ---------- */
.grs-ia-home, .grs-ia-intro { position: relative; }
.grs-ia-home::before, .grs-ia-intro::before {
	content: ""; position: absolute; inset: -6% -10% -4%; z-index: -1; pointer-events: none;
	background: radial-gradient(48% 55% at 22% 40%, rgba(246,180,0,.16), rgba(255,216,102,.06) 55%, transparent 75%),
		radial-gradient(40% 50% at 85% 70%, rgba(255,216,102,.14), transparent 70%);
	filter: blur(8px);
}
.grs-ia-home h2 strong, .grs-ia-intro h2 strong {
	font-weight: 600;
	background: linear-gradient(100deg, #d98e00 0%, #f6b400 45%, #ffd866 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.grs-ia-home .grs-kicker::after, .grs-ia-intro .grs-kicker::after {
	content: ""; display: inline-block; width: 7px; height: 7px; margin-left: .7em; vertical-align: middle;
	border-radius: 50%; background: #f6b400; animation: grs-ping 1.8s ease-out infinite;
}
.grs-ia-intro { max-width: 980px; }
.grs-ia-intro .grs-lead { max-width: 52ch; }
.grs-feature { position: relative; }
.grs-feature .grs-shot { margin: 0 0 1.4rem; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(60,40,0,.35), 0 0 0 1px rgba(28,28,27,.05); }
.grs-feature .grs-shot img { width: 100%; height: auto; display: block; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.grs-feature:hover .grs-shot img { transform: scale(1.04); }
.grs-feature h3 { margin: .3rem 0 .5rem; font-weight: 500; letter-spacing: -.02em; }
.grs-feature h3 a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s cubic-bezier(.16,1,.3,1); }
.grs-feature:hover h3 a { background-size: 100% 1px; }
.grs-feature h3 a::after { content: " →"; color: var(--wp--preset--color--accent); }

/* Presentación de Grupo Ambar (ambar.es) */
.grs-pres { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #141414; box-shadow: 0 30px 60px -30px rgba(60,40,0,.45); }
.grs-pres iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0 !important; }
.grs-pres__stage {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: .35rem;
	padding: clamp(1.25rem, 3.5vw, 2.75rem); border: 0; margin: 0; text-align: left; color: #fff; text-decoration: none; font: inherit; cursor: pointer;
	background: radial-gradient(120% 90% at 85% 15%, rgba(246,180,0,.55), transparent 55%), radial-gradient(90% 80% at 10% 100%, rgba(217,142,0,.4), transparent 60%), linear-gradient(135deg, #1d1a14, #0d0d0c);
}
.grs-pres__glow { position: absolute; width: 46%; aspect-ratio: 1; right: 8%; top: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(255,216,102,.55), rgba(246,180,0,.15) 55%, transparent 70%); filter: blur(6px); animation: grs-breathe 6s ease-in-out infinite; pointer-events: none; }
.grs-pres__kicker { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #ffd866; position: relative; }
.grs-pres__title { font-size: clamp(1.6rem, 3.6vw, 3rem); font-weight: 200; letter-spacing: -.035em; line-height: 1.05; position: relative; }
.grs-pres__meta { font-size: .85rem; font-weight: 400; opacity: .7; position: relative; }
.grs-pres__play { margin-top: 1rem; display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.2rem .7rem .8rem; border-radius: 999px; background: linear-gradient(90deg, #f6b400, #ffd866); color: #1c1c1b; font-size: .85rem; font-weight: 600; position: relative; transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s; }
.grs-pres__icon { width: 26px; height: 26px; border-radius: 50%; background: #1c1c1b; position: relative; flex: none; }
.grs-pres__icon::after { content: ""; position: absolute; left: 10px; top: 8px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #ffd866; }
.grs-pres__stage:hover .grs-pres__play { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(246,180,0,.7); }
.grs-pres__links { margin: .7rem 0 0 !important; font-size: .82rem; }
.grs-pres__links a { color: var(--grs-accent-ink, #9a6200); }

/* Foto de portada: recortada, sin marco, fundida con el fondo */
.grs-photo { position: relative; margin: 0 auto; max-width: 560px; isolation: isolate; }
.grs-photo::before {
	content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; top: 14%; bottom: 4%; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(246,180,0,.42), rgba(255,216,102,.18) 55%, transparent 75%); filter: blur(18px);
}
@media (prefers-reduced-motion: no-preference) { .grs-photo::before { animation: grs-breathe 7s ease-in-out infinite; } }
.grs-photo img { display: block; width: 100%; height: auto; max-height: 82svh; object-fit: contain; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%); filter: drop-shadow(0 30px 40px rgba(60,40,0,.18)); }

/* Botón flotante «Ver portfolio» y «Volver arriba» */
.grs-float, .grs-top { position: fixed; z-index: 55; right: clamp(14px, 2.2vw, 28px); }
.grs-float {
	bottom: clamp(14px, 2.2vw, 28px); display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.25rem .85rem 1rem; border-radius: 999px;
	background: linear-gradient(90deg, #f6b400, #ffd866); color: #1c1c1b; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
	box-shadow: 0 14px 34px -14px rgba(150,95,0,.65), 0 0 0 1px rgba(255,255,255,.4) inset; transition: box-shadow .4s, transform .4s cubic-bezier(.16,1,.3,1);
}
.grs-float:hover { box-shadow: 0 18px 40px -12px rgba(150,95,0,.8), 0 0 0 1px rgba(255,255,255,.6) inset; }
.grs-float__dot { width: 7px; height: 7px; border-radius: 50%; background: #1c1c1b; animation: grs-ping 2s ease-out infinite; }
.grs-top {
	bottom: calc(clamp(14px, 2.2vw, 28px) + 60px); width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #1c1c1b;
	background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 26px -12px rgba(60,40,0,.45), 0 0 0 1px rgba(28,28,27,.08);
	opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .35s, transform .45s cubic-bezier(.16,1,.3,1), visibility 0s .45s;
}
.grs-top svg { width: 18px; height: 18px; }
.grs-top.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .45s cubic-bezier(.16,1,.3,1); }
body:not(:has(.grs-float)) .grs-top { bottom: clamp(14px, 2.2vw, 28px); }
body.grs-locked .grs-float, body.grs-locked .grs-top { opacity: 0; pointer-events: none; }
@media (max-width: 600px) { .grs-float { font-size: .7rem; padding: .75rem 1rem .75rem .85rem; } }

/* Resultados: clientes y proyectos */
.grs-impact .grs-lead { max-width: 60ch; margin-inline: auto !important; }
.grs-impact .grs-small-h { margin-top: clamp(2rem, 5vw, 3.5rem) !important; opacity: .7; }
.grs-names { font-size: clamp(1rem, 1.8vw, 1.35rem) !important; font-weight: 500; letter-spacing: .02em; color: var(--grs-ink, #1c1c1b); line-height: 1.7; }
.grs-scene .grs-dls { justify-content: flex-start; }

/* Descargas PDF */
.grs-dls { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }
.grs-dl {
	display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem; border-radius: 999px; text-decoration: none; color: var(--grs-ink, #1c1c1b);
	font-size: .85rem; font-weight: 600; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(217,142,0,.45) inset; transition: background .3s, box-shadow .3s;
}
.grs-dl:hover { background: #fff; box-shadow: 0 0 0 1px #d98e00 inset, 0 10px 24px -14px rgba(150,95,0,.6); }
.grs-dl svg { width: 16px; height: 16px; color: #d98e00; }
.grs-dl small { font-size: .7rem; font-weight: 500; opacity: .65; }

/* Vídeos dentro de los proyectos */
.grs-project .wp-block-video, .grs-videos .wp-block-video { margin: 0; }
.grs-project .wp-block-video video, .grs-videos video { width: 100%; display: block; border-radius: 16px; background: #111; box-shadow: 0 24px 50px -28px rgba(60,40,0,.45); }
.grs-project .wp-block-video figcaption, .grs-videos figcaption { font-size: .78rem; color: var(--grs-mute, #6b6b68); margin-top: .5rem; text-align: left; }
.grs-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.4rem); margin-bottom: clamp(1rem, 3vw, 2rem); }
.grs-videos.is-tall { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
@media (max-width: 700px) { .grs-videos, .grs-videos.is-tall { grid-template-columns: 1fr; } }
.grs-gallery.grs-grid { margin-top: clamp(1rem, 3vw, 2rem); }

/* Títulos: nunca partir palabras; el tamaño se ajusta al ancho de su columna */
h1, h2, h3, h4, .wp-block-heading { overflow-wrap: normal !important; word-break: normal !important; hyphens: manual !important; }
.grs-sticky { container-type: inline-size; }
.grs-sticky h2.wp-block-heading { font-size: clamp(1.75rem, 10.5cqi, 3.75rem) !important; line-height: 1.05; }
.grs-feature h3, .grs-step h3, .grs-pillar h3 { overflow-wrap: normal; }

/* Menú de categorías: barra marcada, fija bajo la cabecera */
body .grs-tabs {
	top: var(--grs-tabs-top, 72px) !important; z-index: 35; width: fit-content; max-width: 100%;
	margin: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem) !important; padding: .4rem; border-radius: 999px;
	background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	box-shadow: 0 18px 40px -24px rgba(60,40,0,.5), 0 0 0 1px rgba(28,28,27,.07);
}
body .grs-tabs__list { gap: .3rem !important; }
body .grs-tab {
	padding: .72rem 1.2rem !important; border-radius: 999px; font-size: .95rem !important; font-weight: 500 !important;
	color: var(--grs-ink, #1c1c1b) !important; opacity: .7; transition: background .3s, opacity .3s, box-shadow .3s;
}
body .grs-tab:hover { opacity: 1; background: rgba(246,180,0,.13); }
body .grs-tab.is-active { opacity: 1; font-weight: 600 !important; background: linear-gradient(90deg, #f6b400, #ffd866); box-shadow: 0 8px 20px -10px rgba(150,95,0,.65); }
body .grs-tab.is-active sup { color: #1c1c1b; }
.grs-tabs__ink { display: none !important; }
@media (max-width: 781px) { body .grs-tabs { border-radius: 18px; } body .grs-tab { padding: .6rem .95rem !important; font-size: .85rem !important; } }

/* Carrusel apilado */
.grs-project.is-deck .wp-block-columns { align-items: center !important; }
.grs-project.is-deck .wp-block-column:last-child { min-width: 0; }
.grs-deck.wp-block-gallery.has-nested-images {
	position: relative !important; display: block !important; height: min(60vh, 540px); margin: 0 !important; outline: none; touch-action: pan-y;
}
.grs-deck.wp-block-gallery.has-nested-images > figure.wp-block-image:not(#grs) {
	position: absolute !important; top: 0; left: 0; height: 100%; width: 70%; max-width: none !important; margin: 0 !important;
	transform-origin: 0% 50%; border-radius: 16px; overflow: hidden; cursor: pointer; background: #f3efe6;
	box-shadow: 0 30px 60px -30px rgba(60,40,0,.5), 0 0 0 1px rgba(28,28,27,.05);
	transition: transform .75s cubic-bezier(.16,1,.3,1), opacity .5s ease, filter .5s ease; will-change: transform;
}
.grs-deck.wp-block-gallery.has-nested-images > figure.wp-block-image:not(#grs) img {
	width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; contain-intrinsic-size: none !important;
}
.grs-deck > figure.wp-block-image:not(.is-front):not(#grs) { filter: saturate(.75) brightness(.97); }
.grs-deck > figure.wp-block-image:not(.is-front):not(#grs) figcaption { opacity: 0; }
.grs-deck > figure.is-gone { pointer-events: none; }
.grs-deck:focus-visible { box-shadow: 0 0 0 2px #f6b400; border-radius: 18px; }
@media (max-width: 781px) { .grs-deck.wp-block-gallery.has-nested-images { height: min(62vw, 420px); } }
@media (prefers-reduced-motion: reduce) { .grs-deck > figure.wp-block-image { transition: none !important; } }

/* Juego y presentación dentro del proyecto */
.grs-project .wp-block-shortcode, .grs-project .grsp-wrap, .grs-project .ddr-wrap { width: 100%; max-width: none !important; margin-inline: 0 !important; }
.grs-project iframe { border-radius: 16px; }

/* Vídeos de YouTube integrados */
.grs-yt { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important; gap: 1.6rem 1.25rem !important; }
.grs-yt a.grs-yt__card { display: block; padding: 0; background: none !important; box-shadow: none !important; border-radius: 0; }
.grs-yt a.grs-yt__card::before { display: none; }
.grs-yt__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; box-shadow: 0 30px 60px -36px rgba(60,40,0,.55); background: #1c1c1b; }
.grs-yt__thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.36); transition: transform 1s var(--grs-ease), filter .6s ease; filter: saturate(.92); }
.grs-yt__card:hover .grs-yt__thumb img { transform: scale(1.42); filter: saturate(1.05); }
.grs-yt__play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(246,180,0,.92); box-shadow: 0 0 0 10px rgba(246,180,0,.22); transition: transform .6s var(--grs-ease), box-shadow .6s var(--grs-ease); }
.grs-yt__play::after { content: ""; position: absolute; left: 21px; top: 17px; border-left: 15px solid var(--grs-ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.grs-yt__card:hover .grs-yt__play { transform: scale(1.1); box-shadow: 0 0 0 16px rgba(246,180,0,.18); }
.grs-yt__title { display: block; margin-top: .8rem; font-size: .95rem; font-weight: 500; line-height: 1.35; color: var(--grs-ink); letter-spacing: -.005em; }
.grs-player { position: fixed; inset: 0; z-index: 9800; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); }
.grs-player[hidden] { display: none; }
.grs-player__veil { position: absolute; inset: 0; background: rgba(14,13,12,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.grs-player__frame { position: relative; width: min(1200px, 100%); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; box-shadow: 0 60px 140px rgba(0,0,0,.6); background: #000; }
.grs-player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.grs-player__title { position: relative; margin: 1.2rem 0 0; color: #f6f0e6; font-size: .9rem; font-weight: 300; letter-spacing: .02em; text-align: center; max-width: none; }
.grs-player__close { position: absolute; top: clamp(1rem, 2vw, 1.75rem); right: clamp(1.5rem, 3vw, 2.5rem); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1rem; cursor: pointer; transition: background .3s; }
.grs-player__close:hover { background: var(--grs-y1); color: var(--grs-ink); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.grs-header.is-hidden { transform: none; }
}
