/* ==========================================================
   BASE Y CONFIGURACIÓN (RISPO)
   ========================================================== */
.tk-rispo-wrapper {
    --rispo-bg: #06090f;
    --rispo-card: #0a0f18;
    --rispo-cyan: #00e5bd;
    --rispo-purple: #8c2eef;
    --rispo-white: #ffffff;
    --rispo-text: #94a3b8;
    --rispo-font: 'Barlow', sans-serif;
    
    background-color: var(--rispo-bg) !important;
    color: var(--rispo-text);
    font-family: var(--rispo-font);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-x: hidden;
    padding-top: 75px;
}

/* Forzar títulos en blanco */
.tk-rispo-wrapper h1,
.tk-rispo-wrapper h2,
.tk-rispo-wrapper h3,
.tk-rispo-wrapper h4 {
    color: var(--rispo-white) !important;
    font-family: var(--rispo-font) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    margin-top: 0 !important;
}

/* Texto con gradiente animado */
.tk-rispo-text-gradient {
    background: linear-gradient(90deg, #ffffff, var(--rispo-cyan), var(--rispo-purple), #ffffff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rispoGradientMove 6s linear infinite;
}

@keyframes rispoGradientMove {
    to { background-position: 300% center; }
}

.tk-rispo-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.tk-rispo-section {
    padding: 6rem 0;
    position: relative;
}

/* Fondos ambientales */
.tk-rispo-glow-bg {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 229, 189, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.tk-rispo-glow-bg.purple {
    background: radial-gradient(circle, rgba(108, 28, 211, 0.05) 0%, transparent 70%);
}

/* ==========================================================
   BOTONES Y BADGES
   ========================================================== */
.tk-rispo-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 229, 189, 0.08);
    border: 1px solid rgba(0, 229, 189, 0.2);
    color: var(--rispo-cyan) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}
.tk-rispo-badge-dot {
    width: 8px; height: 8px;
    background: var(--rispo-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--rispo-cyan);
    animation: rispoPulseDot 2s infinite;
}
@keyframes rispoPulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.tk-rispo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--rispo-font);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    border-radius: 8px;
    padding: 1rem 2rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Efecto Shimmer */
.tk-rispo-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
    z-index: -1;
}
.tk-rispo-btn:hover::after {
    left: 150%;
}

.tk-rispo-btn-primary {
    background-color: var(--rispo-cyan) !important;
    color: #06090f !important;
    box-shadow: 0 0 25px rgba(0, 229, 189, 0.4);
}
.tk-rispo-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0, 229, 189, 0.7);
}

.tk-rispo-btn-glass {
    background: rgba(108, 28, 211, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(108, 28, 211, 0.4) !important;
    backdrop-filter: blur(10px);
}
.tk-rispo-btn-glass:hover {
    background: rgba(108, 28, 211, 0.2) !important;
    border-color: var(--rispo-purple) !important;
    box-shadow: 0 0 20px rgba(108, 28, 211, 0.4);
    transform: translateY(-2px);
}

/* ==========================================================
   SECCIÓN A: HERO
   ========================================================== */
.tk-rispo-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#rispo-hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.tk-rispo-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.tk-rispo-hero h1 {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    margin-bottom: 1.5rem !important;
}

.tk-rispo-hero p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #cbd5e1 !important;
}

.tk-rispo-hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.tk-rispo-specs {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rispo-white);
}
.tk-rispo-specs span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tk-rispo-specs span::before {
    content: '■';
    color: var(--rispo-cyan);
    font-size: 0.8rem;
    text-shadow: 0 0 8px var(--rispo-cyan);
}

/* Mockup UI Flotante */
.tk-rispo-mockup-wrapper {
    position: relative;
    perspective: 1000px;
    animation: rispoFloat 6s ease-in-out infinite;
}
@keyframes rispoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.tk-rispo-chat-window {
    background: rgba(10, 15, 24, 0.85);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: rotateY(-5deg) rotateX(5deg);
}

.tk-rispo-chat-header {
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem; margin-bottom: 1.5rem;
}
.tk-rispo-chat-avatar {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--rispo-cyan), var(--rispo-purple));
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 229, 189, 0.3);
}
.tk-rispo-chat-name { color: var(--rispo-white); font-weight: 700; font-size: 0.95rem; }
.tk-rispo-chat-status { color: var(--rispo-cyan); font-size: 0.75rem; }

.tk-rispo-bubble {
    background: rgba(255,255,255,0.05);
    padding: 1rem; border-radius: 12px; border-bottom-left-radius: 0;
    color: #cbd5e1; font-size: 0.95rem; margin-bottom: 1rem;
    opacity: 0; transform: translateY(10px);
    transition: all 0.4s ease;
    max-width: 90%;
}
.tk-rispo-bubble.ia {
    background: rgba(0, 229, 189, 0.1); border: 1px solid rgba(0, 229, 189, 0.2);
    border-bottom-left-radius: 12px; border-bottom-right-radius: 0;
    margin-left: auto; color: var(--rispo-white); text-align: right;
}
.tk-rispo-bubble.active { opacity: 1; transform: translateY(0); }

.tk-rispo-typing {
    display: none; gap: 4px; padding: 0.5rem 1rem; width: fit-content; background: rgba(255,255,255,0.05); border-radius: 12px; margin-bottom: 1rem;
}
.tk-rispo-typing span {
    width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; animation: rispoTyping 1.4s infinite ease-in-out both;
}
.tk-rispo-typing span:nth-child(1) { animation-delay: -0.32s; }
.tk-rispo-typing span:nth-child(2) { animation-delay: -0.16s; }
@keyframes rispoTyping { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

.tk-rispo-calendar-pop {
    position: absolute;
    bottom: -20px; right: -20px;
    background: rgba(10, 15, 24, 0.95);
    border: 1px solid var(--rispo-cyan);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 229, 189, 0.2);
    display: flex; align-items: center; gap: 10px;
    opacity: 0; transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}
.tk-rispo-calendar-pop.active { opacity: 1; transform: scale(1); }
.tk-rispo-calendar-icon { color: var(--rispo-cyan); font-size: 1.2rem; }
.tk-rispo-calendar-text { color: var(--rispo-white); font-size: 0.85rem; font-weight: 600; }

/* ==========================================================
   SECCIÓN B: COMPARATIVA
   ========================================================== */
.tk-rispo-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.tk-rispo-compare-card {
    background: var(--rispo-card);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.tk-rispo-compare-card.negative {
    background: #0a0b0e;
}
.tk-rispo-compare-card.negative h3 { color: #64748b !important; }

.tk-rispo-compare-card.positive {
    background: linear-gradient(180deg, rgba(0, 229, 189, 0.05) 0%, var(--rispo-card) 100%);
    border: 1px solid rgba(0, 229, 189, 0.3);
    box-shadow: 0 0 40px rgba(0, 229, 189, 0.05);
}

.tk-rispo-badge-advantage {
    position: absolute; top: 2rem; right: 2rem;
    background: var(--rispo-cyan); color: #000;
    font-size: 0.7rem; font-weight: 800; padding: 0.3rem 0.8rem;
    border-radius: 20px; text-transform: uppercase; letter-spacing: 0.05em;
}

.tk-rispo-compare-card ul {
    list-style: none; padding: 0; margin: 2rem 0 0 0;
}
.tk-rispo-compare-card li {
    position: relative; padding-left: 2rem; margin-bottom: 1.2rem; font-size: 1.05rem; line-height: 1.5;
}
.tk-rispo-compare-card.negative li::before {
    content: '✕'; position: absolute; left: 0; color: #ef4444; font-weight: bold;
}
.tk-rispo-compare-card.positive li::before {
    content: '✓'; position: absolute; left: 0; color: var(--rispo-cyan); font-weight: bold; text-shadow: 0 0 8px var(--rispo-cyan);
}

/* ==========================================================
   SECCIÓN C: FLUJO (ARQUITECTURA)
   ========================================================== */
.tk-rispo-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    margin-top: 4rem;
}

/* Línea de datos animada de fondo */
.tk-rispo-flow-line {
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--rispo-cyan), transparent);
    z-index: 0;
    opacity: 0.3;
}
.tk-rispo-flow-line::after {
    content: ''; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; background: var(--rispo-cyan); border-radius: 50%; box-shadow: 0 0 15px var(--rispo-cyan);
    animation: rispoDataStream 4s linear infinite;
}
@keyframes rispoDataStream {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.tk-rispo-flow-card {
    background: var(--rispo-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}
.tk-rispo-flow-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 189, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.tk-rispo-flow-num {
    font-size: 2rem; font-weight: 800; color: rgba(255,255,255,0.1); margin-bottom: 1rem; display: block;
}
.tk-rispo-flow-card h3 { font-size: 1.2rem; margin-bottom: 1rem !important; color: var(--rispo-cyan) !important; }

/* ==========================================================
   SECCIÓN D: INDUSTRIAS (SPOTLIGHT EFFECT)
   ========================================================== */
.tk-rispo-industry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.tk-rispo-industry-card {
    background: var(--rispo-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.tk-rispo-industry-card:hover {
    border-color: rgba(255,255,255,0.15);
}

/* Efecto Spotlight usando variables CSS actualizadas por JS */
.tk-rispo-industry-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(0, 229, 189, 0.1), transparent 40%);
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.tk-rispo-industry-card:hover::before { opacity: 1; }

/* Iconos de Industrias (Estilo Linear/Vercel) */
.tk-rispo-industry-icon {
    width: 48px; 
    height: 48px; 
    background: rgba(0, 229, 189, 0.05); /* Fondo más sutil */
    border: 1px solid rgba(0, 229, 189, 0.2); /* Borde sutil */
    border-radius: 10px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 1.5rem; 
    color: var(--rispo-cyan); /* Color del trazo SVG */
    transition: all 0.3s ease;
}

/* Efecto Hover: El icono brilla más */
.tk-rispo-industry-card:hover .tk-rispo-industry-icon {
    background: rgba(0, 229, 189, 0.15);
    border-color: rgba(0, 229, 189, 0.5);
    box-shadow: 0 0 15px rgba(0, 229, 189, 0.2);
    transform: translateY(-2px);
}

/* Asegurar que el SVG se adapte al tamaño */
.tk-rispo-industry-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5; /* Trazo más fino para más elegancia */
}
.tk-rispo-industry-card h3 { font-size: 1.3rem; margin-bottom: 1rem !important; }

/* ==========================================================
   SECCIÓN E: FAQ (ACORDEÓN)
   ========================================================== */
.tk-rispo-faq-list {
    max-width: 800px; margin: 0 auto;
}
.tk-rispo-faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 0;
}
.tk-rispo-faq-btn {
    width: 100%; text-align: left; background: transparent; border: none;
    padding: 1.5rem 0; font-family: var(--rispo-font); font-size: 1.15rem; font-weight: 600; color: var(--rispo-white);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    transition: color 0.3s ease;
}
.tk-rispo-faq-btn:hover { color: var(--rispo-cyan); }
.tk-rispo-faq-btn.active { color: var(--rispo-cyan); }
.tk-rispo-faq-btn::after {
    content: '+'; font-size: 1.5rem; font-weight: 300; transition: transform 0.3s ease; color: var(--rispo-cyan);
}
.tk-rispo-faq-btn.active::after {
    transform: rotate(45deg);
}
.tk-rispo-faq-content {
    display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease-out;
}
.tk-rispo-faq-content.open { grid-template-rows: 1fr; }
.tk-rispo-faq-inner {
    overflow: hidden;
}
.tk-rispo-faq-inner p {
    padding-bottom: 1.5rem; margin: 0; color: var(--rispo-text); line-height: 1.6;
}

/* ==========================================================
   SECCIÓN F: CIERRE / CONTACTO
   ========================================================== */
.tk-rispo-cta-section {
    background: linear-gradient(180deg, transparent 0%, rgba(108, 28, 211, 0.05) 100%);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tk-rispo-cta-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.tk-rispo-live-test h2 { font-size: 2.5rem; margin-bottom: 1rem !important; }
.tk-rispo-live-test p { font-size: 1.1rem; margin-bottom: 2rem; }
.tk-rispo-steps {
    list-style: none; padding: 0; margin: 0 0 2.5rem 0;
}
.tk-rispo-steps li {
    display: flex; gap: 15px; align-items: flex-start; margin-bottom: 1rem; color: #cbd5e1;
}
.tk-rispo-steps li span {
    display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
    background: rgba(0,229,189,0.2); color: var(--rispo-cyan); font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}
.tk-rispo-form-card {
    background: var(--rispo-card); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 3rem; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
}
/* Borde animado */
.tk-rispo-form-card::before {
    content: ''; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
    background: linear-gradient(45deg, var(--rispo-purple), var(--rispo-cyan), transparent, var(--rispo-purple));
    background-size: 300% 300%; animation: rispoBorderGlow 4s linear infinite;
}
@keyframes rispoBorderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tk-rispo-input {
    width: 100%; background: rgba(255,255,255,0.03) !important; border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px; padding: 1rem; color: var(--rispo-white) !important; margin-bottom: 1rem; font-family: var(--rispo-font);
}
.tk-rispo-input:focus { outline: none; border-color: var(--rispo-cyan) !important; background: rgba(0, 229, 189, 0.05) !important; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
    .tk-rispo-hero-grid, .tk-rispo-compare-grid, .tk-rispo-cta-grid { grid-template-columns: 1fr; gap: 3rem; }
    .tk-rispo-hero { padding-top: 4rem; padding-bottom: 4rem; }
    .tk-rispo-chat-window { transform: none; }
    .tk-rispo-flow-grid { grid-template-columns: 1fr; }
    .tk-rispo-flow-line { display: none; }
    .tk-rispo-industry-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .tk-rispo-hero h1 { font-size: 2.5rem; }
    .tk-rispo-compare-card, .tk-rispo-form-card, .tk-rispo-industry-card { padding: 2rem; }
    .tk-rispo-hero-ctas { flex-direction: column; }
    .tk-rispo-btn { width: 100%; }
}
/* ==========================================================
   AJUSTES SECCIÓN FLUJO (Arquitectura)
   ========================================================== */

/* 1. Hacer los números más visibles pero manteniendo el estilo sutil */
.tk-rispo-flow-num {
    font-size: 2.5rem; 
    font-weight: 800; 
    /* Subimos la opacidad del blanco para que resalte más */
    color: rgba(255, 255, 255, 0.25); 
    margin-bottom: 1rem; 
    display: block;
    line-height: 1;
}

/* 2. Bajar la opacidad de la línea de datos (fondo animado) */
.tk-rispo-flow-line {
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--rispo-cyan), transparent);
    z-index: 0;
    /* Opacidad bajada drásticamente para que no compita con las tarjetas */
    opacity: 0.15; 
}

/* Opcional: Hacer el pulso de luz un poco más fino */
.tk-rispo-flow-line::after {
    content: ''; 
    position: absolute; 
    top: -3px; 
    left: 0; 
    width: 6px; 
    height: 6px; 
    background: var(--rispo-cyan); 
    border-radius: 50%; 
    box-shadow: 0 0 10px var(--rispo-cyan);
    animation: rispoDataStream 4s linear infinite;
}
/* ==========================================================
   TARJETA DE CONTACTO DIRECTO (WHATSAPP)
   ========================================================== */
.tk-rispo-contact-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 3rem !important;
}

.tk-rispo-contact-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 229, 189, 0.1);
    border: 1px solid rgba(0, 229, 189, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--rispo-cyan);
    box-shadow: 0 0 30px rgba(0, 229, 189, 0.15);
    transition: transform 0.3s ease;
}

.tk-rispo-contact-card:hover .tk-rispo-contact-icon {
    transform: scale(1.1) rotate(-5deg);
}

.tk-rispo-contact-icon svg {
    width: 32px;
    height: 32px;
}

.tk-rispo-contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem !important;
}

.tk-rispo-contact-card p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 400px;
}

.tk-rispo-contact-note {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}