/*!
 * ╔══════════════════════════════════════════════════════════════════════════════╗
 * ║  TURBO THEME - Motor de Alto Rendimiento y SEO Empresarial                 ║
 * ║  Desarrollado por NAIBAF STUDIOS                                           ║
 * ╚══════════════════════════════════════════════════════════════════════════════╝
 *
 * Theme Name:        TURBO THEME
 * Theme URI:         https://naibaf.fun/
 * Author:            NAIBAF STUDIOS
 * Author URI:        https://naibaf.fun/
 * Description:       Tema WordPress ultraligero de última generación, diseñado para optimizar los Core Web Vitals al máximo, crear arquitecturas SILO por clústeres y maximizar los ingresos publicitarios.
 * Version:           1.0.0
 * Requires at least: 5.0
 * Tested up to:      6.7
 * Requires PHP:      7.4
 * License:           GNU General Public License v2 or later
 * License URI:       http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:       turbo-theme
 * Tags:              seo-optimized, ultra-fast, cluster-silo, grid-layout, custom-header, custom-colors, featured-images, full-width-template, translation-ready, accessibility-ready, woocommerce, responsive-layout
 *
 * @copyright 2026 NAIBAF STUDIOS. Todos los derechos reservados.
 */

/* ============================================================================
 * CAPA DE DISEÑO MINIMALISTA Y ESTÉTICA PREMIUM - NAIBAF STUDIOS
 * ============================================================================
 */

/* 1. Suavizado Tipográfico Global y Selección */
html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection {
	background-color: rgba(2, 117, 216, 0.18);
	color: #0f172a;
}

/* ==========================================================================
   2. CABECERA PREMIUM & NAVEGACIÓN PROFESIONAL
   ========================================================================== */

.site-header {
	position: -webkit-sticky !important;
	position: sticky !important;
	top: 0 !important;
	left: 0;
	right: 0;
	width: 100%;
	min-height: 70px;
	z-index: 99999 !important;
	background-color: #0b0f19;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* WP Admin Bar Fix */
.admin-bar .site-header {
	top: 32px !important;
}
@media screen and (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px !important;
	}
}

.site-header .container,
.site-header .container-fluid {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100%;
	padding: 0 1.25rem;
}

/* Logo */
.site-logo {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0.4rem 0;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.site-logo a {
	color: #ffffff !important;
	text-decoration: none !important;
	line-height: 1;
	transition: opacity 0.2s ease;
}

.site-logo a:hover {
	opacity: 0.88;
}

.site-logo img,
.custom-logo {
	display: block;
	height: auto !important;
	max-height: 50px;
	width: auto;
}

/* Desktop Navbar */
.site-navbar {
	display: flex;
	align-items: center;
	margin-left: auto;
}

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

.site-navbar ul li {
	position: relative;
	margin: 0;
	padding: 0;
	display: inline-block;
}

.site-navbar ul li a {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 0.95rem !important;
	font-size: 0.925rem;
	font-weight: 600;
	color: #f1f5f9 !important;
	text-decoration: none !important;
	border-radius: 8px;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	letter-spacing: 0.01em;
}

.site-navbar ul li a:hover {
	color: #ffffff !important;
	background-color: rgba(255, 255, 255, 0.08) !important;
}

.site-navbar ul li.current-menu-item > a,
.site-navbar ul li.current_page_item > a {
	color: #ffffff !important;
	background-color: rgba(255, 255, 255, 0.12) !important;
	font-weight: 700;
}

/* Submenús Dropdown */
.site-navbar .sub-menu {
	position: absolute;
	top: calc(100% + 0.25rem);
	left: 0;
	min-width: 220px;
	background: #0f172a !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 12px !important;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5) !important;
	padding: 0.5rem !important;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 1000;
	display: flex !important;
	flex-direction: column;
	gap: 0.25rem;
}

.site-navbar ul li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.site-navbar .sub-menu li {
	width: 100%;
}

.site-navbar .sub-menu li a {
	display: flex;
	width: 100%;
	padding: 0.65rem 1rem !important;
	color: #e2e8f0 !important;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 8px;
}

.site-navbar .sub-menu li a:hover {
	background-color: rgba(255, 255, 255, 0.1) !important;
	color: #ffffff !important;
}

/* Botón CTA de Cabecera */
.site-header-cta {
	display: inline-flex;
	align-items: center;
	margin-left: 1.25rem;
	order: 4;
}

.btn-turbo-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.58rem 1.45rem;
	font-size: 0.875rem;
	font-weight: 700;
	border-radius: 30px;
	border: 0;
	cursor: pointer;
	text-decoration: none !important;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	white-space: nowrap;
	margin: 0;
	letter-spacing: 0.02em;
}

.btn-turbo-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
	filter: brightness(1.12);
}

/* Trigger Móvil */
.site-trigger {
	display: none;
	margin-left: 1rem;
	order: 5;
}

.site-nav-trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.06);
	transition: background 0.2s ease;
}

.site-nav-trigger:hover {
	background: rgba(255, 255, 255, 0.12);
}

.site-nav-trigger span {
	position: relative;
	display: block;
	width: 20px;
	height: 2px;
	background: #ffffff;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.site-nav-trigger span:before,
.site-nav-trigger span:after {
	content: '';
	position: absolute;
	left: 0;
	width: 20px;
	height: 2px;
	background: #ffffff;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.site-nav-trigger span:before {
	top: -6px;
}

.site-nav-trigger span:after {
	bottom: -6px;
}

/* Navegación Responsive Móvil */
@media screen and (max-width: 64rem) {
	.site-trigger {
		display: block;
	}
	.site-header-cta {
		margin-left: auto;
		margin-right: 0.5rem;
	}
	.btn-turbo-cta {
		padding: 0.45rem 1rem;
		font-size: 0.8rem;
	}
	.site-navbar {
		position: fixed;
		top: 0;
		right: 0;
		width: 320px;
		max-width: 85vw;
		height: 100vh;
		background: #0b0f19 !important;
		border-left: 1px solid rgba(255, 255, 255, 0.1);
		box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
		padding: 5rem 1.5rem 2rem 1.5rem;
		flex-direction: column;
		align-items: stretch;
		transform: translateX(100%);
		transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
		z-index: 99998;
		overflow-y: auto;
		display: flex !important;
	}
	.site-navbar.active {
		transform: translateX(0);
	}
	.site-navbar ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
		width: 100%;
	}
	.site-navbar ul li a {
		padding: 0.85rem 1rem !important;
		font-size: 1rem;
		border-radius: 10px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	}
	.site-overlay.active {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.7);
		backdrop-filter: blur(4px);
		z-index: 99997;
		display: block;
	}
}

/* 3. Tarjetas de Cuadrícula y Clústeres SILO (Minimalista, Bordes Redondeados & Empresarial) */
.entry-item,
.turbo-cluster-grid .entry-item {
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
	border-radius: 18px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	padding: 1.25rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	overflow: hidden;
}

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

.entry-item .wp-post-image,
.entry-item .post-thumbnail img,
.entry-header .wp-post-image {
	border-radius: 14px;
	transition: transform 0.35s ease, filter 0.35s ease;
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.entry-item:hover,
.turbo-cluster-grid .entry-item:hover {
	transform: translateY(-5px);
	border-color: #cbd5e1;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.entry-item:hover .wp-post-image,
.entry-item:hover .post-thumbnail img {
	transform: scale(1.02);
	filter: brightness(1.02);
}

.entry-item .entry-title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.35;
	color: #0f172a;
	margin-top: 0.85rem;
	margin-bottom: 0.5rem;
	transition: color 0.2s ease;
}

.entry-item .entry-excerpt {
	color: #64748b;
	font-size: 0.95rem;
	line-height: 1.6;
}

.entry-category a {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.28rem 0.8rem;
	border-radius: 9999px;
	transition: all 0.2s ease;
}

.entry-read-more {
	display: inline-flex;
	align-items: center;
	font-size: 0.875rem;
	font-weight: 700;
	margin-top: 0.65rem;
	transition: transform 0.2s ease;
}

.entry-read-more:hover {
	transform: translateX(4px);
}

/* 4. Migas de Pan (Breadcrumbs) Minimalistas */
.breadcrumbs {
	font-size: 0.875rem;
	color: #94a3b8;
	margin-bottom: 1.5rem;
}

.breadcrumbs a {
	color: #64748b;
	transition: color 0.2s ease;
}

.breadcrumbs a:hover {
	color: #0275d8;
}

/* 5. Formularios y Cajas de Búsqueda */
input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]):not([type="file"]),
textarea,
select {
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	background-color: #f8fafc;
	color: #1e293b;
	padding: 0.75rem 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]):not([type="file"]):focus,
textarea:focus,
select:focus {
	background-color: #ffffff;
	border-color: #0275d8;
	box-shadow: 0 0 0 3px rgba(2, 117, 216, 0.12);
}

/* 6. Botones Estilizados */
.btn,
.button,
button,
input[type="submit"] {
	border-radius: 8px;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover,
.button:hover,
input[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* 7. Bloques de Contenido y Citas */
blockquote {
	border-left: 4px solid #0275d8;
	background: #f8fafc;
	border-radius: 0 8px 8px 0;
	padding: 1.25rem 1.5rem;
	color: #475569;
	font-style: italic;
}

/* 8. Paginación Minimalista */
.pagination a,
.pagination span {
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	color: #475569;
	font-weight: 600;
	transition: all 0.2s ease;
}

.pagination a:hover {
	background: #f1f5f9;
	color: #0275d8;
	border-color: #cbd5e1;
}

.pagination .current {
	background: #0275d8 !important;
	color: #ffffff !important;
	border-color: #0275d8 !important;
}

/* 9. Banners y Zonas de Anuncios */
.banner {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 1.5rem auto;
	overflow: hidden;
	text-align: center;
}

.banner:empty {
	display: none;
}