/* Efectos Cyberpunk Sutiles */
.glow-text {
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary {
    background: linear-gradient(90deg, #00C2FF 0%, #00F0FF 100%);
    color: #0B1021;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}
.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    border-color: var(--cyan-brand);
    color: var(--cyan-brand);
    background: rgba(0, 240, 255, 0.05);
}

.card-glass {
    background: rgba(21, 30, 50, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.card-glass:hover {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-5px);
}

/* Utilidades de Animación */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Navegación Activa */
.nav-link {
    color: #d1d5db;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover {
    color: white;
}
nav .itemTop .menu-item a{
  padding-left: 5px !important;
  padding-right: 5px !important;
}

.nav-link.active,
.nav-link.current-menu-item a {
    color: var(--cyan-brand);
    border-bottom: 2px solid var(--cyan-brand);
    border-radius: 0 !important;
}

/* Animación de Scroll para el Hero */
@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
@keyframes scrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}
.animate-scroll-up {
    animation: scrollUp 30s linear infinite;
}
.animate-scroll-down {
    animation: scrollDown 30s linear infinite;
}

/* Marquee Animation for Logos */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    animation: marquee 40s linear infinite;
}

/* Clients Marquee styles (Front Page only) */
.clients-marquee {
    overflow: hidden;
    position: relative;
}
.clients-track {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: max-content; /* prevents shrinking, allows natural width */
}
.clients-track > * { /* items */
    flex: 0 0 auto; /* do not shrink */
    margin-right: 1rem;
}
.clients-fade {
    pointer-events: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
}
.clients-fade--left {
    left: 0;
    background: linear-gradient(90deg, rgba(11,16,33,1) 0%, rgba(11,16,33,0) 100%);
}
.clients-fade--right {
    right: 0;
    background: linear-gradient(270deg, rgba(11,16,33,1) 0%, rgba(11,16,33,0) 100%);
}

/* Chart Container Responsivo */
.chart-container {
    position: relative;
    width: 100%;
    height: 300px;
    max-height: 400px;
}

/* Spinner para formularios */
.spinner {
    border: 2px solid rgba(0, 240, 255, 0.1);
    border-top: 2px solid var(--cyan-brand);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para SweetAlert2 (override) */
.swal2-popup {
    background: var(--bg-card) !important;
    color: var(--text-main) !important;
}

.swal2-title {
    color: var(--text-main) !important;
}

.swal2-html-container {
    color: var(--text-muted) !important;
}

.swal2-html-container ul {
    text-align: left;
    display: inline-block;
    margin: 0 auto;
}

.swal2-confirm {
    background: linear-gradient(90deg, #00C2FF 0%, #00F0FF 100%) !important;
    color: #0B1021 !important;
}
/* =WordPress Core ------ */
.alignnone {
    margin: 5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}
.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}
.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}
a img.alignnone {
    margin: 5px 20px 20px 0;
}
a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}
.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}
.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}
.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #eee;
	clip: auto !important;
	clip-path: none;
	color: #444;
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Contenido (Gutenberg / pages/posts)
   Tailwind preflight deja márgenes en 0; esto los restaura dentro de `.prose`.
*/
.prose {
    color: var(--text-main);
}

.prose p {
    margin: 0 0 1rem;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    font-size: revert;
    font-weight: revert;
    margin: 0 0 1rem;
    color: var(--text-main);
}

.prose h2 { margin-bottom: 0.75rem; }
.prose h3 { margin-bottom: 0.75rem; }

/* Redes sociales (Footer) */
.footer-social-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    color: var(--text-main);
    border-color: var(--cyan-brand);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    transform: translateY(-1px);
}

.footer-social-link i {
    font-size: 1.1rem;
    line-height: 1;
}

/* Logo en blanco (configurable) */
.site-logo--white {
    filter: brightness(0) invert(1);
}

.prose ul,
.prose ol {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    color: var(--text-muted);
}

.prose li { margin: 0.25rem 0; }

.prose a:not([class]){
  color: var(--cyan-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose blockquote {
    margin: 0 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
}

/* Paginación WP (paginate_links => type=list) */
ul.page-numbers {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.page-numbers li { margin: 0; }

ul.page-numbers a.page-numbers,
ul.page-numbers span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-main);
    background: transparent;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

ul.page-numbers a.page-numbers:hover {
    border-color: rgba(0, 240, 255, 0.45);
    color: var(--cyan-brand);
    background: rgba(0, 240, 255, 0.05);
}

ul.page-numbers span.page-numbers.current {
    border-color: rgba(0, 240, 255, 0.45);
    background: rgba(0, 240, 255, 0.12);
    color: var(--text-main);
}

/* =========================
   Plataforma: Hero Responsive
   Breakpoint: <= 575px
   ========================= */
@media (max-width: 575px) {
    .platform-hero h1 {
        font-size: 2.1rem; /* ~text-3xl */
        line-height: 1.15;
        margin-bottom: 0.75rem;
    }
    .platform-hero .hero-desc {
        font-size: 0.95rem; /* slightly smaller than text-lg */
        line-height: 1.45;
        color: #9ca3af; /* gray-400 */
        margin-bottom: 1rem;
    }
    .platform-hero .btn-primary {
        padding: 0.9rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 0.75rem;
    }
}

/* Plataforma: Mobile Agent Bubble */
.agent-bubble-mobile { margin: calc(1rem + 30px) 0 1.25rem; }
.agent-bubble-mobile .agent-card {
    background: #1f2942;
    border: 1px solid rgba(168, 85, 247, 0.35); /* purple-500/35 */
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    animation: gentleBounce 3s ease-in-out infinite;
}
.agent-bubble-mobile .agent-card .header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.25); /* slate-400/25 */
}
.agent-bubble-mobile .msg {
    font-size: 11px;
    color: #e5e7eb; /* slate-200 */
    background: #2a3558;
    padding: 8px 10px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.agent-bubble-mobile .msg + .msg { margin-top: 8px; }
.agent-bubble-mobile .msg--out {
    background: #3a4668;
    color: #d1d5db;
    margin-left: auto;
    width: max-content;
    max-width: 85%;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.fila-filtros select{
    height: 42px;
}
.contenido-final ul,
.contenido-final ol{
  list-style: inherit;
  color: #fff !important;
}
.contenido-final .btn{
  display: inline-block;
  padding: 7px 25px;
  border-radius: 7px;
}

/* Testimonials slider (Splide) theme tweaks */
#testimonials-splide .splide__track {
    overflow: visible;
}
#testimonials-splide .splide__arrow {
    background-color: #0f1525;
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: #22d3ee;
    width: 40px;
    height: 40px;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.15);
}
#testimonials-splide .splide__arrow svg {
    fill: currentColor;
}
#testimonials-splide .splide__pagination {
    margin-top: 1rem;
}
#testimonials-splide .splide__pagination__page {
    background-color: #334155;
    width: 8px;
    height: 8px;
    opacity: 0.6;
}
#testimonials-splide .splide__pagination__page.is-active {
    background-color: #22d3ee;
    transform: scale(1.25);
    opacity: 1;
}
#testimonials-splide .splide__slide {
    padding-bottom: 0.5rem;
}
#testimonials-splide .splide__arrow.splide__arrow--prev{
  left:-15px !important;
}
#testimonials-splide .splide__arrow.splide__arrow--next{
  right:-15px !important;
}
#testimonials-splide .splide__pagination{
  bottom: -25px !important;
}
.contenido-final p,
.contenido-final ul,
.contenido-final ol,
.contenido-final h1,
.contenido-final h2,
.contenido-final h3,
.contenido-final h4,
.contenido-final h5,
.contenido-final h6{
  margin-bottom: 14px;
}
@media (max-width: 575px){
  .contenido-final p,
  .contenido-final ul,
  .contenido-final ol,
  .contenido-final h1,
  .contenido-final h2,
  .contenido-final h3,
  .contenido-final h4,
  .contenido-final h5,
  .contenido-final h6{
    margin-bottom: 11px;
  }
}
