/**
 * Estilos de WordPress fuera de la portada.
 *
 * El diseño de la web está en main.css y no se toca. Este archivo solo da
 * estilo a lo que la landing original no tenía: páginas legales, entradas,
 * archivo, búsqueda, 404, comentarios y clases propias de WordPress.
 * Usa las mismas variables de color y tipografía que main.css.
 */

/* ---------- Barra de administración: la cabecera fija baja con ella ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- Clases de accesibilidad de WordPress ---------- */
.sr-only,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Estructura de páginas internas ---------- */
.site-main .entry-wrap {
	max-width: 52rem;
	padding-top: 56px;
	padding-bottom: 88px;
}

.entry-header,
.page-header {
	margin-bottom: 32px;
}

.entry-title,
.page-title {
	margin: 0 0 12px;
	font-size: clamp(1.9rem, 5vw, 2.8rem);
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--ink);
}

.entry-title a {
	color: inherit;
	text-decoration: none;
}

.entry-title a:hover {
	color: var(--purple);
}

.page-title span {
	color: var(--purple);
}

.entry-meta,
.entry-footer {
	font-size: 0.9rem;
	color: var(--muted);
}

.entry-meta a,
.entry-footer a {
	color: var(--muted);
}

.entry-footer {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.site-main article + article {
	margin-top: 56px;
	padding-top: 56px;
	border-top: 1px solid var(--line);
}

.sticky-label {
	display: inline-block;
	margin-bottom: 10px;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--lav);
	color: var(--purple);
	font-size: 0.78rem;
	font-weight: 600;
}

.post-thumbnail img {
	width: 100%;
	height: auto;
	margin-bottom: 32px;
	border-radius: 20px;
}

/* ---------- Contenido escrito en el editor ---------- */
.pg-content > * + * {
	margin-top: 1.1em;
}

.pg-content > :first-child {
	margin-top: 0;
}

.pg-content p {
	margin-bottom: 0;
}

.pg-content h2,
.pg-content h3,
.pg-content h4 {
	margin: 1.8em 0 0.5em;
	color: var(--ink);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.pg-content h2 { font-size: 1.75rem; }
.pg-content h3 { font-size: 1.35rem; }
.pg-content h4 { font-size: 1.12rem; }

.pg-content a {
	color: var(--purple);
	text-decoration-color: var(--pink);
	text-underline-offset: 3px;
}

.pg-content ul,
.pg-content ol {
	padding-left: 1.4em;
}

.pg-content li + li {
	margin-top: 0.4em;
}

.pg-content ul li::marker {
	color: var(--pink);
}

.pg-content strong {
	color: var(--ink);
}

.pg-content blockquote {
	margin-left: 0;
	padding-left: 20px;
	border-left: 4px solid var(--pink);
	color: var(--ink);
	font-style: italic;
}

.pg-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.pg-content th,
.pg-content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.pg-content img {
	height: auto;
	border-radius: 14px;
}

.pg-content figcaption,
.wp-caption-text {
	margin-top: 8px;
	font-size: 0.88rem;
	color: var(--muted);
}

/* ---------- Alineaciones de WordPress ---------- */
.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }

/* ---------- Navegación entre entradas y páginas ---------- */
.navigation,
.post-navigation,
.posts-navigation {
	margin-top: 56px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
}

.nav-links a {
	color: var(--purple);
	font-weight: 600;
	text-decoration: none;
}

.nav-links a:hover {
	text-decoration: underline;
}

/* ---------- Búsqueda ---------- */
.search-form {
	display: flex;
	gap: 10px;
	margin-top: 24px;
}

.search-form label {
	flex: 1;
}

.search-field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 16px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	font: inherit;
	color: var(--ink);
	background: #fff;
}

.search-field:focus,
.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--purple);
	outline: none;
	box-shadow: 0 0 0 3px rgba(75, 13, 134, 0.15);
}

.search-submit,
.comment-form .submit {
	min-height: 50px;
	padding: 12px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--purple);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.search-submit:hover,
.comment-form .submit:hover {
	background: var(--purple-dark);
}

/* ---------- Comentarios ---------- */
.comments-area {
	margin-top: 64px;
	padding-top: 40px;
	border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
	font-size: 1.5rem;
	color: var(--ink);
}

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

.comment-list .children {
	list-style: none;
	padding-left: 24px;
}

.comment-body {
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}

.comment-meta {
	font-size: 0.9rem;
	color: var(--muted);
}

.comment-form p {
	margin: 0 0 16px;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	color: var(--ink);
}
