/* ==========================================================================
   HS Servicios — estilos (versión minimalista)
   Blanco, mucho aire, tipografía Inter y un solo acento: el rojo de la marca.
   ========================================================================== */

:root {
	--accent: #d0101c;
	--accent-dark: #a60c16;
	--ink: #111418;
	--text: #2b3038;
	--muted: #6b7280;
	--line: #e7e9ec;
	--bg: #ffffff;
	--soft: #f6f7f8;

	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius: 4px;
	--container: 1160px;
	--header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.022em; line-height: 1.15; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.08; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.muted { color: var(--muted); }

.icon { width: 1.2em; height: 1.2em; flex: none; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: 0 1.5em;
	border-radius: var(--radius); border: 1px solid transparent;
	font: 500 .975rem/1 var(--font);
	text-decoration: none; cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-link { padding: 0 .25em; color: var(--ink); }
.btn-link .icon { transition: transform .2s; }
.btn-link:hover .icon { transform: translateX(3px); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: #fff; }

.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; font-size: .95rem; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .2s; }
.text-link:hover { border-color: var(--accent); }
.text-link .icon { width: 1em; height: 1em; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.94);
	backdrop-filter: saturate(180%) blur(10px);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; object-fit: contain; }
.brand-text { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; }
.brand-text strong { font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.nav-list { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.nav-list a { color: var(--muted); text-decoration: none; font-size: .925rem; font-weight: 500; transition: color .2s; }
.nav-list a:hover { color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; margin-right: -8px; cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle-close { display: none; }

@media (max-width: 880px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; padding: 8px 24px 24px;
		border-bottom: 1px solid var(--line);
		transform: translateY(-110%); visibility: hidden;
		transition: transform .25s ease, visibility .25s;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .site-nav { transform: none; visibility: visible; }
	.nav-open .nav-toggle-open { display: none; }
	.nav-open .nav-toggle-close { display: inline-flex; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--ink); }
	.nav-cta { margin-top: 20px; min-height: 48px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.eyebrow { font-size: .875rem; font-weight: 500; color: var(--accent); margin-bottom: 20px; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 34em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 62% 50%; border-radius: var(--radius); }
.hero-media figcaption { margin-top: 12px; font-size: .85rem; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(56px, 7vw, 88px) 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 28px 24px 28px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.facts dd { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-media { order: -1; }
	.hero-media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
	.facts { grid-template-columns: 1fr 1fr; }
	.facts > div { padding: 22px 16px 22px 0; }
	.facts > div + div { padding-left: 0; border-left: 0; }
	.facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
	.facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
	.facts dt { font-size: 1.6rem; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 10vw, 128px) 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p:last-child { color: var(--muted); font-size: 1.0625rem; margin: 0; }
.kicker { font-size: .875rem; font-weight: 500; color: var(--accent); margin-bottom: 12px; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.service-media { margin-bottom: 24px; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.service-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.service:hover .service-media img { transform: scale(1.03); }
.service h3 { margin-bottom: .45em; }
.service p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.list { list-style: none; margin: 0; padding: 0; font-size: .925rem; }
.list li { padding: 9px 0; border-top: 1px solid var(--line); }
.list li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- Arriendo ---------- */
.rent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rent { display: flex; flex-direction: column; background: #fff; padding: 32px 28px; }
.rent-icon { color: var(--ink); margin-bottom: 28px; }
.rent-icon .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.rent-tag { font-size: .8rem; color: var(--muted); margin: 0 0 6px; }
.rent h3 { margin-bottom: .5em; }
.rent > p:not(.rent-tag) { color: var(--muted); font-size: .925rem; flex: 1; }
.rent .text-link { align-self: flex-start; margin-top: 8px; }
@media (max-width: 960px) { .rent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rent-grid { grid-template-columns: 1fr; } }

/* ---------- Experiencia ---------- */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.exp-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 50%; border-radius: var(--radius); }
.exp-copy > p:not(.kicker) { color: var(--muted); font-size: 1.0625rem; }
.exp-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.exp-list li { padding-top: 16px; border-top: 1px solid var(--ink); }
.exp-list h3 { font-size: 1rem; margin-bottom: .35em; }
.exp-list p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) {
	.exp-grid { grid-template-columns: 1fr; }
	.exp-media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) { .exp-list { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: #fff; padding: clamp(56px, 7vw, 80px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .3em; }
.cta p { margin: 0; color: rgba(255,255,255,.65); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-info > p:not(.kicker) { color: var(--muted); font-size: 1.0625rem; }
.contact-list { margin: 40px 0 0; }
.contact-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: .875rem; color: var(--muted); }
.contact-list dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-word; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.contact-list .muted { font-weight: 400; font-size: .925rem; }

.quote-form { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.quote-form h3 { font-size: 1.375rem; margin-bottom: .3em; }
.form-note { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field span { font-size: .875rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
	font: inherit; font-size: 1rem; color: var(--text);
	background: #fff; border: 1px solid #d5d9de; border-radius: var(--radius);
	padding: 12px 14px; width: 100%; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.form-error { color: var(--accent-dark); font-size: .9rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
	.field-row { grid-template-columns: 1fr; gap: 0; }
	.contact-list > div { grid-template-columns: 1fr; gap: 2px; }
}

.map-wrap { margin-top: clamp(56px, 7vw, 88px); border-radius: var(--radius); overflow: hidden; height: 360px; background: var(--soft); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 64px; color: var(--muted); font-size: .925rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer-brand img { width: 40px; height: 40px; margin-bottom: 20px; }
.footer-brand p { max-width: 28em; }
.footer-title { color: var(--ink); font-size: .9rem; font-weight: 600; letter-spacing: 0; margin-bottom: 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-list a { text-decoration: none; transition: color .2s; }
.footer-list a:hover { color: var(--ink); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 3px; width: 1.05em; height: 1.05em; color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid var(--line); font-size: .85rem; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 90;
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	background: #1faa53; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.15);
	transition: transform .2s;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float .icon { width: 26px; height: 26px; }

/* ---------- Entrada suave ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Páginas internas (index.php) ---------- */
.page-content { padding: 72px 0 96px; }
.page-content .entry { max-width: 720px; margin: 0 auto 56px; }
.page-content .entry-title { font-size: clamp(2rem, 4vw, 2.75rem); }
.page-content .entry-title a { text-decoration: none; }
