/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10, 14, 26, 0.82);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 88px;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
}

.site-logo:hover { color: var(--accent); }

.logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--gradient);
	color: #061018;
}

.logo-mark svg { width: 22px; height: 22px; }

.logo-img {
	height: 64px;
	width: auto;
	border-radius: 8px;
	object-fit: contain;
}

.main-nav { display: flex; align-items: center; gap: 18px; }

.primary-menu {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu a {
	display: block;
	padding: 9px 14px;
	border-radius: 8px;
	color: var(--text);
	font-weight: 500;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
	color: var(--accent);
	background: rgba(34, 211, 238, 0.08);
}

.sub-menu {
	list-style: none;
	margin: 0;
	padding: 6px 0 6px 16px;
}

.nav-cta { padding: 10px 20px; font-size: 0.95rem; }
.nav-cta svg { width: 18px; height: 18px; }

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	padding: 10px;
	cursor: pointer;
}

.nav-toggle span {
	width: 24px;
	height: 2px;
	background: var(--text);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
	position: relative;
	overflow: hidden;
	padding: 88px 0 110px;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(36, 48, 86, 0.25) 1px, transparent 1px),
		linear-gradient(90deg, rgba(36, 48, 86, 0.25) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}

.glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.55;
}

.glow-1 { width: 480px; height: 480px; top: -140px; right: -80px; background: rgba(139, 92, 246, 0.5); }
.glow-2 { width: 420px; height: 420px; bottom: -160px; left: -100px; background: rgba(34, 211, 238, 0.4); }

.hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: 56px;
}

.badge {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: rgba(19, 26, 48, 0.7);
	color: var(--accent);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	margin-bottom: 22px;
}

.hero h1 { margin-bottom: 20px; }

.hero-sub {
	font-size: 1.18rem;
	color: var(--text-muted);
	max-width: 540px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 30px 0 28px;
}

.hero-actions .btn svg { width: 20px; height: 20px; }

.hero-points {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
	color: var(--text);
	font-weight: 500;
}

.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--success); }

/* Mockup */
.hero-visual { position: relative; }

.mockup {
	position: relative;
	border-radius: 18px;
	border: 1px solid var(--border);
	background: linear-gradient(160deg, #161d36, #0f1426);
	box-shadow: var(--shadow);
	padding: 18px;
	transform: perspective(1200px) rotateY(-8deg);
}

.mockup-bar { display: flex; gap: 7px; padding: 4px 2px 16px; }
.mockup-bar span { width: 12px; height: 12px; border-radius: 50%; background: #2a3558; }

.mockup-row { height: 16px; border-radius: 6px; background: #1d2647; margin-bottom: 14px; }
.mockup-head { width: 62%; height: 22px; background: linear-gradient(90deg, #22d3ee, #8b5cf6); opacity: 0.85; }

.mockup-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-bottom: 14px;
}

.mockup-cell { height: 74px; border-radius: 10px; background: #1d2647; }
.mockup-cell.c1 { background: linear-gradient(160deg, #22d3ee, #0e7490); }
.mockup-cell.c2 { background: linear-gradient(160deg, #8b5cf6, #5b21b6); }
.mockup-cell.c3 { background: linear-gradient(160deg, #f59e0b, #b45309); }
.mockup-cell.c4 { background: linear-gradient(160deg, #22c55e, #15803d); }

.mockup-wide { width: 88%; }
.mockup-wide.short { width: 58%; opacity: 0.7; }

.mockup-chip {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 14px;
	border: 1px solid var(--border);
	background: rgba(19, 26, 48, 0.92);
	backdrop-filter: blur(8px);
	box-shadow: var(--shadow);
	font-size: 0.9rem;
}

.mockup-chip svg { width: 20px; height: 20px; color: var(--accent); }

.chip-trend { top: 40%; left: -52px; flex-direction: column; align-items: flex-start; gap: 2px; }
.chip-trend strong { font-size: 1.3rem; color: var(--success); }
.chip-trend span { color: var(--text-muted); font-size: 0.78rem; }

.chip-secure { bottom: -18px; right: -20px; }
.chip-secure span { color: var(--text); }

/* ============================================================
   STATS
   ============================================================ */
.stats {
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	background: var(--bg-alt);
	padding: 34px 0;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: center;
	padding: 10px;
}

.stat-icon { margin-bottom: 8px; }
.stat-icon svg { width: 26px; height: 26px; color: var(--accent); }

.stat strong {
	font-size: 2.1rem;
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section { padding: 90px 0; }

.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }

.kicker {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 12px;
}

.section-sub { color: var(--text-muted); font-size: 1.1rem; }

/* ============================================================
   CARDS (servicios / interesar)
   ============================================================ */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 22px;
}

.card {
	position: relative;
	overflow: hidden;
	padding: 30px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--surface);
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--gradient);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.card:hover { transform: translateY(-6px); border-color: #31406e; }
.card:hover::before { opacity: 1; }

.card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 14px;
	background: rgba(34, 211, 238, 0.12);
	color: var(--accent);
	margin-bottom: 18px;
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); margin: 0; }

/* ============================================================
   TECNOLOGÍA
   ============================================================ */
.tech-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 22px;
}

.tech-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 24px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--surface);
}

.tech-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	font-weight: 800;
	flex-shrink: 0;
}

.tech-logo svg { width: 24px; height: 24px; }

.tl-copilot { background: #0f766e; color: #ccfbf1; }
.tl-adobe { background: #9a3412; color: #ffedd5; }
.tl-365 { background: #1e3a8a; color: #dbeafe; }
.tl-google { background: #155e75; color: #cffafe; }

.tech-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.tech-item p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* ============================================================
   CLIENTES
   ============================================================ */
.client-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
}

.client {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px;
	border-radius: var(--radius-sm);
	border: 1px dashed var(--border);
	background: var(--surface);
	color: var(--text-muted);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: center;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.client:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   TESTIMONIOS (videos de clientes)
   ============================================================ */
.video-grid {
	max-width: 720px;
	margin: 0 auto;
}

.video-card {
	margin: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.video-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #000;
}

.video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.video-card-caption {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 22px;
	color: var(--text-muted);
	font-size: 0.95rem;
}

.video-card-caption strong { color: var(--text); }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final { padding-bottom: 96px; }

.cta-box {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding: 64px 32px;
	border-radius: 22px;
	border: 1px solid var(--border);
	background: linear-gradient(140deg, #1a2240, #0f1426);
}

.cta-box::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.18), transparent 55%),
		radial-gradient(circle at 90% 100%, rgba(139, 92, 246, 0.22), transparent 55%);
	pointer-events: none;
}

.cta-box > * { position: relative; }

.cta-box h2 { max-width: 640px; margin: 0 auto 14px; }
.cta-box p { color: var(--text-muted); max-width: 520px; margin: 0 auto 28px; }

.btn-lg { padding: 18px 34px; font-size: 1.08rem; }
.btn-lg svg { width: 22px; height: 22px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
	background: var(--bg-alt);
	border-top: 1px solid var(--border);
	padding: 60px 0 0;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 36px;
	padding-bottom: 44px;
}

.footer-about p { color: var(--text-muted); font-size: 0.95rem; }

.footer-title {
	font-size: 1rem;
	color: var(--accent);
	margin-bottom: 16px;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu li { margin-bottom: 10px; }

.footer-menu a {
	color: var(--text-muted);
	font-size: 0.95rem;
}

.footer-menu a:hover { color: var(--accent); }

.contact-list .btn { margin-top: 8px; }
.contact-list .btn svg { width: 18px; height: 18px; }

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
}

.social-links a {
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid var(--border);
	color: var(--text-muted);
	font-size: 0.85rem;
}

.social-links a:hover { border-color: var(--accent); color: var(--accent); }

.footer-bottom {
	border-top: 1px solid var(--border);
	padding: 20px 0;
}

.footer-bottom p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   PÁGINAS INTERNAS / BLOG
   ============================================================ */
.page-wrap { padding: 60px 0 90px; }

.page-header { margin-bottom: 40px; }
.page-title { margin-bottom: 6px; }
.archive-desc { color: var(--text-muted); }
.archive-desc p { margin-bottom: 0; }

.layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 40px;
	align-items: start;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

/* Tarjeta de post */
.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--surface);
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.post-card:hover { transform: translateY(-5px); border-color: #31406e; }

.post-card-thumb { overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.05); }

.post-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.post-card-meta {
	font-size: 0.8rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.post-card-title { font-size: 1.2rem; margin: 0; }
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--accent); }

.post-card-excerpt { color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.post-card-excerpt p { margin-bottom: 0; }

.post-card-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--accent);
}

.post-card-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.post-card-link:hover svg { transform: translateX(4px); }

/* Paginación */
.pagination .nav-links { display: flex; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid var(--border);
	color: var(--text);
}

.pagination .page-numbers.current { background: var(--gradient); color: #061018; border-color: transparent; font-weight: 700; }
.pagination .page-numbers:hover:not(.current) { border-color: var(--accent); color: var(--accent); }

/* Entrada individual */
.entry { max-width: 780px; margin: 0 auto; }

.entry-thumb { border-radius: var(--radius); margin-bottom: 26px; width: 100%; }

.entry-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }

.entry-content { font-size: 1.08rem; color: #dbe3f4; }

.entry-content h2 { margin-top: 1.4em; }
.entry-content h3 { margin-top: 1.2em; }

.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content blockquote {
	margin: 1.6em 0;
	padding: 18px 22px;
	border-left: 3px solid var(--accent);
	background: var(--surface);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--text);
}

.entry-content code, .entry-content pre { background: var(--surface-2); border-radius: 6px; }
.entry-content code { padding: 2px 6px; font-size: 0.9em; }
.entry-content pre { padding: 18px; overflow-x: auto; }

.entry-footer { margin-top: 30px; }

.tag {
	display: inline-block;
	padding: 5px 12px;
	margin: 0 6px 8px 0;
	border-radius: 999px;
	border: 1px solid var(--border);
	font-size: 0.85rem;
	color: var(--text-muted);
}

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 44px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

/* Sidebar */
.sidebar .widget {
	padding: 22px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--surface);
	margin-bottom: 22px;
}

.widget-title {
	font-size: 1rem;
	margin-bottom: 14px;
	color: var(--accent);
}

.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { margin-bottom: 9px; }
.widget ul li a { color: var(--text-muted); }
.widget ul li a:hover { color: var(--accent); }

/* Búsqueda */
.search-form .search-field {
	display: flex;
	gap: 8px;
	width: 100%;
	max-width: 420px;
}

.search-input {
	flex: 1;
	padding: 13px 18px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	font-size: 1rem;
}

.search-input:focus { outline: none; border-color: var(--accent); }

.search-submit { padding: 13px 18px; }
.search-submit svg { width: 18px; height: 18px; }

.no-results {
	padding: 40px;
	border-radius: var(--radius);
	border: 1px dashed var(--border);
	text-align: center;
}

/* 404 */
.error-404-wrap { text-align: center; }
.error-404 { max-width: 560px; margin: 0 auto; }

.error-code {
	font-size: 6rem;
	font-weight: 800;
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	line-height: 1;
	display: block;
	margin-bottom: 12px;
}

.error-actions { display: flex; flex-direction: column; gap: 18px; align-items: center; margin-top: 26px; }

/* Comentarios */
.comments-area { margin-top: 44px; }
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 26px; }
.comment-body { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 16px; background: var(--surface); }
.comment-meta { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; }
.comment-form label { display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	margin-bottom: 14px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form .submit { background: var(--gradient); color: #061018; border: 0; padding: 12px 24px; border-radius: 999px; font-weight: 600; cursor: pointer; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
	.hero-inner { grid-template-columns: 1fr; gap: 40px; }
	.hero-visual { max-width: 460px; margin: 0 auto; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
	.nav-toggle { display: flex; }

	.main-nav {
		position: fixed;
		inset: 88px 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
		background: rgba(10, 14, 26, 0.98);
		border-bottom: 1px solid var(--border);
		padding: 20px 24px 26px;
		transform: translateY(-110%);
		transition: transform 0.3s ease;
		z-index: 99;
	}

	.main-nav.is-open { transform: translateY(0); }

	.primary-menu { flex-direction: column; align-items: stretch; gap: 4px; }
	.primary-menu a { padding: 12px 14px; }

	.nav-cta { justify-content: center; margin-top: 10px; }
}

@media (max-width: 640px) {
	.stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.hero { padding: 64px 0 80px; }
	.section { padding: 64px 0; }
	.chip-trend { left: -8px; }
	.chip-secure { right: -6px; }
	.post-nav { flex-direction: column; }
	.footer-bottom .container { flex-direction: column; }
	.hero-actions .btn { width: 100%; }
	.hero-actions .btn-ghost { margin-top: 0; }
	.video-card-caption { padding: 14px 16px; }
}
