/* ==========================================================================
   ZEHIROS AI — MAIN.CSS (LIMPIO, ORDENADO, GUTENBERG COMPATIBLE)
   ========================================================================== */

/* --------------------------------------------------------------
   0. TIPOGRAFÍA, RESET Y VARIABLES
   -------------------------------------------------------------- */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
    --color-background: #0a1a2f;
    --color-surface: #111827;
    --color-text: #fafeff;
    --color-muted: #9ca3af;
    --color-primary: #4fffe1;
    --color-primary-hover: #5ee6d8;
    --color-border: #1f2933;
    --color-warning: #facc15;
    --color-danger: #f97373;

    --shadow-strong: 0 20px 60px rgba(0,0,0,0.35);

    --radius-lg: 16px;
    --radius-md: 14px;
    --radius-pill: 999px;

    --gradient-hero: linear-gradient(
        135deg,
        #0a1a2f 0%,
        #102135 30%,
        #0c2a42 60%,
        #0a1a2f 100%
    );
}

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

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background: var(--color-background);
    line-height: 1.6;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: 0.25s ease;
}

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

/* Ocultar título de páginas (petición del usuario) */
.entry-title {
    display: none !important;
}

/* ==========================================================================
   1. FIX FULL-WIDTH (SOLO FONDO) — GUTENBERG CONTROLA TODO EL CONTENIDO
   ========================================================================== */

.alignfull,
.wp-block-group.alignfull,
.wp-block-columns.alignfull,
.wp-block-cover.alignfull,
section.alignfull,
div.alignfull {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

/* Elimina padding externo del theme, sin tocar el contenido */
.entry-content > .alignfull,
.site-content > .alignfull,
.content-area > .alignfull {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ==========================================================================
   2. SISTEMA DE CARDS — CONSERVADO
   ========================================================================== */

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-strong);
    transition: 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.2);
}

/* ==========================================================================
   3. GRID GENERAL — SE MANTIENE (ajustable luego si hace falta)
   ========================================================================== */

.site-main .section:not(.hero) .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* El hero mantiene columnas nativas Gutenberg */
.section.hero .wp-block-columns {
    display: flex;
    gap: var(--wp--style--block-gap, 2rem);
}

/* ==========================================================================
   4. BOTONES MODERNOS
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: var(--radius-pill);
	border: 1px solid transparent;
	font-weight: 600;
	color: var(--color-text);
	background: none;
	transition: all 0.3s ease;
}

.btn-primary {
	background: var(--color-primary);
	color: #0a1a2f;
	box-shadow: 0 10px 30px rgba(79, 255, 225, 0.3);
}

.btn-primary:hover {
	background: var(--color-primary-hover);
	transform: translateY(-2px);
}

.btn-secondary {
	border-color: var(--color-border);
	color: var(--color-text);
	background: var(--color-surface);
}

.btn-secondary:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
	transform: translateY(-2px);
}

.btn-group {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* ==========================================================================
   5. ANIMACIONES (MANTENIDAS)
   ========================================================================== */

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   6. HERO — COMPORTAMIENTO NATIVO (SIN OVERRIDES)
   ========================================================================== */

/* Quitamos cualquier override anterior. Gutenberg gestionará columns, gaps, widths. */

/* ==========================================================================
   7. UTILS Y CLASES AUXILIARES
   ========================================================================== */

.text-center { text-align: center; }
.text-muted  { color: var(--color-muted); }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

/* ==========================================================================
   FIN DEL MAIN.CSS — 100% LIMPIO, GUTENBERG FRIENDLY, ZEHIROS OPTIMIZADO
   ========================================================================== */

/* ============================================================
   HERO CANVAS — OCUPA TODO EL FONDO (FULL WIDTH + FULL HEIGHT)
   ============================================================ */

/* CANVAS FULL WIDTH REAL — IGNORA EL WIDTH / HEIGHT DEL JS */
.section.hero {
    position: relative;
    overflow: hidden;
}

.section.hero canvas {
    position: absolute;
    top: 0;
    left: 0;

    /* fuerza el ancho real */
    width: 100% !important;
    height: 100% !important;

    /* anula el centrado que provoca el ancho interno */
    display: block !important;
    max-width: none !important;

    pointer-events: none;
    z-index: 1;
}

.section.hero > *:not(canvas) {
    position: relative;
    z-index: 2;
}

.hero-visual-graphic__image {
    animation: float 6s ease-in-out infinite;
    transform-origin: center;
    will-change: transform;
}

/* Animación PULSE restaurada */
@keyframes pulse {
    0%   { transform: scale(1); opacity: 1; }
    50%  { transform: scale(1.06); opacity: 0.92; }
    100% { transform: scale(1); opacity: 1; }
}

/* Combinación FLOAT + PULSE para efecto original */
.hero-visual-graphic__image {
    animation:
        float 6s ease-in-out infinite,
        pulse 5.5s ease-in-out infinite;
}

/* ============================================================
   HERO GRADIENT BACKGROUND — RESTAURADO
   ============================================================ */

.section.hero {
    background: linear-gradient(
        135deg,
        #0a1a2f 0%,
        #102135 30%,
        #0c2a42 60%,
        #0a1a2f 100%
    ) !important;
    position: relative;
    overflow: hidden;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	backdrop-filter: blur(12px);
	background: rgba(10, 26, 47, 0.8);
	border-bottom: 1px solid var(--color-border);
	transition: all 0.3s ease;
}

.site-header.is-scrolled {
	padding: 6px 0;
	background: rgba(10, 26, 47, 0.95);
}

.nav-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 40px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.brand .custom-logo {
	max-height: 42px;
	height: auto;
}

.site-title {
	color: var(--color-text);
	font-weight: 700;
}

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

.menu {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu a {
	color: var(--color-text);
	padding: 8px 10px;
	border-radius: 10px;
}

.menu a:hover,
.menu .current-menu-item a {
	color: var(--color-primary);
	background: rgba(79, 255, 225, 0.08);
}

.nav-cta {
	display: flex;
	align-items: center;
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid var(--color-border);
	background: rgba(17, 24, 39, 0.8);
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.nav-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--color-text);
	transition: all 0.3s ease;
}

.primary-nav.is-open {
	display: block;
	position: absolute;
	top: 64px;
	right: 16px;
	background: #0f2237;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 14px;
	box-shadow: var(--shadow-strong);
}

.primary-nav.is-open .menu {
	flex-direction: column;
	gap: 10px;
}

.site-footer {
	background: #0b1626;
	border-top: 1px solid var(--color-border);
	padding: 60px 0 0;
}

.footer-grid {
	display: grid;
    padding: 0 40px 40px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 22px;
}

.footer-block h3 {
	margin-top: 0;
}

.footer-block p {
	color: var(--color-muted);
}

.footer-menu,
.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.footer-menu a,
.footer-links a {
	color: var(--color-muted);
}

.footer-bottom {
	margin-top: 40px;
	border-top: 1px solid var(--color-border);
	padding: 18px 40px;
	background: #08111e;
}

.footer-bottom__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.footer-bottom p,
.footer-meta {
	color: var(--color-muted);
	margin: 0;
}

.archive-header {
	margin-bottom: 28px;
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
}

.archive-card {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-strong);
	transition: all 0.3s ease;
}

.archive-card:hover {
	transform: translateY(-6px);
	border-color: var(--color-primary);
}

.archive-thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.archive-card__content {
	padding: 18px;
	display: grid;
	gap: 10px;
	flex: 1;
}

.archive-card__content p {
	color: var(--color-muted);
	margin: 0;
}

.single-post .single-featured img {
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-strong);
}

.single-header {
	display: grid;
	gap: 12px;
}

.single-title {
	font-size: 32px;
	margin: 0;
}

.post-meta {
	color: var(--color-muted);
	display: flex;
	gap: 10px;
}

.single-content {
	margin-top: 24px;
	color: var(--color-text);
}

.single-content a {
	color: var(--color-primary);
}

.single-footer {
	margin-top: 30px;
	border-top: 1px solid var(--color-border);
	padding-top: 18px;
}

.post-navigation {
	display: flex;
	justify-content: space-between;
}

.pagination {
	margin-top: 24px;
}

.error-404 .btn-group {
	justify-content: center;
}

.reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
	100% {
		transform: scale(1);
	}
}

@keyframes orbit {
	from {
		transform: rotate(0deg) translateX(-50%) translateY(0) rotate(0deg);
	}
	to {
		transform: rotate(360deg) translateX(-50%) translateY(0) rotate(-360deg);
	}
}

@media (max-width: 900px) {
	.primary-nav {
		display: none;
		position: relative;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.site-header {
		padding: 6px 0;
	}

	.footer-bottom__inner {
		flex-direction: column;
		text-align: center;
	}
}

@media (max-width: 640px) {
	.hero {
		padding: 90px 0 70px;
	}

	.hero-title {
		font-size: 40px;
	}

	.section {
		padding: 60px 0;
	}

	.cta-actions {
		justify-content: flex-start;
	}
}
/* Ocultar títulos automáticos de WordPress en páginas y posts */
.entry-title,
.page-title,
.single .entry-title,
.page .entry-title,
h1.entry-title,
h1.page-title {
    display: none !important;
}
.glow-text:hover {
    text-shadow:
        0 0 8px var(--color-primary),
        0 0 14px var(--color-primary);
    color: var(--color-primary);
}

