/* ==========================================================================
   ST Motor – estilos principales
   ========================================================================== */

:root {
	--navy-950: #070d15;
	--navy-900: #0b1420;
	--navy-800: #111d2c;
	--red: #e5141f;
	--red-dark: #c00f19;
	--blue: #1d5fd8;
	--blue-dark: #1449ad;
	--ink: #0d1622;
	--text: #4a5361;
	--muted: #6b7380;
	--line: #e3e6eb;
	--bg-soft: #f4f5f7;
	--white: #fff;
	--radius: 4px;
	--shadow: 0 10px 30px rgba(10, 20, 35, .08);
	--font-head: "Montserrat", system-ui, sans-serif;
	--font-body: "Nunito Sans", system-ui, sans-serif;
	--container: 1200px;
	--header-h: 80px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

.screen-reader-text,
.skip-link {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	z-index: 1000; top: 8px; left: 8px;
	padding: 10px 16px; background: var(--white); color: var(--ink);
}

.stm-icon { width: 1.25em; height: 1.25em; flex: none; }

/* --- Botones -------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	min-height: 48px;
	padding: .75em 1.5em;
	border: 1.5px solid transparent;
	border-radius: var(--radius);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .9rem;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s;
	white-space: nowrap;
}
.btn .stm-icon { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--outline { border-color: rgba(255, 255, 255, .85); color: var(--white); background: rgba(0, 0, 0, .15); }
.btn--outline:hover { background: var(--white); color: var(--ink); }
.btn--light { background: var(--white); border-color: #cfd4db; color: var(--ink); }
.btn--light:hover { border-color: var(--ink); }
.btn--sm { min-height: 42px; padding: .6em 1.1em; font-size: .8rem; }

/* --- Logo ----------------------------------------------------------------- */
.stm-logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.stm-logo__word {
	font-family: var(--font-head);
	font-weight: 900;
	font-style: italic;
	font-size: 2.15rem;
	letter-spacing: -.02em;
	color: var(--white);
}
.stm-logo__st { color: var(--white); position: relative; padding-left: .12em; text-shadow: -3px 0 0 var(--blue); }
.stm-logo__r { color: var(--red); }
.stm-logo__tag {
	margin-top: 4px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .58rem;
	letter-spacing: .38em;
	text-transform: uppercase;
	color: var(--white);
}
.custom-logo-link img { max-height: 56px; width: auto; }

/* --- Cabecera ------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--navy-950);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-header__brand { flex: none; }
.site-nav { display: flex; align-items: center; flex: 1; gap: 24px; }
.site-nav__menu { flex: 1; display: flex; justify-content: center; }
.site-nav .menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a {
	position: relative;
	display: block;
	padding: 10px 14px;
	color: rgba(255, 255, 255, .85);
	font-family: var(--font-head);
	font-weight: 500;
	font-size: .9rem;
	text-decoration: none;
	transition: color .2s;
}
.site-nav .menu a::after {
	content: "";
	position: absolute;
	left: 14px; right: 14px; bottom: -2px;
	height: 3px;
	background: var(--red);
	transform: scaleX(0);
	transition: transform .2s;
}
.site-nav .menu a:hover,
.site-nav .current-menu-item > a { color: var(--white); }
.site-nav .menu a:hover::after,
.site-nav .current-menu-item > a::after { transform: scaleX(1); }
.site-nav__actions { display: flex; gap: 14px; }
.site-nav__actions .btn--outline { background: transparent; }

.nav-toggle {
	display: none;
	margin-left: auto;
	padding: 8px;
	background: none;
	border: 0;
	color: var(--white);
	cursor: pointer;
}
.nav-toggle .stm-icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 560px;
	padding: 80px 0;
	background:
		linear-gradient(90deg, rgba(5, 10, 18, .92) 0%, rgba(5, 10, 18, .7) 32%, rgba(5, 10, 18, .1) 62%, rgba(5, 10, 18, 0) 100%),
		var(--hero-img) center 30% / cover no-repeat,
		var(--navy-900);
	color: var(--white);
}
.hero__inner { position: relative; }
.hero__title {
	max-width: 620px;
	margin-bottom: 18px;
	color: var(--white);
	font-weight: 800;
	font-size: clamp(2.4rem, 5.4vw, 4rem);
	line-height: 1.04;
	text-transform: uppercase;
	letter-spacing: -.01em;
}
.hero__text { max-width: 480px; font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .92); margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* --- Barra de beneficios -------------------------------------------------- */
.features { background: var(--navy-900); color: var(--white); }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 24px 22px;
}
.feature + .feature { border-left: 1px solid rgba(255, 255, 255, .12); }
.feature__icon { color: var(--white); display: inline-flex; }
.feature__icon .stm-icon { width: 34px; height: 34px; stroke-width: 1.5; }
.feature:first-child .feature__icon,
.feature:nth-child(2) .feature__icon { color: #3d7cf0; }
.feature strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: .92rem; }
.feature span { display: block; font-size: .8rem; color: rgba(255, 255, 255, .7); }

/* --- Encabezados de sección ---------------------------------------------- */
.section { padding: 70px 0; }
.section-head { position: relative; margin-bottom: 30px; }
.section-head::before,
.accent-line {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	margin-bottom: 18px;
	background: var(--red);
}
.section-head[data-watermark]::after {
	content: attr(data-watermark);
	position: absolute;
	top: -8px;
	left: 80px;
	z-index: -1;
	font-family: var(--font-head);
	font-weight: 900;
	font-size: clamp(3rem, 7vw, 5.5rem);
	line-height: 1;
	text-transform: uppercase;
	color: rgba(13, 22, 34, .035);
	white-space: nowrap;
	pointer-events: none;
}
.section-head { isolation: isolate; }
.section-title {
	font-weight: 800;
	font-size: clamp(1.8rem, 3.4vw, 2.3rem);
	text-transform: uppercase;
	letter-spacing: -.005em;
	margin-bottom: 8px;
}
.section-title--light { color: var(--white); }
.section-text { color: var(--muted); font-size: .95rem; margin: 0; }

/* --- Servicios ------------------------------------------------------------ */
.services { background: #f7f8fa; overflow: hidden; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(10, 20, 35, .14); }
.service-card__media { position: relative; aspect-ratio: 3 / 2; background: var(--navy-800); }
.service-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-card__icon {
	position: absolute;
	left: 16px;
	bottom: -22px;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: var(--radius);
	background: var(--blue);
	color: var(--white);
	box-shadow: 0 6px 16px rgba(29, 95, 216, .35);
}
.service-card__icon .stm-icon { width: 26px; height: 26px; stroke-width: 1.6; }
.service-card__body { padding: 34px 16px 22px; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card p { font-size: .88rem; color: var(--muted); margin: 0; }

/* --- Nosotros ------------------------------------------------------------- */
.about {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--navy-900);
	color: rgba(255, 255, 255, .9);
}
.about__content { display: flex; justify-content: flex-end; padding: 60px 0; }
.about__inner { width: 100%; max-width: calc(var(--container) / 2); padding: 0 40px 0 24px; }
.about__subtitle {
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 1.05rem;
	text-transform: uppercase;
	color: var(--white);
	margin-bottom: 14px;
}
.about__text { font-size: .95rem; }
.about__features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	list-style: none;
	padding: 0;
	margin: 24px 0 28px;
}
.about__features li { display: flex; flex-direction: column; gap: 8px; font-size: .85rem; line-height: 1.35; }
.about__features .stm-icon { width: 38px; height: 38px; color: var(--blue); }
.about__features li:first-child .stm-icon { color: #3d7cf0; }
.about__media { position: relative; min-height: 380px; }
.about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- Ubicación ------------------------------------------------------------ */
.location__grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list li > .stm-icon { width: 26px; height: 26px; color: var(--red); margin-top: 2px; }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .92rem; }
.contact-list div > span,
.contact-list div > a { display: block; color: var(--text); text-decoration: none; font-size: .92rem; }
.contact-list div > a:hover { color: var(--red); }
.contact-list em { display: block; font-size: .75rem; color: var(--muted); }
.contact-list__cta { padding-top: 6px; }
.contact-list__cta .btn { color: var(--ink); }
.map {
	position: relative;
	min-height: 320px;
	height: 100%;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: #e8ecef;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- Pie de página -------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .78); font-size: .85rem; }
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr .8fr 1fr 1.1fr;
	gap: 40px;
	padding-top: 44px;
	padding-bottom: 36px;
}
.site-footer__about .stm-logo { margin-bottom: 18px; }
.site-footer h3 { color: var(--white); font-size: .95rem; font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.site-footer__contact .stm-icon { width: 18px; height: 18px; color: var(--white); margin-top: 1px; }
.site-footer__contact small { display: block; font-size: .7rem; opacity: .75; }
.social { display: flex; gap: 10px; }
.social a {
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: var(--white);
	transition: background-color .2s;
}
.social a:hover { background: var(--red); }
.social .stm-icon { width: 18px; height: 18px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; font-size: .78rem; color: rgba(255, 255, 255, .5); }

/* --- Páginas interiores --------------------------------------------------- */
.page-hero {
	padding: 70px 0 50px;
	background: linear-gradient(90deg, rgba(5, 10, 18, .94), rgba(5, 10, 18, .7)), var(--hero-img) center / cover, var(--navy-900);
}
.entry-content { color: var(--text); }
.entry-content > * + * { margin-top: 1em; }
.entry-content img { border-radius: var(--radius); }
.entry-content .wp-block-gallery img { height: 100%; object-fit: cover; }
.entry__thumb { margin-bottom: 24px; }
.post-list { display: grid; gap: 30px; }
.post-item h2 { font-size: 1.4rem; }
.post-item h2 a { color: var(--ink); text-decoration: none; }
.post-item__meta { font-size: .8rem; color: var(--muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.site-nav .menu a { padding: 10px 9px; }
	.site-nav__actions { gap: 8px; }
	.features__grid { grid-template-columns: repeat(2, 1fr); }
	.feature:nth-child(3) { border-left: 0; }
	.feature:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
	.services__grid { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 16px 24px 24px;
		background: var(--navy-950);
		border-top: 1px solid rgba(255, 255, 255, .08);
		box-shadow: 0 20px 30px rgba(0, 0, 0, .3);
		display: none;
	}
	.nav-open .site-nav { display: flex; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline; }
	.site-nav__menu { justify-content: flex-start; }
	.site-nav .menu { flex-direction: column; width: 100%; gap: 0; }
	.site-nav .menu a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
	.site-nav .menu a::after { display: none; }
	.site-nav .current-menu-item > a { color: var(--red); }
	.site-nav__actions { flex-direction: column; }

	.about { grid-template-columns: 1fr; }
	.about__content { justify-content: flex-start; }
	.about__inner { max-width: none; padding: 0 24px; }
	.about__media { min-height: 300px; }
	.location__grid { grid-template-columns: 1fr; }
	.map { min-height: 340px; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
	:root { --header-h: 70px; }
	.container { padding: 0 16px; }
	.stm-logo__word { font-size: 1.75rem; }
	.hero { min-height: 480px; padding: 60px 0; background-position: center, 65% center, 0 0; }
	.hero__actions .btn { width: 100%; }
	.features__grid { grid-template-columns: 1fr; }
	.feature + .feature { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
	.services__grid { grid-template-columns: 1fr; }
	.section { padding: 54px 0; }
	.about__features { grid-template-columns: 1fr 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.section-head[data-watermark]::after { left: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
