/* ==========================================================================
   Test IA — hoja de estilos principal
   Prefijo: testia-  ·  Paleta: grafito #1F2937 + ámbar #B45309
   ========================================================================== */

:root {
	--testia-ink: #1F2937;        /* grafito corporativo */
	--testia-ink-deep: #111827;   /* grafito más oscuro (pies, botones hover) */
	--testia-ink-soft: #374151;
	--testia-amber: #B45309;      /* acento IA sobre claro (4.6:1 sobre blanco) */
	--testia-amber-light: #F59E0B;/* acento IA sobre oscuro */
	--testia-amber-tint: #FEF3C7; /* fondo suave ámbar */
	--testia-text: #1F2937;
	--testia-muted: #4B5563;      /* 7:1 sobre blanco */
	--testia-line: #E5E7EB;
	--testia-ground: #FFFFFF;
	--testia-ground-alt: #F3F4F6;
	--testia-success: #047857;
	--testia-error: #B91C1C;

	--testia-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--testia-radius: 12px;
	--testia-radius-lg: 20px;
	--testia-shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 8px 24px rgba(17, 24, 39, 0.06);
	--testia-container: 1180px;
	--testia-gutter: 20px;
	--testia-header-h: 76px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--testia-font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--testia-text);
	background: var(--testia-ground);
}

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
	margin: 0 0 0.5em;
	line-height: 1.15;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--testia-ink);
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--testia-amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--testia-ink); }

:focus-visible { outline: 3px solid var(--testia-amber); outline-offset: 3px; border-radius: 4px; }

.testia-container {
	width: 100%;
	max-width: var(--testia-container);
	margin-inline: auto;
	padding-inline: var(--testia-gutter);
}

.testia-skip {
	position: absolute; left: -999px; top: 8px; z-index: 100;
	padding: 10px 16px; background: var(--testia-ink); color: #fff; border-radius: 8px;
}
.testia-skip:focus { left: 8px; }

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

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
.testia-logo {
	display: inline-flex; align-items: center; gap: 10px;
	text-decoration: none; color: var(--testia-ink);
}
.testia-logo__word { font-size: 1.55rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.testia-logo__word b { font-weight: 700; color: var(--testia-amber); margin-left: 0.18em; }
.testia-logo--dark { color: #fff; }
.testia-logo--dark .testia-logo__word b { color: var(--testia-amber-light); }
.custom-logo { max-height: 56px; width: auto; }

/* --------------------------------------------------------------------------
   Cabecera y navegación
   -------------------------------------------------------------------------- */
.testia-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--testia-line);
}
.testia-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	min-height: var(--testia-header-h);
}
.testia-nav { display: flex; align-items: center; gap: 28px; }
.testia-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.testia-nav__list li { position: relative; }
.testia-nav__list a {
	display: inline-block; padding: 10px 14px; border-radius: 8px;
	color: var(--testia-ink); font-weight: 500; font-size: 0.97rem; text-decoration: none;
}
.testia-nav__list a:hover,
.testia-nav__list .current-menu-item > a,
.testia-nav__list .current-menu-ancestor > a { background: var(--testia-ground-alt); color: var(--testia-ink-deep); }
.testia-nav__list .sub-menu {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; border: 1px solid var(--testia-line); border-radius: var(--testia-radius);
	box-shadow: var(--testia-shadow); display: none; flex-direction: column;
}
.testia-nav__list li:hover > .sub-menu,
.testia-nav__list li:focus-within > .sub-menu { display: flex; }
.testia-nav__list .sub-menu a { display: block; padding: 8px 12px; }

.testia-nav-toggle {
	display: none; align-items: center; justify-content: center;
	width: 48px; height: 48px; border: 1px solid var(--testia-line); border-radius: 10px;
	background: #fff; color: var(--testia-ink); cursor: pointer;
}
.testia-nav-toggle .testia-icon--close { display: none; }
.testia-nav-toggle[aria-expanded="true"] .testia-icon--menu { display: none; }
.testia-nav-toggle[aria-expanded="true"] .testia-icon--close { display: block; }

@media (max-width: 900px) {
	.testia-nav-toggle { display: inline-flex; }
	.testia-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 12px;
		padding: 16px var(--testia-gutter) 24px; background: #fff; border-bottom: 1px solid var(--testia-line);
		box-shadow: var(--testia-shadow);
	}
	.testia-nav.is-open { display: flex; }
	.testia-nav__list { flex-direction: column; gap: 2px; }
	.testia-nav__list a { display: block; padding: 12px 14px; font-size: 1.05rem; }
	.testia-nav__list .sub-menu { position: static; display: flex; border: 0; box-shadow: none; padding: 0 0 0 14px; }
	.testia-nav .testia-btn { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.testia-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 20px; min-height: 46px; border-radius: 10px;
	font-weight: 600; font-size: 0.97rem; text-decoration: none; line-height: 1;
	border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
	font-family: inherit;
}
.testia-btn .testia-icon { transition: transform .15s; }
.testia-btn:hover .testia-icon { transform: translateX(3px); }
.testia-btn--primary { background: var(--testia-ink); color: #fff; }
.testia-btn--primary:hover { background: var(--testia-ink-deep); color: #fff; }
.testia-btn--amber { background: var(--testia-amber); color: #fff; }
.testia-btn--amber:hover { background: #92400E; color: #fff; }
.testia-btn--secondary { background: #fff; color: var(--testia-ink); border-color: var(--testia-ink); }
.testia-btn--secondary:hover { background: var(--testia-ground-alt); color: var(--testia-ink); }
.testia-btn--ghost { background: transparent; color: var(--testia-ink); padding-inline: 8px; }
.testia-btn--ghost:hover { color: var(--testia-amber); }
.testia-btn--light { background: #fff; color: var(--testia-ink); }
.testia-btn--light:hover { background: var(--testia-amber-light); color: var(--testia-ink-deep); }
.testia-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.testia-btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* --------------------------------------------------------------------------
   Secciones y tipografía de apoyo
   -------------------------------------------------------------------------- */
.testia-section { padding-block: clamp(56px, 8vw, 104px); }
.testia-section--alt { background: var(--testia-ground-alt); }
.testia-section--dark { background: var(--testia-ink); color: #D1D5DB; }
.testia-section--dark h2, .testia-section--dark h3 { color: #fff; }
.testia-section--tight { padding-block: clamp(36px, 5vw, 64px); }

.testia-section__head { max-width: 720px; margin-bottom: 44px; }
.testia-section__head--center { margin-inline: auto; text-align: center; }
.testia-section__lead { font-size: 1.1rem; color: var(--testia-muted); margin: 0; }
.testia-section--dark .testia-section__lead { color: #D1D5DB; }

.testia-kicker {
	margin: 0 0 12px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--testia-amber);
}
.testia-section--dark .testia-kicker { color: var(--testia-amber-light); }

.testia-meta { font-size: 0.9rem; color: var(--testia-muted); margin: 0 0 8px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.testia-hero {
	position: relative; overflow: hidden;
	background: var(--testia-ink); color: #fff;
	padding-block: clamp(72px, 11vw, 150px);
}
.testia-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.testia-hero h1 { color: #fff; margin-bottom: 20px; }
.testia-hero h1 em { font-style: normal; color: var(--testia-amber-light); }
.testia-hero__lead { font-size: 1.2rem; color: #D1D5DB; max-width: 560px; margin-bottom: 32px; }
.testia-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.testia-hero__proof { display: flex; flex-wrap: wrap; gap: 24px; margin: 40px 0 0; padding: 0; list-style: none; color: #D1D5DB; font-size: 0.95rem; }
.testia-hero__proof li { display: flex; align-items: center; gap: 8px; }
.testia-hero__proof .testia-icon { color: var(--testia-amber-light); }

/* Red de nodos decorativa (versión grande del isotipo) */
.testia-hero__art { display: flex; justify-content: center; }
.testia-hero__art svg { width: min(100%, 420px); height: auto; }
.testia-hero__art .node { fill: #fff; }
.testia-hero__art .edge { stroke: rgba(255,255,255,.55); stroke-width: 1.6; }
.testia-hero__art .core { fill: var(--testia-amber-light); }
.testia-hero__art .halo { fill: none; stroke: var(--testia-amber-light); stroke-width: 1.5; opacity: .5; }

@media (max-width: 900px) {
	.testia-hero__grid { grid-template-columns: 1fr; gap: 40px; }
	.testia-hero__art svg { width: min(70%, 320px); }
}

/* --------------------------------------------------------------------------
   Rejillas de tarjetas (líneas de negocio, ventajas, plugins)
   -------------------------------------------------------------------------- */
.testia-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.testia-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.testia-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .testia-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .testia-grid, .testia-grid--2, .testia-grid--4 { grid-template-columns: 1fr; } }

.testia-card {
	display: flex; flex-direction: column; gap: 14px;
	padding: 32px 28px; background: #fff; border: 1px solid var(--testia-line); border-radius: var(--testia-radius-lg);
	transition: transform .18s, box-shadow .18s, border-color .18s;
}
.testia-card:hover { transform: translateY(-3px); box-shadow: var(--testia-shadow); border-color: #D1D5DB; }
.testia-card__icon {
	width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 14px; background: var(--testia-amber-tint); color: var(--testia-amber);
}
.testia-card h3 { margin: 4px 0 0; }
.testia-card p { color: var(--testia-muted); margin: 0; }
.testia-card .testia-btn { margin-top: auto; align-self: flex-start; }
.testia-card--link { text-decoration: none; color: inherit; }
.testia-section--dark .testia-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.testia-section--dark .testia-card p { color: #D1D5DB; }
.testia-section--dark .testia-card__icon { background: rgba(245,158,11,.14); color: var(--testia-amber-light); }

/* Lista de ventajas con check */
.testia-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.testia-checks li { display: flex; gap: 12px; align-items: flex-start; }
.testia-checks .testia-icon { flex: 0 0 auto; margin-top: 3px; color: var(--testia-amber); }
.testia-section--dark .testia-checks .testia-icon { color: var(--testia-amber-light); }

/* Cifras */
.testia-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.testia-stat__num { display: block; font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; color: var(--testia-ink); line-height: 1; }
.testia-section--dark .testia-stat__num { color: var(--testia-amber-light); }
.testia-stat__label { color: var(--testia-muted); font-size: 0.95rem; margin-top: 8px; }
.testia-section--dark .testia-stat__label { color: #D1D5DB; }
@media (max-width: 820px) { .testia-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pasos */
.testia-steps { counter-reset: paso; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.testia-step { position: relative; padding: 28px 24px 24px; border-top: 3px solid var(--testia-amber); background: #fff; border-radius: 0 0 var(--testia-radius) var(--testia-radius); }
.testia-step::before {
	counter-increment: paso; content: counter(paso, decimal-leading-zero);
	display: block; font-weight: 700; font-size: 0.9rem; color: var(--testia-amber); letter-spacing: .08em; margin-bottom: 10px;
}
.testia-step p { color: var(--testia-muted); margin: 0; }
@media (max-width: 820px) { .testia-steps { grid-template-columns: 1fr; } }

/* Dos columnas texto + lista */
.testia-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
@media (max-width: 900px) { .testia-split { grid-template-columns: 1fr; gap: 32px; } }

/* CTA final */
.testia-cta {
	background: var(--testia-ink); color: #fff; border-radius: var(--testia-radius-lg);
	padding: clamp(40px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.testia-cta h2 { color: #fff; margin: 0 0 8px; }
.testia-cta p { margin: 0; color: #D1D5DB; max-width: 560px; }
.testia-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   Página interior / entradas
   -------------------------------------------------------------------------- */
.testia-page-header { background: var(--testia-ground-alt); border-bottom: 1px solid var(--testia-line); padding-block: clamp(40px, 6vw, 72px); }
.testia-page-header h1 { margin-bottom: 8px; }
.testia-page-header .testia-section__lead { max-width: 720px; }

.testia-content { max-width: 760px; margin-inline: auto; padding-block: clamp(40px, 6vw, 72px); }
.testia-content--wide { max-width: var(--testia-container); }
.testia-content > * { margin-block: 0 1.25em; }
.testia-content h2 { margin-top: 1.6em; }
.testia-content h3 { margin-top: 1.4em; }
.testia-content img { border-radius: var(--testia-radius); }
.testia-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--testia-amber); color: var(--testia-muted); font-size: 1.05em; }
.testia-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.testia-content th, .testia-content td { padding: 10px 12px; border-bottom: 1px solid var(--testia-line); text-align: left; }
.testia-content th { background: var(--testia-ground-alt); font-weight: 600; }
.testia-content pre { background: var(--testia-ink); color: #F3F4F6; padding: 16px; border-radius: var(--testia-radius); overflow: auto; font-size: 0.9rem; }
.testia-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
.testia-content :not(pre) > code { background: var(--testia-ground-alt); padding: 2px 6px; border-radius: 6px; }
.testia-content .wp-block-button__link { border-radius: 10px; background: var(--testia-ink); font-weight: 600; }
.testia-content .alignwide { max-width: var(--testia-container); margin-inline: auto; }

.testia-thumb { display: block; margin: 0 0 24px; border-radius: var(--testia-radius-lg); overflow: hidden; }
.testia-thumb img { display: block; width: 100%; object-fit: cover; }

/* Listado de entradas */
.testia-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .testia-posts { grid-template-columns: 1fr; } }
.testia-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--testia-line); border-radius: var(--testia-radius-lg); overflow: hidden; }
.testia-post__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.testia-post__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.testia-post__body h2 { font-size: 1.2rem; margin: 0; }
.testia-post__body h2 a { color: var(--testia-ink); text-decoration: none; }
.testia-post__body h2 a:hover { color: var(--testia-amber); }
.testia-post__body p { color: var(--testia-muted); margin: 0; font-size: 0.97rem; }

.testia-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.testia-pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.testia-pagination .screen-reader-text { position: absolute; }
.testia-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding-inline: 12px;
	border: 1px solid var(--testia-line); border-radius: 10px; text-decoration: none; color: var(--testia-ink); font-weight: 500;
}
.testia-pagination .page-numbers.current { background: var(--testia-ink); color: #fff; border-color: var(--testia-ink); }
.testia-pagination a.page-numbers:hover { background: var(--testia-ground-alt); }

.testia-post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--testia-line); flex-wrap: wrap; }
.testia-post-nav a { text-decoration: none; color: var(--testia-ink); font-weight: 500; }
.testia-post-nav a:hover { color: var(--testia-amber); }

/* --------------------------------------------------------------------------
   Catálogo de plugins (CPT testia_plugin)
   -------------------------------------------------------------------------- */
.testia-plugin-card { padding: 0; overflow: hidden; }
.testia-plugin-card__img { background: var(--testia-ground-alt); aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; color: var(--testia-muted); }
.testia-plugin-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testia-plugin-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.testia-plugin-card__body h3 { margin: 0; font-size: 1.15rem; }
.testia-plugin-card__body h3 a { color: var(--testia-ink); text-decoration: none; }
.testia-plugin-card__body h3 a:hover { color: var(--testia-amber); }
.testia-plugin-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.testia-price { font-weight: 700; font-size: 1.15rem; color: var(--testia-ink); letter-spacing: -0.02em; }
.testia-price small { font-weight: 500; font-size: 0.8rem; color: var(--testia-muted); margin-left: 4px; }

.testia-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.testia-badge {
	display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; letter-spacing: .02em;
	background: var(--testia-ground-alt); color: var(--testia-ink-soft);
}
.testia-badge--amber { background: var(--testia-amber-tint); color: var(--testia-amber); }

.testia-plugin { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-block: clamp(40px, 6vw, 72px); align-items: start; }
@media (max-width: 960px) { .testia-plugin { grid-template-columns: 1fr; } }
.testia-plugin__aside { position: sticky; top: calc(var(--testia-header-h) + 20px); display: flex; flex-direction: column; gap: 20px; padding: 28px; background: var(--testia-ground-alt); border: 1px solid var(--testia-line); border-radius: var(--testia-radius-lg); }
.testia-plugin__aside .testia-price { font-size: 2rem; }
.testia-plugin__aside .testia-btn { justify-content: center; }
.testia-spec { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 0.95rem; }
.testia-spec dt { color: var(--testia-muted); }
.testia-spec dd { margin: 0; font-weight: 500; }

.testia-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.testia-filter a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--testia-line); color: var(--testia-ink); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.testia-filter a:hover, .testia-filter a.is-active { background: var(--testia-ink); color: #fff; border-color: var(--testia-ink); }

/* --------------------------------------------------------------------------
   Formularios (contacto, búsqueda, comentarios)
   -------------------------------------------------------------------------- */
.testia-form { display: grid; gap: 18px; }
.testia-form__row { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .testia-form__row { grid-template-columns: 1fr; } }
.testia-field { display: grid; gap: 6px; }
.testia-field label { font-weight: 500; font-size: 0.95rem; }
.testia-field input, .testia-field select, .testia-field textarea, .search-form input[type="search"] {
	width: 100%; font: inherit; padding: 12px 14px; min-height: 48px;
	border: 1.5px solid #D1D5DB; border-radius: 10px; background: #fff; color: var(--testia-text);
}
.testia-field textarea { min-height: 150px; resize: vertical; }
.testia-field input:focus, .testia-field select:focus, .testia-field textarea:focus { border-color: var(--testia-ink); outline: none; box-shadow: 0 0 0 3px rgba(180, 83, 9, .18); }
.testia-field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.testia-field--check input { width: 20px; height: 20px; min-height: 0; margin-top: 4px; accent-color: var(--testia-amber); }
.testia-field--check label { font-weight: 400; font-size: 0.9rem; color: var(--testia-muted); }
.testia-form .testia-btn { justify-self: start; }
.testia-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.testia-notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.testia-notice--ok { background: #ECFDF5; color: var(--testia-success); border: 1px solid #A7F3D0; }
.testia-notice--error { background: #FEF2F2; color: var(--testia-error); border: 1px solid #FECACA; }

.testia-contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .testia-contact { grid-template-columns: 1fr; gap: 32px; } }
.testia-contact__aside { display: grid; gap: 20px; }
.testia-contact__aside .testia-card { padding: 24px; }

.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; }
.search-form .search-submit { padding: 12px 18px; border: 0; border-radius: 10px; background: var(--testia-ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* Comentarios */
.testia-comments { max-width: 760px; margin-inline: auto; padding-bottom: 64px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid var(--testia-line); }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-metadata { font-size: 0.85rem; color: var(--testia-muted); }
.comment-form label { display: block; font-weight: 500; margin-bottom: 6px; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid #D1D5DB; border-radius: 10px;
}
.comment-form .submit { padding: 12px 20px; border: 0; border-radius: 10px; background: var(--testia-ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.testia-404 { text-align: center; max-width: 620px; margin-inline: auto; padding-block: clamp(64px, 10vw, 120px); }
.testia-404__code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; letter-spacing: -0.05em; color: var(--testia-amber); line-height: 1; margin: 0 0 8px; }
.testia-404 .search-form { max-width: 460px; margin: 28px auto 0; }

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */
.testia-footer { background: var(--testia-ink-deep); color: #D1D5DB; padding-block: 64px 28px; font-size: 0.95rem; }
.testia-footer a { color: #E5E7EB; text-decoration: none; }
.testia-footer a:hover { color: var(--testia-amber-light); }
.testia-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 900px) { .testia-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .testia-footer__grid { grid-template-columns: 1fr; } }
.testia-footer__tagline { margin: 16px 0; max-width: 360px; }
.testia-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.testia-footer__contact li { display: flex; align-items: center; gap: 8px; }
.testia-footer__contact .testia-icon { color: var(--testia-amber-light); }
.testia-widget__title { font-size: 0.85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.testia-widget ul, .testia-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.testia-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.88rem; color: #9CA3AF; }
.testia-footer__bottom p { margin: 0; }
.testia-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }

/* --------------------------------------------------------------------------
   Utilidades
   -------------------------------------------------------------------------- */
.testia-mt-0 { margin-top: 0 !important; }
.testia-center { text-align: center; }
.testia-muted { color: var(--testia-muted); }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	html { scroll-behavior: auto; }
}

@media print {
	.testia-header, .testia-footer, .testia-cta, .testia-nav-toggle { display: none !important; }
	body { font-size: 12pt; }
}
