/* ==========================================================================
   GrassPoint · estilos del tema
   Colores: azul noche #0C2548 · azul #1557B0 · cielo #A3D4FF · lima #D2EC3B
            estructura negra #0E100F y verde #3DA13A
   ========================================================================== */

:root {
	--gp-navy: #0c2548;
	--gp-blue: #1557b0;
	--gp-sky: #a3d4ff;
	--gp-ice: #eef5fd;
	--gp-lime: #d2ec3b;
	--gp-green: #3da13a;
	--gp-radius: 18px;
	--gp-ease: cubic-bezier(.22, 1, .36, 1);
	/* Textura de césped del logo (triángulos de fibra) para fondos. */
	--gp-turf-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='22'%3E%3Cpath d='M4 22 6 10 8 22Z M11 22 13 4 15 22Z' fill='%23ffffff' fill-opacity='.05'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--gp-lime); outline-offset: 3px; }
.gp-main { margin-block-start: 0 !important; }
.gp-main > * { margin-block-start: 0 !important; }

/* ---------- Cabecera ---------- */
.gp-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(12, 37, 72, .92);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	color: #fff;
	transition: box-shadow .3s var(--gp-ease);
}
.admin-bar .gp-header { top: 32px; }
.gp-header.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.gp-header__bar { min-height: 72px; gap: 1rem; }
.gp-brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff !important; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.gp-brand img { width: 48px; height: 48px; }
.gp-brand b { color: var(--gp-sky); font-weight: 800; }
.gp-brand--footer img { width: 64px; height: 64px; }
.gp-nav { font-weight: 700; font-size: .95rem; }
.gp-nav a { color: #fff; text-decoration: none; }
.gp-nav a:hover { color: var(--gp-sky); }
.gp-nav .gp-nav__cta a { background: var(--gp-lime); color: var(--gp-navy) !important; padding: .55rem 1.1rem; border-radius: 999px; }
.gp-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--gp-navy) !important; color: #fff !important; }

/* ---------- Botones ---------- */
.gp-btn, .wp-block-button__link { transition: transform .2s var(--gp-ease), box-shadow .2s var(--gp-ease), background .2s; }
.gp-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: .9rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
	font: inherit; font-weight: 800; text-decoration: none;
}
.gp-btn--lime, .gp-btn--lime .wp-block-button__link { background: var(--gp-lime); color: var(--gp-navy) !important; }
.gp-btn:hover, .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.gp-btn--ghost .wp-block-button__link { color: #fff !important; border: 2px solid rgba(255, 255, 255, .7) !important; background: transparent; }

.gp-mark { background: none; color: var(--gp-sky); }
.gp-eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; font-weight: 800; color: var(--gp-green); margin-bottom: .25rem !important; }
.has-navy-background-color .gp-eyebrow, .gp-config-section .gp-eyebrow { color: var(--gp-lime); }

/* ---------- Portada ---------- */
.gp-hero { padding: 0 var(--wp--style--root--padding-right, 1rem) var(--wp--preset--spacing--60) var(--wp--style--root--padding-left, 1rem) !important; background: var(--gp-navy) !important; }
/* Letrero de bienvenida sobre césped azul (fibras rizadas en SVG) con luz central y línea de pista. */
.gp-hero__banner {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
	margin: 0 calc(var(--wp--style--root--padding-right, 1rem) * -1) 0 calc(var(--wp--style--root--padding-left, 1rem) * -1) !important; max-width: none !important;
	padding: clamp(2.2rem, 5vw, 3.6rem) 1rem clamp(2.6rem, 5.5vw, 4rem);
	background:
		radial-gradient(ellipse 60% 85% at 50% 45%, rgba(120, 180, 255, .28), transparent 70%),
		linear-gradient(180deg, rgba(6, 22, 48, .45), rgba(6, 22, 48, 0) 30%, rgba(6, 22, 48, .55)),
		url("../img/grasspoint-cesped-fondo.svg") 0 0 / 150px 150px repeat,
		#0f3268;
	overflow: hidden;
}
.gp-hero__banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18%; height: 4px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 12px rgba(255, 255, 255, .25); }
.gp-hero__sign { position: relative; z-index: 1; display: block; width: clamp(230px, 24vw, 400px); height: auto; filter: drop-shadow(0 6px 14px rgba(0, 10, 30, .45)); }
.gp-hero__tag {
	position: relative; z-index: 1; margin: 0; padding: .45rem 1.1rem; border-radius: 6px; background: #fff; color: var(--gp-navy);
	font-size: clamp(.62rem, 1vw, .8rem); font-weight: 800; letter-spacing: .32em; text-transform: uppercase; box-shadow: 0 6px 16px rgba(0, 10, 30, .3);
}
.gp-hero__text { margin-top: var(--wp--preset--spacing--50) !important; }
.gp-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }

.gp-hero__place { color: var(--gp-lime) !important; margin-bottom: .5rem !important; }

/* Cifras de la portada */
.gp-stats { list-style: none; margin: var(--wp--preset--spacing--50) auto 0 !important; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; max-width: 900px; }
.gp-stats li { text-align: center; padding: 1rem .5rem; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(163, 212, 255, .18); }
.gp-stats strong { display: block; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; color: var(--gp-lime); line-height: 1.1; }
.gp-stats span { font-size: .82rem; color: var(--gp-sky); }
@media (max-width: 700px) { .gp-stats { grid-template-columns: repeat(2, 1fr); } }

/* Cinta en movimiento */
.gp-ticker { overflow: hidden; background: var(--gp-lime); color: var(--gp-navy); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin: 0 !important; }
.gp-ticker__track { display: flex; width: max-content; animation: gp-ticker 38s linear infinite; }
.gp-ticker span { padding: .85rem 1.6rem; white-space: nowrap; }
.gp-ticker span::after { content: "●"; margin-left: 3.2rem; font-size: .5rem; vertical-align: middle; opacity: .5; }
@keyframes gp-ticker { to { transform: translateX(-50%); } }

/* Tarifas mayorista / minorista */
.gp-plans { gap: 1.5rem !important; margin-top: var(--wp--preset--spacing--40) !important; }
.gp-plan {
	position: relative; padding: 2rem !important; border-radius: 24px; background: #fff;
	border: 1px solid rgba(12, 37, 72, .1); box-shadow: 0 18px 44px rgba(12, 37, 72, .1);
	transition: transform .35s var(--gp-ease), box-shadow .35s var(--gp-ease);
}
.gp-plan:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(12, 37, 72, .16); }
.gp-plan--pro { background: linear-gradient(160deg, #0c2548 0%, #1557b0 100%); color: #fff; border: 0; }
.gp-plan--pro h3 { color: #fff; }
.gp-plan h3 { font-size: 1.7rem; margin: .4rem 0 .6rem; }
.gp-plan__badge { display: inline-block; margin: 0 !important; padding: .3rem .8rem; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: var(--gp-ice); color: var(--gp-blue); }
.gp-plan--pro .gp-plan__badge { background: var(--gp-lime); color: var(--gp-navy); }
.gp-checks { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.gp-checks li { position: relative; padding-left: 1.9rem; margin: .55rem 0; }
.gp-checks li::before { content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--gp-green); color: #fff; }
.gp-btn--blue { background: var(--gp-blue); color: #fff !important; }

/* Bloques con foto */
.gp-split { gap: clamp(1.5rem, 4vw, 3.5rem) !important; }
.gp-photo { margin: 0; position: relative; }
.gp-photo img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 24px 50px rgba(12, 37, 72, .18); }
.gp-photo figcaption, .gp-gallery figcaption { position: absolute; left: 14px; bottom: 14px; padding: .35rem .8rem; border-radius: 999px; background: rgba(12, 37, 72, .78); color: #fff; font-size: .8rem; font-weight: 700; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gp-photo--tilt img { transform: rotate(-1.5deg); transition: transform .5s var(--gp-ease); }
.gp-photo--tilt:hover img { transform: rotate(0) scale(1.02); }

/* Galería de vidrio */
.gp-gallery { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(160px, 1fr)); gap: .9rem; margin-top: var(--wp--preset--spacing--40) !important; }
.gp-gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: 18px; background: #dfeaf3; }
.gp-gallery__main { grid-row: span 2; }
.gp-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--gp-ease); }
.gp-gallery figure:hover img { transform: scale(1.06); }
@media (max-width: 760px) {
	.gp-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
	.gp-gallery__main { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
	.gp-gallery figure:not(.gp-gallery__main) { aspect-ratio: 1; }
}

/* Barra fija de presupuesto (móvil) */
.gp-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; gap: .6rem; padding: .5rem; border-radius: 999px; background: rgba(12, 37, 72, .92); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); transform: translateY(140%); transition: transform .4s var(--gp-ease); }
.gp-sticky .gp-btn { flex: 1; padding: .8rem 1rem; }
.gp-sticky__mail { display: grid; place-items: center; width: 48px; border-radius: 50%; background: var(--gp-blue); color: #fff; text-decoration: none; font-size: 1.2rem; }
.gp-sticky.is-on { transform: none; }
@media (max-width: 780px) { .gp-sticky { display: flex; } }

/* ---------- Secciones y tarjetas ---------- */
.gp-cards { gap: 1.25rem !important; margin-top: var(--wp--preset--spacing--40) !important; }
.gp-card {
	background: #fff; border-radius: var(--gp-radius); padding: 1.6rem;
	box-shadow: 0 1px 0 rgba(12, 37, 72, .06), 0 12px 32px rgba(12, 37, 72, .08);
	border-top: 4px solid var(--gp-green);
	transition: transform .3s var(--gp-ease), box-shadow .3s var(--gp-ease);
}
.gp-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(12, 37, 72, .14); }
.gp-card--glass { background: linear-gradient(135deg, #f7fcff 0%, #e6f3ff 100%); border-top-color: var(--gp-sky); }
.gp-card h3 { margin-top: 0; }

/* ---------- Configurador 3D ---------- */
.gp-config-section { background-image: var(--gp-turf-pattern), linear-gradient(180deg, #0c2548 0%, #123a73 100%) !important; }
.gp-configurator { margin-top: var(--wp--preset--spacing--40) !important; }
.gp-configurator__layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: 1.5rem; align-items: start; }
.gp-configurator__viewer {
	position: relative; border-radius: 22px; overflow: hidden;
	background: radial-gradient(120% 90% at 50% 30%, #2d5fa3 0%, #133a72 55%, #0a1f3e 100%);
	box-shadow: inset 0 0 0 1px rgba(163, 212, 255, .18), 0 30px 60px rgba(0, 0, 0, .3);
}
.gp-configurator__stage { position: relative; aspect-ratio: 4 / 3.3; min-height: 560px; max-height: 82vh; cursor: grab; touch-action: pan-y; }
.gp-configurator__stage.is-dragging { cursor: grabbing; }
.gp-configurator__stage canvas { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .8s var(--gp-ease); }
.gp-configurator__viewer.is-loaded canvas { opacity: 1; }
.gp-configurator__viewer.is-static .gp-configurator__stage { background: var(--gp-turf) var(--gp-turf-pattern); }
.gp-configurator__badge {
	position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: .5rem;
	padding: .45rem .9rem; border-radius: 999px; background: rgba(8, 22, 44, .72); color: #fff;
	font-weight: 700; font-size: .9rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.gp-configurator__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--gp-swatch); box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.gp-configurator__hint { position: absolute; bottom: 10px; left: 0; right: 0; margin: 0; text-align: center; font-size: .82rem; color: rgba(255, 255, 255, .75); pointer-events: none; }

.gp-configurator__panel { background: rgba(255, 255, 255, .06); border: 1px solid rgba(163, 212, 255, .18); border-radius: 22px; padding: 1.4rem; }
.gp-configurator__label { font-weight: 800; margin: 0 0 .7rem; }
.gp-configurator__label:not(:first-child) { margin-top: 1.4rem; }
.gp-configurator__swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: .55rem; }
.gp-swatch {
	display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .4rem .2rem;
	background: none; border: 0; border-radius: 12px; color: #fff; cursor: pointer; font: inherit;
	transition: background .2s;
}
.gp-swatch:hover { background: rgba(255, 255, 255, .08); }
.gp-swatch__chip {
	width: 48px; height: 48px; border-radius: 12px;
	background-color: var(--gp-swatch);
	background-image: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(0, 0, 0, .12)), var(--gp-swatch-img, none);
	background-size: cover;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
	transition: transform .2s var(--gp-ease), box-shadow .2s;
}
.gp-swatch__name { font-size: .72rem; line-height: 1.2; text-align: center; opacity: .85; }
.gp-swatch.is-active .gp-swatch__chip { transform: scale(1.08); box-shadow: 0 0 0 3px var(--gp-navy), 0 0 0 5px var(--gp-lime); }
.gp-swatch.is-active .gp-swatch__name { opacity: 1; font-weight: 800; }
.gp-configurator__note { font-size: .8rem; color: var(--gp-sky); margin: .7rem 0 0; }
.gp-configurator__options { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.gp-opt {
	display: flex; flex-direction: column; gap: .15rem; text-align: left; padding: .8rem .9rem;
	border-radius: 14px; border: 1px solid rgba(163, 212, 255, .3); background: transparent; color: #fff;
	font: inherit; cursor: pointer; transition: border-color .2s, background .2s;
}
.gp-opt strong { font-size: 1.15rem; }
.gp-opt span { font-size: .78rem; opacity: .8; }
.gp-opt--color { flex-direction: row; align-items: center; gap: .6rem; }
.gp-opt__chip { width: 26px; height: 26px; border-radius: 8px; background: var(--gp-swatch); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); flex: none; }
.gp-opt.is-active { border-color: var(--gp-lime); background: rgba(210, 236, 59, .1); }
.gp-configurator__summary { margin: 1.4rem 0 .8rem; padding-top: 1rem; border-top: 1px solid rgba(163, 212, 255, .18); font-weight: 700; }
.gp-configurator__panel .gp-btn { width: 100%; }

@media (max-width: 900px) {
	.gp-configurator__layout { grid-template-columns: 1fr; }
	.gp-configurator__stage { aspect-ratio: 4 / 4.2; min-height: 0; max-height: 70vh; }
}

/* ---------- Preguntas ---------- */
.gp-faq .wp-block-details { background: #fff; border-radius: 14px; padding: 1rem 1.25rem; margin-top: .75rem; box-shadow: 0 6px 20px rgba(12, 37, 72, .06); }
.gp-faq summary { font-weight: 800; cursor: pointer; }
.gp-faq details[open] summary { color: var(--gp-blue); }

/* ---------- Formulario ---------- */
.gp-form { margin-top: var(--wp--preset--spacing--40); }
.gp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.gp-form p { margin: 0 0 1rem; }
.gp-form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.gp-form input[type="text"], .gp-form input[type="email"], .gp-form input[type="tel"], .gp-form input[type="number"], .gp-form textarea {
	width: 100%; box-sizing: border-box; padding: .8rem 1rem; border-radius: 12px; font: inherit;
	border: 1px solid rgba(163, 212, 255, .35); background: rgba(255, 255, 255, .06); color: #fff;
}
.gp-form input::placeholder, .gp-form textarea::placeholder { color: rgba(255, 255, 255, .5); }
.gp-form__products { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.gp-form__products legend { font-weight: 700; font-size: .9rem; margin-bottom: .4rem; }
.gp-form__products label, .gp-form__privacy label { display: inline-flex; gap: .5rem; align-items: center; font-weight: 600; }
.gp-form__privacy a { color: var(--gp-sky); }
.gp-form__trap { position: absolute; left: -9999px; }
.gp-form__msg { padding: .9rem 1.1rem; border-radius: 12px; font-weight: 700; }
.gp-form__msg.is-ok { background: rgba(61, 161, 58, .25); }
.gp-form__msg.is-error { background: rgba(200, 50, 40, .3); }
@media (max-width: 640px) { .gp-form__grid { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.gp-footer a { color: #fff; }
.gp-footer a:hover { color: var(--gp-lime); }
.gp-footer__list, .gp-contact-list { list-style: none; padding: 0; margin: 0; line-height: 2; }
.gp-footer__legal { margin-top: var(--wp--preset--spacing--50) !important; padding-top: 1rem; border-top: 1px solid rgba(163, 212, 255, .2); }

/* ---------- Animación de entrada ---------- */
.gp-reveal--on { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--gp-ease) var(--gp-delay, 0ms), transform .8s var(--gp-ease) var(--gp-delay, 0ms); }
.gp-reveal--on.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.gp-ticker__track { flex-wrap: wrap; width: auto; }
}

/* Enlaces sobre fondo oscuro */
.gp-contact a:not(.gp-btn), .gp-hero a:not(.wp-block-button__link) { color: var(--gp-lime); }

/* Directo de fábrica */
.gp-factory { margin-top: var(--wp--preset--spacing--60) !important; padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: 28px; background: var(--gp-ice); }
.gp-factory .gp-photo img { aspect-ratio: 1; object-fit: cover; }
.gp-factory__title { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-top: .2rem; }
.gp-factory__media { display: grid; grid-template-columns: .8fr 1fr; gap: .9rem; align-items: center; }
.gp-video video { display: block; width: 100%; height: auto; aspect-ratio: 464 / 832; object-fit: cover; border-radius: 22px; background: #2a1d5c; box-shadow: 0 24px 50px rgba(12, 37, 72, .18); }
@media (max-width: 520px) { .gp-factory__media { grid-template-columns: 1fr 1fr; } }

/* ---------- Textos legales ---------- */
.gp-legal h2 { font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem); margin-top: 2.2rem; }
.gp-legal__date { color: var(--gp-slate, #5b6b7f); }
.gp-legal mark { background: #fff4b8; padding: 0 .3em; border-radius: 4px; }
.gp-legal .wp-block-table { overflow-x: auto; }
.gp-legal table { min-width: 520px; font-size: .92rem; }
.gp-legal th, .gp-legal td { padding: .6rem .7rem; border: 1px solid #d6e2f0; vertical-align: top; }
.gp-legal th { background: var(--gp-ice, #eef5fd); text-align: left; }
.gp-form__rgpd { font-size: .78rem; line-height: 1.5; opacity: .8; margin-top: -.3rem; }
.gp-form__rgpd a { text-decoration: underline; }

/* ---------- Banner de cookies (RGPD/LSSI: aceptar y rechazar con el mismo peso) ---------- */
.gp-cookiebar {
	position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 9999;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
	max-width: 980px; margin-inline: auto; padding: 1.1rem 1.3rem; border-radius: 18px;
	background: var(--gp-navy); border: 1px solid rgba(163, 212, 255, .25);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); color: #fff;
	opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease;
}
.gp-cookiebar.is-visible { opacity: 1; transform: none; }
.gp-cookiebar__text { flex: 1 1 320px; }
.gp-cookiebar__text p { margin: 0; font-size: .9rem; color: var(--gp-sky); }
.gp-cookiebar__text a { color: var(--gp-lime); text-decoration: underline; }
.gp-cookiebar__actions { display: flex; gap: .7rem; flex: 0 0 auto; }
.gp-cookiebar__btn {
	font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer; min-height: 44px;
	padding: .65rem 1.4rem; border-radius: 999px; border: 2px solid #fff; background: #fff; color: var(--gp-navy);
	transition: transform .2s ease, background .2s ease;
}
.gp-cookiebar__btn:hover { transform: translateY(-2px); background: var(--gp-lime); border-color: var(--gp-lime); }
.gp-cookiebar__btn--accept { background: #fff; }
@media (max-width: 780px) { .gp-cookiebar { bottom: calc(1rem + 64px); } }
@media (max-width: 560px) {
	.gp-cookiebar { flex-direction: column; align-items: stretch; left: .6rem; right: .6rem; }
	.gp-cookiebar__actions { justify-content: stretch; }
	.gp-cookiebar__btn { flex: 1; text-align: center; }
}

/* ---------- Animación de carga: vidrio + césped ---------- */
.gp-loader {
	position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center;
	background: radial-gradient(circle at 50% 40%, #143766, var(--gp-navy) 70%);
	transition: opacity .6s ease, visibility .6s;
	animation: gp-loader-failsafe .6s ease 6s forwards;
}
.gp-loader.is-done { opacity: 0; visibility: hidden; }
@keyframes gp-loader-failsafe { to { opacity: 0; visibility: hidden; } }
.gp-loader__box { display: grid; justify-items: center; gap: 1rem; transition: transform .6s var(--gp-ease); }
.gp-loader.is-done .gp-loader__box { transform: scale(.94) translateY(-10px); }
.gp-loader__art { width: min(200px, 52vw); height: auto; overflow: visible; }
.gp-loader__glass { animation: gp-materialize .9s var(--gp-ease) both; }
.gp-loader__edge { stroke-dasharray: 100; stroke-dashoffset: 100; animation: gp-draw 1s ease .1s forwards; }
.gp-loader__shine { transform-box: fill-box; animation: gp-shine 1.6s ease-in-out .6s infinite; transform: skewX(-25deg) translateX(-80px); }
.gp-loader__mm { opacity: 0; animation: gp-fade .5s ease .9s forwards; }
.gp-loader__base { transform-box: fill-box; transform-origin: 50% 50%; transform: scaleX(0); animation: gp-grow-x .6s var(--gp-ease) .15s forwards; }
.gp-loader__turf path { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); opacity: 0; animation: gp-blade .55s var(--gp-ease) var(--d, .3s) forwards; }
.gp-loader__bar { position: relative; width: min(240px, 64vw); height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(163, 212, 255, .2); }
.gp-loader__fill {
	position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; overflow: hidden;
	background:
		repeating-linear-gradient(100deg, transparent 0 2px, rgba(255, 255, 255, .18) 2px 3px, transparent 3px 6px),
		repeating-linear-gradient(80deg, #2f8a3a 0 3px, #58b947 3px 5px, #3da13a 5px 8px);
	animation: gp-turf-move 1s linear infinite;
}
.gp-loader__shard {
	position: absolute; top: 50%; left: 0; width: 18px; height: 24px; margin: -12px 0 0 -9px;
	clip-path: polygon(30% 0, 100% 18%, 78% 100%, 0 72%);
	background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(163, 212, 255, .55) 45%, rgba(163, 212, 255, .85));
	filter: drop-shadow(0 0 6px rgba(163, 212, 255, .9));
	animation: gp-shard 1.2s ease-in-out infinite;
}
.gp-loader__label { margin: 0; color: #fff; font-weight: 800; letter-spacing: .02em; font-size: .95rem; }
.gp-loader__label b { color: var(--gp-lime); }
.gp-loader__pct { display: inline-block; min-width: 3.2ch; margin-left: .4rem; color: var(--gp-sky); font-weight: 700; font-variant-numeric: tabular-nums; }
@keyframes gp-materialize { from { opacity: 0; filter: blur(8px); transform: translateY(8px) scale(.96); } to { opacity: 1; filter: none; transform: none; } }
@keyframes gp-draw { to { stroke-dashoffset: 0; } }
@keyframes gp-shine { 0% { transform: skewX(-25deg) translateX(-80px); } 60%, 100% { transform: skewX(-25deg) translateX(140px); } }
@keyframes gp-fade { to { opacity: 1; } }
@keyframes gp-grow-x { to { transform: scaleX(1); } }
@keyframes gp-blade { to { transform: scaleY(1); opacity: 1; } }
@keyframes gp-turf-move { to { background-position: 16px 0, 16px 0; } }
@keyframes gp-shard { 50% { transform: rotate(14deg) translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .gp-loader { display: none; } }

/* Configurador: selector de modelo de pista (3 opciones) */
.gp-configurator__options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.gp-configurator__options--3 .gp-opt { min-width: 0; padding: .6rem .55rem; }
.gp-configurator__options--3 .gp-opt strong { font-size: .86rem; overflow-wrap: anywhere; hyphens: auto; }
.gp-configurator__options--3 .gp-opt span { font-size: .72rem; }
@media (max-width: 420px) { .gp-configurator__options--3 { grid-template-columns: 1fr; } }

/* Selector de idioma */
.gp-lang { display: inline-grid; place-items: center; min-width: 44px; min-height: 36px; padding: 0 .6rem; border: 1px solid rgba(163, 212, 255, .45); border-radius: 999px; color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-decoration: none; flex: none; }
.gp-lang:hover { border-color: var(--gp-lime); color: var(--gp-lime); }

/* ---------- Móvil y tableta ---------- */
html, body { overflow-x: clip; }
.gp-hero { overflow-x: clip; }
.gp-btn, .wp-block-button__link { box-sizing: border-box; white-space: normal; text-align: center; max-width: 100%; }
img, video { max-width: 100%; }
@media (max-width: 782px) {
	.gp-header__bar { min-height: 62px; gap: .6rem; }
	.gp-brand img { width: 40px; height: 40px; }
	.gp-section h2 { font-size: clamp(1.5rem, 6.4vw, 2rem); }
	.gp-plans { gap: 1rem; }
}
@media (max-width: 600px) {
	.gp-hero h1 { font-size: clamp(1.65rem, 7.6vw, 2.1rem); }
	.gp-hero .has-large-font-size { font-size: 1.02rem !important; }
	.gp-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.gp-hero .wp-block-button, .gp-hero .wp-block-button__link { width: 100%; }
	.gp-hero__tag { letter-spacing: .18em; }
	.gp-stats li { padding: .8rem .4rem; }
	.gp-plan .gp-btn, .gp-factory .gp-btn { width: 100%; }
	.gp-gallery { grid-template-columns: 1fr 1fr; gap: .6rem; }
	.gp-gallery__main { grid-column: 1 / -1; }
	.gp-configurator__stage { aspect-ratio: 1 / 1.05; max-height: 62vh; }
	.gp-form input, .gp-form textarea, .gp-form select { font-size: 16px; } /* evita el zoom automático de iOS */
	.gp-footer .wp-block-columns { gap: 1.5rem; }
	.gp-lang { min-width: 40px; min-height: 34px; }
	.gp-photo figcaption, .gp-gallery figcaption { left: 8px; right: auto; bottom: 8px; max-width: calc(100% - 16px); padding: .25rem .6rem; font-size: .68rem; line-height: 1.3; border-radius: 10px; }
	.gp-factory__media { grid-template-columns: 1fr 1fr; align-items: start; }
}
