/*
Theme Name: Ski Madrid 2026
Theme URI: https://skimadrid.es/
Author: Ski Madrid
Description: Tema a medida para Ski Madrid & Beach Madrid.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: skimadrid2026
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ───────────────────────────────── Variables ── */
:root {
	--ink:        #111975;
	--ink-mid:    #21296c;
	--muted:      #5c6b8a;
	--line:       #e0e4f5;
	--snow:       #f0f1fd;
	--ice:        #e4e7fd;
	--blue:       #2235dd;
	--blue-dark:  #131739;
	--blue-mid:   #1a2bc6;
	--green:      #166d4a;
	--gold:       #c4820a;
	--white:      #fff;
	--r:          14px;
	--r-pill:     999px;
	--sh-sm:      0 1px 4px rgba(8,9,28,.06), 0 2px 12px rgba(8,9,28,.07);
	--sh:         0 2px 8px rgba(8,9,28,.06), 0 8px 28px rgba(8,9,28,.10);
	--sh-lg:      0 4px 16px rgba(8,9,28,.08), 0 20px 52px rgba(8,9,28,.16);
	--tr:         180ms ease;
	--heading:    'DM Serif Display', Georgia, serif;
	--body:       'Work Sans', system-ui, sans-serif;
}

/* ───────────────────────────────── Reset base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	color: var(--ink);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.68;
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, h5 {
	font-family: var(--heading);
	line-height: 1.08;
	letter-spacing: -.02em;
	margin-top: 0;
}
h3, h4, h5 { letter-spacing: -.01em; }

/* ───────────────────────────────── Layout ── */
.container {
	width: min(1180px, calc(100% - 32px));
	margin-inline: auto;
}

.section          { padding-block: 80px; }
.section--white   { background: var(--white); }
.section--snow    { background: var(--snow); }
.section--dark    { background: var(--ink); color: var(--white); }

/* ───────────────────────────────── Topbar ── */
.topbar {
	background: var(--ink);
	color: rgba(255,255,255,.82);
	font-size: 12.5px;
	font-weight: 700;
}
.topbar-inner {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 34px;
}
.topbar-inner .topbar-brand { margin-right: auto; color: rgba(255,255,255,.55); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.topbar a { color: var(--white); }
.topbar a:hover { color: rgba(255,255,255,.75); }

/* ───────────────────────────────── Header ── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255,255,255,.96);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--line);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 74px;
}

/* Brand */
.brand {
	display: flex;
	align-items: center;
	gap: 11px;
	flex-shrink: 0;
	font-family: var(--heading);
	color: var(--ink);
	font-size: 17px;
	line-height: 1.15;
}
.brand-logo {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 2px 8px rgba(8,9,28,.14), 0 4px 16px rgba(17,25,117,.18);
	flex-shrink: 0;
}
.brand small {
	display: block;
	font-family: var(--body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--muted);
}

/* Nav */
.site-nav ul {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav li { position: relative; }
.site-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 12px;
	border-radius: var(--r-pill);
	color: var(--ink);
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .01em;
	white-space: nowrap;
	transition: background var(--tr), color var(--tr);
}
.site-nav a:hover { color: var(--blue); background: var(--ice); }

/* Dropdown indicator */
.site-nav .menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 5px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid currentColor;
	opacity: .55;
	vertical-align: middle;
	transition: transform var(--tr);
}
.site-nav .menu-item-has-children:hover > a::after,
.site-nav .menu-item-has-children:focus-within > a::after,
.site-nav .menu-item-has-children.is-open > a::after {
	transform: rotate(180deg);
	opacity: .85;
}

/* Dropdown panel */
.site-nav .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	min-width: 220px;
	padding: 6px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r);
	box-shadow: var(--sh);
	z-index: 200;
	list-style: none;
	margin: 0;
	white-space: nowrap;
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu,
.site-nav li.is-open > .sub-menu { display: block; }

.site-nav .sub-menu a {
	display: flex;
	min-height: auto;
	padding: 9px 14px;
	border-radius: 7px;
	color: var(--ink);
	font-size: 14px;
	font-weight: 600;
}
.site-nav .sub-menu a:hover { background: var(--ice); color: var(--blue); }

/* Mobile: flatten sub-menus into the scrollable row */
/* ── Hamburger toggle (hidden on desktop) ── */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 8px;
	background: transparent;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	cursor: pointer;
	margin-left: auto;
	transition: border-color var(--tr), background var(--tr);
}
.nav-toggle:hover { border-color: var(--blue); background: var(--ice); }
.nav-toggle__bar {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform 240ms ease, opacity 240ms ease;
}
/* Animated X when open */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
	.nav-toggle { display: flex; }
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	flex-shrink: 0;
}

/* ───────────────────────────────── Buttons ── */
.button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 46px;
	padding: 12px 26px;
	border: 0;
	border-radius: var(--r-pill);
	color: var(--white);
	background: var(--blue);
	font-family: var(--body);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .03em;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(34,53,221,.18), 0 6px 18px rgba(34,53,221,.30);
	transition: background var(--tr), box-shadow var(--tr), transform var(--tr);
	white-space: nowrap;
	text-decoration: none;
}
.button:hover,
.wp-block-button__link:hover {
	color: var(--white);
	background: var(--blue-mid);
	box-shadow: 0 2px 6px rgba(34,53,221,.22), 0 10px 28px rgba(34,53,221,.38);
	transform: translateY(-2px);
}
.button--sm   { min-height: 38px; padding: 8px 18px; font-size: 13px; }
.button--blue {
	background: var(--blue-mid);
	box-shadow: 0 1px 3px rgba(8,9,28,.12), 0 6px 18px rgba(27,44,193,.30);
}
.button--blue:hover {
	background: var(--blue);
	box-shadow: 0 2px 6px rgba(8,9,28,.14), 0 10px 24px rgba(27,44,193,.38);
}
.button--ghost {
	color: var(--blue);
	background: transparent;
	border: 1.5px solid var(--blue);
	box-shadow: none;
}
.button--ghost:hover {
	border-color: var(--blue-mid);
	background: var(--ice);
	color: var(--blue-mid);
	transform: none;
}
.button--outline {
	color: var(--white);
	background: transparent;
	border: 1.5px solid rgba(255,255,255,.45);
	box-shadow: none;
}
.button--outline:hover {
	background: rgba(255,255,255,.10);
	border-color: rgba(255,255,255,.80);
	transform: none;
}

/* ───────────────────────────────── Hero ── */
.hero {
	position: relative;
	min-height: clamp(580px, 80vh, 780px);
	overflow: hidden;
	color: var(--white);
	background:
		linear-gradient(160deg, rgba(17,25,117,.82) 0%, rgba(8,18,28,.68) 60%, rgba(8,18,28,.52) 100%),
		url('https://skimadrid.es/wp-content/uploads/2024/08/snowy-summit-416779.jpeg') center/cover;
}
.hero .container {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	justify-content: center;
	min-height: inherit;
	padding-block: 100px 120px;
}
.hero-content { max-width: 780px; }

.eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	color: var(--blue-mid);
	font-family: var(--body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.eyebrow::before {
	content: '';
	display: block;
	width: 28px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	flex-shrink: 0;
	opacity: .7;
}
/* On dark backgrounds: block + centrado, sin ::before, con línea dorada debajo */
.hero .eyebrow,
.page-hero .eyebrow {
	display: block;
	text-align: center;
	color: rgba(255,255,255,.78);
	padding-bottom: 14px;
}
.hero .eyebrow::before,
.page-hero .eyebrow::before { display: none; }
.hero .eyebrow::after,
.page-hero .eyebrow::after {
	content: '';
	display: block;
	width: 32px;
	height: 2px;
	background: var(--gold);
	border-radius: 2px;
	margin: 10px auto 0;
}

.hero h1, .page-hero h1 {
	margin: 0;
	font-size: clamp(44px, 7vw, 92px);
	line-height: 1.0;
	letter-spacing: -.03em;
	text-wrap: balance;
}
.page-hero h1 { font-size: clamp(32px, 5vw, 58px); }
.hero p {
	max-width: 580px;
	margin: 20px auto 28px;
	font-size: clamp(17px, 2.1vw, 22px);
	opacity: .9;
}
.hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 26px;
}
.hero-meta span {
	padding: 6px 12px;
	border: 1px solid rgba(255,255,255,.3);
	border-radius: 6px;
	background: rgba(255,255,255,.1);
	font-size: 14px;
	font-weight: 700;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Info panel inside hero */
.hero-panel {
	padding: 22px 24px;
	border: 1px solid rgba(255,255,255,.22);
	border-radius: var(--r);
	background: rgba(11,30,45,.55);
	backdrop-filter: blur(18px);
	box-shadow: var(--sh-lg);
}
.hero-panel .eyebrow { margin-bottom: 8px; }
.hero-panel strong, .hero-panel span { display: block; }
.hero-panel strong { font-size: 20px; font-family: var(--heading); margin-bottom: 6px; }
.hero-panel span { color: rgba(255,255,255,.72); font-size: 13.5px; }
.hero-panel .hero-panel-cta { margin-top: 16px; }

/* ───────────────────────────────── Category shortcuts ── */
.cat-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
}
.cat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 22px 12px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--white);
	color: var(--ink);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .01em;
	text-align: center;
	box-shadow: var(--sh-sm);
	transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr), color var(--tr);
}
.cat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--sh);
	border-color: var(--blue-mid);
	color: var(--blue-mid);
}
.cat-card .cat-icon {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--ice);
	font-size: 22px;
	transition: background var(--tr), transform var(--tr);
}
.cat-card:hover .cat-icon {
	background: var(--blue-dark);
	transform: scale(1.08);
}

/* ───────────────────────────────── Section header ── */
.section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}
.section-header h2 {
	margin: 0;
	font-size: clamp(30px, 4vw, 46px);
}
.section-header .section-sub {
	margin: 6px 0 0;
	color: var(--muted);
	max-width: 520px;
}

/* ───────────────────────────────── Filter bar ── */
.filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 28px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--white);
	box-shadow: var(--sh-sm);
}
.filter-label {
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-right: 4px;
}
.filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 16px;
	border: 1.5px solid var(--line);
	border-radius: var(--r-pill);
	background: transparent;
	color: var(--muted);
	font-family: var(--body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .01em;
	cursor: pointer;
	transition: all var(--tr);
}
.filter-btn:hover  { border-color: var(--blue-mid); color: var(--blue-mid); background: var(--ice); }
.filter-btn.active { border-color: var(--blue-dark); background: var(--blue-dark); color: var(--white); }
.filter-sep {
	width: 1px;
	height: 22px;
	background: var(--line);
	margin-inline: 4px;
}
.filter-count {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	border-radius: 10px;
	background: rgba(255,255,255,.25);
	font-size: 11px;
	font-weight: 900;
}
.filter-btn:not(.active) .filter-count {
	background: var(--snow);
	color: var(--muted);
}

/* ───────────────────────────────── Offer grid & cards ── */
.offer-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.offer-grid--wide { grid-template-columns: repeat(4, 1fr); }

.offer-card {
	display: flex;
	flex-direction: column;
	border-radius: 18px;
	background: var(--white);
	border: 1px solid var(--line);
	box-shadow: var(--sh-sm);
	overflow: hidden;
	transition: transform var(--tr), box-shadow var(--tr);
}
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.offer-card[hidden] { display: none; }

/* Card image */
.offer-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16/10;
	overflow: hidden;
	background: linear-gradient(135deg, var(--blue-dark), var(--green));
}
.offer-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 420ms ease;
}
.offer-card:hover .offer-card__media img { transform: scale(1.06); }

.offer-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 5px;
	background: var(--gold);
	color: var(--white);
	font-size: 10.5px;
	font-weight: 900;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.offer-card__type-badge {
	position: absolute;
	bottom: 12px;
	right: 12px;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 5px;
	background: rgba(11,30,45,.72);
	backdrop-filter: blur(8px);
	color: var(--white);
	font-size: 11px;
	font-weight: 700;
}

/* Card body */
.offer-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px;
}
.offer-card__dest {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--blue);
}
.offer-card h3 {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.2;
}
.offer-card h3 a { color: var(--ink); }
.offer-card h3 a:hover { color: var(--blue); }

.offer-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-bottom: 12px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
}
.offer-card__meta span { display: inline-flex; align-items: center; gap: 4px; }

.offer-card__price {
	margin: auto 0 14px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}
.offer-card__price .price-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--muted);
}
.offer-card__price .price-value {
	font-size: 21px;
	font-weight: 700;
	color: var(--blue-dark);
	font-family: var(--heading);
	letter-spacing: -.01em;
}

.offer-card .button--sm { align-self: flex-start; margin-top: 0; }

/* ───────────────────────────────── Services strip ── */
.service-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.service {
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--white);
	box-shadow: var(--sh-sm);
}
.service-num {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 16px;
	border-radius: 8px;
	background: linear-gradient(135deg, #1d6fc4, var(--blue-dark));
	color: var(--white);
	font-size: 18px;
	font-weight: 900;
	font-family: var(--heading);
}
.service h2 { font-size: 22px; margin-bottom: 10px; }
.service p  { color: var(--muted); margin: 0 0 16px; }
.service a  { color: var(--blue-dark); font-weight: 700; }
.service a:hover { color: var(--blue); }

/* ── Photo-first service cards ── */
.service-photo {
	border-radius: 18px;
	overflow: hidden;
	background: var(--white);
	box-shadow: var(--sh);
	transition: transform var(--tr), box-shadow var(--tr);
}
.service-photo:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.service-photo__img {
	display: block;
	width: 100%;
	aspect-ratio: 16/10;
	object-fit: cover;
}
.service-photo__body { padding: 22px 24px 26px; }
.service-photo__body h2 { font-size: 21px; margin: 0 0 8px; }
.service-photo__body p { color: var(--muted); margin: 0 0 14px; font-size: 14.5px; }
.service-photo__body a { color: var(--blue-dark); font-weight: 700; font-size: 14px; }
.service-photo__body a:hover { color: var(--blue); }

/* ───────────────────────────────── Trust bar ── */
.trust-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 32px;
	padding-block: 26px;
	border-block: 1px solid var(--line);
}
.trust-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--muted);
}
.trust-item strong { color: var(--ink); font-weight: 900; }
.trust-icon {
	font-size: 22px;
	line-height: 1;
}

/* ───────────────────────────────── Split (historia) ── */
.split {
	display: grid;
	grid-template-columns: 1fr .9fr;
	gap: 48px;
	align-items: center;
}
.image-panel {
	border-radius: var(--r);
	overflow: hidden;
	box-shadow: var(--sh-lg);
}
.image-panel img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
}

/* ───────────────────────────────── Page hero ── */
.page-hero {
	position: relative;
	min-height: 360px;
	display: flex;
	align-items: center;
	padding-block: 96px 116px;
	color: var(--white);
	text-align: center;
	overflow: hidden;
	background:
		linear-gradient(175deg, rgba(17,25,117,.90) 0%, rgba(8,18,28,.75) 50%, rgba(8,18,28,.55) 100%),
		url('https://skimadrid.es/wp-content/uploads/2024/08/snowy-summit-416779.jpeg') center/cover;
	background-attachment: fixed;
}
/* Diagonal cut at bottom */
.page-hero::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 64px;
	background: var(--white);
	clip-path: polygon(0 100%, 100% 0, 100% 100%);
	pointer-events: none;
}
.page-hero .container {
	position: relative;
	z-index: 1;
	width: 100%;
}
.page-hero h1 {
	font-size: clamp(36px, 5.5vw, 64px);
	line-height: 1.08;
	margin: 0;
	text-shadow: 0 2px 24px rgba(8,18,28,.40);
}
.page-hero .page-hero__sub {
	margin: 16px auto 0;
	max-width: 560px;
	font-size: 16px;
	font-weight: 400;
	color: rgba(255,255,255,.75);
	line-height: 1.6;
}
.page-hero p.eyebrow { color: rgba(255,255,255,.72); }

/* Ofertas archive has snow background — match diagonal colour */
.post-type-archive-sm_offer .page-hero::after,
.page-ofertas .page-hero::after,
.page-destinos-de-invierno .page-hero::after,
.page-destinos-primavera-verano-otono .page-hero::after { background: var(--snow); }

/* Per-page hero backgrounds matching originals */
.page-nuestra-historia .page-hero {
	background-image:
		linear-gradient(160deg, rgba(17,25,117,.75) 0%, rgba(8,18,28,.60) 100%),
		url('https://skimadrid.es/wp-content/uploads/2024/08/man-using-ski-3193846.jpeg');
}
.page-destinos-de-invierno .page-hero {
	background-image:
		linear-gradient(160deg, rgba(17,25,117,.78) 0%, rgba(8,18,28,.62) 100%),
		url('https://skimadrid.es/wp-content/uploads/2024/08/man-doing-ice-skating-outdoors-352093.jpeg');
}
.page-destinos-primavera-verano-otono .page-hero {
	background-image:
		linear-gradient(160deg, rgba(8,60,30,.78) 0%, rgba(8,18,28,.62) 100%),
		url('https://skimadrid.es/wp-content/uploads/2024/11/riviera-maya_647628562.jpg');
}

/* ───────────────────────────────── Offer archive tools ── */
.archive-section-header {
	margin-bottom: 24px;
}
.no-results {
	padding: 48px;
	text-align: center;
	color: var(--muted);
	background: var(--white);
	border-radius: var(--r);
	border: 1px solid var(--line);
}
.no-results h3 { font-size: 20px; margin-bottom: 8px; }

/* ───────────────────────────────── Offer detail (single) ── */
.offer-detail {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 36px;
	align-items: start;
}
.offer-detail article h2 { font-size: 26px; margin-top: 28px; }
.offer-detail article ul { padding-left: 20px; }
.offer-detail article ul li { margin-bottom: 6px; }

.offer-summary {
	position: sticky;
	top: 90px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--white);
	box-shadow: var(--sh);
	overflow: hidden;
}
.offer-summary__header {
	padding: 18px 22px;
	background: linear-gradient(100deg, var(--blue-dark), var(--blue));
	color: var(--white);
}
.offer-summary__header .price-from { font-size: 12px; font-weight: 700; opacity: .75; }
.offer-summary__header .price-big { font-size: 32px; font-weight: 900; font-family: var(--heading); }
.offer-summary__body { padding: 20px 22px; }
.offer-summary dl { margin: 0 0 20px; display: grid; gap: 10px; }
.offer-summary dt { color: var(--muted); font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 2px; }
.offer-summary dd { margin: 0; font-weight: 700; font-size: 14.5px; }
.offer-includes {
	margin-top: 16px;
	padding: 16px 18px;
	border-radius: 7px;
	background: var(--snow);
	border: 1px solid var(--line);
}
.offer-includes h3 { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.offer-includes ul { margin: 0; padding-left: 16px; }
.offer-includes li { font-size: 13.5px; margin-bottom: 4px; font-weight: 600; }

/* ───────────────────────────────── Content pages ── */
.content {
	padding-block: 52px 80px;
}
.content > * { max-width: 900px; }

.content h2 {
	font-size: clamp(24px, 3.5vw, 36px);
	margin-top: 36px;
}
.content h3 { font-size: 20px; margin-top: 24px; }

/* Historia editorial layout */
.historia-body {
	max-width: 760px;
	margin: 0 0 48px;
}
.historia-body p {
	font-size: 16px;
	line-height: 1.82;
	color: var(--ink);
	margin: 0 0 18px;
}
.historia-body p:last-child { margin-bottom: 0; }

.historia-featured {
	margin: 0 0 56px;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--sh);
}
.historia-featured img {
	width: 100%;
	aspect-ratio: 21/9;
	object-fit: cover;
	display: block;
}

.historia-vm {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	margin-top: 8px;
}
.historia-vm-card {
	background: var(--snow);
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid var(--line);
}
.historia-vm-card img {
	width: 100%;
	aspect-ratio: 3/2;
	object-fit: cover;
	display: block;
}
.historia-vm-card__body {
	padding: 24px 28px 28px;
}
.historia-vm-card__body h2 {
	font-size: 22px;
	color: var(--blue-dark);
	margin: 0 0 12px;
	line-height: 1.2;
}
.historia-vm-card__body p {
	font-size: 15px;
	line-height: 1.72;
	color: var(--muted);
	margin: 0;
}

@media (max-width: 640px) {
	.historia-featured img { aspect-ratio: 16/9; }
	.historia-vm { grid-template-columns: 1fr; }
}

/* ───────────────────────────────── Nuestra Historia (template) ── */
.nh-letter h2 {
	margin: 12px 0 28px;
}
.nh-letter p {
	font-size: 15.5px;
	line-height: 1.84;
	color: var(--ink);
	margin: 0 0 18px;
}
.nh-letter p:last-of-type { margin-bottom: 0; }

.nh-signature {
	margin-top: 36px;
	padding-top: 24px;
}
.nh-signature__line {
	width: 44px;
	height: 3px;
	background: var(--blue);
	border-radius: 2px;
	margin-bottom: 14px;
}
.nh-signature__name {
	font-family: var(--heading);
	font-size: 19px;
	color: var(--blue-dark);
	margin: 0 0 3px;
}
.nh-signature__role {
	font-size: 13px;
	color: var(--muted);
	margin: 0;
	letter-spacing: .02em;
}

.nh-vm {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}
.nh-vm-card {
	background: var(--white);
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid var(--line);
	box-shadow: var(--sh-sm);
}
.nh-vm-card img {
	width: 100%;
	aspect-ratio: 3/2;
	object-fit: cover;
	display: block;
}
.nh-vm-card__body {
	padding: 28px 32px 32px;
}
.nh-vm-card__body h3 {
	font-family: var(--heading);
	font-size: 22px;
	color: var(--blue-dark);
	margin: 8px 0 14px;
	line-height: 1.2;
}
.nh-vm-card__body p {
	font-size: 15px;
	line-height: 1.76;
	color: var(--muted);
	margin: 0;
}

@media (max-width: 640px) {
	.nh-panorama img { aspect-ratio: 16/9; }
	.nh-vm { grid-template-columns: 1fr; }
	.nh-vm-card__body { padding: 20px 22px 24px; }
}

/* Rental table */
.rental-table-wrap {
	overflow-x: auto;
	border-radius: var(--r);
	border: 1px solid var(--line);
	box-shadow: var(--sh-sm);
	margin-bottom: 32px;
}
.rental-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--white);
	font-size: 13.5px;
}
.rental-table th {
	background: var(--blue-dark);
	color: var(--white);
	padding: 12px 14px;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
	letter-spacing: .03em;
}
.rental-table th:first-child { text-align: left; }
.rental-table td {
	padding: 11px 14px;
	border-bottom: 1px solid var(--line);
	text-align: center;
	font-weight: 600;
}
.rental-table td:first-child { text-align: left; font-weight: 700; }
.rental-table tbody tr:nth-child(even) td { background: var(--snow); }
.rental-table tbody tr:hover td { background: var(--ice); }
.rental-table .dash { color: var(--muted); }

/* Secondhand list */
.secondhand-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-bottom: 32px;
}
.secondhand-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 16px;
	border: 1px solid var(--line);
	border-radius: 7px;
	background: var(--white);
}
.secondhand-item .sh-name { font-weight: 700; }
.secondhand-item .sh-price {
	font-family: var(--heading);
	font-size: 20px;
	color: var(--blue);
}

/* Repair cards */
.repair-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 32px;
}
.repair-card {
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--white);
	box-shadow: var(--sh-sm);
	text-align: center;
}
.repair-price {
	font-family: var(--heading);
	font-size: 32px;
	color: var(--blue-dark);
}
.repair-card h3 { margin: 8px 0 6px; font-size: 16px; }
.repair-card p  { margin: 0; color: var(--muted); font-size: 13px; }

/* Contact */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 28px;
}
.contact-form {
	display: grid;
	gap: 14px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--white);
}
.contact-form label { display: grid; gap: 5px; font-weight: 800; font-size: 13px; }
.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1.5px solid var(--line);
	border-radius: 7px;
	font: inherit;
	font-size: 14px;
	transition: border-color var(--tr);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--blue); }
.contact-info { padding: 24px; }
.contact-info h2 { margin-top: 0; }
.contact-detail { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.contact-detail .cd-icon { font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.contact-detail strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.contact-detail a { font-weight: 700; font-size: 15px; }

/* ───────────────────────────────── Footer ── */
/* ───────────────────────────────── Decálogo ── */
.decalogo-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-top: 48px;
}
.decalogo-item {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 28px 28px 24px;
	box-shadow: var(--sh-sm);
	transition: box-shadow var(--tr), transform var(--tr);
}
.decalogo-item:hover {
	box-shadow: var(--sh);
	transform: translateY(-2px);
}
.decalogo-num {
	display: inline-block;
	font-family: var(--heading);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	color: var(--blue-mid);
	background: var(--ice);
	border-radius: var(--r-pill);
	padding: 3px 11px;
	margin-bottom: 14px;
}
.decalogo-item h3 {
	font-family: var(--heading);
	font-size: 18px;
	font-weight: 600;
	color: var(--blue-dark);
	margin: 0 0 10px;
	line-height: 1.25;
}
.decalogo-item p {
	font-size: 15px;
	color: var(--muted);
	margin: 0;
	line-height: 1.65;
}

/* ───────────────────────────────── Footer ── */
.site-footer {
	padding-block: 50px 30px;
	background:
		linear-gradient(135deg, rgba(21,88,164,.18), transparent 36%),
		#0b1e2d;
	color: rgba(255,255,255,.75);
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 32px;
	margin-bottom: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand .brand-logo { box-shadow: none; }
.footer-brand-name { font-family: var(--heading); font-size: 18px; color: var(--white); }
.footer-brand-sub { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.site-footer p { margin: 0 0 10px; font-size: 13.5px; }
.site-footer h3 { color: var(--white); font-size: 15px; margin: 0 0 14px; letter-spacing: .03em; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer ul li { margin-bottom: 7px; }
.site-footer a { color: rgba(255,255,255,.72); font-weight: 600; font-size: 13.5px; transition: color var(--tr); }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 20px;
	border-top: 1px solid rgba(255,255,255,.1);
	font-size: 12px;
	color: rgba(255,255,255,.42);
}

/* ───────────────────────────────── Pagination ── */
.nav-links { display: flex; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.page-numbers {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding-inline: 10px;
	border: 1.5px solid var(--line);
	border-radius: 7px;
	color: var(--ink);
	font-weight: 700;
	font-size: 14px;
	transition: all var(--tr);
}
.page-numbers:hover, .page-numbers.current {
	background: var(--blue-dark);
	border-color: var(--blue-dark);
	color: var(--white);
}

/* ───────────────────────────────── Responsive ── */
@media (max-width: 1020px) {
	.cat-grid { grid-template-columns: repeat(3, 1fr); }
	.offer-grid { grid-template-columns: repeat(2, 1fr); }
	.offer-grid--wide { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
	/* Header layout — row 1: logo | contactar | hamburger */
	.header-inner { flex-wrap: wrap; padding-block: 12px; gap: 8px; min-height: auto; align-items: center; }
	.brand         { order: 1; flex: 1; }
	.header-actions{ order: 2; margin-left: 0; }
	.nav-toggle    { order: 3; }

	/* Mobile nav panel — hidden by default, shown when .is-nav-open */
	.site-nav {
		order: 4;
		width: 100%;
		max-height: 0;
		overflow: hidden;
		transition: max-height 320ms ease, padding 320ms ease;
		padding: 0;
	}
	.site-nav.is-nav-open {
		max-height: 600px;
		padding: 8px 0 16px;
		border-top: 1px solid var(--line);
		margin-top: 10px;
	}

	/* Flatten nav to vertical list */
	.site-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}
	.site-nav > ul > li { width: 100%; }
	.site-nav a {
		padding: 10px 14px;
		border-radius: 10px;
		width: 100%;
		justify-content: space-between;
	}

	/* Sub-menus: vertical, indented, collapsed by default */
	.site-nav .sub-menu {
		position: static;
		transform: none;
		display: none;
		flex-direction: column;
		box-shadow: none;
		border: none;
		border-left: 2px solid var(--line);
		border-radius: 0;
		padding: 4px 0 4px 8px;
		margin: 2px 0 4px 14px;
		min-width: 0;
		background: transparent;
	}
	.site-nav li.is-open > .sub-menu { display: flex; }
	.site-nav .sub-menu a {
		padding: 8px 12px;
		font-size: 13px;
		color: var(--muted);
		border-radius: 8px;
	}
	.site-nav .sub-menu a:hover { color: var(--blue); background: var(--ice); }

	/* Chevron still shows on mobile for sub-menu indicator */
	.site-nav .menu-item-has-children > a::after { display: inline-block; }

	/* Content grids */
	.service-grid, .split, .offer-detail, .footer-grid, .contact-grid, .decalogo-grid { grid-template-columns: 1fr; }
	.repair-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	body { font-size: 15px; }
	.container { width: calc(100% - 24px); }
	.hero { min-height: 640px; }
	.hero h1, .page-hero h1 { font-size: 36px; }
	.page-hero { min-height: 280px; padding-block: 72px 90px; background-attachment: scroll; }
	.page-hero::after { height: 40px; }
	.page-hero .page-hero__sub { font-size: 15px; }
	.section { padding-block: 52px; }
	.section-header { flex-direction: column; align-items: flex-start; }
	.offer-grid, .offer-grid--wide { grid-template-columns: 1fr; }
	.cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.cat-card { padding: 14px 8px; font-size: 12px; }
	.secondhand-grid, .repair-grid { grid-template-columns: 1fr; }
	.filter-bar { gap: 6px; }
	.trust-bar { gap: 16px 28px; }
	.topbar-inner { flex-direction: column; align-items: flex-start; padding-block: 7px; gap: 4px; }
	.topbar-inner .topbar-brand { display: none; }
	.footer-grid { gap: 24px; }
	.footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}
