/*
Theme Name: TPV Gipuzkoa
Theme URI: https://tpvgipuzkoa.com
Author: TPV Gipuzkoa
Author URI: https://tpvgipuzkoa.com
Description: Tema comercial para TPV Gipuzkoa: digitalización e instalación de Ágora TPV, integraciones con Ágora (Mahaia Reservas y Kide Club) y apps propias (SociGast y ZerbiSAT). Portada configurable desde Apariencia > Personalizar, páginas de producto, testimonios y fotos activables, formulario "Pedir información" y compatibilidad con WooCommerce.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tpvgipuzkoa
Tags: business, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--blue: #0E74BC;
	--blue-dark: #0A5A94;
	--navy: #0A2B47;
	--navy-2: #0F3A5F;
	--navy-3: #061D31;
	--ink: #0E1A26;
	--muted: #4A5868;
	--line: #DCE4EE;
	--soft: #F3F7FB;
	--soft-2: #E8F0F9;
	--on-navy: #D6E4F3;
	--on-navy-muted: #A9C2DC;
	--agora: #E41C3B;
	--ok: #1E7A4C;
	--white: #FFFFFF;
	--font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
	--font-body: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
	--radius: 14px;
	--radius-sm: 10px;
	--wrap: 1200px;
	--gutter: 24px;
	--section: 88px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	position: fixed !important; top: 12px; left: 12px; z-index: 1000;
	background: var(--white); color: var(--navy); padding: 12px 16px; border-radius: 8px;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px;
	border-radius: var(--radius-sm); border: 2px solid transparent;
	font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--soft-2); color: var(--navy); }
.btn--ghost-light { border-color: rgba(255,255,255,.85); color: var(--white); background: transparent; }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn--whatsapp { background: #1F8A4C; color: var(--white); }
.btn--whatsapp:hover { background: #17703D; color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Topbar + header ---------- */
.topbar { background: var(--navy-3); color: var(--on-navy); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; color: var(--white); }
.topbar__info, .topbar__links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.topbar__links ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.topbar__links .current-lang a { text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(160%) blur(6px); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.site-logo { display: block; flex: none; }
.site-logo img { height: 60px; width: auto; }
.site-logo .custom-logo-link img { height: 60px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 15.5px; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--blue-dark); background: var(--soft); }
.main-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px;
	background: var(--white); border: 1px solid var(--line); border-radius: 12px;
	box-shadow: 0 18px 40px -18px rgba(10,43,71,.35);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { font-weight: 500; }
.header-cta { flex: none; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font: 700 15px var(--font-body); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.site-header .wrap { flex-wrap: wrap; min-height: 72px; }
	.site-logo img, .site-logo .custom-logo-link img { height: 48px; }
	.main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 20px; }
	.main-nav.is-open { display: flex; }
	.main-nav > ul { flex-direction: column; align-items: stretch; }
	.main-nav a { padding: 12px; font-size: 17px; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
	.main-nav .menu-item-has-children > a::after { display: none; }
	.header-cta { width: 100%; }
	.header-cta .btn { width: 100%; }
}

/* ---------- Section heads ---------- */
.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-dark); }
.section--navy .kicker, .hero .kicker { color: var(--on-navy-muted); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }
.section--navy .section-head p { color: var(--on-navy); }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(90deg, transparent, #000 60%);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: #7CC2F5; }
.hero__text { font-size: 19px; color: var(--on-navy); max-width: 580px; margin-bottom: 30px; }
.hero__partner { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 14px; color: var(--on-navy-muted); }
.hero__partner strong { color: var(--white); }
.hero__partner .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--agora); }
.hero__media img { width: 100%; border-radius: 18px; aspect-ratio: 4 / 3.2; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.hero-board { background: var(--navy-2); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 26px; display: grid; gap: 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.hero-board__title { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy-muted); margin: 0; }
.hero-board__row { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.06); border-radius: 12px; padding: 14px 16px; }
.hero-board__icon { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--blue); color: var(--white); }
.hero-board__icon svg { width: 22px; height: 22px; }
.hero-board__row strong { display: block; font-size: 16px; }
.hero-board__row span { font-size: 14px; color: var(--on-navy-muted); }
.stats { position: relative; border-top: 1px solid rgba(255,255,255,.12); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 36px; }
.stat__num { font-family: var(--font-head); font-size: 34px; font-weight: 700; line-height: 1.1; }
.stat__label { font-size: 15px; color: var(--on-navy-muted); }
@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; gap: 40px; }
	.stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
.grid--5 { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { font-size: 15.5px; color: var(--muted); margin: 0; }
.card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--soft-2); color: var(--blue-dark); display: grid; place-items: center; margin-bottom: 16px; }
.card__icon svg { width: 24px; height: 24px; }
.step-num { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--blue-dark); margin-bottom: 10px; display: block; }

/* ---------- Ágora block ---------- */
.agora { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.agora h2 { font-size: clamp(30px, 4vw, 44px); }
.agora__lead { font-size: 18px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; padding: 0; list-style: none; }
.chips li { background: var(--soft-2); color: var(--navy); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.price-card { background: var(--navy); color: var(--white); border-radius: 20px; padding: 36px; position: relative; overflow: hidden; }
.price-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(228,28,59,.85); }
.price-card__label { color: var(--on-navy-muted); font-size: 15px; margin: 0 0 6px; }
.price-card__price { font-family: var(--font-head); font-size: 56px; font-weight: 700; line-height: 1; margin: 0 0 6px; }
.price-card__price small { font-size: 20px; font-weight: 500; }
.price-card__note { font-size: 14px; color: var(--on-navy-muted); margin: 0 0 18px; }
.price-card ul { padding-left: 0; list-style: none; margin: 0 0 26px; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: #7CC2F5; }
.price-card .btn { width: 100%; }
@media (max-width: 900px) { .agora { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Product brands ---------- */
.brand--agora { --b-bg: #FFFFFF; --b-surface: #F3F7FB; --b-ink: #0E1A26; --b-muted: #4A5868; --b-accent: #0E74BC; --b-accent-hover: #0A5A94; --b-accent-ink: #0A5A94; --b-on-accent: #FFFFFF; --b-line: #DCE4EE; --b-font: var(--font-head); --b-btn-radius: 10px; --b-radius: 16px; --b-weight: 700; }
.brand--mahaia { --b-bg: #F7F2EA; --b-surface: #FFFFFF; --b-ink: #1F1B17; --b-muted: #6B625A; --b-accent: #B4412A; --b-accent-hover: #8E3220; --b-accent-ink: #8E3220; --b-on-accent: #FFFFFF; --b-line: #E4DDD3; --b-font: Lora, Georgia, serif; --b-btn-radius: 8px; --b-radius: 12px; --b-weight: 600; }
.brand--kideclub { --b-bg: #F0FAF8; --b-surface: #FFFFFF; --b-ink: #10302B; --b-muted: #46605B; --b-accent: #0F766E; --b-accent-hover: #0B5D57; --b-accent-ink: #0B5D57; --b-on-accent: #FFFFFF; --b-line: #CDE7E3; --b-font: Inter, system-ui, sans-serif; --b-btn-radius: 999px; --b-radius: 20px; --b-weight: 800; }
.brand--socigast { --b-bg: #FBF5EC; --b-surface: #FFFFFF; --b-ink: #2A1A1C; --b-muted: #6A5658; --b-accent: #7A2230; --b-accent-hover: #5E1924; --b-accent-ink: #7A2230; --b-on-accent: #FFFFFF; --b-line: #EAD9C3; --b-font: Fraunces, Georgia, serif; --b-btn-radius: 8px; --b-radius: 16px; --b-weight: 700; }
.brand--zerbisat { --b-bg: #0D2E2B; --b-surface: #14403B; --b-ink: #F3F2ED; --b-muted: #B9CCC7; --b-accent: #4FD8BC; --b-accent-hover: #7DE5CF; --b-accent-ink: #4FD8BC; --b-on-accent: #0D2E2B; --b-line: #2A5650; --b-font: "Inter", "Segoe UI", system-ui, sans-serif; --b-btn-radius: 6px; --b-radius: 10px; --b-weight: 800; }

.btn--brand { background: var(--b-accent); color: var(--b-on-accent); border-radius: var(--b-btn-radius); }
.btn--brand:hover { background: var(--b-accent-hover); color: var(--b-on-accent); }
.btn--brand-ghost { background: transparent; color: var(--b-ink); border-color: var(--b-line); border-radius: var(--b-btn-radius); }
.btn--brand-ghost:hover { border-color: var(--b-accent); color: var(--b-ink); }

.product-group + .product-group { margin-top: 72px; }
.product-list { display: grid; gap: 24px; }
.product {
	background: var(--b-bg); color: var(--b-ink); border: 1px solid var(--b-line); border-radius: var(--b-radius);
	padding: 44px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center;
}
.product--reverse .product__media { order: -1; }
.product__kicker { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--b-muted); }
.product__brand { margin: 0 0 10px; }
.product__brand img { max-height: 54px; width: auto; }
.product h3 { font-family: var(--b-font); font-weight: var(--b-weight); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; margin: 0 0 12px; }
.product__lead { color: var(--b-muted); font-size: 16.5px; }
.check-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.check-list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--b-accent-ink, var(--blue-dark)); }
.product__media img { width: 100%; border-radius: calc(var(--b-radius) - 4px); aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) {
	.product { grid-template-columns: 1fr; padding: 28px; gap: 32px; }
	.product--reverse .product__media { order: 0; }
}

/* Wordmarks */
.wordmark { display: inline-flex; align-items: center; gap: 10px; line-height: 1; text-decoration: none; }
.wordmark--mahaia { font-family: Lora, Georgia, serif; font-weight: 600; font-size: 40px; color: #B4412A; letter-spacing: -0.01em; }
.wordmark--mahaia .wordmark__sub { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6B625A; }
.wordmark--kideclub { font-family: Inter, system-ui, sans-serif; font-weight: 800; font-size: 36px; color: #0F766E; letter-spacing: -0.03em; }
.wordmark--kideclub .wordmark__badge { width: 38px; height: 38px; border-radius: 12px; background: #0F766E; display: grid; place-items: center; }
.wordmark--kideclub .wordmark__badge svg { width: 22px; height: 22px; color: #fff; }
.wordmark--socigast { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 40px; color: #7A2230; letter-spacing: -0.02em; }
.wordmark--zerbisat { display: inline-block; font-family: Inter, system-ui, sans-serif; font-weight: 800; font-size: 38px; color: #F3F2ED; letter-spacing: -0.03em; }
.wordmark--zerbisat b { color: #4FD8BC; font-weight: 800; }
.wordmark--agora { font-family: var(--font-head); font-weight: 700; font-size: 38px; color: var(--navy); letter-spacing: -0.02em; }
.wordmark--agora .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--agora); }

/* Mocks */
.mock { background: var(--b-surface); border: 1px solid var(--b-line); border-radius: calc(var(--b-radius) - 2px); padding: 24px; color: var(--b-ink); font-family: var(--font-body); }
.mock__label { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--b-muted); }
.mock__row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--b-line); font-size: 15px; }
.mock__row:last-of-type { border-bottom: 0; }
.mock__status { font-weight: 700; white-space: nowrap; }
.mock__foot { margin: 12px 0 0; font-weight: 700; font-size: 14.5px; color: var(--b-accent-ink); }
.mock--mahaia .mock__status { color: #2F5D46; }
.mock--zerbisat .st-curso { color: #FFA766; }
.mock--zerbisat .st-ok { color: #4FD8BC; }
.mock--zerbisat .st-cerrado { color: #B9CCC7; }
.mock--socigast .cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.mock--socigast .cal span { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: #FBF5EC; color: #6A5658; }
.mock--socigast .cal .on { background: #7A2230; color: #fff; }
.loyalty { background: #0F766E; color: #FFFFFF; border-radius: 22px; padding: 26px; display: grid; gap: 14px; box-shadow: 0 24px 50px -28px rgba(15,118,110,.7); }
.loyalty__top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; opacity: .92; }
.loyalty__stamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.loyalty__stamps span { aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); }
.loyalty__stamps .on { background: #FFFFFF; }
.loyalty__points { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.loyalty__note { font-size: 14.5px; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.testimonial { margin: 0; background: var(--soft); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.testimonial blockquote { margin: 0; font-size: 17px; line-height: 1.6; }
.testimonial blockquote::before { content: "“"; display: block; font-family: Georgia, serif; font-size: 54px; line-height: .6; color: var(--blue); margin-bottom: 10px; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption strong { display: block; font-size: 15.5px; }
.testimonial figcaption span { font-size: 14px; color: var(--muted); }

.clients { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 34px 0 0; padding: 0; }
.clients li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 600; color: var(--muted); background: var(--white); }

/* Widget zones (fotos) */
.widget-zone .widget { margin-bottom: 24px; }
.widget-zone .widget-title, .widget-zone .wp-block-heading { font-size: clamp(26px, 3vw, 36px); }
.widget-zone .wp-block-gallery img, .widget-zone .gallery img { border-radius: 12px; }
.widget-zone .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.widget-zone .gallery-item { margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact h2 { font-size: clamp(30px, 4vw, 44px); }
.contact__lead { font-size: 18px; color: var(--on-navy); }
.contact__info { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; margin-top: 34px; font-size: 15.5px; color: var(--on-navy); }
.contact__info strong { display: block; color: var(--white); margin-bottom: 4px; }
.contact__info a { color: var(--white); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 36px; } }

.lead-form { background: var(--white); color: var(--ink); border-radius: 20px; padding: 32px; display: grid; gap: 14px; scroll-margin-top: 120px; box-shadow: 0 30px 60px -36px rgba(0,0,0,.5); }
.lead-form--bordered { border: 1px solid var(--line); box-shadow: none; }
.lead-form h3 { font-size: 24px; margin: 0; }
.lead-form__intro { margin: 0; color: var(--muted); font-size: 15.5px; }
.lead-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .lead-form .row-2 { grid-template-columns: 1fr; } .lead-form { padding: 24px; } }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #B4C3D3; border-radius: 10px;
	font: 400 16px var(--font-body); color: var(--ink); background: var(--white);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(14,116,188,.35); border-color: var(--blue); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 10px; padding: 12px 14px; font-size: 15px; font-weight: 600; }
.form-msg--ok { background: #E3F4EA; color: #145C37; }
.form-msg--error { background: #FDE8EA; color: #9B1C2E; }
.lead-form .btn { width: 100%; }
[class*="brand--"] .lead-form .btn--primary { background: var(--b-accent); color: var(--b-on-accent); border-radius: var(--b-btn-radius); }
[class*="brand--"] .lead-form .btn--primary:hover { background: var(--b-accent-hover); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: var(--white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.cta-band h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); max-width: 680px; }

/* ---------- Product pages ---------- */
.p-hero { background: var(--b-bg); color: var(--b-ink); border-bottom: 1px solid var(--b-line); }
.p-hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.p-hero h1 { font-family: var(--b-font); font-weight: var(--b-weight); font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; margin: 18px 0 18px; }
.p-hero__lead { font-size: 19px; color: var(--b-muted); margin-bottom: 28px; }
.p-hero__note { margin-top: 16px; font-size: 14.5px; color: var(--b-muted); }
.p-section { background: var(--b-bg); color: var(--b-ink); }
.p-section--surface { background: var(--b-surface); }
.p-section .card { background: var(--b-surface); border-color: var(--b-line); border-radius: var(--b-radius); }
.p-section--surface .card { background: var(--b-bg); }
.p-section .card p, .p-section .section-head p { color: var(--b-muted); }
.p-section .card__icon { background: var(--b-accent); color: var(--b-on-accent); }
.p-section h2 { font-family: var(--b-font); font-weight: var(--b-weight); }
.p-section .step-num { color: var(--b-accent-ink); }
.p-section .kicker { color: var(--b-muted); }
.audience { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.audience li { border: 1px solid var(--b-line); background: var(--b-surface); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 15px; }
.p-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .p-hero__inner, .p-contact { grid-template-columns: 1fr; gap: 36px; } .p-hero__inner { padding-top: 56px; padding-bottom: 56px; } }
.versions { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }

/* ---------- Posts, pages ---------- */
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 64px 0 52px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 50px); margin: 0; }
.page-head p { margin: 12px 0 0; color: var(--muted); font-size: 18px; }
.entry-content { max-width: 760px; margin: 0 auto; font-size: 18px; }
.entry-content--wide { max-width: var(--wrap); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 32px; margin-top: 1.6em; }
.entry-content h3 { font-size: 24px; margin-top: 1.4em; }
.entry-content img { border-radius: 12px; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--blue); font-size: 20px; color: var(--navy); }
.entry-content .alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.entry-content .alignfull { max-width: none; }
.entry-content .wp-block-button__link { background: var(--blue); color: var(--white); border-radius: var(--radius-sm); font-weight: 700; padding: 14px 24px; text-decoration: none; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.single-thumb { max-width: 1000px; margin: -24px auto 40px; padding: 0 var(--gutter); }
.single-thumb img { width: 100%; border-radius: 18px; }
.post-meta { font-size: 15px; color: var(--muted); }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__img--empty { aspect-ratio: 16 / 9; background: var(--soft-2); display: grid; place-items: center; color: var(--blue-dark); }
.post-card__img--empty svg { width: 44px; height: 44px; }
.post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__cat { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-dark); }
.post-card h2, .post-card h3 { font-size: 21px; margin: 0; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--blue-dark); }
.post-card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.post-card__more { margin-top: auto; font-weight: 700; font-size: 15px; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 44px; }
.nav-links .page-numbers { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-links .page-numbers.current { background: var(--blue); border-color: var(--blue); color: var(--white); }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input[type="search"] { flex: 1; min-height: 48px; padding: 10px 12px; border: 1px solid #B4C3D3; border-radius: 10px; font: 16px var(--font-body); }
.search-form button { min-height: 48px; }

.comments-area { max-width: 760px; margin: 56px auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-body { border-bottom: 1px solid var(--line); padding: 18px 0; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #B4C3D3; border-radius: 10px; font: 16px var(--font-body); }
.comment-form .submit { background: var(--blue); color: var(--white); border: 0; border-radius: 10px; min-height: 48px; padding: 0 22px; font-weight: 700; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); color: var(--on-navy-muted); font-size: 15px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-cols h2 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin: 0 0 16px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand__name { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--white); margin: 0 0 10px; }
.footer-brand p { margin: 0 0 14px; }
.footer-partner { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 14px; color: var(--white); font-weight: 600; font-size: 14px; }
.footer-partner .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--agora); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 22px; font-size: 14px; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; } :root { --section: 64px; --gutter: 16px; } body { font-size: 16px; } }

.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #1F8A4C; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); }
.whatsapp-float:hover { background: #17703D; color: #fff; }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ---------- WooCommerce (tienda) ---------- */
.woocommerce .woocommerce-breadcrumb { font-size: 14px; color: var(--muted); }
.woocommerce ul.products li.product { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-head); font-size: 18px; color: var(--ink); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--navy); font-weight: 700; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
	background: var(--blue); color: var(--white); border-radius: var(--radius-sm); font-weight: 700; padding: 12px 20px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--blue-dark); color: var(--white); }
.woocommerce span.onsale { background: var(--agora); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
