/* ==========================================================
   1. RESET GLOBAL Y CONFIGURACIÓN BASE
   ========================================================== */
:root {
    --tk-bg: #080b11; 
    --tk-bg-card: #0c1017; 
    --tk-bg-dark: #111726;
    --tk-purple: #8c2eef;
    --tk-cyan: #00e5bd; 
    --tk-white: #ffffff; 
    --tk-text-muted: #94a3b8; 
    --tk-font: 'Barlow', sans-serif;
}

/* Forzar color de texto claro en todo el body para evitar el #222 de GP */
body, 
body.home,
body.page-template-servicios,
body.page-template-portafolio {
    background-color: var(--tk-bg) !important;
    font-family: var(--tk-font);
    color: var(--tk-text-muted) !important; 
}

/* Eliminar límites de ancho y fondos blancos de GeneratePress */
body.home #page,
body.home .site-content,
body.home .grid-container,
body.home #content,
body.home #primary,
body.home .inside-article,
body.home .entry-content,
body.page-template-servicios #page,
body.page-template-servicios .site-content,
body.page-template-servicios .grid-container,
body.page-template-servicios #content,
body.page-template-servicios #primary,
body.page-template-portafolio #page,
body.page-template-portafolio .site-content,
body.page-template-portafolio .grid-container,
body.page-template-portafolio #content,
body.page-template-portafolio #primary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    background-color: transparent !important;
}

/* ==========================================================
   2. TIPOGRAFÍA Y UTILIDADES COMUNES
   ========================================================== */
.tk-wrapper,
.tk-landing-wrapper {
    background-color: var(--tk-bg);
    color: var(--tk-text-muted);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-x: hidden;
    padding-top: 75px; /* Espacio para el header fijo */
    padding-bottom: 4rem;
}

.tk-wrapper h1, 
.tk-wrapper h2, 
.tk-wrapper h3, 
.tk-wrapper h4,
.tk-landing-wrapper h1,
.tk-landing-wrapper h2,
.tk-landing-wrapper h3,
.tk-landing-wrapper h4,
.hero-3d-content h1 {
    color: var(--tk-white) !important;
    font-family: var(--tk-font) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    margin-top: 0 !important;
}

.tk-main-title {
    color: var(--tk-cyan) !important;
}

.tk-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    width: 100% !important;
    position: relative;
    z-index: 2;
}

.tk-section {
    padding: 5rem 0 !important;
    position: relative;
}

.tk-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Botones */
.tk-btn, 
.hero-3d-content .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--tk-font);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    border-radius: 8px;
    padding: 0.8rem 1.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.tk-btn-primary, 
.hero-3d-content .button {
    background-color: var(--tk-cyan) !important;
    color: var(--tk-bg) !important;
    box-shadow: 0 0 22px rgba(0, 229, 189, 0.45);
}

.tk-btn-primary:hover, 
.hero-3d-content .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(0, 229, 189, 0.7);
}

.tk-btn-outline {
    background: transparent !important;
    color: var(--tk-white) !important;
    border: 1px solid var(--tk-purple) !important;
}

.tk-btn-outline:hover {
    background: rgba(108, 28, 211, 0.1) !important;
    box-shadow: 0 0 20px rgba(108, 28, 211, 0.4);
    transform: translateY(-2px);
}

/* Badges y animaciones */
.tk-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(--tk-cyan) !important;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    cursor: default;
    transition: border-color 0.3s ease;
}

.tk-badge.tk-badge-purple {
    background: rgba(108, 28, 211, 0.15);
    border-color: rgba(108, 28, 211, 0.3);
    color: #c4a1ff !important;
}

.tk-badge-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--tk-cyan);
    transition: all 0.3s ease;
}

.tk-badge-star {
    color: #c4a1ff !important;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.3s ease;
    display: inline-block;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: 0 0 8px rgba(196, 161, 255, 0.6); 
    font-family: sans-serif !important; 
}

.tk-badge:hover .tk-badge-icon,
.tk-badge:hover .tk-badge-star {
    animation: pulseIcon 1.5s infinite ease-in-out;
}

@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px currentColor; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* ==========================================================
   3. HEADER Y FOOTER
   ========================================================== */
.tk-glass-header, 
.site-header {
    position: fixed !important;
    top: 0; left: 0; width: 100%; z-index: 9999;
    background: rgba(8, 11, 17, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}
body.admin-bar .tk-glass-header { top: 32px; }

.tk-header-container {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem; height: 75px;
    display: flex; justify-content: space-between; align-items: center;
}

.tk-header-logo { height: 32px; width: auto; transition: transform 0.3s ease; }
.tk-header-logo:hover { transform: scale(1.05); }

/* Anular GeneratePress en el menú */
.tk-glass-header .main-navigation, .tk-glass-header #site-navigation,
.site-header .main-navigation {
    background: transparent !important; padding: 0 !important; margin: 0 !important;
    width: auto !important; box-shadow: none !important; border: none !important;
}
.tk-glass-header .main-navigation ul, .site-header .main-navigation ul {
    display: flex !important; flex-direction: row !important; align-items: center !important;
    justify-content: flex-end !important; gap: 2rem !important; margin: 0 !important; padding: 0 !important;
    list-style: none !important; background: transparent !important;
}
.tk-glass-header .main-navigation li, .site-header .main-navigation li { 
    background: transparent !important; margin: 0 !important; padding: 0 !important; 
    border: none !important; box-shadow: none !important; 
}
.tk-glass-header .main-navigation a, .site-header .main-navigation a {
    background: transparent !important; color: var(--tk-white) !important; padding: 10px 0 !important;
    text-decoration: none !important; font-family: var(--tk-font) !important; font-weight: 600 !important;
    font-size: 1rem !important; line-height: 1 !important; box-shadow: none !important; border: none !important;
    display: inline-block !important; position: relative;
}
.tk-glass-header .main-navigation li:hover, .tk-glass-header .main-navigation ul li:hover,
.tk-glass-header .main-navigation .current-menu-item > a, .tk-glass-header .main-navigation a:hover,
.site-header .main-navigation li:hover, .site-header .main-navigation a:hover {
    background-color: transparent !important; background: transparent !important; color: var(--tk-cyan) !important;
}
.tk-glass-header .main-navigation a::after, .site-header .main-navigation a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--tk-cyan); transition: width 0.3s ease; box-shadow: 0 0 8px var(--tk-cyan);
}
.tk-glass-header .main-navigation a:hover::after, .tk-glass-header .main-navigation .current-menu-item > a::after,
.site-header .main-navigation a:hover::after, .site-header .main-navigation .current-menu-item > a::after { 
    width: 100%; 
}
.tk-menu-toggle { display: none; background: transparent; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 5px; }
.tk-menu-toggle span { display: block; width: 25px; height: 2px; background-color: var(--tk-cyan); transition: all 0.3s ease; }

/* Footer */
.tk-footer, .site-footer { background-color: var(--tk-bg); border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 3rem 2rem; font-family: var(--tk-font); }
.tk-footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; }
.tk-footer-branding p { margin: 0; color: var(--tk-text-muted); font-size: 0.95rem; }
.tk-footer-sub { font-size: 0.85rem !important; color: #5a6682 !important; margin-top: 5px !important; }
.tk-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.tk-footer-menu a { color: var(--tk-text-muted); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; }
.tk-footer-menu a:hover { color: var(--tk-cyan); }

/* ==========================================================
   4. HOME: HERO Y SECCIONES
   ========================================================== */
.hero-3d {
    position: relative; width: 100%; min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    background-color: var(--tk-bg-card); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-3d::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 250px; 
    background: linear-gradient(to bottom, rgba(12, 16, 23, 0) 0%, var(--tk-bg-card) 100%);
    z-index: 1; pointer-events: none;
}
#hero-threejs-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#hero-threejs-container canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-3d-content { position: relative; z-index: 2; width: 100%; max-width: 1000px; padding: 2rem; text-align: center; margin: 0 auto; }
.hero-3d-content p {
    color: rgba(255, 255, 255, 0.85) !important; font-size: clamp(1.1rem, 1.5vw + 0.6rem, 1.3rem);
    line-height: 1.6; max-width: 640px; margin: 0 auto 2.5rem; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}
.hero-title { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 0 1.5rem 0; line-height: 1.1; }
.hero-logo-svg { width: 100%; max-width: 450px; height: auto; margin-bottom: 1.5rem; filter: drop-shadow(0 8px 30px rgba(0, 229, 189, 0.25)); }
.hero-title span { color: var(--tk-cyan) !important; font-weight: 700; font-size: clamp(2rem, 5vw + 1rem, 4rem); letter-spacing: -0.03em; text-shadow: 0 4px 30px rgba(0, 229, 189, 0.3), 0 4px 15px rgba(0,0,0,0.8); }

/* Grids Home */
.tk-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.tk-grid-2x2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.tk-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Metodología (Tarjetas Glass) */
.tk-card-glass {
    background: rgba(18, 24, 36, 0.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 189, 0.15); border-radius: 12px; padding: 3rem; position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.tk-card-glass:hover { transform: translateY(-5px); border-color: rgba(0, 229, 189, 0.4); }
.tk-square-node { position: absolute; top: 1.5rem; right: 1.5rem; width: 10px; height: 10px; background-color: var(--tk-cyan); box-shadow: 0 0 12px var(--tk-cyan); }
.tk-card-glass .tk-title { margin: 0 0 1rem 0; font-size: 1.5rem; }

/* Animaciones SVG (Metodología) */
.tk-anim-container { width: 100%; height: 120px; margin-bottom: 1.5rem; overflow: hidden; position: relative; }
.tk-svg-anim { width: 100%; height: 100%; }
/* Doc Flow */
.tk-doc-flow { animation: docMove 6s infinite ease-in-out; }
@keyframes docMove {
    0%, 10% { transform: translateX(0); opacity: 0; }
    20%, 40% { transform: translateX(90px); opacity: 1; } 
    60%, 80% { transform: translateX(185px); opacity: 1; } 
    90%, 100% { transform: translateX(185px); opacity: 0; }
}
.tk-lens-check { animation: lensFade 6s infinite ease-in-out; transform-origin: 120px 60px; }
@keyframes lensFade {
    0%, 25% { opacity: 0; transform: scale(0.5); }
    35%, 55% { opacity: 1; transform: scale(1.1); }
    60%, 100% { opacity: 0; transform: scale(0.5); }
}
/* Stickman */
.tk-draw-box-1 { stroke-dasharray: 140; stroke-dashoffset: 140; animation: drawSeq1 6s infinite linear; }
@keyframes drawSeq1 { 0%, 10% { stroke-dashoffset: 140; } 45%, 100% { stroke-dashoffset: 0; } }
.tk-draw-box-2 { stroke-dasharray: 140; stroke-dashoffset: 140; animation: drawSeq2 6s infinite linear; }
@keyframes drawSeq2 { 0%, 45% { stroke-dashoffset: 140; } 55%, 100% { stroke-dashoffset: 0; } }
.tk-draw-box-3 { stroke-dasharray: 140; stroke-dashoffset: 140; animation: drawSeq3 6s infinite linear; }
@keyframes drawSeq3 { 0%, 55% { stroke-dashoffset: 140; } 65%, 100% { stroke-dashoffset: 0; } }
.tk-arm-draw { transform-origin: 70px 70px; animation: drawArm 6s infinite ease-in-out; }
@keyframes drawArm {
    0%, 10% { transform: rotate(0deg); }
    20% { transform: rotate(15deg); }
    30% { transform: rotate(35deg); }
    40% { transform: rotate(15deg); }
    45%, 100% { transform: rotate(0deg); }
}

/* Especializaciones (Home) */
.tk-services {
    position: relative; background-color: var(--tk-bg); overflow: hidden;
    width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; padding: 6rem 0;
}
.tk-gas-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: hidden; }
.tk-gas-blob {
    position: absolute; width: 40vw; height: 40vw; border-radius: 50%;
    filter: blur(100px); opacity: 0.15; background: var(--tk-cyan);
    bottom: -15%; right: -10%; transition: transform 0.6s cubic-bezier(0.1, 0.8, 0.2, 1); will-change: transform;
}
.tk-services .tk-container { position: relative; z-index: 1; }
.tk-services .tk-service-card { background: rgba(12, 16, 23, 0.95); backdrop-filter: blur(5px); }

.tk-service-card {
    background: var(--tk-bg-card); border-radius: 12px; padding: 2.5rem; position: relative;
    overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.03);
}
.tk-gradient-border-top { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--tk-purple), var(--tk-cyan)); }
.tk-service-card .tk-card-title { font-size: 1.3rem; margin: 0 0 1.5rem 0; color: var(--tk-white) !important; }
.tk-list { list-style: none; padding: 0; margin: 0; }
.tk-list li { position: relative; padding-left: 1.5rem; margin-bottom: 1rem; color: var(--tk-text-muted); line-height: 1.5; }
.tk-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background-color: var(--tk-cyan); box-shadow: 0 0 8px var(--tk-cyan); }

/* Casos de Éxito (Home) */
.tk-case-card { background: var(--tk-bg-card); padding: 0; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; transition: border-color 0.3s ease; overflow: hidden; }
.tk-case-card:hover { border-color: rgba(108, 28, 211, 0.5); }
.tk-case-image { width: 100%; height: 200px; overflow: hidden; position: relative; background: #121824; }
.tk-case-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tk-case-card:hover .tk-case-image img { transform: scale(1.05); }
.tk-case-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.tk-case-title { font-size: 1.25rem; margin: 0 0 0.3rem 0; color: var(--tk-white) !important; }
.tk-case-location { font-size: 0.9rem; color: var(--tk-cyan); margin-bottom: 1.5rem; font-weight: 500; }

/* Equipo (Home) */
.tk-team-member { background: var(--tk-bg-card); padding: 3rem 2rem; border-radius: 12px; border-top: 2px solid var(--tk-purple); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2); position: relative; overflow: hidden; }
.tk-team-avatar { width: 140px; height: 140px; margin: 0 auto 1.5rem auto; border-radius: 50%; overflow: hidden; border: 2px solid rgba(0, 229, 189, 0.3); background: #121824; }
.tk-team-avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tk-team-member:hover .tk-team-avatar img { transform: scale(1.10); }
.tk-team-name { font-size: 1.5rem; margin: 0 0 0.5rem 0; color: var(--tk-white) !important; }
.tk-team-role { color: var(--tk-cyan); font-weight: 600; font-size: 0.95rem; margin: 0 0 1.5rem 0; text-transform: uppercase; letter-spacing: 0.05em; }
.tk-social-links { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.tk-social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); color: var(--tk-text-muted); transition: all 0.3s ease; }
.tk-social-links a:hover { background: rgba(0, 229, 189, 0.15); color: var(--tk-cyan); transform: translateY(-3px); }
.tk-social-links svg { width: 18px; height: 18px; }

/* Contacto (Home) */
.tk-contact-box { background: var(--tk-bg-card); border-radius: 16px; padding: 4rem 2rem; text-align: center; border: 2px solid transparent; background: linear-gradient(var(--tk-bg-card), var(--tk-bg-card)) padding-box, linear-gradient(135deg, var(--tk-purple), var(--tk-cyan)) border-box; box-shadow: 0 0 40px rgba(108, 28, 211, 0.1); }
.tk-form { max-width: 700px; margin: 0 auto 3rem auto; display: flex; flex-direction: column; gap: 1.2rem; text-align: left; }
.tk-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

/* INPUTS CORREGIDOS CON !IMPORTANT PARA EVITAR GP */
.tk-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 1.2rem; 
    color: var(--tk-white) !important; 
    font-family: var(--tk-font); 
    font-size: 1rem; 
    transition: all 0.3s ease; 
    box-sizing: border-box; 
}
.tk-input:focus { outline: none; border-color: var(--tk-cyan) !important; background: rgba(0, 229, 189, 0.05) !important; box-shadow: 0 0 15px rgba(0, 229, 189, 0.1); }
.tk-input::placeholder { color: #5a6682 !important; }
.tk-select { appearance: none; cursor: pointer; color: #5a6682 !important; }
.tk-select option { background-color: var(--tk-bg-card); color: var(--tk-white); }
.tk-textarea { resize: vertical; min-height: 120px; }
.tk-btn-glow { background: var(--tk-cyan); color: var(--tk-bg); font-weight: 700; font-size: 1.1rem; padding: 1rem 2rem; border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 0 20px rgba(0, 229, 189, 0.45); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 1rem; width: 100%; }
.tk-btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0, 229, 189, 0.7); }
.tk-contact-info { display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.tk-info-link { color: var(--tk-text-muted); text-decoration: none; font-size: 1.05rem; font-weight: 500; transition: color 0.3s; }
.tk-info-link:hover { color: var(--tk-cyan); }
.tk-info-sep { color: rgba(255, 255, 255, 0.1); }

/* ==========================================================
   5. PÁGINAS INTERNAS: HERO Y RISPO
   ========================================================== */
.tk-hero-internal {
    position: relative;
    overflow: hidden;
    min-height: 56vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-top: 75px; 
    box-sizing: border-box; 
}

.tk-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem; 
    margin: 0; 
}
.tk-hero-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.tk-hero-content h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem !important; }
.tk-hero-content p { font-size: 1.2rem; color: var(--tk-text-muted) !important; margin: 0; }

/* Rispo (Servicios) */
.tk-rispo-section { padding: 4rem 0; }
.tk-rispo-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
    background: var(--tk-bg-dark); border: 1px solid rgba(108, 28, 211, 0.3);
    border-radius: 20px; padding: 4rem; position: relative; overflow: hidden;
}
.tk-rispo-grid::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(108, 28, 211, 0.1) 0%, transparent 50%); pointer-events: none;
}
.tk-rispo-text { position: relative; z-index: 2; }
.tk-rispo-text h2 { font-size: 2.5rem; margin-bottom: 1.5rem !important; }
.tk-rispo-text p { font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.6; color: var(--tk-text-muted) !important; }
.tk-rispo-features { list-style: none; padding: 0; margin: 0 0 2.5rem 0; }
.tk-rispo-features li { position: relative; padding-left: 2rem; margin-bottom: 1rem; color: #cbd5e1; }
.tk-rispo-features li::before { content: '■'; position: absolute; left: 0; top: 2px; color: var(--tk-cyan); font-size: 0.9rem; text-shadow: 0 0 8px var(--tk-cyan); }
.tk-rispo-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Chat UI (Rispo) */
.tk-chat-mockup { background: var(--tk-bg-card); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 1.5rem; box-shadow: 0 20px 40px rgba(0,0,0,0.5); position: relative; z-index: 2; }
.tk-chat-header { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 1rem; margin-bottom: 1rem; }
.tk-chat-avatar { width: 40px; height: 40px; background: linear-gradient(135deg, var(--tk-cyan), var(--tk-purple)); border-radius: 50%; }
.tk-chat-name { color: var(--tk-white); font-weight: 700; font-size: 0.95rem; }
.tk-chat-status { color: var(--tk-cyan); font-size: 0.75rem; }
.tk-chat-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); animation: chatAppear 0.5s ease forwards; }
.tk-chat-bubble.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; text-align: right; color: var(--tk-white); animation-delay: 1.5s; }
@keyframes chatAppear { to { opacity: 1; transform: translateY(0); } }
.tk-chat-status-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(0, 229, 189, 0.1); color: var(--tk-cyan); font-size: 0.8rem; font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 20px; margin-top: 1rem; opacity: 0; animation: chatAppear 0.5s ease forwards; animation-delay: 3s; }

/* Pipeline (Servicios) */
.tk-pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; position: relative; }
.tk-pipeline-card { background: var(--tk-bg-card); border: 1px solid rgba(255,255,255,0.05); padding: 2rem 1.5rem; border-radius: 12px; position: relative; z-index: 1; }
.tk-pipeline-card::after { content: ''; position: absolute; top: 50%; right: -1.5rem; width: 1.5rem; height: 2px; background: linear-gradient(90deg, var(--tk-cyan), var(--tk-purple)); z-index: -1; opacity: 0.3; }
.tk-pipeline-card:last-child::after { display: none; }
.tk-pipeline-card h3 { font-size: 1.1rem; margin-bottom: 1rem !important; color: var(--tk-cyan) !important; }
.tk-pipeline-card p { font-size: 0.9rem; color: var(--tk-text-muted) !important; margin: 0; }

/* ==========================================================
   6. PRECIOS (Servicios) Y PORTAFOLIO
   ========================================================== */
/* Precios */
.tk-pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; align-items: stretch; }
.tk-price-card { background: var(--tk-bg-card); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 2.5rem 2rem; display: flex; flex-direction: column; position: relative; transition: transform 0.3s ease; }
.tk-price-card:hover { transform: translateY(-5px); border-color: rgba(0, 229, 189, 0.3); }
.tk-price-card.is-popular { border: 2px solid var(--tk-cyan); background: #0a0f18; box-shadow: 0 0 30px rgba(0, 229, 189, 0.1); }
.tk-badge-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--tk-cyan); color: var(--tk-bg); font-size: 0.75rem; font-weight: 800; padding: 0.3rem 1rem; border-radius: 20px; text-transform: uppercase; }
.tk-price-title { font-size: 1.2rem; margin-bottom: 0.5rem !important; color: var(--tk-white) !important; }
.tk-price-amount { font-size: 2.6rem; font-weight: 800; color: var(--tk-cyan) !important; margin: 1rem 0 !important; line-height: 1 !important; }
.tk-price-amount span { font-size: 1rem; font-weight: 500; color: var(--tk-text-muted); display: block; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.tk-price-desc { color: var(--tk-text-muted) !important; font-size: 0.9rem; margin-bottom: 1.5rem !important; flex-grow: 1; }
.tk-price-features { list-style: none !important; padding: 0 !important; margin: 0 0 2rem 0 !important; }
.tk-price-features li { position: relative; padding-left: 1.5rem; margin-bottom: 0.8rem; color: #cbd5e1 !important; font-size: 0.95rem; line-height: 1.4; }
.tk-price-features li::before { content: '■'; position: absolute; left: 0; top: 2px; color: var(--tk-cyan); font-size: 0.8rem; text-shadow: 0 0 5px var(--tk-cyan); }

/* Portafolio Filtros */
.tk-filters { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.tk-filter-btn { background: transparent !important; border: 1px solid rgba(255,255,255,0.1) !important; color: var(--tk-text-muted) !important; padding: 0.6rem 1.5rem !important; border-radius: 50px !important; font-family: var(--tk-font) !important; font-weight: 600 !important; cursor: pointer !important; transition: all 0.3s ease !important; text-decoration: none !important; }
.tk-filter-btn.active { background: rgba(0, 229, 189, 0.1) !important; border-color: var(--tk-cyan) !important; color: var(--tk-cyan) !important; box-shadow: 0 0 15px rgba(0, 229, 189, 0.2) !important; }

/* Portafolio Grid */
.tk-portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.tk-project-card { background: var(--tk-bg-card); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: all 0.3s ease; padding: 0 !important; }
.tk-project-card:hover { border-color: rgba(0, 229, 189, 0.3); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.tk-project-media { position: relative; width: 100%; aspect-ratio: 16/10; background: #121824; overflow: hidden; cursor: pointer; }
.tk-project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tk-project-overlay { position: absolute; inset: 0; background: rgba(8, 11, 17, 0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(2px); }
.tk-project-card:hover .tk-project-overlay { opacity: 1; }
.tk-project-card:hover .tk-project-media img { transform: scale(1.05); }
.tk-play-btn { background: var(--tk-cyan); color: var(--tk-bg); padding: 0.8rem 1.5rem; border-radius: 50px; font-weight: 700; display: flex; align-items: center; gap: 8px; transform: translateY(10px); transition: all 0.3s ease; box-shadow: 0 0 20px rgba(0, 229, 189, 0.4); }
.tk-project-card:hover .tk-play-btn { transform: translateY(0); }
.tk-project-content { padding: 1.8rem; flex-grow: 1; display: flex; flex-direction: column; }
.tk-project-badge { display: inline-block; background: rgba(108, 28, 211, 0.15); color: #c4a1ff; font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 4px; margin-bottom: 1rem; align-self: flex-start; border: 1px solid rgba(108, 28, 211, 0.3); }
.tk-project-title { font-size: 1.3rem; margin-bottom: 0.3rem !important; color: var(--tk-white) !important; }
.tk-project-location { font-size: 0.85rem; color: var(--tk-cyan) !important; font-weight: 600; margin-bottom: 1rem; display: block; }
.tk-project-desc { color: var(--tk-text-muted) !important; font-size: 0.95rem; line-height: 1.5; margin-bottom: 1.5rem; flex-grow: 1; }
.tk-project-link { color: var(--tk-white) !important; text-decoration: none !important; font-weight: 600; display: flex; align-items: center; gap: 5px; transition: color 0.3s; }
.tk-project-link:hover { color: var(--tk-cyan) !important; }

/* Modal Lightbox */
.tk-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(8, 11, 17, 0.9); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.tk-modal.is-active { opacity: 1; pointer-events: auto; }
.tk-modal-content { width: 90%; max-width: 1000px; background: #000; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.8); transform: scale(0.95); transition: transform 0.3s ease; }
.tk-modal.is-active .tk-modal-content { transform: scale(1); }
.tk-modal-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.1); color: var(--tk-white); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.tk-modal-close:hover { background: var(--tk-cyan); color: var(--tk-bg); }
.tk-modal-body { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }
.tk-modal-body img, .tk-modal-body video, .tk-modal-body iframe { width: 100%; height: 100%; object-fit: contain; border: none; }

/* ==========================================================
   7. RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
    .tk-grid-3, .tk-rispo-grid, .tk-pipeline, .tk-pricing-grid, .tk-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .tk-rispo-grid { padding: 2rem; gap: 2rem; }
    .tk-pipeline-card::after { display: none; }
}

@media (max-width: 900px) {
    /* 1. Asegurar que el header no oculte el menú desplegable */
    .site-header, 
    .tk-glass-header {
        overflow: visible !important; 
    }

    /* 2. Botón Hamburguesa */
    .tk-menu-toggle { 
        display: flex !important; 
        z-index: 10000;
    }

    /* 3. El Menú: Pegado al 100% del header y con fondo sólido */
    .tk-nav, 
    .site-header .main-navigation,
    #site-navigation {
        position: absolute !important; /* Absolute respecto al header */
        top: 100% !important; /* Justo debajo del borde del header */
        left: 0 !important; 
        right: 0 !important; 
        width: 100% !important; 
        max-width: 100% !important;
        
        background: #080b11 !important; 
        background-color: #080b11 !important;
        background-image: none !important; 
        
        display: none; 
        padding: 1rem 0 !important; /* Un poco menos de padding para que se vea más compacto */
        margin: 0 !important;
        z-index: 999999 !important; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 1) !important;
        box-sizing: border-box !important;
    }

    .tk-nav.is-open,
    #site-navigation.is-open {
        display: block !important;
    }

    /* 4. La Lista (UL): Centrada y con fondo */
    .tk-nav ul,
    .site-header .main-navigation ul,
    #site-navigation ul {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important; 
        flex-wrap: wrap !important;
        gap: 1.5rem !important; 
        width: 100% !important;
        margin: 0 !important; 
        padding: 0 !important; 
        background: #080b11 !important; 
        list-style: none !important;
    }

    /* 5. Elementos (LI) */
    .tk-nav ul li,
    .site-header .main-navigation li,
    #site-navigation li {
        width: auto !important;
        float: none !important; 
        margin: 0 !important;
        padding: 0 !important;
        display: inline-block !important;
        background: #080b11 !important; 
    }

    /* 6. Enlaces (A) */
    .tk-nav ul li a,
    .site-header .main-navigation a,
    #site-navigation a {
        font-size: 0.95rem !important; 
        padding: 0.5rem 0.5rem !important; 
        display: block !important;
        color: #ffffff !important;
        text-align: center !important;
        text-decoration: none !important;
        background: transparent !important;
    }

    /* 7. Animación del icono a X */
    .tk-menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .tk-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
    .tk-menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

@media (max-width: 768px) {
    .tk-grid-2, .tk-grid-2x2, .tk-grid-3, .tk-rispo-grid, .tk-pipeline, .tk-pricing-grid, .tk-portfolio-grid { grid-template-columns: 1fr; }
    .tk-form-row { grid-template-columns: 1fr; }
    .tk-section { padding: 3rem 0 !important; }
    .tk-card-glass, .tk-service-card, .tk-contact-box, .tk-price-card { padding: 2rem 1.5rem; }
    .tk-info-sep { display: none; }
    .tk-contact-info { flex-direction: column; gap: 1rem; }
    .hero-title span, .tk-hero-content h1 { font-size: 2.2rem; }
}
/* ==========================================================
   CTA PORTAFOLIO (WHATSAPP)
   ========================================================== */
.tk-portfolio-cta {
    padding-top: 2rem !important;
    padding-bottom: 6rem !important;
}

.tk-cta-box {
    background: radial-gradient(circle at top, rgba(108, 28, 211, 0.15) 0%, transparent 70%), #0c1017;
    border: 1px solid rgba(0, 229, 189, 0.2);
    border-radius: 24px;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
    
    /* AÑADE ESTAS 3 LÍNEAS PARA CENTRAR TODO */
    display: flex;
    flex-direction: column;
    align-items: center; 
}

/* Resplandor sutil debajo del botón */
.tk-cta-box::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 100px;
    background: #00e5bd;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
}

/* Botón más grande para el CTA final */
.tk-btn-large {
    padding: 1.2rem 2.5rem !important;
    font-size: 1.1rem !important;
    border-radius: 12px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tk-btn-large:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 40px rgba(0, 229, 189, 0.6) !important;
}
/* ==========================================================
   FIX: ANCHO DE SECCIONES Y CENTRADO DE BOTONES (HOME)
   ========================================================== */

/* 1. Limitar el ancho de las secciones que no tienen .tk-container */
.tk-methodology,
.tk-cases,
.tk-team {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    box-sizing: border-box !important;
}

/* 2. Centrar los botones que están sueltos al final de las secciones */
.tk-section-footer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 3rem !important; /* Margen superior solicitado */
    margin-bottom: 2rem !important;
}
/* ==========================================================
   DESTACADO: BOTÓN RISPO EN EL MENÚ
   ========================================================== */

/* Estilo base del botón */
.tk-glass-header .main-navigation .menu-item-rispo > a,
.site-header .main-navigation .menu-item-rispo > a {
    border: 1px solid var(--tk-cyan) !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
    color: var(--tk-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 229, 189, 0.15) !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
    line-height: 1 !important;
    display: inline-block;
}

/* Efecto Hover (Relleno Cian) */
.tk-glass-header .main-navigation .menu-item-rispo > a:hover,
.site-header .main-navigation .menu-item-rispo > a:hover {
    background-color: var(--tk-cyan) !important;
    color: var(--tk-bg) !important; /* El texto se vuelve oscuro */
    box-shadow: 0 0 25px rgba(0, 229, 189, 0.6) !important;
    transform: translateY(-2px);
}

/* Ocultar la línea de hover inferior (la que tienen los demás enlaces) */
.tk-glass-header .main-navigation .menu-item-rispo > a::after,
.site-header .main-navigation .menu-item-rispo > a::after {
    display: none !important;
}

/* Ajuste específico para móviles */
@media (max-width: 900px) {
    .tk-nav ul li.menu-item-rispo a {
        display: inline-block !important;
        margin-top: 5px;
        padding: 10px 20px !important;
    }
}