/* Huayra Tech Solutions — estilos del sitio */

:root {
	--em-primary: #0e70b7;
	--em-accent: #28a9e2;
	--em-accent-soft: #8fd6f5;
	--em-accent-ink: #04213a;

	--em-bg: #0a0f15;
	--em-surface: #111923;
	--em-surface-2: #16212e;
	--em-surface-3: #1d2a3a;
	--em-border: rgba(255, 255, 255, .08);
	--em-text: #e8eef4;
	--em-muted: #98a6b5;

	--em-radius: 16px;
	--em-radius-xl: 32px;
	--em-max: 1180px;
	--em-font-head: "Outfit", system-ui, sans-serif;
	--em-font-body: "Manrope", system-ui, sans-serif;
	color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--em-accent); }
a:hover { color: var(--em-accent-soft); }

h1, h2, h3, h4 {
	font-family: var(--em-font-head);
	line-height: 1.05;
	letter-spacing: -.035em;
	margin: 0 0 .5em;
	color: #fff;
	font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; }

p { margin: 0 0 1em; }

::selection { background: var(--em-accent); color: var(--em-accent-ink); }

.container {
	width: 100%;
	max-width: var(--em-max);
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- Botones ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 18px 30px;
	border-radius: 999px;
	font-family: var(--em-font-body);
	font-weight: 700;
	font-size: .95rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
	cursor: pointer;
}
.btn .arrow { font-size: 1.3em; line-height: 1; transition: transform .25s; }
.btn:hover .arrow { transform: translateX(5px); }
.btn-primary {
	background: var(--em-accent);
	color: var(--em-accent-ink);
	box-shadow: 0 10px 30px rgba(40, 169, 226, .25);
}
.btn-primary:hover { background: var(--em-accent-soft); color: var(--em-accent-ink); }
.btn-ghost {
	color: #fff;
	border-color: rgba(255, 255, 255, .25);
	background: rgba(255, 255, 255, .04);
}
.btn-ghost:hover { border-color: var(--em-accent); color: #fff; }

/* ---------- Cabecera ---------- */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	transition: background .3s, border-color .3s;
	border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
	background: rgba(10, 15, 21, .82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom-color: var(--em-border);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 84px;
	gap: 20px;
}
.site-branding a {
	font-family: var(--em-font-head);
	font-weight: 600;
	letter-spacing: -.03em;
	font-size: 1.6rem;
	color: #fff;
	text-decoration: none;
}
.site-branding .custom-logo,
.site-branding .theme-logo img { height: 74px; width: auto; }
.site-branding a.theme-logo, .site-branding .custom-logo-link { display: block; }
.footer-logo { height: 110px; width: auto; margin-bottom: 18px; }

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 6px;
	display: flex;
	gap: 4px;
	align-items: center;
	background: rgba(255, 255, 255, .05);
	border: 1px solid var(--em-border);
	border-radius: 999px;
}
.main-nav a {
	display: block;
	padding: 9px 18px;
	border-radius: 999px;
	text-decoration: none;
	color: var(--em-text);
	font-weight: 600;
	font-size: .93rem;
	transition: background .2s, color .2s;
}
.main-nav a:hover,
.main-nav .current-menu-item > a { background: rgba(255, 255, 255, .08); color: #fff; }
.main-nav li:last-child a { background: var(--em-accent); color: var(--em-accent-ink); }
.main-nav li:last-child a:hover { background: var(--em-accent-soft); }

.menu-toggle {
	display: none;
	background: rgba(255, 255, 255, .06);
	color: #fff;
	border: 1px solid var(--em-border);
	border-radius: 12px;
	padding: 8px 13px;
	font-size: 1.2rem;
	cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 140px 0 140px;
	background:
		radial-gradient(700px 500px at 10% 90%, rgba(14, 112, 183, .22), transparent 60%),
		linear-gradient(90deg, rgba(10, 15, 21, .9) 0%, rgba(10, 15, 21, .55) 45%, rgba(10, 15, 21, .05) 100%),
		linear-gradient(180deg, rgba(10, 15, 21, .35) 0%, transparent 25%, transparent 70%, #0a0f15 100%),
		var(--em-hero-img, url(assets/img/hero.jpg)) right center / cover no-repeat,
		#0a0f15;
	overflow: hidden;
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
	background-size: 26px 26px;
	mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
	pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 900px; margin-bottom: 28px; }
.hero h1 .accent { display: block; color: var(--em-accent-soft); }
.hero-lead { font-size: 1.3rem; font-weight: 700; color: #fff; max-width: 640px; }
.hero-text { color: var(--em-muted); max-width: 600px; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.eyebrow {
	display: block;
	text-transform: uppercase;
	letter-spacing: .22em;
	font-size: .78rem;
	font-weight: 800;
	color: var(--em-accent);
	margin-bottom: 18px;
}
.hero .eyebrow { color: #fff; opacity: .85; }

/* ---------- Paneles (secciones redondeadas) ---------- */
.panel-wrap { padding: 0 18px; margin-top: 18px; }
.panel {
	max-width: calc(var(--em-max) + 120px);
	margin: 0 auto;
	background: var(--em-surface);
	border: 1px solid var(--em-border);
	border-radius: var(--em-radius-xl);
	padding: 80px 0;
	position: relative;
	overflow: hidden;
}
.panel-glow {
	background:
		radial-gradient(700px 400px at 100% 0%, rgba(40, 169, 226, .12), transparent 60%),
		var(--em-surface);
}
.panel-brand {
	background:
		radial-gradient(800px 500px at 90% 100%, rgba(40, 169, 226, .35), transparent 60%),
		linear-gradient(140deg, #0b3a63, var(--em-primary));
	border-color: transparent;
}
.panel-brand .eyebrow { color: #fff; opacity: .85; }
.hero + .panel-wrap { margin-top: -70px; position: relative; z-index: 2; }

.section-head { max-width: 700px; margin-bottom: 50px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--em-muted); font-size: 1.08rem; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }

/* Servicios: rejilla con divisores */
.features { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature {
	padding: 20px 34px;
	text-align: center;
	border-left: 1px solid var(--em-border);
}
.feature:first-child { border-left: 0; }
.feature p { color: var(--em-muted); margin: 0; }
.feature-icon {
	width: 84px; height: 84px;
	margin: 0 auto 22px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 1.7rem;
	font-family: var(--em-font-head);
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--em-accent-soft);
	background: radial-gradient(circle at 30% 30%, rgba(143, 214, 245, .25), rgba(14, 112, 183, .18));
	border: 1px solid rgba(143, 214, 245, .2);
	box-shadow: 0 0 40px rgba(40, 169, 226, .15);
}

/* Nosotros */
.about-figure {
	border-radius: 24px;
	min-height: 440px;
	border: 1px solid var(--em-border);
	background:
		linear-gradient(180deg, rgba(10, 15, 21, 0) 40%, rgba(10, 15, 21, .7)),
		var(--em-about-img, radial-gradient(circle at 50% 38%, #17466e, #0d1a28 68%));
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
	padding: 24px;
}
.about-figure { flex-direction: column; justify-content: flex-end; gap: 24px; }
.about-logo {
	width: 72%;
	max-width: 340px;
	height: auto;
	margin: auto;
	filter: drop-shadow(0 0 40px rgba(40, 169, 226, .35));
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.stat {
	background: rgba(10, 15, 21, .6);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--em-border);
	border-radius: 16px;
	padding: 16px;
}
.stat strong {
	display: block;
	font-family: var(--em-font-head);
	font-size: 2rem;
	letter-spacing: -.03em;
	color: var(--em-accent-soft);
	line-height: 1.1;
}
.stat span { color: var(--em-muted); font-size: .85rem; }
.about-text p { color: var(--em-muted); }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li {
	padding: 14px 18px 14px 54px;
	position: relative;
	margin-bottom: 10px;
	background: var(--em-surface-2);
	border: 1px solid var(--em-border);
	border-radius: 14px;
	font-weight: 600;
}
.check-list li::before {
	content: "✓";
	position: absolute; left: 16px; top: 50%;
	transform: translateY(-50%);
	width: 24px; height: 24px;
	border-radius: 50%;
	display: grid; place-items: center;
	font-size: .8rem;
	background: var(--em-accent);
	color: var(--em-accent-ink);
	font-weight: 800;
}

/* Proceso */
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 30px; }
.step-num {
	flex: 0 0 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(40, 169, 226, .14);
	border: 1px solid rgba(40, 169, 226, .3);
	color: var(--em-accent-soft);
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: .95rem;
}
.steps h3 { margin: 4px 0 4px; }
.steps p { color: var(--em-muted); margin: 0; }

/* Teléfono decorativo */
.device {
	width: 100%;
	max-width: 360px;
	margin: 0 auto;
	background: #070b10;
	border: 10px solid #1a2532;
	border-radius: 46px;
	padding: 26px 18px 20px;
	transform: rotate(4deg);
	box-shadow: 0 40px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(40, 169, 226, .12);
}
.device-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; padding: 0 6px; }
.device-notch { width: 70px; height: 18px; border-radius: 10px; background: #1a2532; }
.device-brand { font-family: var(--em-font-head); font-weight: 600; letter-spacing: -.03em; color: #fff; }
.bubble {
	max-width: 82%;
	padding: 12px 16px;
	border-radius: 18px;
	font-size: .9rem;
	line-height: 1.4;
	margin-bottom: 12px;
	font-weight: 600;
}
.bubble.in { background: var(--em-surface-3); color: var(--em-text); border-bottom-left-radius: 6px; }
.bubble.out { background: var(--em-accent); color: var(--em-accent-ink); margin-left: auto; border-bottom-right-radius: 6px; }
.device-input {
	margin-top: 22px;
	border: 1px solid var(--em-border);
	border-radius: 999px;
	padding: 10px 10px 10px 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--em-muted);
	font-size: .85rem;
}
.device-input span:last-child {
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--em-accent); color: var(--em-accent-ink);
	display: grid; place-items: center; font-weight: 800;
}

/* CTA */
.cta { text-align: center; }
.cta h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.cta p { color: rgba(255, 255, 255, .82); font-size: 1.12rem; margin-bottom: 30px; }
.cta .btn-primary { background: #fff; color: var(--em-primary); box-shadow: none; }
.cta .btn-primary:hover { background: var(--em-accent-soft); color: var(--em-accent-ink); }

/* Contacto */
.contact-info { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.contact-info li {
	display: flex;
	gap: 14px;
	background: var(--em-surface-2);
	border: 1px solid var(--em-border);
	border-radius: 14px;
	padding: 14px 18px;
}
.contact-info .ci-label {
	font-weight: 800;
	min-width: 92px;
	text-transform: uppercase;
	font-size: .75rem;
	letter-spacing: .15em;
	color: var(--em-accent);
	padding-top: 3px;
}
.contact-text p { color: var(--em-muted); }
.contact-form {
	background: var(--em-surface-2);
	border-radius: 24px;
	border: 1px solid var(--em-border);
	padding: 36px;
}
.contact-form label { display: block; font-weight: 700; margin-bottom: 8px; font-size: .9rem; }
.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid var(--em-border);
	border-radius: 14px;
	font: inherit;
	color: var(--em-text);
	margin-bottom: 18px;
	background: var(--em-bg);
	transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--em-accent);
	box-shadow: 0 0 0 4px rgba(40, 169, 226, .18);
}
.contact-form .btn { width: 100%; justify-content: center; }
.form-notice { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.form-notice.ok { background: rgba(46, 204, 113, .12); color: #7ee2a8; border: 1px solid rgba(46, 204, 113, .3); }
.form-notice.error { background: rgba(231, 76, 60, .12); color: #ff9d92; border: 1px solid rgba(231, 76, 60, .3); }
.hp-field { position: absolute; left: -9999px; }
.contact-form .consent {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-weight: 500;
	font-size: .88rem;
	color: var(--em-muted);
	margin: 4px 0 22px;
	cursor: pointer;
}
.contact-form .consent input {
	width: 20px; height: 20px;
	margin: 2px 0 0;
	flex: 0 0 20px;
	accent-color: var(--em-accent);
}
.legal-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; }
.legal-links a { color: var(--em-muted); }
.legal-links a:hover { color: var(--em-accent); }

/* Páginas legales */
.entry-content h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 1.8em; }
.entry-content ul { padding-left: 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content p, .entry-content li { color: #c9d3dd; }
.entry-content strong { color: #fff; }

/* ---------- Contenido (páginas / blog) ---------- */
.page-header-band {
	padding: 170px 0 70px;
	background:
		radial-gradient(700px 400px at 85% 0%, rgba(40, 169, 226, .2), transparent 60%),
		var(--em-bg);
	border-bottom: 1px solid var(--em-border);
}
.page-header-band h1 { margin: 0; }
.content-area { padding: 60px 0 90px; }
.entry-content { max-width: 780px; }
.entry-content > * { margin-bottom: 1.2em; }
.entry-content blockquote {
	border-left: 3px solid var(--em-accent);
	margin-left: 0;
	padding-left: 20px;
	color: var(--em-muted);
}
.post-list { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
.post-card {
	border: 1px solid var(--em-border);
	border-radius: 24px;
	overflow: hidden;
	background: var(--em-surface);
	transition: transform .25s, border-color .25s;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(40, 169, 226, .4); }
.post-card-body { padding: 24px; }
.post-card h2 { font-size: 1.35rem; }
.post-card h2 a { text-decoration: none; color: #fff; }
.post-card p { color: var(--em-muted); }
.post-meta { color: var(--em-muted); font-size: .8rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .12em; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers {
	padding: 8px 15px; border: 1px solid var(--em-border); border-radius: 999px; text-decoration: none; color: var(--em-text);
}
.pagination .current { background: var(--em-accent); color: var(--em-accent-ink); border-color: var(--em-accent); }
.search-form input { background: var(--em-surface-2); color: var(--em-text); border: 1px solid var(--em-border); border-radius: 999px; padding: 10px 16px; }

/* ---------- Pie ---------- */
.site-footer {
	color: var(--em-muted);
	padding: 80px 0 30px;
	font-size: .95rem;
	margin-top: 18px;
	border-top: 1px solid var(--em-border);
}
.site-footer h3 { color: #fff; font-size: 1.1rem; }
.site-footer .footer-brand { font-size: 1.8rem; }
.site-footer a { color: var(--em-text); text-decoration: none; }
.site-footer a:hover { color: var(--em-accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-bottom {
	border-top: 1px solid var(--em-border);
	margin-top: 50px;
	padding-top: 24px;
	text-align: center;
	font-size: .85rem;
}

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s ease; }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; translate: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.post-list { grid-template-columns: 1fr 1fr; }
	.grid-2 { grid-template-columns: 1fr; gap: 50px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.features { grid-template-columns: 1fr; }
	.feature { border-left: 0; border-top: 1px solid var(--em-border); padding: 34px 20px; }
	.feature:first-child { border-top: 0; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 760px) {
	.menu-toggle { display: block; }
	.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; }
	.main-nav.is-open { display: block; }
	.main-nav ul {
		flex-direction: column;
		align-items: stretch;
		border-radius: 20px;
		background: rgba(17, 25, 35, .97);
		padding: 10px;
	}
	.header-inner { position: relative; min-height: 70px; }
	.site-branding .custom-logo,
	.site-branding .theme-logo img { height: 50px; }
	.site-header { background: rgba(10, 15, 21, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
	.post-list, .footer-grid { grid-template-columns: 1fr; }
	.panel { padding: 56px 0; border-radius: 26px; }
	.panel-wrap { padding: 0 10px; }
	.hero { min-height: auto; padding: 130px 0 130px; background-position: 0 0, 0 0, 0 0, 70% center, 0 0; }
	.hero { background-image: radial-gradient(700px 500px at 10% 90%, rgba(14, 112, 183, .22), transparent 60%), linear-gradient(180deg, rgba(10, 15, 21, .75), rgba(10, 15, 21, .9)), linear-gradient(180deg, transparent 70%, #0a0f15 100%), var(--em-hero-img, url(assets/img/hero.jpg)); }
	.hero-lead { font-size: 1.1rem; }
	.stat { padding: 12px; }
	.stat strong { font-size: 1.4rem; }
	.contact-form { padding: 24px; }
	.contact-info li { flex-direction: column; gap: 2px; }
	.device { transform: none; }
}
