/*
Theme Name: TMSA Theme
Theme URI: https://themodernsoftwarearchitect.com
Author: The Modern Software Architect
Author URI: https://themodernsoftwarearchitect.com
Description: Tema WordPress para The Modern Software Architect. Marca personal de arquitectura de software. Diseño oscuro con acento azul.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tmsa-theme
*/

/* --------------------------------------------------------------------------
   Fuentes: Inter y JetBrains Mono se cargan desde functions.php (tmsa_theme_scripts)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Variables del diseño (fondo oscuro #0F172A, primario #3B82F6)
   -------------------------------------------------------------------------- */
:root {
	--color-background: #0f172a;
	--color-foreground: #e2e8f0;
	--color-primary: #3b82f6;
	--color-primary-hover: #60a5fa;
	--color-card: #1e293b;
	--color-card-foreground: #e2e8f0;
	--color-secondary: #334155;
	--color-muted: #64748b;
	--color-border: #334155;
	--color-accent: #f43f5e;
	--radius: 0.5rem;
	--font-sans: 'Inter', system-ui, sans-serif;
	--font-mono: 'JetBrains Mono', monospace;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
	border-color: var(--color-border);
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	margin: 0;
	padding: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-sans);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.2;
	margin-top: 0;
	margin-bottom: 0.5em;
}

p {
	margin-top: 0;
	margin-bottom: 1em;
}

a {
	color: var(--color-primary);
	text-decoration: none;
}

a:hover {
	color: var(--color-primary-hover);
}

code, pre, kbd {
	font-family: var(--font-mono);
}

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

/* --------------------------------------------------------------------------
   Utilidad: texto con gradiente (marca / títulos)
   -------------------------------------------------------------------------- */
.text-gradient {
	background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   Layout: contenedor
   -------------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.container--narrow {
	max-width: 896px;
}

.single-producto .container {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 24px;
}

.site-main {
	flex: 1;
	padding-top: 4rem; /* altura nav */
	min-height: calc(100vh - 4rem);
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	border-bottom: 1px solid rgba(51, 65, 85, 0.5);
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(12px);
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.nav-logo {
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.025em;
}

.nav-menu--desktop {
	display: none;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links a {
	display: block;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-muted);
	transition: color 0.2s;
}

.nav-links a:hover,
.nav-links .current-menu-item a {
	color: var(--color-primary);
}

.nav-social {
	margin-left: 0.5rem;
	color: var(--color-muted);
	transition: color 0.2s;
}

.nav-social:hover {
	color: var(--color-primary);
}

.nav-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--color-foreground);
	cursor: pointer;
}

.nav-toggle-icon--close {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon--menu {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon--close {
	display: inline;
}

.nav-menu--mobile {
	border-top: 1px solid rgba(51, 65, 85, 0.5);
	background: rgba(15, 23, 42, 0.95);
	backdrop-filter: blur(12px);
}

.nav-menu--mobile[hidden] {
	display: none !important;
}

.nav-mobile-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 1.5rem;
}

.nav-links--vertical {
	flex-direction: column;
	gap: 0;
}

.nav-links--vertical a {
	padding: 0.625rem 0.75rem;
	border-radius: 0.375rem;
}

.nav-links--vertical a:hover {
	background: var(--color-secondary);
}

.nav-mobile-social {
	display: block;
	padding: 0.625rem 0.75rem;
	font-size: 0.875rem;
	color: var(--color-muted);
}

.nav-mobile-social:hover {
	color: var(--color-primary);
}

@media (min-width: 768px) {
	.nav-menu--desktop {
		display: flex;
		align-items: center;
	}

	.nav-toggle {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
	border-top: 1px solid rgba(51, 65, 85, 0.5);
	background: rgba(51, 65, 85, 0.2);
}

.footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 3rem 1.5rem;
}

.footer-grid {
	display: grid;
	gap: 2rem;
}

.footer-title {
	font-size: 1.125rem;
	margin: 0 0 0.5rem;
}

.footer-tagline {
	font-size: 0.875rem;
	color: var(--color-muted);
	margin: 0;
}

.footer-heading {
	font-size: 0.875rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
}

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

.footer-nav a {
	display: block;
	font-size: 0.875rem;
	color: var(--color-muted);
	padding: 0.25rem 0;
	transition: color 0.2s;
}

.footer-nav a:hover {
	color: var(--color-primary);
}

.footer-social-links {
	display: flex;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.footer-social-link {
	color: var(--color-muted);
	transition: color 0.2s;
}

.footer-social-link:hover {
	color: var(--color-primary);
}

.footer-bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(51, 65, 85, 0.5);
	font-size: 0.75rem;
	color: var(--color-muted);
}

.footer-legal {
	display: flex;
	gap: 1rem;
}

.footer-legal a:hover {
	color: var(--color-primary);
}

@media (min-width: 768px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr 1fr;
	}

	.footer-bottom {
		flex-direction: row;
		justify-content: space-between;
	}
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	font-family: var(--font-sans);
	line-height: 1.5;
	border-radius: 0.375rem;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-hero {
	background: var(--color-primary);
	color: #0f172a;
	box-shadow: 0 0 30px -5px rgba(59, 130, 246, 0.3);
}

.btn-hero:hover {
	background: var(--color-primary-hover);
}

.btn-hero-outline {
	background: transparent;
	color: var(--color-foreground);
	border: 2px solid rgba(226, 232, 240, 0.3);
}

.btn-hero-outline:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.btn-sm {
	padding: 0.375rem 0.75rem;
	font-size: 0.8125rem;
}

.btn-comprar {
	display: inline-block;
	background: #3B82F6;
	color: #FFFFFF;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	margin-top: 16px;
	transition: background 0.2s ease;
}

.btn-comprar:hover {
	background: #2563EB;
}

/* --------------------------------------------------------------------------
   Productos - Cards horizontales
   -------------------------------------------------------------------------- */
.product-card-horizontal {
	display: flex;
	align-items: center;
	gap: 24px;
	background: #1E293B;
	border: 1px solid #334155;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
	position: relative;
}

.product-card-horizontal:hover {
	border-color: #3B82F6;
	transition: border-color 0.2s ease;
}

.product-card-img {
	width: 180px;
	height: 180px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
}

.product-card-img-placeholder {
	background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
}

.product-card-body {
	flex: 1;
}

.product-card-price {
	font-size: 28px;
	font-weight: 800;
	color: #3B82F6;
	margin-bottom: 12px;
}

.product-card-meta {
	font-size: 14px;
	color: #94A3B8;
	margin-top: 8px;
}

.product-card-meta span + span {
	margin-left: 1rem;
}

.product-card-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	min-width: 160px;
}

.btn-comprar-ahora {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #3B82F6;
	color: #FFFFFF;
	padding: 14px 24px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease;
}

.btn-comprar-ahora:hover {
	background: #2563EB;
}

.badge-vendido {
	background: #EF4444;
	color: white;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	position: absolute;
	top: -10px;
	right: 16px;
}

@media (max-width: 768px) {
	.product-card-horizontal {
		flex-direction: column;
	}

	.product-card-img {
		width: 100%;
		height: 200px;
	}

	.product-card-img-placeholder {
		width: 100%;
		height: 200px;
	}

	.product-card-actions {
		width: 100%;
		align-items: stretch;
	}
}

/* --------------------------------------------------------------------------
   Front page - Productos grid (cards verticales)
   -------------------------------------------------------------------------- */
.products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 40px;
}

.product-card-vertical {
	background: #1E293B;
	border: 1px solid #334155;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	transition: border-color 0.2s ease;
}

.product-card-vertical:hover {
	border-color: #3B82F6;
}

.product-card-vertical .product-card-vertical-image-link {
	display: block;
	position: relative;
}

.product-card-vertical img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
	border-radius: 12px 12px 0 0;
}

.product-card-vertical-image-placeholder {
	width: 100%;
	height: 200px;
	background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
	border-radius: 12px 12px 0 0;
}

.product-card-vertical .product-badge {
	position: absolute;
	top: 160px;
	left: 16px;
	background: #EF4444;
	color: white;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 4px;
	letter-spacing: 0.05em;
}

.product-card-vertical .product-body {
	padding: 20px;
}

.product-card-vertical .product-title {
	font-size: 18px;
	font-weight: 700;
	color: #FFFFFF;
	margin-bottom: 8px;
}

.product-card-vertical .product-title a {
	color: inherit;
	text-decoration: none;
}

.product-card-vertical .product-title a:hover {
	color: var(--color-primary);
}

.product-card-vertical .product-excerpt {
	font-size: 14px;
	color: #94A3B8;
	line-height: 1.5;
	margin-bottom: 16px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.product-card-vertical .product-excerpt p {
	margin: 0;
}

.product-card-vertical .product-link {
	color: #3B82F6;
	font-weight: 600;
	text-decoration: none;
	font-size: 14px;
}

.product-card-vertical .product-link:hover {
	color: #93C5FD;
}

@media (max-width: 768px) {
	.products-grid {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------------
   Cards y grids
   -------------------------------------------------------------------------- */
.card {
	border-radius: 0.75rem;
	border: 1px solid rgba(51, 65, 85, 0.5);
	background: var(--color-card);
	box-shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.5);
	overflow: hidden;
}

.card-body {
	padding: 1.5rem;
}

.card-title {
	font-size: 1.125rem;
	margin: 0 0 0.5rem;
}

.card-title a {
	color: inherit;
}

.card-title a:hover {
	color: var(--color-primary);
}

.card-desc {
	font-size: 0.875rem;
	color: var(--color-muted);
	margin: 0 0 1rem;
}

.card-link {
	font-size: 0.875rem;
	font-weight: 500;
}

.card-tag {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-accent);
	position: relative;
	z-index: 1;
}

.card-grid {
	display: grid;
	gap: 1.5rem;
}

.card-grid--2,
.card-grid--3 {
	grid-template-columns: 1fr;
}

.card-precio {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-primary);
	margin: 0.5rem 0 1rem;
}

.card-image-wrap {
	position: relative;
	height: 9rem;
	background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
	display: flex;
	align-items: flex-end;
	padding: 0.5rem 1rem;
	overflow: hidden;
}

.card-image-wrap img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-image-link {
	display: block;
	position: relative;
	height: 10rem;
	overflow: hidden;
}

.product-thumbnail {
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: 8px 8px 0 0;
}

.card-post .card-body {
	padding: 1.5rem;
}

.card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.75rem;
	color: var(--color-muted);
	margin-top: 1rem;
}

.card-read-more {
	font-weight: 500;
}

.entry-excerpt {
	font-size: 0.875rem;
	color: var(--color-muted);
	margin: 0.5rem 0 0;
}

.entry-excerpt p {
	margin: 0;
}

/* --------------------------------------------------------------------------
   Recursos - Cards específicas
   -------------------------------------------------------------------------- */
.resource-card {
	background: #1E293B;
	border: 1px solid #334155;
	border-radius: 12px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.resource-icon-box {
	width: 48px;
	height: 48px;
	background: #1E3A5F;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #3B82F6;
}

.resource-badge {
	font-size: 12px;
	color: #3B82F6;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.btn-descargar {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #3B82F6;
	color: #FFFFFF;
	padding: 12px 20px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	margin-top: auto;
	transition: background 0.2s ease;
}

.btn-descargar:hover {
	background: #2563EB;
}

.resources-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin-top: 40px;
}

@media (max-width: 768px) {
	.resources-grid {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 768px) {
	.card-grid--2,
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.card-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

.posts-grid {
	display: grid;
	gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   Secciones y página
   -------------------------------------------------------------------------- */
.section {
	padding: 5rem 0;
}

.section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.section-title {
	font-size: 1.875rem;
	margin: 0 0 1rem;
}

.section-lead {
	max-width: 32rem;
	margin: 0 auto;
	color: var(--color-muted);
}

.section-resources {
	border-top: 1px solid rgba(51, 65, 85, 0.5);
	background: rgba(51, 65, 85, 0.1);
}

.page-content,
.single-content,
.blog-content {
	padding: 5rem 0;
}

.page-header,
.entry-header {
	margin-bottom: 2rem;
}

.page-badge {
	display: inline-block;
	margin-bottom: 1rem;
	padding: 0.375rem 1rem;
	font-size: 0.75rem;
	font-weight: 500;
	border-radius: 9999px;
	border: 1px solid rgba(59, 130, 246, 0.3);
	background: rgba(59, 130, 246, 0.1);
	color: var(--color-primary);
}

.page-title {
	font-size: 2.25rem;
	margin: 0 0 1rem;
}

.page-lead {
	color: var(--color-muted);
	margin: 0;
}

.no-posts {
	text-align: center;
	color: var(--color-muted);
	font-size: 1rem;
	padding: 3rem 0;
	margin: 0;
}

.contact-title {
	margin-bottom: 1rem;
}

.contact-lead {
	margin-top: 1rem;
	margin-bottom: 2.5rem;
}

.contact-form-wrap {
	margin-top: 2.5rem;
}

.contact-social {
	margin-top: 3rem;
	padding: 1.5rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(51, 65, 85, 0.5);
	background: var(--color-card);
	box-shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.5);
}

.contact-social-title {
	font-size: 0.875rem;
	font-weight: 600;
	margin: 0 0 1rem;
}

.contact-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.contact-social-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	font-size: 0.875rem;
	border-radius: 0.5rem;
	border: 1px solid rgba(51, 65, 85, 0.5);
	background: rgba(51, 65, 85, 0.2);
	color: var(--color-muted);
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

.contact-social-link:hover {
	border-color: rgba(59, 130, 246, 0.3);
	color: var(--color-primary);
}

.contact-social-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	font-size: 0.875rem;
	border-radius: 0.5rem;
	border: 1px solid rgba(51, 65, 85, 0.5);
	background: rgba(51, 65, 85, 0.2);
	color: var(--color-muted);
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

.contact-social-btn:hover {
	border-color: rgba(59, 130, 246, 0.3);
	color: var(--color-primary);
}

.entry-title {
	font-size: 2rem;
	margin: 0 0 0.5rem;
}

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

.entry-content {
	margin-top: 1.5rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin-bottom: 1em;
}

.entry-thumbnail {
	margin: 1.5rem 0;
	border-radius: 0.5rem;
	overflow: hidden;
}

.entry-thumbnail img {
	width: 100%;
}

.product-single-thumbnail {
	width: 100%;
	max-width: 480px;
	height: 320px;
	object-fit: cover;
	border-radius: 12px;
	display: block;
	margin: 0 auto 32px auto;
}

.entry-precio {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-primary);
	margin: 0.5rem 0 0;
}

.entry-actions {
	margin: 1.5rem 0 0;
}

.about-author {
	display: grid;
	gap: 2rem;
	margin-top: 2rem;
}

.about-author-image {
	flex-shrink: 0;
}

.about-author-image-wrap {
	position: relative;
}

.about-author-portrait,
.about-author-image img {
	width: 100%;
	max-width: 16rem;
	height: auto;
	border-radius: 1rem;
	border: 2px solid rgba(59, 130, 246, 0.2);
	box-shadow: 0 0 30px -5px rgba(59, 130, 246, 0.2);
}

.about-author-portrait {
	display: block;
}

.about-author-badge {
	position: absolute;
	bottom: -0.75rem;
	right: -0.75rem;
	padding: 0.375rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: #0f172a;
	background: var(--color-primary);
	border-radius: 0.5rem;
	box-shadow: 0 0 30px -5px rgba(59, 130, 246, 0.3);
}

.about-author-bio {
	color: var(--color-muted);
	line-height: 1.7;
}

.about-author-bio p {
	margin-bottom: 1.25rem;
}

.about-author-bio p:last-child {
	margin-bottom: 0;
}

.about-title {
	margin-bottom: 0;
}

.about-credentials {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 3rem;
}

.about-credential {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(51, 65, 85, 0.5);
	background: var(--color-card);
	box-shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.5);
}

.about-credential-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.5rem;
	background: rgba(59, 130, 246, 0.1);
	color: var(--color-primary);
}

.about-credential-label {
	font-size: 0.875rem;
	font-weight: 500;
}

.about-mission {
	margin-top: 3rem;
	padding: 2rem;
	border-radius: 1rem;
	border: 1px solid rgba(59, 130, 246, 0.2);
	box-shadow: 0 0 30px -5px rgba(59, 130, 246, 0.2);
}

.about-mission-title {
	font-size: 1.5rem;
	margin: 0 0 0.75rem;
}

.about-mission-text {
	color: var(--color-muted);
	line-height: 1.7;
	margin: 0;
}

@media (min-width: 768px) {
	.about-author {
		grid-template-columns: auto 1fr;
		align-items: start;
	}

	.about-author-portrait,
	.about-author-image img {
		max-width: 16rem;
	}
}

/* --------------------------------------------------------------------------
   Hero (portada)
   -------------------------------------------------------------------------- */
.hero {
	position: relative;
	overflow: hidden;
	min-height: 85vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
	text-align: center;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0.2;
	pointer-events: none;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.8), #0f172a);
	pointer-events: none;
}

.hero-inner {
	position: relative;
	z-index: 1;
	max-width: 48rem;
}

.hero-badge {
	display: inline-block;
	margin-bottom: 1rem;
	padding: 0.375rem 1rem;
	font-size: 0.75rem;
	font-weight: 500;
	border-radius: 9999px;
	border: 1px solid rgba(59, 130, 246, 0.3);
	background: rgba(59, 130, 246, 0.1);
	color: var(--color-primary);
}

.hero-title {
	font-size: 2.25rem;
	line-height: 1.2;
	margin: 1rem 0 1.5rem;
}

.hero-lead {
	font-size: 1.125rem;
	color: var(--color-muted);
	margin: 0 auto 2rem;
	max-width: 36rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

@media (min-width: 768px) {
	.hero-title {
		font-size: 3rem;
	}
}

@media (min-width: 1024px) {
	.hero-title {
		font-size: 3.75rem;
	}
}

/* --------------------------------------------------------------------------
   Newsletter (portada)
   -------------------------------------------------------------------------- */
.section-newsletter {
	padding: 5rem 0;
}

.newsletter-box {
	max-width: 36rem;
	margin: 0 auto;
	padding: 2rem;
	text-align: center;
	border-radius: 1rem;
	border: 1px solid rgba(59, 130, 246, 0.2);
	background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
	box-shadow: 0 0 30px -5px rgba(59, 130, 246, 0.2);
}

.newsletter-title {
	font-size: 1.5rem;
	margin: 0 0 0.75rem;
}

.newsletter-text {
	color: var(--color-muted);
	margin: 0;
}

.newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.newsletter-input {
	flex: 1;
	padding: 0.625rem 1rem;
	font-size: 0.875rem;
	border-radius: 0.5rem;
	border: 1px solid var(--color-border);
	background: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-sans);
}

.newsletter-input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 1px var(--color-primary);
}

.newsletter-note {
	font-size: 0.75rem;
	color: var(--color-muted);
	margin: 1rem 0 0;
}

@media (min-width: 640px) {
	.newsletter-form {
		flex-direction: row;
	}

	.newsletter-box {
		padding: 3rem;
	}
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.error-404-content {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 4rem);
	padding: 2rem;
	background: var(--color-secondary);
}

.error-404-inner {
	text-align: center;
}

.error-404-title {
	font-size: 4rem;
	margin: 0 0 1rem;
}

.error-404-text {
	font-size: 1.25rem;
	color: var(--color-muted);
	margin: 0 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Paginación
   -------------------------------------------------------------------------- */
.pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin: 3rem 0;
	list-style: none;
	padding: 0;
}

.pagination a,
.pagination span {
	display: inline-block;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	border-radius: 0.375rem;
	background: var(--color-card);
	border: 1px solid var(--color-border);
	color: var(--color-foreground);
	text-decoration: none;
}

.pagination a:hover {
	background: var(--color-secondary);
	color: var(--color-primary);
}

.pagination .current {
	background: var(--color-primary);
	color: #0f172a;
	border-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   WPForms: Integración con diseño oscuro
   -------------------------------------------------------------------------- */
.wpforms-form .wpforms-field-label {
	color: #ffffff;
	font-weight: 500;
	margin-bottom: 0.375rem;
}

.wpforms-form .wpforms-field-sublabel {
	color: #cbd5e1;
}

.wpforms-form .wpforms-field input[type="text"],
.wpforms-form .wpforms-field input[type="email"],
.wpforms-form .wpforms-field input[type="tel"],
.wpforms-form .wpforms-field input[type="url"],
.wpforms-form .wpforms-field input[type="number"],
.wpforms-form .wpforms-field input[type="date"],
.wpforms-form .wpforms-field input[type="time"],
.wpforms-form .wpforms-field textarea,
.wpforms-form .wpforms-field select {
	background-color: #1e293b;
	border: 1px solid #334155;
	color: #94a3b8;
	border-radius: 8px;
	padding: 12px;
	width: 100%;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	transition: border-color 0.2s;
}

.wpforms-form .wpforms-field input::placeholder,
.wpforms-form .wpforms-field textarea::placeholder,
.wpforms-form .wpforms-field input[type="text"],
.wpforms-form .wpforms-field input[type="email"],
.wpforms-form .wpforms-field textarea {
	color: #94a3b8;
}

.wpforms-form .wpforms-field input[type="text"]::placeholder,
.wpforms-form .wpforms-field input[type="email"]::placeholder,
.wpforms-form .wpforms-field textarea::placeholder {
	color: #475569;
}

.wpforms-form .wpforms-field input:focus,
.wpforms-form .wpforms-field textarea:focus,
.wpforms-form .wpforms-field select:focus {
	border-color: #3b82f6;
	outline: none;
	box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.wpforms-form .wpforms-submit-container {
	margin-top: 1.5rem;
}

.wpforms-form .wpforms-submit {
	background-color: #3b82f6;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 12px 24px;
	font-weight: 600;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	cursor: pointer;
	transition: background-color 0.2s;
}

.wpforms-form .wpforms-submit:hover {
	background-color: #2563eb;
}

.wpforms-form .wpforms-submit:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* --------------------------------------------------------------------------
   MC4WP: Integración con diseño oscuro (Newsletter)
   -------------------------------------------------------------------------- */
.mc4wp-form input[type="email"] {
	background: #0f172a;
	border: 1px solid #334155;
	color: #ffffff;
	border-radius: 8px;
	padding: 12px 16px;
	width: 100%;
	font-size: 16px;
	font-family: var(--font-sans);
}

.mc4wp-form input[type="email"]::placeholder {
	color: #475569;
}

.mc4wp-form input[type="email"]:focus {
	border-color: #3b82f6;
	outline: none;
	box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.mc4wp-form input[type="submit"] {
	background: #3b82f6;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 12px 24px;
	font-weight: 600;
	font-size: 16px;
	font-family: var(--font-sans);
	cursor: pointer;
	transition: background-color 0.2s;
}

.mc4wp-form input[type="submit"]:hover {
	background: #2563eb;
}

.mc4wp-form input[type="submit"]:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}
