/*
Theme Name: Notus
Theme URI: https://ingenius.cu
Author: Ingenius Cuba
Author URI: https://ingeniuscuba.com
Description: Tema profesional de WordPress para NOTUS - Software de transcripción OFFLINE. Diseño moderno, responsive y construido con Tailwind CSS.
Version: 1.0.6
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: notus
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template, block-styles, wide-blocks

Notus es un tema de WordPress desarrollado por Ingenius Cuba.
*/

/* Variables de color personalizadas */
:root {
	--color-primary: #080B62;
	--color-secondary: #41BA87;
	--color-primary-light: rgba(8, 11, 98, 0.1);
	--color-primary-medium: rgba(8, 11, 98, 0.5);
	--color-primary-dark: rgba(8, 11, 98, 0.8);
	--color-secondary-light: rgba(65, 186, 135, 0.1);
	--color-secondary-medium: rgba(65, 186, 135, 0.5);
	--color-secondary-dark: rgba(65, 186, 135, 0.8);
}

body, h1, h2, h3, h4, h5, h6, p, span, button, strong, label, input, textarea {
    font-family: "Ubuntu" !important;
}

/* Animaciones */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInUpCard {
	from {
		opacity: 0;
		transform: translateY(40px) scale(0.95);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.animate-fade-in-up {
	animation: fadeInUp 1s ease-out forwards;
	opacity: 0;
}

.animate-fade-in-up-delay {
	animation: fadeInUp 1s ease-out 0.3s forwards;
	opacity: 0;
}

.animate-fade-in-up-card {
	animation: fadeInUpCard 0.6s ease-out forwards;
	opacity: 0;
}

@keyframes pulse-slow {

	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: 0.8;
		transform: scale(1.05);
	}
}

.animate-pulse-slow {
	animation: pulse-slow 3s ease-in-out infinite;
}

@keyframes gradient {

	0%,
	100% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}
}

.animate-gradient {
	background-size: 200% auto;
	animation: gradient 3s ease infinite;
}

/* Header transparente por defecto */
.site-header {
	background-color: transparent !important;
	backdrop-filter: blur(0px);
	box-shadow: none;
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Header con fondo cuando se hace scroll */
.site-header.scrolled {
	background-color: #ffffff !important;
	backdrop-filter: blur(12px);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Estilos modernos para el menú principal */
.main-menu-list {
	position: relative;
}

.main-menu-list li {
	position: relative;
}

.main-menu-list a {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1.25rem;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.025em;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	border-radius: 0.5rem;
}

.main-menu-list a::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 0;
	transform: scale(0.8);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 0.5rem;
	z-index: -1;
}

.main-menu-list a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, #080B62, #41BA87);
	transform: translateX(-50%);
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-menu-list a:hover::before {
	opacity: 1;
	transform: scale(1);
}

.main-menu-list a:hover::after {
	width: 80%;
}

.main-menu-list a .menu-link-text {
	position: relative;
	z-index: 1;
	transition: transform 0.3s ease;
}

.main-menu-list a:hover .menu-link-text {
	transform: translateY(-2px);
}

/* Ajustar color del texto cuando tiene fondo */
.site-header.scrolled .main-navigation a {
	color: #1f2937;
}

.site-header.scrolled .main-navigation a:hover {
	color: var(--color-primary);
}

.site-header.scrolled .main-navigation a::after {
	background: linear-gradient(90deg, #080B62, #41BA87);
}

.site-header.scrolled .menu-toggle {
	color: #1f2937;
}

.site-header.scrolled .menu-toggle:hover {
	color: var(--color-primary);
}

/* Ajustar color del texto en el header cuando es transparente */
.site-header:not(.scrolled) .main-navigation a,
.site-header:not(.scrolled) .menu-toggle {
	color: white;
}

.site-header:not(.scrolled) .main-navigation a::before {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
}

.site-header:not(.scrolled) .main-navigation a::after {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
}

.site-header:not(.scrolled) .main-navigation a:hover {
	color: rgba(255, 255, 255, 0.95);
}

.site-header:not(.scrolled) .menu-toggle:hover {
	color: rgba(255, 255, 255, 0.8);
}

/* Menú móvil mejorado */
.mobile-menu-list a {
	display: block;
	padding: 0.75rem 1rem;
	font-weight: 600;
	border-radius: 0.5rem;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.mobile-menu-list a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, #080B62, #41BA87);
	transform: scaleY(0);
	transition: transform 0.3s ease;
}

.mobile-menu-list a:hover::before,
.mobile-menu-list a:focus::before {
	transform: scaleY(1);
}

.mobile-menu-list a:hover {
	background: linear-gradient(90deg, rgba(8, 11, 98, 0.1), rgba(65, 186, 135, 0.1));
	padding-left: 1.5rem;
	transform: translateX(4px);
}

/* Smooth scroll para enlaces de anclaje */
html {
	scroll-behavior: smooth;
}

/* Ajuste de scroll para header fijo */
section[id^="section"] {
	scroll-margin-top: 80px;
}

/* Estilos para la sección de requisitos */
.requirement-item,
.license-item {
	transition: all 0.3s ease;
	padding: 0.75rem;
	border-radius: 0.75rem;
}

.requirement-item:hover,
.license-item:hover {
	background: linear-gradient(90deg, rgba(8, 11, 98, 0.03), rgba(65, 186, 135, 0.03));
	transform: translateX(4px);
}

.requirement-icon,
.license-icon {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.requirement-item:hover .requirement-icon,
.license-item:hover .license-icon {
	transform: scale(1.1) rotate(5deg);
}

/* Estilos para Timeline */
.timeline-item {
	position: relative;
}

@media (min-width: 1024px) {
	.timeline-item:last-child::before {
		display: none;
	}
}

.timeline-item > div:first-child {
	position: relative;
	z-index: 10;
}

/* Estilos para menú footer */
.footer-menu-list a {
	color: #9ca3af;
	transition: all 0.3s ease;
	padding: 0.25rem 0;
	position: relative;
}

.footer-menu-list a:hover {
	color: #41BA87;
	padding-left: 0.5rem;
}

.footer-menu-list a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, #41BA87, #080B62);
	transition: width 0.3s ease;
}

.footer-menu-list a:hover::before {
	width: 4px;
}

/* Estilos para páginas legales (Política de Privacidad, Cookies, Términos) */
.page-template-default .entry-content,
.single-page .entry-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.page-template-default .entry-title,
.single-page .entry-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 2rem;
	text-align: center;
	color: #080B62;
}

.page-template-default .entry-content h2,
.single-page .entry-content h2 {
	font-size: 1.75rem;
	font-weight: 600;
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: #080B62;
}

.page-template-default .entry-content h3,
.single-page .entry-content h3 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
	color: #1f2937;
}

.page-template-default .entry-content p,
.single-page .entry-content p {
	margin-bottom: 1rem;
	line-height: 1.75;
	color: #4b5563;
}

.page-template-default .entry-content ul,
.page-template-default .entry-content ol,
.single-page .entry-content ul,
.single-page .entry-content ol {
	margin-bottom: 1.5rem;
	padding-left: 2rem;
}

.page-template-default .entry-content li,
.single-page .entry-content li {
	margin-bottom: 0.5rem;
	line-height: 1.75;
	color: #4b5563;
}

.page-template-default .entry-content a,
.single-page .entry-content a {
	color: #41BA87;
	text-decoration: underline;
	transition: color 0.3s ease;
}

.page-template-default .entry-content a:hover,
.single-page .entry-content a:hover {
	color: #080B62;
}

.page-template-default .entry-content strong,
.single-page .entry-content strong {
	font-weight: 600;
	color: #080B62;
}

.page-template-default .entry-content blockquote,
.single-page .entry-content blockquote {
	border-left: 4px solid #41BA87;
	padding-left: 1.5rem;
	margin: 1.5rem 0;
	font-style: italic;
	color: #6b7280;
}

/* Ajustar logos cuando el header es transparente */
.site-header:not(.scrolled) .custom-logo-link img,
.site-header:not(.scrolled) img[alt*="NOTUS"] {
	filter: brightness(0) invert(1);
}

/* Logo INGENIUS - mostrar logo claro cuando header es transparente */
.site-header:not(.scrolled) .ingenius-logo-light {
	display: block;
}

.site-header:not(.scrolled) .ingenius-logo-dark {
	display: none;
}

/* Logo INGENIUS - mostrar logo oscuro cuando header tiene fondo */
.site-header.scrolled .ingenius-logo-light {
	display: none;
}

.site-header.scrolled .ingenius-logo-dark {
	display: block;
}

/* Restaurar logos cuando el header tiene fondo */
.site-header.scrolled .custom-logo-link img,
.site-header.scrolled img[alt*="NOTUS"] {
	filter: none;
}

/* Slider infinito de clientes */
.clients-slider-wrapper {
	overflow: hidden;
	width: 100%;
	position: relative;
	mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.clients-slider {
	display: flex;
	will-change: transform;
	width: fit-content;
	/* La animación se establece dinámicamente por JavaScript */
	animation: slide-infinite-fallback 50s linear infinite;
}

.clients-slider:hover {
	animation-play-state: paused;
}

.clients-slide-group {
	display: flex;
	gap: 1.5rem;
	flex-shrink: 0;
	width: fit-content;
}

.clients-slide-gap {
	width: 1.5rem;
	flex-shrink: 0;
}

/* Animación de respaldo en caso de que JavaScript no se cargue */
@keyframes slide-infinite-fallback {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* Escala de grises para logos de clientes */
.clients-slider img {
	filter: grayscale(100%);
	transition: filter 0.3s ease;
}

.clients-slider img:hover {
	filter: grayscale(0%);
}

/* Modal de Video */
#video-modal {
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

#video-modal.hidden {
	opacity: 0;
	visibility: hidden;
}

#video-modal.flex {
	opacity: 1;
	visibility: visible;
}

/* Partículas en sección CTA */
#particles-js,
#particles-cta-contact {
	pointer-events: none;
}

/* Estilos para Contact Form 7 */
.wpcf7-form {
	position: relative;
	z-index: 10;
}

.wpcf7-form-control-wrap {
	display: block;
	width: 100%;
	margin-bottom: 1.5rem;
}

.wpcf7 label {
	display: block;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	padding: 0.875rem 1rem;
	border: 2px solid #e5e7eb;
	border-radius: 0.75rem;
	font-size: 1rem;
	transition: all 0.3s ease;
	background-color: #ffffff;
	color: #1f2937;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: #080B62;
	box-shadow: 0 0 0 4px rgba(8, 11, 98, 0.1);
	transform: translateY(-2px);
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 input[type="tel"]::placeholder,
.wpcf7 textarea::placeholder {
	color: #9ca3af;
}

.wpcf7 textarea {
	resize: vertical;
	min-height: 120px;
}

.wpcf7 input[type="submit"] {
	width: 100%;
	background: linear-gradient(135deg, #080B62, #0a0f7a);
	color: white;
	font-weight: 600;
	font-size: 1rem;
	padding: 1rem 2rem;
	border: none;
	border-radius: 0.75rem;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px -1px rgba(8, 11, 98, 0.3), 0 2px 4px -1px rgba(8, 11, 98, 0.2);
	position: relative;
	overflow: hidden;
}

.wpcf7 input[type="submit"]::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #41BA87, #080B62);
	transition: left 0.3s ease;
	z-index: 0;
}

.wpcf7 input[type="submit"]:hover::before {
	left: 0;
}

.wpcf7 input[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgba(8, 11, 98, 0.4), 0 4px 6px -2px rgba(8, 11, 98, 0.3);
}

.wpcf7 input[type="submit"]:active {
	transform: translateY(0);
}

.wpcf7 input[type="submit"] span {
	position: relative;
	z-index: 1;
}

/* Mensajes de validación y estado */
.wpcf7-validation-errors,
.wpcf7-mail-sent-ok,
.wpcf7-mail-sent-ng {
	padding: 1rem 1.25rem;
	border-radius: 0.75rem;
	margin-top: 1.5rem;
	font-size: 0.95rem;
	border: 2px solid;
}

.wpcf7-validation-errors {
	background-color: #fef2f2;
	color: #991b1b;
	border-color: #fecaca;
}

.wpcf7-mail-sent-ok {
	background-color: #d1fae5;
	color: #065f46;
	border-color: #a7f3d0;
}

.wpcf7-mail-sent-ng {
	background-color: #fef2f2;
	color: #991b1b;
	border-color: #fecaca;
}

.wpcf7-not-valid-tip {
	color: #dc2626;
	font-size: 0.875rem;
	margin-top: 0.5rem;
	display: block;
	font-weight: 500;
}

.wpcf7-not-valid {
	border-color: #dc2626 !important;
	background-color: #fef2f2;
}

.wpcf7-not-valid:focus {
	border-color: #dc2626 !important;
	box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1) !important;
}

/* Spinner de carga */
.wpcf7-spinner {
	margin: 0 auto;
	border: 3px solid rgba(8, 11, 98, 0.1);
	border-top-color: #080B62;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.wpcf7-form br {
	display: none;
}

.page:not(.home) header {
	background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1)) !important;
}

.page:not(.home) header a {
	color: #fff !important;
}

.clients-slide-group {
	margin-left: 20px !important;
}

@media (max-width: 420px) {
	#section1 { 
		height: 300px !important;
	}
	
	#masthead {
		background-color: var(--color-primary) !important;
	}
	
	#masthead ul li > a {
		color: #fff !important;
	}
}

.hero-bg-mobile {
	background-image: url('./assets/images/bg_hero_mobile_desktop.png');
	background-size: cover;
	background-position: center;
	position: relative;
}

.hero-bg-mobile::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.hero-mobile {
	display: none !important;
}

@media (max-width: 768px) {
	.hero-desktop {
		display: none !important;
	}
	
	.hero-mobile {
		display: flex !important;
	}
}