/*
Theme Name: Picstome (GeneratePress)
Theme URI: https://picstome.com
Description: Child theme de GeneratePress con el diseño de marca de Picstome. Mantiene la paleta verde original (#316d61) y la tipografía Inter.
Author: Picstome
Template: generatepress
Version: 2.0.0
Text Domain: generatepress-picstome
*/

/* ============================================================
   1. Tokens de marca
   ============================================================ */
:root {
	--ps-green: #316d61;
	--ps-green-dark: #24544a;
	--ps-green-soft: #3c8577;
	--ps-ink: #322f30;
	--ps-coral: #ee6958;
	--ps-sage: #c6d8af;
	--ps-paper: #f1f2eb;
	--ps-pale: #eff3f2;
	--ps-card: #f5f8f7;
	--ps-ink-soft: #322f30;
	--ps-muted: #5b6462;
	--ps-line: #dfe6e2;
	--ps-white: #ffffff;
	--ps-radius: 16px;
	--ps-radius-sm: 10px;
	--ps-shadow: 0 10px 30px -12px rgba(24, 58, 51, .22);
	--ps-shadow-hover: 0 18px 44px -14px rgba(24, 58, 51, .30);
	--ps-container: 1240px;
	--ps-text: 780px;
	--ps-yellow: #eeeadd;
}

/* ============================================================
   2. Base tipográfica
   ============================================================ */
/*
 * Ninguna página debe generar scroll horizontal. `clip` recorta sin crear
 * un contenedor de scroll, así que el header y las cabeceras fijas siguen
 * funcionando. El fallback cubre navegadores antiguos sin soporte de clip.
 */
html,
body {
	max-width: 100%;
	overflow-x: clip;
}
@supports not (overflow: clip) {
	html,
	body { overflow-x: hidden; }
}

body {
	font-family: var(--ps-body-font, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif);
	font-size: 18px;
	line-height: 1.65;
	color: var(--ps-ink);
	background-color: var(--ps-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "cv11", "ss01";
}

h1, h2, h3, h4, h5, h6,
.entry-title, .widget-title, .main-title {
	font-family: var(--ps-heading-font, "Inter", -apple-system, sans-serif);
	font-weight: 700;
	letter-spacing: -.022em;
	line-height: 1.14;
	color: var(--ps-ink);
	text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.9rem); }
h4 { font-size: 1.35rem; }

p { margin-bottom: 1.25em; }

a { color: var(--ps-green); text-decoration: none; }
a:hover, a:focus { color: var(--ps-green-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   3. Contenedores y layout
   ============================================================ */
.grid-container,
.inside-header,
.inside-navigation,
.site-main .wp-block-group__inner-container,
.inside-site-info {
	max-width: var(--ps-container);
}

/* Sin sidebar: contenido a todo el ancho, sin paddings del tema padre. */
.site-content {
	display: block !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
}
.separate-containers .site-main,
.separate-containers.no-sidebar .site-main {
	margin: 0 !important;
	width: 100%;
}
.one-container .site-content,
.separate-containers .inside-article,
.inside-article {
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
}
#content .site-main { max-width: none; }
.entry-content {
	max-width: none !important;
	width: 100%;
	padding-left: clamp(20px, 4vw, 48px);
	padding-right: clamp(20px, 4vw, 48px);
	box-sizing: border-box;
}
/* Los bloques normales se centran a ancho de marca; alignfull se escapa del padding */
.entry-content > *:not(.alignfull) {
	max-width: var(--ps-container);
	margin-left: auto;
	margin-right: auto;
}

/* Anchos de bloque de WordPress
   GeneratePress inyecta reglas inline después del child theme; usamos
   `body` para ganar especificidad sin recurrir a !important en todo. */
body .entry-content .alignwide {
	width: min(100%, var(--ps-container)) !important;
	max-width: var(--ps-container) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
body .entry-content .alignfull {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}
.entry-content > .wp-block-group__inner-container,
.wp-block-cover__inner-container,
.wp-block-group__inner-container {
	max-width: var(--ps-container);
	margin-left: auto;
	margin-right: auto;
}

/* ============================================================
   4. Header
   ============================================================ */
.site-header {
	background: #fff !important;
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid var(--ps-line);
	box-shadow: 0 1px 0 0 rgba(19, 46, 40, .04);
	transition: box-shadow .25s ease;
}
.site-header.ps-header--scrolled {
	box-shadow: 0 10px 30px -20px rgba(19, 46, 40, .65);
}
@media (prefers-reduced-motion: reduce) {
	.site-header { transition: none; }
}
body.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.inside-header {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between;
	gap: 28px;
	padding: 14px 28px !important;
	width: 100%;
	margin: 0 auto;
}
.site-branding-container { display: flex; align-items: center; flex: 0 0 auto; }
.site-branding { display: none; }
.site-logo img.header-image {
	width: auto;
	max-height: 44px;
	height: auto;
	display: block;
}
.site-logo { line-height: 0; }
@media (min-width: 1000px) {
	.site-logo img.header-image { max-height: 52px; }
}

#site-navigation { margin-left: auto; flex: 0 1 auto; min-width: 0; }
.inside-navigation { justify-content: flex-end; }
.main-navigation .main-nav > ul {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 2px;
}
/* En móvil devolvemos el control a GeneratePress (menú hamburguesa) */
@media (max-width: 768px) {
	.main-navigation .main-nav > ul {
		display: block !important;
		flex-wrap: wrap !important;
		width: 100%;
	}
	.main-navigation:not(.toggled) .main-nav > ul { display: none !important; }
	.main-navigation .main-nav ul li a { white-space: normal; }
}
.main-navigation .main-nav ul li a {
	padding: 10px 15px !important;
	line-height: 1.3 !important;
	font-size: 16px;
	font-weight: 600;
	color: var(--ps-ink-soft);
	border-radius: 999px;
	white-space: nowrap;
	transition: color .18s ease, background-color .18s ease;
}
.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:focus-within > a {
	color: var(--ps-green) !important;
	background: var(--ps-pale);
}
.main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--ps-green) !important; }

/* Último elemento del menú (Login) como botón */
#site-navigation .main-nav > ul > li:last-child > a {
	background: var(--ps-green);
	color: #fff !important;
	padding: 11px 24px !important;
	margin-left: 10px;
	box-shadow: 0 6px 16px -8px rgba(49, 109, 97, .8);
}
#site-navigation .main-nav > ul > li:last-child > a:hover,
#site-navigation .main-nav > ul > li:last-child > a:focus {
	background: var(--ps-green-dark);
	color: #fff !important;
	text-decoration: none;
}

/* Submenús desplegables */
.main-navigation .main-nav ul ul {
	background: #fff !important;
	border: 1px solid var(--ps-line);
	border-radius: 14px;
	box-shadow: 0 18px 40px -18px rgba(19, 46, 40, .35);
	padding: 8px !important;
	min-width: 240px;
	overflow: visible;
	height: auto;
}
.main-navigation .main-nav ul ul li a {
	border-radius: 9px;
	font-weight: 500;
	font-size: 15px;
	padding: 10px 14px !important;
	line-height: 1.35 !important;
	white-space: normal;
}
.main-navigation .main-nav ul ul li:hover > a { background: var(--ps-pale); color: var(--ps-green) !important; }

/* Hamburguesa en móvil */
.menu-toggle {
	font-weight: 600;
	border-radius: 12px;
	padding: 8px 16px !important;
	color: var(--ps-ink) !important;
}
.menu-toggle:hover, .menu-toggle:focus { background: var(--ps-pale) !important; }

@media (max-width: 768px) {
	.inside-header {
		position: relative;
		flex-wrap: wrap !important;
		row-gap: 0 !important;
		padding: 8px 18px !important;
	}
	.site-logo img.header-image { max-height: 32px; }
	.menu-toggle {
		line-height: 1 !important;
		padding: 8px 12px !important;
		min-height: 40px;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
	}
	.main-navigation .main-nav ul li a { font-size: 16px; }
	#site-navigation .main-nav > ul > li:last-child > a { margin-left: 0; display: block; text-align: center; }

	/* El panel del menú se despliega debajo; cerrado no engorda el header. */
	.main-navigation.nav-align-right.sub-menu-right {
		display: none !important;
		margin-top: 0 !important;
		width: 100%;
		background: #fff !important;
		border-top: 1px solid var(--ps-line);
		box-shadow: 0 18px 30px -24px rgba(19, 46, 40, .5);
	}
	.main-navigation.nav-align-right.sub-menu-right.toggled { display: block !important; }
	.main-navigation.nav-align-right.sub-menu-right .menu-toggle { display: none !important; }
	.main-navigation.nav-align-right.sub-menu-right .main-nav {
		padding: 6px 18px 14px;
	}
}

/* ============================================================
   5. Botones
   ============================================================ */
/* Los botones reales (CTA) llevan estilo de marca. Excluimos los controles
   de UI (pestañas del selector de features y toggles del acordeón) para que
   no hereden el fondo verde y el texto blanco. */
.wp-block-button__link,
button:not(.ps-tab):not(.wp-block-accordion-heading__toggle):not(.menu-toggle),
input[type="submit"], input[type="button"], .button {
	font-family: inherit;
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 0;
	background-color: var(--ps-green) !important;
	color: #fff !important;
	border: 1.5px solid var(--ps-green) !important;
	border-radius: 999px !important;
	padding: 13px 28px;
	box-sizing: border-box;
	box-shadow: 0 8px 20px -10px rgba(49, 109, 97, .7);
	transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.wp-block-button__link:hover, .wp-block-button__link:focus,
.wp-block-button__link:not(.has-background):hover,
button:not(.ps-tab):not(.wp-block-accordion-heading__toggle):not(.menu-toggle):hover,
input[type="submit"]:hover, .button:hover {
	background-color: var(--ps-green-dark) !important;
	border-color: var(--ps-green-dark) !important;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 14px 28px -12px rgba(49, 109, 97, .75);
	text-decoration: none;
}

/* Controles de UI: sin fondo, sin sombra, texto oscuro. */
.ps-tab,
.wp-block-accordion-heading__toggle,
.menu-toggle {
	background-color: transparent !important;
	background-image: none !important;
	color: var(--ps-ink) !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	transform: none !important;
	font-weight: inherit;
	letter-spacing: inherit;
}
/* CTA con fondo propio (definido inline en el contenido): texto siempre claro */
.wp-block-button__link.has-background,
.wp-block-button__link:is(.has-primary-background-color, .has-accent-background-color, .has-contrast-background-color) {
	color: #fff !important;
}
/* Botón blanco (sobre foto / fondos oscuros) */
.wp-block-button__link.has-white-background-color {
	background-color: #fff !important;
	color: var(--ps-green) !important;
	border-color: #fff !important;
	box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45) !important;
}
.wp-block-button__link.has-white-background-color:hover {
	background-color: var(--ps-pale) !important;
	color: var(--ps-green-dark) !important;
}
/* Outline */
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button__link.has-transparent-background-color {
	background-color: transparent !important;
	color: var(--ps-green) !important;
	border: 1.5px solid var(--ps-green) !important;
	box-shadow: none !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button__link.has-transparent-background-color:hover {
	background-color: var(--ps-green) !important;
	color: #fff !important;
}
/* Outline sobre foto / fondos oscuros */
.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-cover .wp-block-button__link.has-transparent-background-color,
.wp-block-group.has-black-background-color .wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-group.has-black-background-color .wp-block-button__link.has-transparent-background-color,
.wp-block-group.has-contrast-background-color .wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-group.has-contrast-background-color .wp-block-button__link.has-transparent-background-color {
	border-color: rgba(255, 255, 255, .7) !important;
	color: #fff !important;
}
.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-cover .wp-block-button__link.has-transparent-background-color:hover {
	background-color: rgba(255, 255, 255, .14) !important;
	color: #fff !important;
}
.wp-block-buttons { gap: 12px !important; }

/* ============================================================
   6. Secciones y grupos
   ============================================================ */
.wp-block-group.has-background {
	border-radius: 0;
}
.entry-content > .wp-block-group.alignfull {
	padding-top: 72px !important;
	padding-bottom: 72px !important;
	padding-left: clamp(20px, 5vw, 48px) !important;
	padding-right: clamp(20px, 5vw, 48px) !important;
}
.entry-content > .wp-block-group.alignfull > .wp-block-group__inner-container,
.entry-content > .wp-block-group.alignfull > .wp-block-group__inner-container > * {
	max-width: var(--ps-container);
	margin-left: auto;
	margin-right: auto;
}
/* Espaciado entre los bloques internos de un grupo */
.entry-content .wp-block-group__inner-container > * + * { margin-top: 0; }
.entry-content .wp-block-group__inner-container > .wp-block-group + .wp-block-group { margin-top: 28px; }

/* Espaciado vertical cómodo entre bloques sueltos */
.entry-content > * + * { margin-top: 28px; }
.entry-content > .wp-block-group,
.entry-content > .wp-block-columns { margin-top: 0; }

/* ============================================================
   7. Hero / Cover
   ============================================================ */
.wp-block-cover {
	border-radius: 0;
	padding: 0;
}
.wp-block-cover.alignfull {
	min-height: 480px;
}
/* Cover de los heroes (imagen + overlay): el contenido gestiona su padding */
.wp-block-cover > .wp-block-cover__inner-container {
	padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 48px);
	width: 100%;
	max-width: var(--ps-container);
	margin-left: auto;
	margin-right: auto;
}
.wp-block-cover.is-light > .wp-block-cover__inner-container { color: var(--ps-ink); }
.entry-content > .wp-block-cover:first-child { padding-top: 0 !important; }
.wp-block-cover h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: .35em; }
.wp-block-cover h2 { font-size: clamp(1.3rem, 2.2vw, 2rem); font-weight: 600; }
.wp-block-cover p.has-medium-font-size { font-size: 1.15rem; }

/* Cover tipo "split" (páginas de producto): tarjeta interior */
.wp-block-cover.is-light.is-style-default > .wp-block-cover__inner-container {
	padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
}
.wp-block-cover.is-light .wp-block-media-text {
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}
.wp-block-cover.is-light .wp-block-media-text__media img {
	border-radius: var(--ps-radius);
	box-shadow: 0 25px 60px -25px rgba(23, 62, 54, .45);
}
/* Generar contenido a ancho completo dentro del hero claro */
.wp-block-cover.is-light .wp-block-media-text.alignwide {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Etiqueta tipo "eyebrow" (GALLERIES, FEATURES...) */
.entry-content p[style*="text-transform:uppercase"],
.entry-content p.tw-eyebrow {
	font-weight: 800 !important;
	letter-spacing: .16em !important;
	font-size: .82rem !important;
	text-transform: uppercase;
	color: var(--ps-green) !important;
}
.entry-content p[style*="text-transform:uppercase"] mark { color: var(--ps-green) !important; }

/* Los <mark> heredados del editor antiguo no deben imponer color ni fondo */
mark.has-inline-color {
	background: transparent !important;
	color: inherit !important;
}

/* Tarjeta media+texto (antes usaba Twentig) */
.wp-block-media-text.is-style-tw-shadow {
	background: #fff;
	border-radius: var(--ps-radius);
	box-shadow: var(--ps-shadow);
	overflow: hidden;
	padding: 0;
}
.wp-block-media-text.is-style-tw-shadow .wp-block-media-text__content { padding: clamp(24px, 3vw, 40px); }
.wp-block-media-text.is-style-tw-shadow .wp-block-media-text__media img {
	border-radius: 0;
	box-shadow: none;
	height: 100%;
	object-fit: cover;
}

/* ============================================================
   8. Tarjetas / columnas
   ============================================================ */
.wp-block-column {
	border-radius: var(--ps-radius) !important;
}
.wp-block-column.has-background {
	border-radius: var(--ps-radius) !important;
	box-shadow: 0 8px 22px -14px rgba(24, 58, 51, .28);
	transition: transform .2s ease, box-shadow .2s ease;
}
.wp-block-column.has-background:hover {
	transform: translateY(-3px);
	box-shadow: var(--ps-shadow-hover);
}
.wp-block-columns.tw-cols-card > .wp-block-column {
	border-radius: var(--ps-radius) !important;
}
.wp-block-columns.tw-cols-card-shadow > .wp-block-column {
	box-shadow: var(--ps-shadow) !important;
	border-radius: var(--ps-radius) !important;
	border: 1px solid rgba(49, 109, 97, .08);
	transition: transform .2s ease, box-shadow .2s ease;
}
.wp-block-columns.tw-cols-card-shadow > .wp-block-column:hover {
	transform: translateY(-4px);
	box-shadow: var(--ps-shadow-hover) !important;
}
/* Columnas vacías decorativas: ocultarlas para no romper el grid */
.wp-block-column:empty { display: none !important; }
.wp-block-columns { gap: 28px !important; }
@media (max-width: 1023px) { .wp-block-columns { gap: 22px !important; } }

/* Listas de features en tarjetas */
.wp-block-list.is-style-tw-checkmark li {
	font-size: 1rem;
	line-height: 1.5;
}
ul.is-style-tw-checkmark li::before { color: var(--ps-green); font-weight: 700; }
.wp-block-list li { margin-bottom: .45em; }

/* ============================================================
   9. Tipografía de soporte
   ============================================================ */
.has-small-font-size { font-size: .95rem !important; }
.has-medium-font-size { font-size: 1.12rem !important; }
.has-large-font-size { font-size: 1.5rem !important; }
.has-x-large-font-size { font-size: 1.9rem !important; }

/* Separadores */
.wp-block-separator.is-style-tw-short { background: var(--ps-green) !important; opacity: 1; height: 3px; }
hr.wp-block-separator { border-color: var(--ps-line); opacity: 1; }

/* Tablas (pricing) */
.wp-block-table table { border-collapse: collapse; border: 1px solid var(--ps-line); border-radius: 14px; overflow: hidden; font-size: 1rem; }
.wp-block-table th { background: var(--ps-pale); color: var(--ps-green); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.wp-block-table td, .wp-block-table th { padding: 14px 16px; border-bottom: 1px solid var(--ps-line); }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) td { background: #fbfcfc; }

/* Acordeones (core accordion) */
.wp-block-accordion { border-top: 1px solid var(--ps-line); }
.wp-block-accordion-item { border-bottom: 1px solid var(--ps-line); }
.wp-block-accordion-heading__toggle {
	background: transparent !important;
	color: var(--ps-ink) !important;
	font-weight: 700;
	font-size: 1.05rem;
	padding: 18px 4px !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	width: 100%;
	text-align: left;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.wp-block-accordion-heading__toggle:hover { color: var(--ps-green) !important; transform: none; background: transparent !important; }
.wp-block-accordion-heading__toggle-icon { color: var(--ps-green); font-size: 1.4rem; line-height: 1; }
.wp-block-accordion-panel { padding: 0 4px 18px; color: var(--ps-muted); }

/* Acordeón del plugin Lightweight Accordion */
.lightweight-accordion {
	background: #fff !important;
	border: 1px solid var(--ps-line) !important;
	border-radius: 14px !important;
	margin-bottom: 14px !important;
	overflow: hidden;
	box-shadow: 0 6px 18px -14px rgba(24,58,51,.25);
}
.lightweight-accordion-title {
	padding: 18px 22px !important;
	font-weight: 700 !important;
	font-size: 1.05rem !important;
	color: var(--ps-ink) !important;
	background: #fff !important;
	cursor: pointer;
}
.lightweight-accordion-body { padding: 0 22px 20px !important; color: var(--ps-muted); }
.lightweight-accordion-body img { border-radius: 12px; }

/* Bloque FAQ con clase faq-green */
.faq-green {
	max-width: var(--ps-container) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	background: var(--ps-card);
	border-radius: var(--ps-radius);
	padding: 40px 32px !important;
}

/* GeneratePress printa un page-header duplicado en blog/búsqueda/archivos;
   ya generamos el nuestro con ps-archive-header. */
.blog .page-header, .archive .page-header, .search .page-header,
.blog .page-title, .archive .page-title, .search .page-title { display: none !important; }

/* ============================================================
   10. Blog
   ============================================================ */
#main .post,
#main .hentry {
	margin-bottom: 30px;
}
#main article .inside-article {
	border-radius: var(--ps-radius) !important;
}
.blog #main,
.archive #main { padding: 56px 24px 40px; max-width: var(--ps-container) !important; margin: 0 auto !important; }
.blog .grid-container, .archive .grid-container { max-width: var(--ps-container); }

.blog .site-main .posts-wrapper,
.blog #main article {
	display: flex;
	flex-direction: column;
}
.blog #main article .inside-article,
.archive #main article .inside-article,
.search #main article .inside-article {
	background: #fff !important;
	border: 1px solid var(--ps-line) !important;
	border-radius: var(--ps-radius) !important;
	padding: 30px 32px !important;
	box-shadow: var(--ps-shadow);
	transition: transform .2s ease, box-shadow .2s ease;
	height: 100%;
}
.blog #main article .inside-article:hover,
.archive #main article .inside-article:hover { transform: translateY(-4px); box-shadow: var(--ps-shadow-hover); }

.blog .entry-title, .archive .entry-title, .blog h2.entry-title { font-size: clamp(1.5rem, 2.4vw, 2rem) !important; margin-bottom: .4em; }
.blog .entry-title a { color: var(--ps-ink) !important; }
.blog .entry-title a:hover { color: var(--ps-green) !important; }
.blog .entry-meta { color: var(--ps-muted); font-size: .9rem; margin-top: 0; }
.blog .entry-summary { color: #3c4644; font-size: 1rem; margin-top: 14px; }
.blog .read-more { font-weight: 700; display: inline-block; margin-top: 8px; }

/* Rejilla de posts */
.ps-archive-header {
	grid-column: 1 / -1;
	max-width: 900px;
	text-align: center;
	margin: 0 auto 24px;
}
.ps-eyebrow {
	font-size: .82rem !important;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ps-green);
	margin-bottom: .6em;
}
.ps-archive-title { font-size: clamp(2rem, 3.4vw, 3rem) !important; margin-bottom: .25em; }
.ps-archive-intro { color: var(--ps-muted); font-size: 1.08rem; max-width: 620px; margin: 0 auto; }

@media (min-width: 782px) {
	.blog .site-main, .archive .site-main, .search .site-main {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 28px;
		row-gap: 28px;
		align-items: start;
	}
	.blog .site-main > * { margin-bottom: 0 !important; }
	.ps-archive-header,
	.blog .site-main > .paging-navigation,
	.blog .site-main > .navigation { grid-column: 1 / -1; }
}
.blog .paging-navigation, .blog .navigation { grid-column: 1 / -1; }

/* Página de post individual */
.single .site-main, .single #main { max-width: 820px !important; margin: 0 auto !important; padding: 48px 24px; }
.single .inside-article { padding: 0 !important; }
.single .entry-title { margin-bottom: .6em; }
.single .entry-content { font-size: 1.06rem; line-height: 1.75; }
.single .entry-content .alignfull { margin-left: calc(50% - 50vw) !important; width: 100vw !important; }
.single .entry-content .alignwide { width: min(calc(100vw - 48px), 1000px) !important; max-width: 1000px !important; }

/* Selector de idioma en el footer */
.ps-lang-switcher {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
}
.ps-lang-switcher li {
	display: inline-block;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	border: 0 !important;
}
.ps-lang-switcher a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 30px;
	padding: 0 10px !important;
	border-radius: 999px;
	font-size: 12px !important;
	font-weight: 800 !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1 !important;
	color: var(--ps-muted) !important;
	text-decoration: none !important;
	background: var(--ps-pale);
}
.ps-lang-switcher a:hover { background: var(--ps-green); color: #fff !important; }
.ps-lang-switcher li.current-lang a,
.ps-lang-switcher a.current-lang { background: var(--ps-green); color: #fff !important; }

/* ============================================================
   11. Footer
   ============================================================ */
.site-footer { background: var(--ps-green) !important; color: rgba(255, 255, 255, .82); margin-top: 0; border: 0; }
.site-info { background: transparent !important; }
.inside-site-info {
	padding: 34px clamp(20px, 4vw, 48px) !important;
	display: flex !important;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	max-width: var(--ps-container);
	margin: 0 auto;
}
.copyright-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	font-size: .88rem;
	color: rgba(255, 255, 255, .78);
	width: 100%;
}
.copyright-bar .copyright { color: #fff; font-weight: 800; font-size: .98rem; white-space: nowrap; }
.ps-footer-links {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	align-items: center;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.ps-footer-links li { margin: 0 !important; list-style: none !important; }
.ps-footer-links a { color: rgba(255, 255, 255, .82); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.ps-footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ps-footer-social { display: flex; gap: 10px; align-items: center; }
.ps-footer-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.ps-footer-social a {
	width: 38px; height: 38px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .14);
	color: #fff !important;
	line-height: 0;
	transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.ps-footer-social a svg { width: 20px; height: 20px; display: block; fill: currentColor; }
.ps-footer-social a:hover {
	background: #fff;
	color: var(--ps-green) !important;
	text-decoration: none;
	transform: translateY(-1px);
}

/* Tuk 11 continuación: el footer de GP pinta .site-info en blanco; lo forzamos */
.site-info,
.site-info.inside-site-info {
	background: transparent !important;
}
.inside-site-info .ps-lang-switcher {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-left: auto;
}
.inside-site-info .ps-lang-switcher a { background: rgba(255,255,255,.14); color: #fff !important; }
.inside-site-info .ps-lang-switcher a:hover { background: #fff; color: var(--ps-green) !important; }
.inside-site-info .ps-lang-switcher li.current-lang a { background: #fff; color: var(--ps-green) !important; }

@media (min-width: 782px) {
	.copyright-bar { flex-wrap: nowrap; gap: 10px; }
	.ps-footer-links { gap: 12px; }
	.ps-footer-right { gap: 12px; }
}
@media (max-width: 781px) {
	.copyright-bar { justify-content: center; text-align: center; }
	.ps-footer-right { margin: 0 auto; justify-content: center; }
}

@media (max-width: 768px) {
	.inside-site-info { justify-content: center; text-align: center; padding: 26px 20px !important; }
}

/* ============================================================
   12. Páginas legales / texto largo
   ============================================================ */
.page-id-3 .site-main, .page-id-91 .site-main,
.page-id-170 .site-main, .page-id-173 .site-main {
	max-width: 820px !important;
	margin: 0 auto !important;
	padding: 64px 24px 72px;
}
.page-id-48 .site-main {
	max-width: 900px !important;
	margin: 0 auto !important;
	padding: 64px 24px 72px;
}
.page-id-3 .entry-content, .page-id-91 .entry-content,
.page-id-170 .entry-content, .page-id-173 .entry-content,
.page-id-48 .entry-content { font-size: 1.05rem; line-height: 1.8; }
.page-id-3 .entry-content h2, .page-id-91 .entry-content h2,
.page-id-170 .entry-content h2, .page-id-173 .entry-content h2 { margin-top: 2em; }

/* ============================================================
   13. Utilidades
   ============================================================ */
:root {
	--wp--preset--color--primary: #316d61;
	--wp--preset--color--subtle: #eff3f2;
	--wp--preset--color--subtle-light-gray: #f5f8f7;
	--wp--preset--color--dark-gray: #322f30;
	--wp--preset--color--yellow: #eeeadd;
	--wp--preset--spacing--10: 0.35rem;
	--wp--preset--spacing--30: 0.75rem;
	--wp--preset--spacing--50: 1.5rem;
	--wp--preset--spacing--70: 3.5rem;
}

/* Presets de color usados en el contenido */
.has-primary-color, .has-primary-color.has-text-color { color: var(--ps-green) !important; }
.has-primary-background-color { background-color: var(--ps-green) !important; }
.has-subtle-background-color, .has-subtle-light-gray-background-color { background-color: var(--ps-pale) !important; }
.has-subtle-pale-green-background-color { background-color: #e8f1ee !important; }
.has-subtle-pale-blue-background-color { background-color: #e9eff3 !important; }
.has-subtle-pale-pink-background-color { background-color: #f4ecea !important; }
.has-transparent-background-color { background-color: transparent !important; }
.has-yellow-background-color { background-color: var(--ps-yellow, #eeeadd) !important; }
.has-dark-gray-color, .has-dark-gray-color.has-text-color { color: var(--ps-ink-soft) !important; }
.has-very-light-gray-background-color { background-color: #f6f7f7 !important; }
.has-very-dark-gray-background-color { background-color: #2f2f33 !important; }
.has-inline-color, mark.has-inline-color { color: inherit; }

/* Enlaces en botones nunca con subrayado */
.wp-block-button__link, .wp-block-button__link:hover { text-decoration: none !important; }

/* Footer: landings por tipo de fotografía */
.ps-footer-niches {
	flex-basis: 100%;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 4px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .14);
}
.ps-footer-heading {
	color: rgba(255, 255, 255, .55);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Footer: rejilla de columnas */
.inside-site-info {
	display: block !important;
	padding: 46px clamp(20px, 4vw, 48px) 26px !important;
}
.copyright-bar { display: block !important; width: 100%; }
.ps-footer-grid {
	display: grid;
	grid-template-columns: 1.1fr .8fr 1.9fr .9fr;
	gap: clamp(24px, 3vw, 48px);
	align-items: start;
}
.ps-footer-col--brand { display: flex; flex-direction: column; gap: 14px; }
.ps-footer-logo img {
	height: 32px;
	width: auto;
	filter: brightness(0) invert(1);
	opacity: .96;
}
.ps-footer-tagline {
	margin: 0 !important;
	max-width: 26ch;
	color: rgba(255, 255, 255, .70) !important;
	font-size: .88rem !important;
	line-height: 1.55 !important;
}
.ps-footer-help { margin: 0 0 26px !important; }
.ps-footer-help-title {
	margin: 0 0 12px !important;
	color: #fff;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .1em;
	line-height: 1.4;
	text-transform: uppercase;
}
.ps-footer-help-link { margin: 0 !important; }
.ps-footer-help-link + .ps-footer-help-link { margin-top: 6px !important; }
.ps-footer-help-link a {
	color: rgba(255, 255, 255, .70);
	font-size: .86rem;
	line-height: 1.4;
	text-decoration: none !important;
}
.ps-footer-help-link a:hover {
	color: #fff;
	text-decoration: underline !important;
}
.ps-footer-title {
	margin: 0 0 14px !important;
	color: #fff !important;
	font-size: .72rem !important;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.ps-footer-col ul {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	display: grid;
	gap: 9px;
}
.ps-footer-col li { margin: 0 !important; list-style: none !important; }
.ps-footer-col a {
	color: rgba(255, 255, 255, .78);
	font-size: .9rem;
	font-weight: 500;
}
.ps-footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ps-footer-niches-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.ps-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: 34px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .15);
}
.ps-footer-copy { color: rgba(255, 255, 255, .68); font-size: .83rem; }
.ps-footer-bottom .ps-footer-social { margin-left: auto; }
@media (max-width: 1000px) {
	.ps-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
	.ps-footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
	.ps-footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.ps-footer-niches-list { grid-template-columns: 1fr; }
	.ps-footer-bottom { flex-direction: column; align-items: flex-start; }
	.ps-footer-bottom .ps-footer-social { margin-left: 0; }
}

/* Footer: alineación a la izquierda (GP centra el copyright) */
.ps-footer-grid,
.ps-footer-grid .ps-footer-col,
.ps-footer-bottom { text-align: left; }
.ps-footer-col ul { justify-items: start; }
.ps-footer-niches-list { justify-items: start; }

/* ── 404 ─────────────────────────────────────────────────── */
.ps-404 {
	text-align: center;
	padding: clamp(56px, 8vw, 110px) 20px clamp(64px, 9vw, 120px) !important;
	background:
		radial-gradient(80% 70% at 88% -10%, rgba(198, 216, 175, .45) 0%, rgba(198, 216, 175, 0) 62%),
		linear-gradient(180deg, #f6f7f1 0%, #f1f2eb 55%, #ffffff 100%);
}
.ps-404-kicker {
	margin: 0 0 12px !important;
	color: var(--ps-coral, #ee6958);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.ps-404-title {
	margin: 0 !important;
	font-size: clamp(2.2rem, 4.6vw, 3.9rem) !important;
	line-height: 1.05 !important;
	letter-spacing: -.045em;
	color: var(--ps-ink, #322f30);
}
.ps-404-text {
	max-width: 620px;
	margin: 18px auto 0 !important;
	font-size: 1.05rem !important;
	line-height: 1.65 !important;
	color: var(--ps-muted, #5b6462) !important;
}
.ps-404-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 30px;
}
.ps-404-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 24px;
	border-radius: 999px;
	background: var(--ps-green, #316d61);
	color: #fff !important;
	font-size: .95rem;
	font-weight: 700;
	text-decoration: none !important;
}
.ps-404-btn:hover { background: var(--ps-green-dark, #24544a); }
.ps-404-btn--ghost {
	background: #fff;
	color: var(--ps-green, #316d61) !important;
	border: 1px solid #d6e0da;
}
.ps-404-btn--ghost:hover { background: #eef4ee; }
.ps-404-small {
	margin: 34px auto 0 !important;
	font-size: .9rem !important;
	color: var(--ps-muted, #5b6462) !important;
}
.ps-404-small a { color: var(--ps-green, #316d61); text-decoration: underline; }

/* Archivos: el título duplicado de GeneratePress sobra. */
.archive .page-header,
.author .page-header,
.search .page-header { display: none !important; }

/* Títulos de archivo: primera letra en mayúscula. */
.ps-archive-title::first-letter { text-transform: uppercase; }
