/* Tema HopliTag */
:root {
	--ink: #2B333D;
	--ink-2: #4a535e;
	--muted: #66707b;
	--red: #A23B32;
	--red-dark: #86302a;
	--red-soft: #f6e3e1;
	--bg: #ffffff;
	--sand: #f5f4f1;
	--line: #e2e3e5;
	--night: #1f252c;
	--night-2: #2a323b;
	--radius: 14px;
	--wrap: 1160px;
	--font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; max-width: 22ch; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }

.htt-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.htt-icon { width: 1em; height: 1em; flex: none; }
.htt-skip { position: absolute; left: -9999px; }
.htt-skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Botones */
.htt-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 13px 24px; border: 2px solid var(--red); border-radius: 10px;
	background: var(--red); color: #fff; font: inherit; font-weight: 700; font-size: 16px;
	text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.htt-btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.htt-btn:focus-visible, .htt-nav a:focus-visible, .htt-menu-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.htt-btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.htt-btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.htt-btn--sm { padding: 9px 16px; font-size: 15px; }

/* Encabezado */
.htt-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.htt-header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.htt-logo img { width: 168px; height: auto; }
.htt-menu-btn { display: none; }
.htt-nav { display: flex; align-items: center; gap: 28px; }
.htt-nav-list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.htt-nav-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.htt-nav-list a:hover { color: var(--red); }

@media (max-width: 860px) {
	.htt-menu-btn {
		display: flex; flex-direction: column; justify-content: center; gap: 5px;
		width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer; border-radius: 8px;
	}
	.htt-menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
	.htt-header .htt-nav { display: none; }
	.htt-header.is-open .htt-nav {
		display: flex; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 4px;
		padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line);
		box-shadow: 0 12px 24px rgba(31, 37, 44, .08);
	}
	.htt-header.is-open .htt-nav-list { flex-direction: column; gap: 0; }
	.htt-header.is-open .htt-nav-list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.htt-header.is-open .htt-btn { margin-top: 12px; }
	.htt-logo img { width: 140px; }
}

/* Portada: héroe */
.htt-hero { background: linear-gradient(180deg, var(--sand), #fff); padding: 64px 0 72px; overflow: hidden; }
.htt-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.htt-hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; max-width: 15ch; }
.htt-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
	padding: 6px 12px; border-radius: 999px; background: var(--red-soft); color: var(--red);
	font-size: 14px; font-weight: 700; letter-spacing: .02em;
}
.htt-lead { font-size: 19px; color: var(--ink-2); max-width: 56ch; }
.htt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.htt-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); }
.htt-checks li { position: relative; padding-left: 28px; }
.htt-checks li::before {
	content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
	background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Teléfono de muestra */
.htt-hero-visual { position: relative; display: flex; justify-content: center; }
.htt-phone {
	width: 290px; padding: 12px; border-radius: 42px; background: #15191e;
	box-shadow: 0 30px 60px rgba(31, 37, 44, .25), inset 0 0 0 2px #3a424c;
	transform: rotate(-3deg);
}
.htt-phone-screen { border-radius: 32px; background: #fff; overflow: hidden; padding-bottom: 14px; font-size: 12px; }
.htt-mini-brand { text-align: center; padding: 22px 12px 8px; }
.htt-mini-logo { display: block; font-weight: 800; font-size: 20px; letter-spacing: .08em; }
.htt-mini-line { display: block; font-size: 8px; letter-spacing: .25em; text-transform: uppercase; font-weight: 700; border-top: 2px solid var(--red); padding-top: 5px; margin: 6px 18px 0; }
.htt-mini-photo { height: 86px; background: linear-gradient(135deg, #9aa7b4, #5e6c7a 60%, #3f4a55); position: relative; }
.htt-mini-photo::after { content: ""; position: absolute; right: 0; bottom: 0; width: 60px; height: 16px; background: var(--red); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.htt-mini-client { margin: 10px 12px 6px; padding-left: 8px; border-left: 3px solid var(--red); font-weight: 800; font-size: 15px; }
.htt-mini-client small, .htt-mini-card small { display: block; font-size: 8px; font-weight: 600; color: var(--muted); letter-spacing: .06em; }
.htt-mini-card { margin: 0 12px; padding: 8px 10px; background: var(--sand); border-radius: 8px; }
.htt-mini-card b { display: block; font-size: 12px; margin-bottom: 3px; }
.htt-mini-ok { margin: 8px 12px; padding: 7px 10px; border-radius: 7px; background: #d9f2df; color: #1f7a3a; font-weight: 700; }
.htt-mini-rows { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; margin: 0 12px 8px; padding-bottom: 6px; border-bottom: 2px solid var(--red); }
.htt-mini-rows span { color: var(--ink-2); }
.htt-mini-doc { display: flex; align-items: center; gap: 8px; margin: 6px 12px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }
.htt-mini-doc .htt-icon { font-size: 16px; }
.htt-mini-doc em { margin-left: auto; font-style: normal; font-size: 9px; padding: 2px 6px; border-radius: 99px; background: #d9f2df; color: #1f7a3a; }
.htt-tap {
	position: absolute; left: calc(50% - 205px); top: 46%;
	width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
	background: var(--red); color: #fff; font-size: 40px; box-shadow: 0 14px 30px rgba(162, 59, 50, .35);
}

/* Secciones */
.htt-section { padding: 88px 0; }
.htt-kicker { margin-bottom: 10px; color: var(--red); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.htt-kicker--light { color: #f0a49c; }
.htt-grid { display: grid; gap: 20px; margin-top: 36px; }
.htt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.htt-grid--4 { grid-template-columns: repeat(4, 1fr); }

.htt-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.htt-card p, .htt-step p, .htt-benefit p { color: var(--ink-2); margin: 0; }
.htt-card-icon {
	display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px;
	border-radius: 12px; background: var(--sand); color: var(--ink); font-size: 26px;
}
.htt-card-icon--red { background: var(--red-soft); color: var(--red); }

.htt-steps { background: var(--sand); }
.htt-step-list { list-style: none; padding: 0; counter-reset: none; }
.htt-step { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; }
.htt-step .htt-card-icon { background: var(--red-soft); color: var(--red); }
.htt-step-num { position: absolute; top: 22px; right: 24px; font-size: 44px; font-weight: 800; color: #eceae6; line-height: 1; }

.htt-benefits { background: var(--night); color: #fff; }
.htt-benefits h2 { color: #fff; }
.htt-benefit { padding: 28px; border-radius: var(--radius); background: var(--night-2); }
.htt-benefit p { color: #c4cad1; }
.htt-benefit .htt-card-icon { background: rgba(240, 164, 156, .14); color: #f0a49c; }

.htt-industry-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.htt-industry-list li {
	display: flex; align-items: center; gap: 14px; padding: 20px 22px;
	border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: 18px;
}
.htt-industry-list .htt-icon { font-size: 28px; color: var(--red); }

/* Contacto */
.htt-contact { background: var(--sand); }
.htt-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.htt-form { display: grid; gap: 14px; padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(31, 37, 44, .08); }
.htt-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.htt-form input, .htt-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid #c9cdd2; border-radius: 9px;
	font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: #fff;
}
.htt-form input:focus, .htt-form textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.htt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.htt-form .htt-btn { justify-self: start; }
.htt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.htt-notice { margin: 0; padding: 12px 14px; border-radius: 9px; font-weight: 600; }
.htt-notice--ok { background: #d9f2df; color: #1f7a3a; }
.htt-notice--bad { background: var(--red-soft); color: var(--red-dark); }

/* Pie */
.htt-footer { background: var(--night); color: #c4cad1; padding: 48px 0 28px; }
.htt-footer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.htt-footer-brand { margin: 0; font-size: 28px; font-weight: 800; color: #fff; }
.htt-footer-brand span { color: #e06a5f; }
.htt-footer-tag { margin: 0; }
.htt-footer .htt-nav-list a { color: #c4cad1; }
.htt-footer .htt-nav-list a:hover { color: #fff; }
.htt-footer-copy { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid #39424c; font-size: 14px; }

/* Páginas internas */
.htt-content { padding: 56px 20px 80px; max-width: 820px; }
.htt-page-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.htt-entry { margin-bottom: 40px; }
.htt-prose { font-size: 18px; }
.htt-muted { color: var(--muted); }

/* Responsivo */
@media (max-width: 960px) {
	.htt-hero-grid, .htt-contact-grid { grid-template-columns: 1fr; }
	.htt-hero-visual { margin-top: 12px; }
	.htt-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.htt-grid--3, .htt-industry-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.htt-hero { padding: 40px 0 56px; }
	.htt-section { padding: 64px 0; }
	.htt-grid--3, .htt-grid--4, .htt-industry-list, .htt-form-row { grid-template-columns: 1fr; }
	.htt-phone { width: 250px; }
	.htt-tap { left: 8px; width: 64px; height: 64px; font-size: 30px; }
	.htt-lead { font-size: 17px; }
	.htt-form { padding: 20px; }
}
