/*
Theme Name: Minigolf Córdoba
Theme URI: https://www.minigolfcordoba.es/
Author: Minigolf Córdoba
Description: Tema a medida para Minigolf Córdoba, con portada responsive, reservas, eventos para grupos y formulario de contacto.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: minigolf-cordoba
*/

:root {
	--mgc-gray: #545454;
	--mgc-gold: #c69444;
	--mgc-black: #070707;
	--mgc-ink: #121212;
	--mgc-white: #ffffff;
	--mgc-soft: #f6f2ec;
	--mgc-cyan: #40d9ff;
	--mgc-violet: #7d45ff;
	--mgc-border: rgba(255, 255, 255, 0.16);
	--mgc-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
	--mgc-radius: 8px;
	--mgc-max: 1180px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--mgc-black);
	color: var(--mgc-white);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.55;
}

body.menu-open {
	overflow: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mgc-shell {
	width: min(var(--mgc-max), calc(100% - 40px));
	margin: 0 auto;
}

.mgc-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 30;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(7, 7, 7, 0.72);
	backdrop-filter: blur(16px);
}

.mgc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 78px;
}

.mgc-logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.mgc-logo img {
	width: 230px;
	max-height: 56px;
	object-fit: contain;
	filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.35));
}

.mgc-nav {
	display: flex;
	align-items: center;
	gap: 22px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.94rem;
	font-weight: 700;
}

.mgc-nav a {
	position: relative;
	padding: 8px 0;
}

.mgc-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background: var(--mgc-gold);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 180ms ease;
}

.mgc-nav a:hover::after,
.mgc-nav a:focus::after {
	transform: scaleX(1);
	transform-origin: left;
}

.mgc-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mgc-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--mgc-border);
	border-radius: var(--mgc-radius);
	background: rgba(255, 255, 255, 0.08);
	color: var(--mgc-white);
	cursor: pointer;
}

.mgc-menu-toggle span,
.mgc-menu-toggle span::before,
.mgc-menu-toggle span::after {
	display: block;
	width: 20px;
	height: 2px;
	margin: 0 auto;
	background: currentColor;
	content: "";
	transition: transform 180ms ease, opacity 180ms ease;
}

.mgc-menu-toggle span::before {
	transform: translateY(-7px);
}

.mgc-menu-toggle span::after {
	transform: translateY(5px);
}

.menu-open .mgc-menu-toggle span {
	background: transparent;
}

.menu-open .mgc-menu-toggle span::before {
	background: var(--mgc-white);
	transform: translateY(2px) rotate(45deg);
}

.menu-open .mgc-menu-toggle span::after {
	background: var(--mgc-white);
	transform: translateY(0) rotate(-45deg);
}

.mgc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 44px;
	padding: 12px 18px;
	border: 1px solid transparent;
	border-radius: var(--mgc-radius);
	background: var(--mgc-gold);
	color: var(--mgc-black);
	font-weight: 900;
	line-height: 1;
	box-shadow: 0 14px 30px rgba(198, 148, 68, 0.28);
	transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.mgc-button:hover,
.mgc-button:focus {
	transform: translateY(-2px);
	background: #deb05f;
}

.mgc-button--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.26);
	color: var(--mgc-white);
	box-shadow: none;
}

.mgc-button--ghost:hover,
.mgc-button--ghost:focus {
	background: rgba(255, 255, 255, 0.1);
}

.mgc-button--dark {
	background: var(--mgc-black);
	color: var(--mgc-white);
	box-shadow: none;
}

.mgc-hero {
	position: relative;
	min-height: 94vh;
	display: flex;
	align-items: flex-end;
	padding: 130px 0 54px;
	overflow: hidden;
	background: var(--mgc-black);
}

.mgc-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.52) 38%, rgba(0, 0, 0, 0.12) 100%),
		linear-gradient(0deg, rgba(7, 7, 7, 0.96) 0%, rgba(7, 7, 7, 0.1) 36%),
		var(--mgc-hero-image);
	background-size: cover;
	background-position: center;
	transform: scale(1.02);
}

.mgc-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 180px;
	background: linear-gradient(0deg, var(--mgc-black), transparent);
}

.mgc-hero__content {
	position: relative;
	z-index: 2;
	max-width: 860px;
}

.mgc-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	color: var(--mgc-gold);
	font-size: 0.86rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mgc-kicker::before {
	content: "";
	width: 34px;
	height: 2px;
	background: var(--mgc-gold);
}

.mgc-hero h1 {
	max-width: 820px;
	margin: 0;
	font-size: clamp(2.6rem, 7vw, 6.8rem);
	line-height: 0.93;
	letter-spacing: 0;
	text-wrap: balance;
}

.mgc-hero h1 span {
	color: var(--mgc-gold);
}

.mgc-hero__lead {
	max-width: 660px;
	margin: 22px 0 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(1.06rem, 2vw, 1.35rem);
}

.mgc-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.mgc-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--mgc-radius);
	background: rgba(198, 148, 68, 0.16);
	color: var(--mgc-white);
	font-weight: 900;
}

.mgc-icon svg {
	width: 21px;
	height: 21px;
	fill: currentColor;
}

.mgc-section {
	padding: 92px 0;
	background: var(--mgc-black);
}

.mgc-section--light {
	background: var(--mgc-soft);
	color: var(--mgc-ink);
}

.mgc-section--gray {
	background: #141414;
}

.mgc-section__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 36px;
}

.mgc-section__head h2 {
	max-width: 720px;
	margin: 0;
	font-size: clamp(2rem, 4vw, 4rem);
	line-height: 1;
	letter-spacing: 0;
}

.mgc-section__head p {
	max-width: 420px;
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
}

.mgc-section--light .mgc-section__head p {
	color: rgba(18, 18, 18, 0.72);
}

.mgc-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
	gap: 42px;
	align-items: center;
}

.mgc-copy h2 {
	margin: 0 0 18px;
	font-size: clamp(2rem, 4vw, 4.2rem);
	line-height: 1;
}

.mgc-copy p {
	margin: 0 0 18px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 1.06rem;
}

.mgc-copy .mgc-list {
	margin-top: 28px;
}

.mgc-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mgc-list li {
	position: relative;
	padding-left: 28px;
	color: rgba(255, 255, 255, 0.82);
}

.mgc-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.65em;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--mgc-gold);
	box-shadow: 0 0 18px rgba(198, 148, 68, 0.65);
}

.mgc-photo-frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--mgc-radius);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: var(--mgc-shadow);
	background: #111;
}

.mgc-photo-frame img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.mgc-photo-frame--wide img {
	aspect-ratio: 16 / 10;
}

.mgc-photo-frame::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.38));
	pointer-events: none;
}

.mgc-event-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.mgc-event {
	overflow: hidden;
	border-radius: var(--mgc-radius);
	background: #101010;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
	display: flex;
	flex-direction: column;
}

.mgc-event img {
	width: 100%;
	aspect-ratio: 16 / 11;
	object-fit: cover;
}

.mgc-event__body {
	padding: 22px;
	display: flex;
	flex: 1;
	flex-direction: column;
}

.mgc-event h3 {
	margin: 0 0 10px;
	color: var(--mgc-gold);
	font-size: 1.36rem;
}

.mgc-event p {
	margin: 0;
	color: rgba(255, 255, 255, 0.75);
}

.mgc-event__actions {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 22px;
}

.mgc-link-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 10px 13px;
	border-radius: var(--mgc-radius);
	background: var(--mgc-gold);
	color: var(--mgc-black);
	font-weight: 900;
	font-size: 0.92rem;
	text-align: center;
	flex: 1;
}

.mgc-link-button--outline {
	background: rgba(255, 255, 255, 0.06);
	color: var(--mgc-white);
	border: 1px solid rgba(255, 255, 255, 0.22);
}

.mgc-pricing {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
	gap: 26px;
	align-items: stretch;
}

.mgc-price-card,
.mgc-hours-card {
	border-radius: var(--mgc-radius);
	background: var(--mgc-white);
	color: var(--mgc-ink);
	box-shadow: 0 18px 48px rgba(84, 84, 84, 0.14);
}

.mgc-price-card {
	padding: 30px;
	border-top: 5px solid var(--mgc-gold);
}

.mgc-price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 18px 0 8px;
	color: var(--mgc-gold);
	font-size: clamp(4rem, 9vw, 7rem);
	font-weight: 950;
	line-height: 0.9;
}

.mgc-price span {
	font-size: 1.3rem;
	color: var(--mgc-gray);
}

.mgc-price-lead {
	margin: 0 0 18px;
	font-size: 1.18rem;
	color: var(--mgc-ink);
}

.mgc-price-lead strong {
	color: var(--mgc-gold);
}

.mgc-price-benefits {
	display: grid;
	gap: 10px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.mgc-price-benefits li {
	position: relative;
	padding-left: 24px;
	color: rgba(18, 18, 18, 0.74);
}

.mgc-price-benefits li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--mgc-gold);
}

.mgc-promo {
	display: grid;
	gap: 4px;
	margin: 0 0 16px;
	padding: 16px;
	border-radius: var(--mgc-radius);
	background: linear-gradient(135deg, rgba(198, 148, 68, 0.16), rgba(84, 84, 84, 0.08));
	border: 1px solid rgba(198, 148, 68, 0.28);
}

.mgc-promo strong {
	color: var(--mgc-gray);
}

.mgc-promo span {
	color: var(--mgc-ink);
	font-weight: 900;
}

.mgc-note {
	margin: 12px 0 0;
	color: rgba(18, 18, 18, 0.66);
}

.mgc-hours-card {
	padding: 0;
	overflow: hidden;
}

.mgc-hours-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 18px;
	padding: 18px 22px;
	border-bottom: 1px solid rgba(84, 84, 84, 0.16);
}

.mgc-hours-row strong {
	color: var(--mgc-gray);
}

.mgc-hours-row span {
	text-align: right;
	font-weight: 900;
}

.mgc-gallery {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr 1fr;
	gap: 16px;
}

.mgc-gallery img {
	width: 100%;
	height: 100%;
	min-height: 280px;
	object-fit: cover;
	border-radius: var(--mgc-radius);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
}

.mgc-gallery img:nth-child(2) {
	margin-top: 44px;
}

.mgc-contact {
	display: grid;
	grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1.14fr);
	gap: 34px;
	align-items: start;
}

.mgc-contact-card {
	padding: 28px;
	border-radius: var(--mgc-radius);
	background:
		linear-gradient(145deg, rgba(198, 148, 68, 0.12), rgba(64, 217, 255, 0.05)),
		#111;
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.mgc-contact-card h2,
.mgc-form-card h2 {
	margin: 0 0 16px;
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 1;
}

.mgc-contact-methods {
	display: grid;
	gap: 12px;
	margin: 24px 0;
}

.mgc-contact-method {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 12px;
	align-items: center;
	padding: 12px 14px;
	border-radius: var(--mgc-radius);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.mgc-contact-method .mgc-icon {
	width: 34px;
	height: 34px;
	background: var(--mgc-white);
	color: var(--mgc-black);
}

.mgc-contact-method .mgc-icon svg {
	width: 19px;
	height: 19px;
}

.mgc-contact-method strong {
	display: block;
	color: var(--mgc-gold);
}

.mgc-contact-method span {
	color: rgba(255, 255, 255, 0.78);
}

.mgc-map {
	overflow: hidden;
	border-radius: var(--mgc-radius);
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: #050505;
}

.mgc-map iframe {
	display: block;
	width: 100%;
	height: 310px;
	border: 0;
}

.mgc-form-card {
	padding: 28px;
	border-radius: var(--mgc-radius);
	background: var(--mgc-white);
	color: var(--mgc-ink);
}

.mgc-form {
	display: grid;
	gap: 16px;
}

.mgc-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.mgc-field label {
	display: block;
	margin-bottom: 7px;
	color: var(--mgc-gray);
	font-size: 0.9rem;
	font-weight: 900;
}

.mgc-field input,
.mgc-field select,
.mgc-field textarea {
	width: 100%;
	border: 1px solid rgba(84, 84, 84, 0.22);
	border-radius: var(--mgc-radius);
	background: #fbfbfb;
	color: var(--mgc-ink);
	font: inherit;
	padding: 13px 14px;
	outline: none;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.mgc-field textarea {
	min-height: 132px;
	resize: vertical;
}

.mgc-field input:focus,
.mgc-field select:focus,
.mgc-field textarea:focus {
	border-color: var(--mgc-gold);
	box-shadow: 0 0 0 3px rgba(198, 148, 68, 0.16);
}

.mgc-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	color: rgba(18, 18, 18, 0.72);
	font-size: 0.92rem;
}

.mgc-check input {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	accent-color: var(--mgc-gold);
	flex: 0 0 auto;
}

.mgc-check a {
	color: var(--mgc-gray);
	font-weight: 900;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.mgc-honeypot {
	display: none;
}

.mgc-alert {
	margin: 0 0 16px;
	padding: 13px 14px;
	border-radius: var(--mgc-radius);
	font-weight: 800;
}

.mgc-alert--success {
	background: #e8f7ec;
	color: #17652c;
}

.mgc-alert--error {
	background: #ffeded;
	color: #8d1717;
}

.mgc-footer {
	padding: 34px 0;
	background: #050505;
	color: rgba(255, 255, 255, 0.72);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mgc-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.mgc-footer img {
	width: 220px;
	background: transparent;
	border-radius: 0;
	padding: 0;
}

.mgc-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: flex-end;
	align-items: center;
}

.mgc-footer__legal {
	flex-basis: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: flex-end;
	font-size: 0.86rem;
}

.mgc-socials {
	display: flex;
	flex-basis: 100%;
	gap: 12px;
	align-items: center;
	justify-content: flex-end;
}

.mgc-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 10px 13px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--mgc-radius);
	background: rgba(198, 148, 68, 0.16);
	color: var(--mgc-white);
	font-weight: 900;
	font-size: 0.9rem;
	transition: background-color 160ms ease, transform 160ms ease;
}

.mgc-socials a:hover,
.mgc-socials a:focus {
	background: var(--mgc-gold);
	color: var(--mgc-black);
	transform: translateY(-2px);
}

.mgc-socials svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
	flex: 0 0 auto;
}

.mgc-page {
	padding: 130px 0 80px;
	min-height: 70vh;
	background: var(--mgc-soft);
	color: var(--mgc-ink);
}

.mgc-page h1 {
	font-size: clamp(2.4rem, 5vw, 4.6rem);
	line-height: 1;
}

.mgc-legal {
	max-width: 900px;
}

.mgc-legal h1 {
	margin-top: 0;
}

.mgc-legal h2 {
	margin-top: 34px;
	color: var(--mgc-gray);
	font-size: 1.4rem;
}

.mgc-legal p {
	color: rgba(18, 18, 18, 0.78);
}

.mgc-legal a {
	color: var(--mgc-gray);
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

@media (max-width: 980px) {
	.mgc-menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.mgc-nav {
		position: fixed;
		top: 78px;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		padding: 22px 20px 26px;
		background: rgba(7, 7, 7, 0.96);
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.menu-open .mgc-nav {
		display: flex;
	}

	.mgc-nav a {
		padding: 14px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.mgc-header__actions .mgc-button--ghost {
		display: none;
	}

	.mgc-split,
	.mgc-pricing,
	.mgc-contact {
		grid-template-columns: 1fr;
	}

	.mgc-section__head {
		display: block;
	}

	.mgc-section__head p {
		margin-top: 14px;
	}

	.mgc-event-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	.mgc-shell {
		width: min(100% - 28px, var(--mgc-max));
	}

	.mgc-header__inner {
		min-height: 68px;
	}

	.mgc-logo img {
		width: 164px;
	}

	.mgc-nav {
		top: 68px;
	}

	.mgc-header__actions .mgc-button {
		min-height: 40px;
		padding: 10px 12px;
		font-size: 0.88rem;
	}

	.mgc-hero {
		min-height: auto;
		padding: 112px 0 42px;
	}

	.mgc-hero::before {
		background-image:
			linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.78) 62%, rgba(0, 0, 0, 0.95) 100%),
			var(--mgc-hero-image);
		background-position: 58% center;
	}

	.mgc-hero__lead {
		font-size: 1.02rem;
	}

	.mgc-hero__buttons,
	.mgc-footer__inner,
	.mgc-footer__links {
		flex-direction: column;
		align-items: stretch;
	}

	.mgc-button {
		width: 100%;
	}

	.mgc-section {
		padding: 62px 0;
	}

	.mgc-photo-frame img {
		aspect-ratio: 4 / 3;
	}

	.mgc-gallery {
		grid-template-columns: 1fr;
	}

	.mgc-gallery img,
	.mgc-gallery img:nth-child(2) {
		min-height: 230px;
		margin-top: 0;
	}

	.mgc-event__actions {
		flex-direction: column;
	}

	.mgc-form__row,
	.mgc-hours-row {
		grid-template-columns: 1fr;
	}

	.mgc-hours-row span {
		text-align: left;
	}
}
