/* =========================================================================
   Dendaraba - Centro Comercial Vitoria-Gasteiz
   Réplica estática en HTML5 + CSS (reconstruida sin WordPress)
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
	--accent: #ff6c2f;
	--accent-dark: #fa6426;
	--text: #292929;
	--text-muted: #878787;
	--text-footer: #898989;
	--border: #e4e4e4;
	--bg: #ffffff;
	--bg-alt: #fbfbfb;
	--dark: #292929;
	--container: 1200px;
	--font-body: 'Open Sans', Arial, Helvetica, sans-serif;
	--font-head: 'Titillium Web', Arial, Helvetica, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 24px;
	font-weight: 400;
	color: var(--text);
	background: var(--bg);
}
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: var(--accent); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--text); }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.4em; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--text);
	margin: 0 0 .6em;
	font-weight: 700;
	line-height: 1.2;
}
h1 { font-size: 30px; }
h2 { font-size: 24px; text-transform: uppercase; }
h3 { font-size: 18px; font-weight: 600; text-transform: uppercase; }
h4 { font-size: 16px; font-weight: 600; text-transform: uppercase; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================================================
   Header
   ========================================================================= */
.site-header { background: var(--bg); }

.header-top {
	background: var(--dark);
	height: 32px;
}

.header-mid {
	padding: 20px 0;
	text-align: center;
}
.logo { display: inline-block; }
.logo img { width: 375px; max-width: 100%; height: auto; }

.header-nav {
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.main-nav > ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}
.main-nav li { position: relative; }
.main-nav > ul > li > a {
	display: block;
	padding: 14px 22px;
	font-family: var(--font-head);
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--text);
	letter-spacing: .3px;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current > a { color: var(--accent); }

/* dropdown */
.main-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	background: var(--dark);
	padding: 6px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	z-index: 50;
	box-shadow: 0 10px 25px rgba(0,0,0,.15);
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav .sub-menu a {
	display: block;
	padding: 9px 20px;
	font-family: var(--font-head);
	font-size: 14px;
	font-weight: 600;
	color: #cfcfcf;
	text-transform: none;
	white-space: nowrap;
}
.main-nav .sub-menu a:hover { color: #fff; background: var(--accent); }

/* mobile nav toggle */
.nav-toggle {
	display: none;
	width: 100%;
	background: none;
	border: 0;
	padding: 12px 20px;
	cursor: pointer;
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--text);
	align-items: center;
	gap: 10px;
}
.nav-toggle .bars { display: inline-block; width: 22px; height: 2px; background: var(--text); position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--text); }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }

/* =========================================================================
   Middle / content
   ========================================================================= */
.middle { padding: 55px 0 70px; }
.page-hero {
	background: var(--bg-alt);
	border-bottom: 1px solid var(--border);
	padding: 45px 0;
	text-align: center;
}
.page-hero h1 { margin: 0; }

.section { padding: 35px 0; }
.section-title { text-align: center; margin-bottom: 35px; }
.section-title span.thin { font-weight: 300; }

.lead-image { text-align: center; margin: 0 auto 40px; }

/* Category icons row (home + establecimientos) */
.category-icons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 40px;
	margin: 10px 0 20px;
}
.category-icons a {
	display: inline-block;
	transition: transform .25s ease;
}
.category-icons a:hover { transform: translateY(-4px); }
.category-icons img { width: 120px; height: 120px; object-fit: contain; }

/* =========================================================================
   Grids of establishments (cards)
   ========================================================================= */
.store-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.store-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.store-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: var(--bg);
	border: 1px solid var(--border);
	padding: 18px;
	transition: box-shadow .25s ease, transform .25s ease;
}
.store-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.10); transform: translateY(-3px); }
.store-card .thumb {
	width: 100%;
	height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.store-card .thumb img { max-height: 150px; width: auto; }
.store-card .name {
	margin-top: 14px;
	font-family: var(--font-head);
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--text);
}
.store-card:hover .name { color: var(--accent); }

/* =========================================================================
   Store detail (ficha)
   ========================================================================= */
.store-detail {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
	max-width: 900px;
	margin: 0 auto;
}
.store-detail .media { text-align: center; }
.store-detail .media img { display: inline-block; }
.store-info { text-align: center; }
.store-info .store-name { font-size: 22px; margin-bottom: 2px; }
.store-info .store-cat { font-style: italic; color: var(--text-muted); margin-bottom: 18px; }
.store-info .row { margin: 6px 0; font-weight: 600; }
.store-info .row .label { text-transform: none; }
.store-info a { font-weight: 600; }

/* =========================================================================
   Contact
   ========================================================================= */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: start;
}
.contact-info h2 { margin-bottom: 20px; }
.contact-info .info-line { display: block; margin-bottom: 8px; }
.contact-map iframe,
.contact-map .map-embed { width: 100%; min-height: 340px; border: 0; }

.contact-form { margin-top: 30px; }
.contact-form label {
	display: block;
	margin-bottom: 18px;
	font-weight: 600;
}
.contact-form input,
.contact-form textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--text);
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 0; border-color: var(--accent); }
.contact-form textarea { min-height: 150px; resize: vertical; }

.btn {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	border: 0;
	padding: 12px 34px;
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .5px;
	cursor: pointer;
	transition: background .25s ease;
}
.btn:hover { background: var(--dark); color: #fff; }

.form-feedback { margin-top: 16px; font-weight: 600; color: var(--accent); }

/* =========================================================================
   Bottom widgets area
   ========================================================================= */
.site-bottom {
	background: var(--bg);
	color: #595959;
	border-top: 1px solid var(--border);
	padding: 55px 0 45px;
}
.bottom-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
}
.widget h3 {
	margin-bottom: 22px;
	position: relative;
	padding-bottom: 12px;
}
.widget h3::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 40px; height: 2px;
	background: var(--accent);
}
.widget img { margin-bottom: 14px; }
.widget ul li { margin-bottom: 8px; }
.widget ul li a {
	font-family: var(--font-head);
	font-weight: 600;
	color: #595959;
}
.widget ul li a:hover { color: var(--accent); }
.widget iframe, .widget .map-embed { width: 100%; height: 180px; border: 0; }

.contact-widget span { display: block; margin-bottom: 10px; padding-left: 26px; position: relative; }
.contact-widget span::before {
	position: absolute;
	left: 0; top: 2px;
	color: var(--accent);
	font-weight: 700;
	font-family: var(--font-head);
}
.contact-widget .w-address::before { content: "\1F4CD"; }
.contact-widget .w-time::before { content: "\1F551"; }
.contact-widget .w-url::before { content: "\1F310"; }
.contact-widget .w-mail::before { content: "\2709"; }
.contact-widget .w-phone::before { content: "\260E"; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
	background: var(--dark);
	color: var(--text-footer);
	padding: 22px 0;
	text-align: center;
}
.site-footer .copyright { font-size: 13px; }

/* Back to top */
.to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	width: 44px; height: 44px;
	background: var(--accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease, background .25s ease;
	z-index: 60;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--dark); color: #fff; }

/* =========================================================================
   Breadcrumbs
   ========================================================================= */
.breadcrumbs {
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 10px;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 992px) {
	.store-grid { grid-template-columns: repeat(3, 1fr); }
	.bottom-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.nav-toggle { display: flex; }
	.header-nav .main-nav { display: none; }
	.header-nav .main-nav.open { display: block; }
	.main-nav > ul { flex-direction: column; }
	.main-nav > ul > li > a { border-bottom: 1px solid var(--border); }
	.main-nav .sub-menu {
		position: static;
		opacity: 1; visibility: visible; transform: none;
		box-shadow: none;
		background: #333;
	}
	.store-grid, .store-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
	.store-detail { grid-template-columns: 1fr; }
	.contact-grid { grid-template-columns: 1fr; }
	.category-icons { gap: 20px; }
	.category-icons img { width: 90px; height: 90px; }
}
@media (max-width: 480px) {
	.store-grid, .store-grid.cols-3 { grid-template-columns: 1fr 1fr; gap: 14px; }
	.bottom-grid { grid-template-columns: 1fr; }
	.logo img { width: 260px; }
}
