/* =========================================================================
   Gazo Estudio · estilos del tema
   Tokens de diseño, base, cabecera, pie, blog y páginas de texto.
   Los bloques de página (widgets) tienen su CSS en el plugin «Gazo · Widgets».
   ========================================================================= */

@font-face { font-family: "Gellix"; src: url("../fonts/gellix-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Gellix"; src: url("../fonts/gellix-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gellix"; src: url("../fonts/gellix-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Gellix"; src: url("../fonts/gellix-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
	/* Color (manual de marca + fondo real de las fotos) */
	--g-black: #000;
	--g-ink: #121212;
	--g-text: #2b2b2b;
	--g-muted: #5c5c5c;
	--g-line: #e5e3df;
	--g-white: #fff;
	--g-canvas: #f0f0f0;       /* fondo de las fotos del estudio */
	--g-cream: #e2d8c9;        /* crema del manual */
	--g-cream-soft: #f5f1ea;   /* crema para fondos amplios */
	--g-blue: #0f72a3;         /* azul del haz */
	--g-blue-light: #34a6de;
	--g-focus: #0f72a3;

	/* Tipografía */
	--g-font: "Gellix", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--g-fs-body: 1.0625rem;    /* 17px */
	--g-fs-small: .875rem;
	--g-fs-lead: clamp(1.0625rem, .95rem + .45vw, 1.25rem);
	--g-fs-h1: clamp(2.5rem, 1.6rem + 3.9vw, 4.75rem);
	--g-fs-h2: clamp(2rem, 1.55rem + 1.9vw, 3.125rem);
	--g-fs-h3: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);

	/* Espacio y forma */
	--g-wrap: 1240px;
	--g-wrap-text: 720px;
	--g-gutter: clamp(20px, 4vw, 40px);
	--g-section: clamp(72px, 9vw, 136px);
	--g-radius: 6px;
	--g-header-h: 76px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--g-header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	font-family: var(--g-font);
	font-size: var(--g-fs-body);
	line-height: 1.6;
	color: var(--g-text);
	background: var(--g-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--g-font); color: var(--g-ink); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--g-focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--g-cream); color: var(--g-black); }

.g-wrap { width: 100%; max-width: calc(var(--g-wrap) + var(--g-gutter) * 2); margin-inline: auto; padding-inline: var(--g-gutter); }
.g-wrap--text { max-width: calc(var(--g-wrap-text) + var(--g-gutter) * 2); }
.g-h1 { font-size: var(--g-fs-h1); letter-spacing: -.035em; line-height: 1.02; margin-bottom: 20px; }
.g-h2 { font-size: var(--g-fs-h2); letter-spacing: -.03em; }
.g-h3 { font-size: var(--g-fs-h3); }
.g-eyebrow { font-size: var(--g-fs-small); font-weight: 500; color: var(--g-muted); letter-spacing: .01em; margin-bottom: 1rem; }
.g-eyebrow a { text-decoration: none; }
.g-lead { font-size: var(--g-fs-lead); color: var(--g-text); line-height: 1.55; max-width: 38em; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; position: fixed; left: 12px; top: 12px; z-index: 1000; background: #fff; color: #000; padding: 12px 16px; border-radius: var(--g-radius); }

/* ---------- Botones y enlaces ---------- */
.g-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	background: var(--g-black); color: var(--g-white) !important;
	border: 0; border-radius: 999px;
	padding: 1rem 1.6rem; min-height: 52px;
	font: 500 1rem/1.2 var(--g-font); text-decoration: none; letter-spacing: 0;
	cursor: pointer; transition: background-color .2s ease, transform .2s ease;
}
.g-btn:hover { background: #2a2a2a; }
.g-btn:active { transform: translateY(1px); }
.g-btn svg { width: 1.15em; height: 1.15em; transition: transform .2s ease; }
.g-btn:hover svg { transform: translateX(3px); }
.g-btn--sm { padding: .6rem 1.1rem; min-height: 42px; font-size: .9375rem; }
.g-btn--light { background: var(--g-white); color: var(--g-black) !important; }
.g-btn--light:hover { background: var(--g-cream); }
.g-link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.g-link:hover { text-decoration-thickness: 2px; }

.g-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem; }
.g-chip { display: inline-flex; align-items: center; min-height: 40px; padding: .45rem 1rem; border: 1px solid var(--g-line); border-radius: 999px; font-size: .9375rem; text-decoration: none; background: var(--g-white); transition: border-color .2s; }
.g-chip:hover { border-color: var(--g-ink); }
.g-chip.is-active { background: var(--g-ink); border-color: var(--g-ink); color: var(--g-white); }

/* ---------- Cabecera ---------- */
.g-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .2s; }
/* El desenfoque va en una capa aparte: en la propia cabecera, backdrop-filter la convierte
   en contenedor del menú móvil (position: fixed) y el panel se corta a su altura. */
.g-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.g-header.is-scrolled { border-bottom-color: var(--g-line); }
.admin-bar .g-header { top: 32px; }
.g-header__in { display: flex; align-items: center; gap: 24px; min-height: var(--g-header-h); }
.g-logo { display: inline-flex; flex: none; margin-right: auto; }
.g-logo__img { height: 30px; width: auto; }
.g-nav { display: flex; align-items: center; gap: 28px; }
.g-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.g-nav__list a { text-decoration: none; font-size: .9688rem; color: var(--g-ink); padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.g-nav__list a:hover, .g-nav__list .current-menu-item > a { border-bottom-color: currentColor; }
.g-nav__cta { display: none; }
@media (min-width: 961px) {
	.g-nav__list > li { position: relative; }
	.g-nav__list .sub-menu { display: none; position: absolute; left: -18px; top: 100%; min-width: 260px; list-style: none; margin: 0; padding: 10px 0; background: #fff; border: 1px solid var(--g-line); border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }
	.g-nav__list .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
	.g-nav__list li:hover > .sub-menu, .g-nav__list li:focus-within > .sub-menu { display: block; }
	.g-nav__list .sub-menu a { display: block; padding: 9px 18px; border: 0; }
	.g-nav__list .sub-menu a:hover { background: var(--g-cream-soft); }
	.g-nav__list .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
}
.g-header__actions { display: flex; align-items: center; gap: 8px; }
.g-menu-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -6px; color: var(--g-ink); cursor: pointer; border-radius: 8px; }
.g-menu-toggle svg { width: 26px; height: 26px; display: block; }
.g-menu-toggle__close { display: none; }

@media (max-width: 960px) {
	:root { --g-header-h: 64px; }
	.g-header__in { gap: 10px; }
	.g-logo { min-width: 0; flex: 0 1 auto; }
	.g-logo__img { height: 22px; max-width: 100%; }
	.g-header__actions { gap: 4px; flex: none; }
	.g-header__cta { white-space: nowrap; min-height: 40px; padding: .5rem .8rem; font-size: .8125rem; }
	.g-menu-toggle { display: block; padding: 6px; margin-right: -6px; }
	.g-menu-toggle svg { width: 24px; height: 24px; }
	.g-nav {
		position: fixed; inset: var(--g-header-h) 0 0 0; z-index: 49; overflow-y: auto;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--g-white); padding: 8px var(--g-gutter) 28px;
		border-bottom: 1px solid var(--g-line); box-shadow: 0 24px 40px rgba(0,0,0,.06);
		visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
	}
	.admin-bar .g-nav { top: calc(var(--g-header-h) + 46px); }
	.g-nav.is-open { visibility: visible; opacity: 1; transform: none; }
	.g-nav__list { flex-direction: column; gap: 0; }
	.g-nav__list a { display: block; padding: 16px 0; font-size: 1.25rem; border-bottom: 1px solid var(--g-line); }
	.g-nav__list .sub-menu { display: block; list-style: none; padding: 0 0 0 16px; margin: 0; }
	.g-nav__list .sub-menu a { font-size: 1.0625rem; color: var(--g-muted); }
	.g-nav__cta { display: inline-flex; margin-top: 24px; }
	body.g-menu-open { overflow: hidden; }
	body.g-menu-open .g-wa { display: none; }
	body.g-menu-open .g-menu-toggle__open { display: none; }
	body.g-menu-open .g-menu-toggle__close { display: block; }
}
@media (max-width: 782px) { .admin-bar .g-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .g-header { top: 0; } }
@media (max-width: 370px) { .g-header__cta { padding-inline: .65rem; font-size: .75rem; } .g-logo__img { height: 19px; } }

/* ---------- Pie ---------- */
.g-footer { background: var(--g-black); color: #c9c9c9; padding: clamp(56px, 7vw, 96px) 0 32px; font-size: .9688rem; }
.g-footer a { color: #fff; text-decoration: none; }
.g-footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.g-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.g-footer__logo img { height: 56px; width: auto; margin-bottom: 20px; }
.g-footer__brand p { max-width: 30em; }
.g-footer__title { color: #fff; font-size: .875rem; font-weight: 500; letter-spacing: .02em; margin-bottom: 16px; }
.g-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.g-footer__contact a { display: inline-flex; align-items: center; gap: 10px; }
.g-footer__contact svg { width: 18px; height: 18px; flex: none; }
.g-footer__social { display: flex; gap: 16px; margin-top: 18px; }
.g-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid #262626; margin-top: 56px; padding-top: 24px; font-size: .875rem; color: #9a9a9a; }
.g-footer__bottom p { margin: 0; }
.g-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.g-footer__legal a { color: #bdbdbd; }
@media (max-width: 860px) { .g-footer__grid { grid-template-columns: 1fr 1fr; } .g-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .g-footer__grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- WhatsApp flotante ---------- */
.g-wa {
	position: fixed; right: 20px; bottom: 20px; z-index: 40;
	display: inline-flex; align-items: center; gap: 10px;
	background: #fff; color: var(--g-ink); text-decoration: none;
	border: 1px solid var(--g-line); border-radius: 999px;
	padding: 10px 18px 10px 12px; min-height: 52px;
	font-weight: 500; font-size: .9688rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
	transition: transform .2s ease, box-shadow .2s ease, opacity .2s;
}
.g-wa svg { width: 28px; height: 28px; color: #1fa855; }
.g-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .14); }
.g-wa.is-hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }
@media (max-width: 600px) { .g-wa { right: 14px; bottom: 14px; padding: 12px; } .g-wa__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- Cookies: aviso y panel (solo con Google Analytics o Google Ads configurados) ---------- */
.g-btn--line { background: var(--g-white); color: var(--g-ink) !important; box-shadow: inset 0 0 0 1px var(--g-ink); }
.g-btn--line:hover { background: var(--g-canvas); }

/* Aviso: «Rechazar» y «Aceptar» con el mismo peso; «Configurar», como enlace. */
.g-cookies {
	position: fixed; left: 20px; bottom: 20px; z-index: 45; width: min(440px, calc(100% - 40px));
	display: grid; gap: 16px; padding: 20px;
	background: var(--g-white); color: var(--g-text);
	border: 1px solid var(--g-line); border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
}
.g-cookies[hidden] { display: none; }
.g-cookies__text { margin: 0; font-size: .9375rem; line-height: 1.5; }
.g-cookies__text a, .g-cpanel__policy a { color: var(--g-ink); text-decoration: underline; text-underline-offset: .2em; }
.g-cookies__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.g-cookies__actions .g-btn { flex: 1 1 0; min-width: 7.5em; }
.g-cookies__more {
	order: -1; margin-right: auto; padding: 10px 4px; background: none; border: 0;
	font: 500 .9375rem/1.2 var(--g-font); color: var(--g-ink); cursor: pointer;
	text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em;
}
.g-cookies__more:hover { text-decoration-thickness: 2px; }
body.g-cookies-open .g-wa { opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
	.g-cookies { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 18px; }
	/* Los dos botones juntos y del mismo ancho; «Configurar», debajo. */
	.g-cookies__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
	.g-cookies__actions .g-btn { min-width: 0; }
	.g-cookies__more { order: 1; grid-column: 1 / -1; justify-self: center; margin: 0; }
}

/* Panel para elegir por tipos (diálogo modal). */
.g-cpanel {
	width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; margin: auto;
	border: 0; border-radius: 14px; background: var(--g-white); color: var(--g-text);
	box-shadow: 0 24px 64px rgba(0, 0, 0, .2); overflow: auto; overscroll-behavior: contain;
}
.g-cpanel::backdrop { background: rgba(0, 0, 0, .45); }
.g-cpanel__in { padding: clamp(20px, 4vw, 28px); }
.g-cpanel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.g-cpanel__title { font-size: 1.375rem; }
.g-cpanel__close {
	display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin-right: -10px; padding: 0;
	background: none; border: 0; border-radius: 50%; color: var(--g-ink); cursor: pointer;
}
.g-cpanel__close:hover { background: var(--g-canvas); }
.g-cpanel__close:focus-visible { outline: 2px solid var(--g-focus); outline-offset: 2px; }
.g-cpanel__close svg { flex: none; width: 22px; height: 22px; }
.g-cpanel__cat {
	display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px;
	padding: 16px 0; border-bottom: 1px solid var(--g-line);
}
.g-cpanel__name { font-weight: 500; color: var(--g-ink); cursor: pointer; }
.g-cpanel__desc { grid-column: 1; margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--g-muted); }
.g-cpanel__policy { margin: 16px 0 0; font-size: .9375rem; }
.g-cpanel__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.g-cpanel__actions .g-btn { flex: 1 1 0; min-width: 7.5em; }
.g-cpanel__actions .g-btn--line { flex-basis: 100%; order: 1; }
@media (min-width: 521px) { .g-cpanel__actions .g-btn--line { flex: 1.4 1 0; order: 0; } }

/* Interruptor: casilla con aspecto de interruptor (el lector de pantalla la anuncia como tal). */
.g-switch {
	appearance: none; -webkit-appearance: none; position: relative; flex: none; margin: 0;
	width: 46px; height: 28px; border-radius: 999px; background: #8a8a8a; cursor: pointer;
	transition: background-color .2s ease;
}
.g-switch::after {
	content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--g-white); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s ease;
}
.g-switch:checked { background: var(--g-ink); }
.g-switch:checked::after { transform: translateX(18px); }
.g-switch:disabled { cursor: default; background: var(--g-muted); }
.g-switch:focus-visible { outline: 2px solid var(--g-focus); outline-offset: 3px; }

.g-footer__cookies { background: none; border: 0; padding: 0; font: inherit; color: #bdbdbd; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.g-footer__cookies:hover { color: var(--g-white); }

/* ---------- Blog ---------- */
.g-main { display: block; }
.g-blog { padding-bottom: var(--g-section); }
.g-blog__head { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(32px, 4vw, 56px); }
.g-blog__head .g-h1 { margin-bottom: 20px; max-width: 14em; }
.g-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.g-card__link { display: block; text-decoration: none; color: inherit; }
.g-card__media { aspect-ratio: 4 / 3; background: var(--g-canvas); border-radius: var(--g-radius); overflow: hidden; margin-bottom: 18px; }
.g-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-card__link:hover .g-card__media img { transform: scale(1.03); }
.g-card__meta { font-size: var(--g-fs-small); color: var(--g-muted); margin-bottom: .5rem; }
.g-card__title { font-size: 1.375rem; line-height: 1.2; margin-bottom: .6rem; }
.g-card__link:hover .g-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.g-card__excerpt { color: var(--g-muted); font-size: .9688rem; margin: 0; }
.navigation.pagination { margin-top: 56px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-links .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--g-line); border-radius: 999px; text-decoration: none; }
.nav-links .current { background: var(--g-ink); color: #fff; border-color: var(--g-ink); }
@media (max-width: 900px) { .g-posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .g-posts { grid-template-columns: 1fr; } }

/* ---------- Artículo y páginas de texto ---------- */
.g-single { padding-bottom: var(--g-section); }
.g-single__head { padding-top: clamp(40px, 6vw, 88px); padding-bottom: 32px; }
.g-single__title { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); margin-bottom: 20px; }
.g-single__media { margin-block: 8px 48px; }
.g-single__media img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--g-radius); background: var(--g-canvas); }
.g-prose { font-size: 1.125rem; line-height: 1.7; }
.g-prose > * + * { margin-top: 1.1em; }
.g-prose h2 { font-size: 1.75rem; margin-top: 2em; }
.g-prose h3 { font-size: 1.3125rem; margin-top: 1.6em; }
.g-prose a { color: var(--g-blue); text-underline-offset: .2em; }
.g-prose ul, .g-prose ol { padding-left: 1.25em; }
.g-prose li + li { margin-top: .4em; }
.g-prose img { border-radius: var(--g-radius); }
.g-prose blockquote { border-left: 2px solid var(--g-ink); margin: 1.5em 0; padding-left: 1.25em; font-size: 1.25rem; color: var(--g-ink); }
.g-prose .g-note { background: var(--g-cream-soft); border-radius: var(--g-radius); padding: 16px 20px; font-size: 1rem; }
/* Páginas de texto editadas con Elementor (legales): los bloques de «Editor de texto» siguen el mismo ritmo.
   En la web el texto va directo en el widget; en el editor, dentro de .elementor-text-editor. */
.g-prose :is(.elementor-widget-text-editor, .elementor-text-editor) > :is(p, h2, h3, h4, ul, ol, blockquote) + :is(p, h2, h3, h4, ul, ol, blockquote) { margin-top: 1.1em; }
.g-prose :is(.elementor-widget-text-editor, .elementor-text-editor) > :is(p, ul, ol):last-child { margin-bottom: 0; }
.g-prose :is(.elementor-widget-text-editor, .elementor-text-editor) > h2:first-child { margin-top: 1.6em; }
.g-prose .elementor-element + .elementor-element { margin-top: 1.1em; }
.page .g-single:not(.type-post) .g-single__head { padding-bottom: 8px; }
.g-single__cta { margin-top: 64px; }
.g-single__cta { background: var(--g-cream-soft); border-radius: var(--g-radius); padding: clamp(28px, 4vw, 44px); max-width: calc(var(--g-wrap-text) + var(--g-gutter) * 2); }
.g-single__cta-title { font-size: 1.5rem; font-weight: 500; color: var(--g-ink); letter-spacing: -.02em; margin-bottom: .4em; }
.g-related { margin-top: var(--g-section); }
.g-related .g-h3 { margin-bottom: 28px; }

/* ---------- 404 ---------- */
.g-404 { padding-block: clamp(72px, 12vw, 160px); }
.g-404__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 2rem; }
