/* ==========================================================================
   Grupo Original – estilos principales
   Las variables de color y tipografía salen de theme.json (--wp--preset--*).
   ========================================================================== */

:root {
	--go-pink: var(--wp--preset--color--rosa);
	--go-bg: var(--wp--preset--color--fondo);
	--go-surface: var(--wp--preset--color--superficie);
	--go-border: var(--wp--preset--color--borde);
	--go-muted: var(--wp--preset--color--gris);
	--go-head: var(--wp--preset--font-family--titulares);
	--go-gutter: clamp(1.25rem, 4vw, 2.5rem);
	--go-header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { -webkit-font-smoothing: antialiased; }

.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }

.go-main { margin-block-start: 0; }

/* Utilidades ------------------------------------------------------------- */

.go-accent { color: var(--go-pink); }
.go-muted { color: var(--go-muted); font-size: var(--wp--preset--font-size--s); }

.go-eyebrow {
	margin: 0 0 1rem;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	line-height: 1.7;
}
.go-eyebrow--line { display: flex; align-items: center; gap: 1rem; }
.go-eyebrow--line::after { content: ""; width: 60px; height: 1px; background: var(--go-pink); }
.go-eyebrow--line { color: var(--go-pink); }

.go-h2 { font-size: var(--wp--preset--font-size--xl); margin: 0; }
.go-h3 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); margin: 0; }

.go-link-arrow { margin: 0.75rem 0 0; font-size: var(--wp--preset--font-size--xs); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; }
.go-link-arrow a { text-decoration: none; display: inline-flex; gap: 0.6rem; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 0.3rem; }
.go-link-arrow a::after { content: "\2192"; transition: transform 0.2s; }
.go-link-arrow a:hover::after { transform: translateX(4px); }

.go-empty { color: var(--go-muted); padding: 2rem var(--go-gutter); }

/* Botones ---------------------------------------------------------------- */

.go-btn .wp-block-button__link {
	background: var(--go-pink);
	color: #fff;
	border: 1px solid var(--go-pink);
	border-radius: 4px;
	padding: 1rem 1.75rem;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}
.go-btn .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--go-bg); }
.go-btn--arrow .wp-block-button__link::after { content: "\2192"; margin-left: 1rem; }
.go-btn--small .wp-block-button__link { padding: 0.65rem 1.1rem; font-size: 0.6875rem; }
.go-btn.is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: var(--go-pink); }
.go-btn.is-style-outline .wp-block-button__link:hover { background: var(--go-pink); border-color: var(--go-pink); color: #fff; }

/* Logo ------------------------------------------------------------------- */

.go-logo { display: inline-flex; flex-direction: column; text-decoration: none; color: #fff; line-height: 1; }
.go-logo__name { font-size: 1.75rem; font-weight: 300; letter-spacing: -0.02em; display: inline-flex; align-items: flex-start; }
.go-logo__name strong { font-weight: 800; }
.go-logo__dot { width: 0.42em; height: 0.42em; margin-left: 0.08em; background: var(--go-pink); border-radius: 50%; display: inline-block; }
.go-logo__tag { font-size: 0.5rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--go-pink); margin-top: 0.4rem; padding-left: 0.1rem; }

/* Cabecera --------------------------------------------------------------- */

.go-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(11, 11, 12, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--go-border);
	padding-inline: var(--go-gutter);
}
.admin-bar .go-header { top: var(--wp-admin--admin-bar--height, 32px); }
.go-header__inner { min-height: var(--go-header-h); gap: 2rem; }

.go-nav .wp-block-navigation-item__content {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-decoration: none;
	padding-block: 0.6rem;
	border-bottom: 2px solid transparent;
}
.go-nav .wp-block-navigation-item__content:hover,
.go-nav .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--go-pink); color: #fff; }
.go-nav .wp-block-navigation__container { gap: 2rem; }

.go-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--go-bg); color: #fff; padding: var(--go-gutter); }
.go-nav .wp-block-navigation__responsive-container-open,
.go-nav .wp-block-navigation__responsive-container-close { color: #fff; }

/* Hero ------------------------------------------------------------------- */

.go-hero {
	position: relative;
	min-height: min(760px, calc(100vh - var(--go-header-h)));
	display: flex;
	align-items: center;
	padding: clamp(4rem, 10vw, 8rem) var(--go-gutter);
	background:
		radial-gradient(60% 80% at 80% 40%, rgba(255, 31, 122, 0.12), transparent 70%),
		linear-gradient(180deg, #0b0b0c 0%, #101012 100%);
	overflow: hidden;
}
.go-hero__inner { width: 100%; }
.go-hero__title { font-size: var(--wp--preset--font-size--xxl); line-height: 0.92; margin: 0 0 1.5rem; }
.go-hero__text { max-width: 26rem; font-size: var(--wp--preset--font-size--l); color: #d8d8dc; margin: 0 0 2rem; }
.go-hero .go-eyebrow { color: #fff; }

/* Secciones -------------------------------------------------------------- */

.go-section { padding: clamp(3rem, 6vw, 5rem) var(--go-gutter); border-top: 1px solid var(--go-border); }
.go-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
	margin-bottom: 2.5rem;
}
.go-section__title { flex: 1 1 28rem; }
.go-section__aside { flex: 0 1 22rem; }
.go-section__aside .go-muted { margin: 0; }

/* Tiras (servicios / trabajos) ------------------------------------------ */

.go-services, .go-works { padding-inline: 0; }
.go-services .go-section__head, .go-works .go-section__head { padding-inline: var(--go-gutter); max-width: var(--wp--style--global--wide-size, 1440px); margin-inline: auto; margin-bottom: 2.5rem; }

.go-strip { margin: 0; }
.go-strip__list {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}
.go-strip--works .go-strip__list { grid-template-columns: repeat(5, 1fr); }
.go-strip__list > *, .go-grid > * { margin: 0; }

.go-tile { position: relative; margin: 0; background: linear-gradient(160deg, #1a1a1d, #0f0f11); overflow: hidden; aspect-ratio: 3 / 4; }
.go-strip--works .go-tile { aspect-ratio: 4 / 5; }
.go-tile__img { position: absolute; inset: 0; margin: 0; }
.go-tile__img a { display: block; height: 100%; }
.go-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.3s; }
.go-tile:hover .go-tile__img img { transform: scale(1.05); }

.go-tile__title {
	position: absolute;
	inset: auto 0 0 0;
	margin: 0;
	padding: 2.5rem 1rem 1rem;
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
	font-family: var(--wp--preset--font-family--texto);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.4;
	pointer-events: none;
}
.go-tile__title a { text-decoration: none; pointer-events: auto; }
.go-tile__title a::after { content: ""; position: absolute; inset: 0; }
.go-strip--works .go-tile__title { opacity: 0; transition: opacity 0.3s; }
.go-strip--works .go-tile:hover .go-tile__title { opacity: 1; }

.go-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; list-style: none; padding: 0; }

/* Quiénes somos ---------------------------------------------------------- */

.go-about__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 220px;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}
.go-about__media { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #1c1c1f, #0f0f11); border: 1px solid var(--go-border); }
.go-about__text .go-h2 { margin-bottom: 1rem; }
.go-stats { border-left: 1px solid var(--go-border); padding-left: clamp(1.25rem, 3vw, 2.5rem); }
.go-stat + .go-stat { margin-top: 1.5rem; }
.go-stat__num { margin: 0; font-family: var(--go-head); font-weight: 800; font-size: 2.5rem; line-height: 1; color: #fff; }
.go-stat__label { margin: 0.25rem 0 0; color: var(--go-muted); font-size: var(--wp--preset--font-size--xs); }

/* Clientes (carrusel continuo) ------------------------------------------ */

.go-clients { padding-inline: 0; }
.go-clients__head { padding-inline: var(--go-gutter); margin-bottom: 2rem; }
.go-clients .go-h3 { margin: 0; }

.go-marquee { overflow: hidden; margin: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.go-marquee__list { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; width: 100%; list-style: none; margin: 0; padding: 0; }
.go-marquee__list > * { margin: 0; }
.go-logo-item { display: flex; align-items: center; justify-content: center; height: 4.5rem; padding-inline: clamp(1.5rem, 3vw, 2.75rem); }
.go-logo-item__img { margin: 0; }
.go-logo-item__img img { display: block; height: 3rem; width: auto; max-width: 11rem; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: 0.6; transition: opacity 0.3s, filter 0.3s; }
.go-logo-item:hover .go-logo-item__img img { filter: none; opacity: 1; }
.go-logo-item__name { margin: 0; font-family: var(--go-head); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase; color: #cfcfd4; white-space: nowrap; }
/* Con logotipo, el nombre queda solo para lectores de pantalla */
.go-logo-item:has(img) .go-logo-item__name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* main.js añade .is-marquee y duplica los elementos */
.go-marquee.is-marquee .go-marquee__list { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: go-marquee 45s linear infinite; }
.go-marquee.is-marquee:hover .go-marquee__list { animation-play-state: paused; }
.go-marquee.is-marquee .go-logo-item { flex: 0 0 auto; }
@keyframes go-marquee { to { transform: translateX(-50%); } }

/* CTA -------------------------------------------------------------------- */

.go-cta {
	padding: clamp(2.5rem, 5vw, 4rem) var(--go-gutter);
	background: linear-gradient(100deg, #2a0a1b 0%, var(--wp--preset--color--rosa-oscuro) 60%, #2a0a1b 100%);
	border-top: 1px solid var(--go-border);
}
.go-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.go-cta__text { flex: 1 1 24rem; }
.go-cta__text .go-h3 { margin-bottom: 1.5rem; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.go-cta__contact { flex: 0 1 20rem; }
.go-contact-line { margin: 0 0 1rem; padding-left: 2rem; position: relative; font-size: var(--wp--preset--font-size--s); }
.go-contact-line a { text-decoration: none; }
.go-contact-line::before { content: ""; position: absolute; left: 0; top: 0.25em; width: 1.1rem; height: 1.1rem; background: var(--go-pink); mask: var(--go-icon) center / contain no-repeat; -webkit-mask: var(--go-icon) center / contain no-repeat; }
.go-contact-line--tel  { --go-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11 11 0 0 0 3.6.6 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.2.2 2.4.6 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.go-contact-line--mail { --go-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E"); }
.go-contact-line--pin  { --go-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }

/* Pie -------------------------------------------------------------------- */

.go-footer { padding: 2.5rem var(--go-gutter); border-top: 1px solid var(--go-border); background: var(--go-bg); }
.go-footer__inner { gap: 1.5rem 2.5rem; }
.go-footer__legal { margin: 0; font-size: var(--wp--preset--font-size--xs); color: var(--go-muted); }
.go-footer__legal a { color: inherit; text-decoration: none; }
.go-footer__legal a:hover { color: #fff; }
.go-footer__legal span { margin-inline: 0.5rem; opacity: 0.5; }
.go-footer__hashtag { margin: 0; font-family: var(--go-head); font-style: italic; font-weight: 600; font-size: 1.25rem; color: #fff; }

/* Páginas y entradas ------------------------------------------------------ */

.go-page, .go-single, .go-archive, .go-404 { padding: clamp(3rem, 6vw, 5rem) var(--go-gutter); }
.go-page__title { font-size: var(--wp--preset--font-size--xxl); margin: 0 0 2rem; }
.go-single__img img { width: 100%; height: auto; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1100px) {
	.go-strip__list { grid-template-columns: repeat(4, 1fr); }
	.go-strip--works .go-strip__list { grid-template-columns: repeat(3, 1fr); }
	.go-about__inner { grid-template-columns: 1fr 1fr; }
	.go-stats { grid-column: 1 / -1; display: flex; gap: 2rem; flex-wrap: wrap; border-left: 0; border-top: 1px solid var(--go-border); padding: 1.5rem 0 0; }
	.go-stat + .go-stat { margin-top: 0; }
}

@media (max-width: 781px) {
	:root { --go-header-h: 68px; }
	.go-header__cta { display: none; }
	.go-strip__list { grid-template-columns: repeat(2, 1fr); }
	.go-strip--works .go-strip__list { grid-template-columns: repeat(2, 1fr); }
	.go-about__inner { grid-template-columns: 1fr; }
	.go-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
	.go-marquee.is-marquee .go-marquee__list { animation: none; }
}

/* Aparición al hacer scroll (main.js añade .go-js y .is-visible) */
.go-js .go-section:not(.is-visible),
.go-js .go-cta:not(.is-visible) { opacity: 0; transform: translateY(18px); }
.go-js .go-section, .go-js .go-cta { transition: opacity 0.6s ease, transform 0.6s ease; }
