/* ============================================
   VARIABLES DE TEMA
   ============================================ */

:root[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #141414;
    --bg-card: #141414;
    --text-primary: #e8e8e8;
    --text-secondary: #b8b8b8;
    --text-tertiary: #888888;
    --border-color: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.15);
    --overlay-start: rgba(0, 0, 0, 0.75);
    --overlay-end: rgba(10, 10, 20, 0.85);
    --glow-color: rgba(255, 255, 255, 0.1);
    --ai-bg: #1a1a1a;
    --ai-user-bg: #2a2a2a;
    /* Variables IA Dark */
    --ai-primary: #00ff9d;
    --ai-secondary: #6366f1;
    --ai-border: rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-tertiary: #f0f0f0;
    --bg-card: #ffffff;
    --text-primary: #0a0a0a;
    --text-secondary: #2a2a2a;
    --text-tertiary: #4a4a4a;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.2);
    --overlay-start: rgba(255, 255, 255, 0.75);
    --overlay-end: rgba(245, 245, 250, 0.85);
    --glow-color: rgba(0, 0, 0, 0.05);
    --ai-bg: #f5f5f5;
    --ai-user-bg: #e8e8e8;
    /* Variables IA Light */
    --ai-primary: #00cc7d;
    --ai-secondary: #5558e8;
    --ai-border: rgba(0, 0, 0, 0.08);
}

/* Fix contraste en modo claro */
:root[data-theme="light"] .hero h1,
:root[data-theme="light"] .hero-subtitle {
    color: #0a0a0a !important;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

:root[data-theme="light"] .trust-line {
    color: #2a2a2a !important;
}

:root[data-theme="light"] .roadmap-card h3,
:root[data-theme="light"] .roadmap-card p {
    color: #0a0a0a !important;
}

:root[data-theme="light"] .card-status {
    color: #0a0a0a !important;
}

:root[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .nav a {
    color: #4a4a4a;
}

:root[data-theme="light"] .nav a:hover,
:root[data-theme="light"] .nav a.active {
    color: #0a0a0a;
}

/* ============================================
   LOADER / PANTALLA DE CARGA PREMIUM (NODO)
   ============================================ */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999; /* Siempre encima de todo */
    background-color: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s;
}

#loader-wrapper.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Contenedor del Logo */
.loader-content {
    position: relative;
    margin-bottom: 40px;
    text-align: center;
}

/* Logo NODO Gigante */
.loader-logo-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 70px;
    font-weight: 800;
    letter-spacing: 5px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.loader-n {
    position: relative;
    color: #ffffff;
}

/* Efecto Glitch Tech en la 'N' */
.loader-n::before, .loader-n::after {
    content: 'N';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
}

.loader-n::before {
    color: #00ff9d; /* Verde NODO */
    z-index: -1;
    clip-path: inset(0 0 0 0);
    animation: glitch-1 2.5s infinite linear alternate-reverse;
}

.loader-n::after {
    color: #6366f1; /* Violeta Secundario */
    z-index: -2;
    clip-path: inset(0 0 0 0);
    animation: glitch-2 2.5s infinite linear alternate-reverse;
}

/* Barra de progreso */
.loader-bar-bg {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.loader-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff9d, #6366f1);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.5);
    animation: loadProgress 2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Animaciones */
@keyframes loadProgress {
    0% { width: 0%; }
    20% { width: 15%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

@keyframes glitch-1 {
    0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px, 1px); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); }
    40% { clip-path: inset(40% 0 50% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(10% 0 60% 0); transform: translate(-1px, 1px); }
    100% { clip-path: inset(30% 0 30% 0); transform: translate(1px, -1px); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(10% 0 60% 0); transform: translate(2px, -1px); }
    20% { clip-path: inset(80% 0 5% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(30% 0 20% 0); transform: translate(2px, 1px); }
    60% { clip-path: inset(10% 0 80% 0); transform: translate(-1px, -2px); }
    80% { clip-path: inset(50% 0 30% 0); transform: translate(1px, 2px); }
    100% { clip-path: inset(20% 0 70% 0); transform: translate(-2px, 1px); }
}
/* ============================================
   RESET Y BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   CONTENEDOR GENERAL
   ============================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ============================================
   HEADER / NAVEGACIÓN
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-n {
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 28px;
    position: relative;
}

.logo-n::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ffffff 50%, transparent 100%);
}

.logo-text {
    font-weight: 600;
    letter-spacing: 3px;
}

.nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav a {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: #ffffff;
}

.nav a.active::after {
    width: 100%;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: rotate(180deg);
}

.theme-toggle svg {
    position: absolute;
    transition: all 0.3s ease;
}

.sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

:root[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

:root[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

@media (max-width: 768px) {
    .nav {
        gap: 20px;
    }
    
    .nav a {
        font-size: 14px;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    animation: subtle-zoom 20s ease-in-out infinite alternate;
}

@keyframes subtle-zoom {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--overlay-start) 0%, var(--overlay-end) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #ffffff;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    color: #c8c8c8;
    margin-bottom: 50px;
    font-weight: 300;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #0a0a0a;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

/* Trust Line */
.trust-line {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 18px 40px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
    font-size: 14px;
    color: #b0b0b0;
    letter-spacing: 0.3px;
}

.trust-line .separator {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

@media (max-width: 768px) {
    .trust-line {
        flex-direction: column;
        gap: 8px;
        padding: 15px 25px;
        bottom: 40px;
        font-size: 12px;
    }
    
    .trust-line .separator {
        display: none;
    }
}

/* ============================================
   SOBRE NODO
   ============================================ */

.about {
    padding: 140px 0;
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    margin-bottom: 35px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.about-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Value Badges */
.value-badges {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 18px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.badge-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-image img {
        height: 400px;
    }
}

/* ============================================
   SERVICIOS
   ============================================ */

.services {
    padding: 140px 0;
    background: var(--bg-primary);
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    text-align: center;
    margin-bottom: 80px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--glow-color) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.service-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.service-content {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.service-header h3 {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

.service-duration {
    font-size: 13px;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    font-weight: 500;
}

.service-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.service-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tag {
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.service-card:hover .tag {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.08);
}

.service-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.price-ars {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.price-usd {
    font-size: 14px;
    color: var(--text-tertiary);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   METODOLOGÍA
   ============================================ */

.methodology {
    padding: 140px 0;
    background: var(--bg-secondary);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: -50px;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.method-step {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.method-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--glow-color) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    pointer-events: none;
}

.method-step:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.method-step:hover::before {
    opacity: 1;
}

.step-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1;
}

.method-step h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.method-step p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .method-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ROAD MAP - VERSIÓN MEJORADA
   ============================================ */

/* Sección principal */
.roadmap-section {
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
    padding: 120px 0;
    border-top: 1px solid rgba(0, 255, 157, 0.1);
    position: relative;
    overflow: hidden;
}

.roadmap-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 255, 157, 0.2) 20%, 
        rgba(0, 255, 157, 0.2) 80%, 
        transparent 100%
    );
    z-index: 0;
}

/* Header */
.roadmap-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 100px;
    position: relative;
    z-index: 1;
}

.roadmap-subtitle {
    color: var(--green);
    font-size: 11px;
    letter-spacing: 5px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 20px;
    background: rgba(0, 255, 157, 0.05);
    border: 1px solid rgba(0, 255, 157, 0.2);
    border-radius: 30px;
    position: relative;
}

.roadmap-subtitle::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 1px;
    background: var(--green);
}

.roadmap-subtitle::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 1px;
    background: var(--green);
}

.roadmap-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roadmap-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Grid */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 35px;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cards */
.roadmap-card {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.roadmap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.roadmap-card:hover {
    border-color: rgba(0, 255, 157, 0.3);
    transform: translateY(-8px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 255, 157, 0.1);
}

.roadmap-card:hover::before {
    opacity: 1;
}

/* Estados de las cards */
.roadmap-card.in-progress {
    border-left: 3px solid rgba(255, 170, 0, 0.5);
}

.roadmap-card.finished {
    border-left: 3px solid rgba(0, 255, 157, 0.5);
}

.roadmap-card.ongoing {
    border-left: 3px solid rgba(99, 102, 241, 0.5);
}

/* Status badge */
.card-status {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: ripple 2s infinite;
}

.pulse {
    background: #ffaa00;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.6);
}

.pulse::after {
    background: #ffaa00;
}

.green {
    background: var(--green);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.6);
}

.green::after {
    background: var(--green);
}

.blue {
    background: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

.blue::after {
    background: #6366f1;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Contenido de la card */
.card-content {
    flex-grow: 1;
}

.roadmap-card h3 {
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.light-text {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    font-size: 19px;
}

.card-type {
    font-family: var(--font-code, 'Courier New', monospace);
    font-size: 11px;
    color: var(--green);
    margin-bottom: 25px;
    border: 1px solid rgba(0, 255, 157, 0.25);
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(0, 255, 157, 0.05);
    letter-spacing: 0.5px;
}

.roadmap-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 25px;
}

.card-highlight {
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid rgba(255, 255, 255, 0.8);
    padding: 18px 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 25px;
    margin-bottom: 35px;
    border-radius: 0 8px 8px 0;
    line-height: 1.6;
}

.card-highlight strong {
    color: #ffffff;
    font-weight: 600;
}

/* Botón */
.btn-info {
    width: 100%;
    padding: 16px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-info::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.4s;
}

.btn-info:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-info:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn-info:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .roadmap-section {
        padding: 80px 0;
    }
    
    .roadmap-header {
        margin-bottom: 60px;
    }
    
    .roadmap-subtitle::before,
    .roadmap-subtitle::after {
        display: none;
    }
    
    .roadmap-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    
    .roadmap-card {
        padding: 35px 25px;
        min-height: auto;
    }
    
    .roadmap-card h3 {
        font-size: 22px;
    }
    
    .light-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .roadmap-title {
        font-size: 32px;
    }
    
    .roadmap-desc {
        font-size: 16px;
    }
    
    .roadmap-card {
        padding: 30px 20px;
    }
}

/* ============================================
   CONTACTO
   ============================================ */

.contact {
    padding: 140px 0;
    background: var(--bg-secondary);
    text-align: center;
}

.contact-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: -50px;
    margin-bottom: 60px;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-email {
    display: inline-block;
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 60px;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
}

.contact-email:hover {
    color: var(--text-secondary);
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    color: var(--text-primary);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .contact-email {
        font-size: 22px;
    }
    
    .social-links {
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .social-link {
        justify-content: center;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: #050505;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-tagline {
    color: #707070;
    font-size: 15px;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.footer-col a {
    color: #888888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: #606060;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.footer-legal {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-legal a {
    color: #707070;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ffffff;
}

.footer-legal span {
    color: #404040;
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 568px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ============================================
   NODO STUDIO - AI ASSISTANT PREMIUM
   Variables CSS personalizadas
   ============================================ */
:root {
    --ai-primary: #00ff9d;
    --ai-primary-rgb: 0, 255, 157;
    --ai-secondary: #6366f1;
    --ai-secondary-rgb: 99, 102, 241;
    --ai-accent: #f59e0b;
    --ai-bg: rgba(10, 10, 10, 0.98);
    --ai-border: rgba(255, 255, 255, 0.08);
    --bg-card: rgba(20, 20, 20, 0.95);
    --glass-bg: rgba(20, 20, 20, 0.7);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.4);
}

/* ============================================
   BOTÓN FLOTANTE PREMIUM CON PARTÍCULAS
   ============================================ */
.ai-assistant-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid rgba(var(--ai-primary-rgb), 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ai-primary);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9998;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(var(--ai-primary-rgb), 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.ai-assistant-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-assistant-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.ai-assistant-btn:hover::before,
.ai-assistant-btn:hover::after {
    opacity: 1;
}

.ai-assistant-btn:hover {
    transform: translateY(-12px) scale(1.15);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.9),
        0 0 100px rgba(var(--ai-primary-rgb), 0.6);
    border-color: var(--ai-primary);
}

.ai-assistant-btn:active {
    transform: translateY(-10px) scale(1.08);
    transition: all 0.1s ease;
}

/* Pulsos animados mejorados */
.ai-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--ai-primary);
    animation: aiPulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
}

.ai-pulse:nth-child(2) {
    animation-delay: 1s;
}

.ai-pulse:nth-child(3) {
    animation-delay: 2s;
}

@keyframes aiPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.ai-icon {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(var(--ai-primary-rgb), 0.8));
    animation: iconFloat 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.ai-assistant-btn:hover .ai-icon {
    transform: scale(1.1) rotate(10deg);
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(5deg); }
}

/* Badge mejorado */
.ai-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
    color: #000;
    font-size: 8px;
    font-weight: 900;
    padding: 6px 9px;
    border-radius: 16px;
    box-shadow: 
        0 6px 20px rgba(var(--ai-primary-rgb), 0.7),
        0 0 30px rgba(var(--ai-primary-rgb), 0.4);
    animation: badgePulse 2.5s ease-in-out infinite;
    line-height: 1;
    text-align: center;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 6px 20px rgba(var(--ai-primary-rgb), 0.7);
    }
    50% { 
        transform: scale(1.2); 
        box-shadow: 0 8px 30px rgba(var(--ai-primary-rgb), 1);
    }
}

/* ============================================
   OVERLAY CON GLASSMORPHISM
   ============================================ */
.ai-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.ai-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   PANEL PRINCIPAL - GLASSMORPHISM AVANZADO
   ============================================ */
.ai-assistant-panel {
    position: fixed;
    top: 0;
    right: -550px;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: linear-gradient(
        135deg,
        rgba(20, 20, 20, 0.95) 0%,
        rgba(10, 10, 10, 0.98) 100%
    );
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 
        -25px 0 100px rgba(0, 0, 0, 0.95),
        -2px 0 0 rgba(var(--ai-primary-rgb), 0.15),
        inset 1px 0 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: right 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
    border-left: 1px solid rgba(var(--ai-primary-rgb), 0.15);
}

.ai-assistant-panel.active {
    right: 0;
}

/* Efecto de partículas de fondo */
.ai-assistant-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(var(--ai-primary-rgb), 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(var(--ai-secondary-rgb), 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   HEADER PREMIUM
   ============================================ */
.ai-panel-header {
    padding: 30px 28px;
    background: linear-gradient(
        180deg, 
        rgba(20, 20, 20, 0.98) 0%, 
        rgba(20, 20, 20, 0.85) 100%
    );
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(var(--ai-primary-rgb), 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.ai-panel-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(var(--ai-primary-rgb), 0.6) 50%, 
        transparent 100%
    );
    opacity: 0.5;
    animation: headerGlow 4s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { 
        opacity: 0.5; 
        transform: scaleX(1);
    }
    50% { 
        opacity: 1; 
        transform: scaleX(0.95);
    }
}

.ai-title-container {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ai-title-container svg {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 0 15px rgba(var(--ai-primary-rgb), 0.7));
    animation: logoRotate 25s linear infinite;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-title-container:hover svg {
    animation-play-state: paused;
    transform: scale(1.15) rotate(20deg);
}

@keyframes logoRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ai-header-info h3 {
    font-size: 26px;
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffffff 0%, var(--ai-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.7px;
    animation: titleShimmer 3s ease-in-out infinite;
}

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

.ai-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.ai-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--ai-primary);
    background: rgba(var(--ai-primary-rgb), 0.12);
    padding: 6px 14px;
    border-radius: 24px;
    border: 1px solid rgba(var(--ai-primary-rgb), 0.3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(var(--ai-primary-rgb), 0.15);
}

.status-dot-pulse {
    width: 8px;
    height: 8px;
    background: var(--ai-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--ai-primary);
    animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 15px var(--ai-primary);
    }
    50% { 
        opacity: 0.3; 
        transform: scale(0.7);
        box-shadow: 0 0 5px var(--ai-primary);
    }
}

/* Botones de control del header */
.ai-header-controls {
    display: flex;
    gap: 10px;
}

.ai-control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ai-border);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.ai-control-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(var(--ai-primary-rgb), 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.ai-control-btn:hover::before {
    opacity: 1;
}

.ai-control-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(var(--ai-primary-rgb), 0.5);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 5px 20px rgba(var(--ai-primary-rgb), 0.3);
}

.ai-control-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Botón de cerrar con animación especial */
.ai-close-btn {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.ai-close-btn::before {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.3) 0%, transparent 70%);
}

.ai-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-3px) scale(1.08) rotate(90deg);
}

.ai-close-btn:active {
    transform: translateY(-1px) scale(0.98) rotate(90deg);
}

.ai-close-btn i {
    font-size: 18px;
    font-weight: 600;
}

/* ============================================
   WELCOME SECTION PREMIUM
   ============================================ */
.ai-welcome-section {
    padding: 28px;
    background: linear-gradient(
        180deg, 
        rgba(20, 20, 20, 0.5) 0%, 
        transparent 100%
    );
    border-bottom: 1px solid rgba(var(--ai-primary-rgb), 0.08);
    position: relative;
    z-index: 1;
}

.ai-welcome-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(var(--ai-primary-rgb), 0.15);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ai-welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle, 
        rgba(var(--ai-primary-rgb), 0.1) 0%, 
        transparent 70%
    );
    animation: welcomeGlow 10s ease-in-out infinite;
}

@keyframes welcomeGlow {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
    }
    50% { 
        transform: translate(15%, 15%) rotate(180deg); 
    }
}

.ai-welcome-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 
        0 12px 35px rgba(var(--ai-primary-rgb), 0.5),
        0 0 50px rgba(var(--ai-primary-rgb), 0.3);
    position: relative;
    animation: iconBounce 2.5s ease-in-out infinite;
}

.ai-welcome-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
    filter: blur(15px);
    opacity: 0.6;
    z-index: -1;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.ai-welcome-card h4 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.3px;
}

.ai-welcome-card p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* ============================================
   QUICK ACTIONS COLAPSABLE
   ============================================ */
.ai-quick-actions {
    padding: 0;
    background: rgba(20, 20, 20, 0.5);
    border-bottom: 1px solid rgba(var(--ai-primary-rgb), 0.08);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 200px;
}

.ai-quick-actions.collapsed {
    max-height: 60px;
}

.quick-actions-header {
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.quick-actions-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.quick-actions-header:active {
    background: rgba(255, 255, 255, 0.06);
}

.quick-actions-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-secondary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.quick-actions-label i {
    color: var(--ai-primary);
    font-size: 14px;
}

.quick-actions-toggle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(var(--ai-primary-rgb), 0.1);
    border: 1px solid rgba(var(--ai-primary-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--ai-primary);
}

.quick-actions-toggle i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-quick-actions.collapsed .quick-actions-toggle i {
    transform: rotate(180deg);
}

.quick-actions-toggle:hover {
    background: rgba(var(--ai-primary-rgb), 0.15);
    border-color: rgba(var(--ai-primary-rgb), 0.4);
    transform: scale(1.1);
}

.quick-actions-content {
    padding: 0 28px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.ai-quick-actions.collapsed .quick-actions-content {
    opacity: 0;
    pointer-events: none;
}

.quick-action-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(var(--ai-primary-rgb), 0.15);
    padding: 13px 20px;
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(var(--ai-primary-rgb), 0.2), 
        transparent
    );
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-action-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.quick-action-btn:hover::before {
    left: 100%;
}

.quick-action-btn:hover::after {
    opacity: 0.15;
}

.quick-action-btn:hover {
    background: rgba(var(--ai-primary-rgb), 0.15);
    border-color: var(--ai-primary);
    color: var(--ai-primary);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 8px 25px rgba(var(--ai-primary-rgb), 0.3),
        0 0 40px rgba(var(--ai-primary-rgb), 0.15);
}

.quick-action-btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* ============================================
   CHAT CONTAINER CON SCROLL PREMIUM
   ============================================ */
.ai-chat-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: linear-gradient(
        180deg,
        rgba(var(--ai-primary-rgb), 0.02) 0%,
        transparent 30%,
        transparent 70%,
        rgba(var(--ai-secondary-rgb), 0.02) 100%
    );
    position: relative;
    z-index: 1;
    scroll-behavior: smooth;
}

.ai-chat-container::-webkit-scrollbar {
    width: 8px;
}

.ai-chat-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin: 10px 0;
}

.ai-chat-container::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg, 
        rgba(var(--ai-primary-rgb), 0.4), 
        rgba(var(--ai-secondary-rgb), 0.4)
    );
    border-radius: 12px;
    border: 2px solid rgba(10, 10, 10, 0.5);
    transition: background 0.3s;
}

.ai-chat-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg, 
        rgba(var(--ai-primary-rgb), 0.7), 
        rgba(var(--ai-secondary-rgb), 0.7)
    );
}

/* ============================================
   MESSAGES CON ANIMACIONES FLUIDAS
   ============================================ */
.ai-message {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    opacity: 0;
    animation: messageSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-message-user {
    flex-direction: row-reverse;
}

.ai-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.ai-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.ai-avatar:hover::before {
    opacity: 1;
}

.ai-avatar-assistant {
    background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
    color: #000;
    animation: avatarPulse 4s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { 
        box-shadow: 0 6px 20px rgba(var(--ai-primary-rgb), 0.5); 
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 10px 35px rgba(var(--ai-primary-rgb), 0.7); 
        transform: scale(1.05);
    }
}

.ai-message-user .ai-avatar {
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    color: #000;
}

.ai-message-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    padding: 20px 24px;
    border-radius: 20px;
    border: 1px solid rgba(var(--ai-primary-rgb), 0.12);
    position: relative;
    max-width: 85%;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.ai-message-content:hover {
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(var(--ai-primary-rgb), 0.2);
}

.ai-message-user .ai-message-content {
    background: linear-gradient(
        135deg, 
        rgba(var(--ai-primary-rgb), 0.18) 0%, 
        rgba(var(--ai-secondary-rgb), 0.18) 100%
    );
    border: 1px solid rgba(var(--ai-primary-rgb), 0.3);
    box-shadow: 
        0 6px 20px rgba(var(--ai-primary-rgb), 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Speech bubble arrows mejorados */
.ai-message-content::before {
    content: '';
    position: absolute;
    top: 16px;
    width: 0;
    height: 0;
    border-style: solid;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.ai-message:not(.ai-message-user) .ai-message-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent rgba(255, 255, 255, 0.06) transparent transparent;
}

.ai-message-user .ai-message-content::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent rgba(var(--ai-primary-rgb), 0.18);
}

.ai-message-content p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.ai-message-content p:last-child {
    margin-bottom: 0;
}

.ai-message-content strong {
    color: var(--ai-primary);
    font-weight: 700;
}

.ai-message-content a {
    color: var(--ai-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--ai-primary-rgb), 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-message-content a:hover {
    color: var(--ai-secondary);
    border-bottom-color: var(--ai-secondary);
    background: rgba(var(--ai-secondary-rgb), 0.1);
    padding: 2px 6px;
    margin: -2px -6px;
    border-radius: 6px;
}

/* Timestamp */
.ai-message-timestamp {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.ai-message-content:hover .ai-message-timestamp {
    opacity: 1;
}

/* Quick Reply Chips */
.ai-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    animation: chipsSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
}

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

.quick-reply-chip {
    background: rgba(var(--ai-primary-rgb), 0.12);
    border: 1px solid rgba(var(--ai-primary-rgb), 0.3);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--ai-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.quick-reply-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.quick-reply-chip:hover::before {
    opacity: 0.2;
}

.quick-reply-chip:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(var(--ai-primary-rgb), 0.4);
    border-color: var(--ai-primary);
}

.quick-reply-chip:active {
    transform: translateY(-1px) scale(0.98);
}

/* ============================================
   TYPING INDICATOR MEJORADO
   ============================================ */
.ai-typing-indicator {
    display: none;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: messageSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.typing-dots {
    display: flex;
    gap: 8px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    border: 1px solid rgba(var(--ai-primary-rgb), 0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.typing-dots span {
    width: 10px;
    height: 10px;
    background: var(--ai-primary);
    border-radius: 50%;
    animation: typingDots 1.6s infinite ease-in-out;
    box-shadow: 0 0 15px rgba(var(--ai-primary-rgb), 0.6);
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDots {
    0%, 60%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
        box-shadow: 0 0 10px rgba(var(--ai-primary-rgb), 0.4);
    }
    30% {
        transform: translateY(-16px) scale(1.2);
        opacity: 1;
        box-shadow: 0 0 20px rgba(var(--ai-primary-rgb), 0.8);
    }
}

/* ============================================
   INPUT CONTAINER PREMIUM
   ============================================ */
.ai-input-container {
    padding: 24px 28px 30px;
    background: linear-gradient(
        180deg, 
        transparent 0%, 
        rgba(20, 20, 20, 0.9) 100%
    );
    border-top: 1px solid rgba(var(--ai-primary-rgb), 0.12);
    position: relative;
    z-index: 2;
}

.ai-input-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(var(--ai-primary-rgb), 0.15);
    border-radius: 20px;
    padding: 16px 20px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    backdrop-filter: blur(15px);
}

.ai-input-wrapper::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 20px;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.ai-input-wrapper::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.ai-input-wrapper:focus-within::before,
.ai-input-wrapper:focus-within::after {
    opacity: 1;
}

.ai-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 30px rgba(var(--ai-primary-rgb), 0.2),
        0 0 0 5px rgba(var(--ai-primary-rgb), 0.1);
}

.ai-input-icon {
    color: var(--text-tertiary);
    flex-shrink: 0;
    transition: all 0.3s;
}

.ai-input-wrapper:focus-within .ai-input-icon {
    color: var(--ai-primary);
    filter: drop-shadow(0 0 10px rgba(var(--ai-primary-rgb), 0.6));
}

.ai-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    font-family: inherit;
    line-height: 1.5;
}

.ai-input::placeholder {
    color: var(--text-tertiary);
}

.ai-send-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #000;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(var(--ai-primary-rgb), 0.5);
    position: relative;
    overflow: hidden;
}

.ai-send-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.ai-send-btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.ai-send-btn:hover::before,
.ai-send-btn:hover::after {
    opacity: 1;
}

.ai-send-btn:hover {
    transform: scale(1.2) rotate(25deg);
    box-shadow: 0 10px 35px rgba(var(--ai-primary-rgb), 0.7);
}

.ai-send-btn:active {
    transform: scale(1.05) rotate(15deg);
}

.ai-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 0 8px;
}

.ai-powered {
    font-size: 11px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.ai-shortcut {
    font-size: 11px;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.07);
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(var(--ai-primary-rgb), 0.15);
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.ai-shortcut:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--ai-primary-rgb), 0.3);
    color: var(--ai-primary);
}

/* ============================================
   RESPONSIVE DESIGN MEJORADO
   ============================================ */
@media (max-width: 768px) {
    .ai-assistant-panel {
        max-width: 100%;
        right: -100%;
    }
    
    .ai-assistant-btn {
        bottom: 24px;
        left: 24px;
        width: 64px;
        height: 64px;
    }
    
    .ai-panel-header {
        padding: 24px 22px;
    }
    
    .ai-header-info h3 {
        font-size: 22px;
    }
    
    .ai-welcome-section,
    .ai-chat-container,
    .ai-input-container {
        padding: 22px;
    }

    .quick-actions-header {
        padding: 16px 22px;
    }

    .quick-actions-content {
        padding: 0 22px 20px;
    }
    
    .ai-message-content {
        max-width: 90%;
    }

    .quick-action-btn {
        font-size: 12px;
        padding: 11px 16px;
    }
}

@media (max-width: 480px) {
    .ai-assistant-btn {
        width: 60px;
        height: 60px;
        bottom: 18px;
        left: 18px;
    }
    
    .ai-badge {
        font-size: 7px;
        padding: 5px 8px;
    }

    .ai-panel-header {
        padding: 20px 18px;
    }

    .ai-header-info h3 {
        font-size: 20px;
    }

    .ai-welcome-section,
    .ai-chat-container,
    .ai-input-container {
        padding: 18px;
    }

    .quick-actions-header {
        padding: 14px 18px;
    }

    .quick-actions-content {
        padding: 0 18px 18px;
        gap: 10px;
    }

    .ai-welcome-icon {
        width: 60px;
        height: 60px;
    }

    .ai-avatar {
        width: 40px;
        height: 40px;
    }

    .quick-action-btn {
        font-size: 11px;
        padding: 10px 14px;
        flex: 1 1 calc(50% - 5px);
        min-width: 140px;
    }

    .ai-input-wrapper {
        padding: 14px 18px;
    }

    .ai-send-btn {
        width: 44px;
        height: 44px;
    }

    .ai-control-btn {
        width: 38px;
        height: 38px;
    }
}

/* ============================================
   UTILIDADES Y ESTADOS
   ============================================ */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scale-in {
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   final del code de la ia
   ============================================ */

/* ============================================
   DARK MODE ENHANCEMENTS
   ============================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --ai-bg: rgba(8, 8, 8, 0.98);
        --bg-card: rgba(15, 15, 15, 0.95);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para teclado */
.ai-assistant-btn:focus-visible,
.ai-close-btn:focus-visible,
.quick-action-btn:focus-visible,
.ai-send-btn:focus-visible {
    outline: 2px solid var(--ai-primary);
    outline-offset: 2px;
}

.ai-input:focus-visible {
    outline: none;
}

/* ============================================
   ANIMACIONES Y TRANSICIONES
   ============================================ */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.service-card,
.method-step {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card.visible,
.method-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-bg {
        animation: none;
    }
    
    .badge-icon {
        animation: none;
    }
    
    .ai-pulse {
        animation: none;
    }
}

/* ESTILOS BARRA PROGRESO */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #00ff9d, #6366f1); /* Gradiente NODO */
    z-index: 99999;
    transition: width 0.1s;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

/* ============================================
   ADD-ON: SELECCIÓN DE TEXTO BRANDING
   ============================================ */
::selection {
    background-color: #00ff9d; /* Verde NODO */
    color: #000000; /* Texto negro para contraste */
    text-shadow: none;
}

/* Para compatibilidad con Firefox */
::-moz-selection {
    background-color: #00ff9d;
    color: #000000;
    text-shadow: none;
}

/* ============================================
   ADD-ON: SCROLLBAR PERSONALIZADO
   ============================================ */

/* Ancho de la barra */
::-webkit-scrollbar {
    width: 8px;
}

/* El fondo de la barra (el carril) */
::-webkit-scrollbar-track {
    background: #050505; /* Casi negro, se funde con el fondo */
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* La barra que se mueve (el pulgar) */
::-webkit-scrollbar-thumb {
    background: #333; /* Gris oscuro elegante por defecto */
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.5);
}

/* Cuando pasas el mouse por la barra */
::-webkit-scrollbar-thumb:hover {
    background: #00ff9d; /* VERDE NODO al interactuar */
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.4); /* Pequeño brillo */
}

/* ============================================
   ADD-ON: PROTECCIÓN LOOK APP
   ============================================ */
img, a {
    -webkit-user-drag: none; /* Chrome/Safari */
    user-select: none; /* No permite seleccionar la imagen como texto */
    -moz-user-select: none; /* Firefox */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE/Edge */
}

/* Permitimos seleccionar texto normal en párrafos y títulos para que sea útil */
p, h1, h2, h3, h4, span, div {
    user-select: text;
    -webkit-user-select: text;
}

/* ============================================
   ADD-ON: FEEDBACK BOTÓN WHATSAPP
   ============================================ */
.btn-info:active {
    background-color: #25D366 !important; /* Verde Oficial WhatsApp */
    border-color: #25D366 !important;
    color: #ffffff !important;
    transform: scale(0.98) translateY(2px) !important; /* Efecto de presión */
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.6) !important; /* Resplandor */
    transition: all 0.1s !important;
}

/* ============================================
   ADD-ON: SPOTLIGHT EFFECT
   ============================================ */

/* Preparamos las tarjetas para recibir la luz */
.service-card, .roadmap-card {
    position: relative; /* Necesario para que la luz se quede dentro */
    /* No tocamos nada más de la estructura original */
}

/* Creamos la capa de luz */
.service-card::after, .roadmap-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit; /* Copia el borde redondeado de la tarjeta */
    
    /* El efecto mágico: Un degradado radial que sigue al mouse */
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y), 
        rgba(0, 255, 157, 0.10), /* Color Verde NODO muy suave */
        transparent 40%
    );
    
    opacity: 0; /* Invisible por defecto */
    transition: opacity 0.5s ease; /* Aparece suavemente */
    pointer-events: none; /* Permite hacer clic a través de la luz */
    z-index: 3; /* Por encima del contenido */
}

/* Mostrar la luz al pasar el mouse */
.service-card:hover::after, .roadmap-card:hover::after {
    opacity: 1;
}

/* ============================================
   ADD-ON: MODO IMPRESIÓN / PDF (NO VISUAL EN PANTALLA)
   Pegar al final del archivo CSS
   ============================================ */
@media print {
    /* Fondo blanco y texto negro para documentos */
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
    }

    /* Ocultar elementos que no sirven en papel */
    .header, .ai-assistant-btn, .scroll-top, 
    .theme-toggle, .vignette-overlay, #cursor, 
    .system-boot, .nav {
        display: none !important;
    }

    /* Ajustar tipografía y colores para lectura */
    h1, h2, h3, p, span, a {
        color: #000000 !important;
        text-shadow: none !important;
    }

    /* Expandir contenido */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Bordes limpios para las tarjetas */
    .service-card, .roadmap-card {
        border: 1px solid #000000 !important;
        background: none !important;
        box-shadow: none !important;
        break-inside: avoid; /* Evita que se corten a la mitad de la hoja */
        margin-bottom: 20px;
    }
    
    /* Mostrar URLs reales al lado de los enlaces para que sean útiles impresos */
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 10px;
    }
}

/* ============================================
   ADD-ON: MODO IMPRESIÓN / PDF (NO VISUAL EN PANTALLA)
   ============================================ */
@media print {
    /* Fondo blanco y texto negro para documentos */
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
    }

    /* Ocultar elementos que no sirven en papel */
    .header, .ai-assistant-btn, .scroll-top, 
    .theme-toggle, .vignette-overlay, #cursor, 
    .system-boot, .nav {
        display: none !important;
    }

    /* Ajustar tipografía y colores para lectura */
    h1, h2, h3, p, span, a {
        color: #000000 !important;
        text-shadow: none !important;
    }

    /* Expandir contenido */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Bordes limpios para las tarjetas */
    .service-card, .roadmap-card {
        border: 1px solid #000000 !important;
        background: none !important;
        box-shadow: none !important;
        break-inside: avoid; /* Evita que se corten a la mitad de la hoja */
        margin-bottom: 20px;
    }
    
    /* Mostrar URLs reales al lado de los enlaces para que sean útiles impresos */
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 10px;
    }
}

/* ============================================
   ADD-ON: FOCUS RING (ACCESIBILIDAD TECH)
   ============================================ */
:focus-visible {
    outline: 2px solid #00ff9d !important; /* Verde NODO */
    outline-offset: 4px; /* Separación del elemento */
    border-radius: 4px;
    transition: outline-offset 0.2s ease;
}

:focus:not(:focus-visible) {
    outline: none !important; /* Elimina focus del mouse click */
}

/* ESTILOS MONITOR RED */
.network-toast {
    position: fixed;
    bottom: 90px; /* Arriba del botón de IA */
    right: -300px; /* Oculto por defecto */
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #333;
    padding: 10px 20px;
    font-family: monospace;
    font-size: 12px;
    border-radius: 4px;
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.network-toast.show {
    right: 30px;
}

/* ============================================
   ADD-ON: SHIMMER TITLE (BRILLO)
   Pegar al final del archivo CSS
   ============================================ */
.hero h1 {
    /* Mantenemos el color base pero agregamos el gradiente animado */
    background: linear-gradient(
        110deg, 
        #ffffff 45%, 
        #a0a0a0 50%, 
        #ffffff 55%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    
    /* Animación lenta y elegante */
    animation: textShimmer 6s linear infinite;
}

@keyframes textShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ESTILOS TOAST EMAIL */
#email-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Oculto abajo */
    background: #ffffff;
    color: #000;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10001; /* Encima de todo */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

#email-toast.show {
    transform: translateX(-50%) translateY(0); /* Sube y se muestra */
}

/* ============================================
   ADD-ON: EXTERNAL LINK INDICATORS
   ============================================ */
/* Detecta automáticamente links que abren en nueva pestaña */
a[target="_blank"] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

a[target="_blank"]::after {
    content: "↗"; /* Flecha de salida */
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
    color: #00ff9d; /* Verde NODO */
    opacity: 0.7;
    transition: transform 0.2s ease;
}

a[target="_blank"]:hover::after {
    transform: translate(2px, -2px); /* Pequeña animación al salir */
    opacity: 1;
}

/* Excepción: No poner flecha en los íconos sociales (porque ya son íconos) */
.social-link::after {
    display: none;
}

/* ============================================
   MOBILE FIXES V4 (SOLUCIÓN DEFINITIVA DE ESPACIO)
   ============================================ */

@media (max-width: 768px) {

    /* --- 1. ARREGLO TRUST LINE (EL GLOBO) --- */
    .trust-line {
        /* Posicionamiento seguro para que no se salga de pantalla */
        position: absolute !important;
        left: 5% !important; /* Margen izquierdo fijo */
        width: 90% !important; /* Ancho seguro */
        transform: none !important; /* Quitamos transformaciones que rompen */
        bottom: 120px !important; /* Altura segura */
        
        /* Diseño Vertical Compacto */
        flex-direction: column !important;
        padding: 15px !important;
        height: auto !important;
        
        /* Estética Glass Dark */
        background: rgba(5, 5, 5, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.8) !important;
    }

    /* Textos del globo */
    .trust-line span {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 13px !important;
        padding: 5px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        white-space: normal !important; /* Permite que el texto baje de renglón si es largo */
    }

    .trust-line span:last-child {
        border-bottom: none !important;
    }

    .separator { display: none !important; }


    /* --- 2. ARREGLO CHATBOT (LIBERAR ESPACIO) --- */

    /* OCULTAR LA TARJETA DE BIENVENIDA GIGANTE EN MÓVIL */
    /* Esto es lo que estaba tapando todo el chat */
    .ai-welcome-section {
        display: none !important;
    }

    /* Botones de Acciones: Fila única deslizable (Tipo Instagram) */
    .ai-quick-actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding: 15px !important;
        gap: 10px !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }
    
    /* Etiqueta "Acciones rápidas" oculta para ganar espacio */
    .quick-actions-label {
        display: none !important;
    }

    /* Botones individuales compactos */
    .quick-action-btn {
        flex: 0 0 auto !important; /* No permitir que se aplasten */
        white-space: nowrap !important;
        font-size: 13px !important;
        padding: 8px 16px !important;
        background: rgba(255,255,255,0.08) !important;
    }

    /* Contenedor del Chat: Ahora tiene espacio real */
    .ai-chat-container {
        padding-top: 20px !important;
        height: auto !important;
        flex: 1 !important; /* Ocupar todo el espacio libre */
    }

    /* Panel General: Pantalla completa real */
    .ai-assistant-panel {
        width: 100% !important;
        height: 100dvh !important; /* Altura dinámica para celulares modernos */
        max-width: none !important;
    }
}

/* ============================================
   MOBILE FIXES V5 (LIMPIEZA FINAL)
   ============================================ */

@media (max-width: 768px) {

    /* --- 1. TRUST LINE (VUELVE A SER TEXTO LIMPIO) --- */
    .trust-line {
        /* Ubicación */
        position: absolute !important;
        left: 0 !important;
        width: 100% !important;
        bottom: 110px !important;
        transform: none !important;
        
        /* Sacamos la caja negra y bordes (lo que no te gustó) */
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        
        /* Alineación */
        flex-direction: column !important;
        align-items: center !important;
        gap: 5px !important; /* Espacio mínimo entre líneas */
        padding: 0 20px !important;
    }

    .trust-line span {
        /* Estilo del texto */
        display: block !important;
        width: auto !important;
        text-align: center !important;
        font-size: 13px !important;
        color: rgba(255, 255, 255, 0.7) !important; /* Gris claro elegante */
        text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important; /* Sombra para leerse sobre la foto */
        
        /* Sacamos las líneas divisorias */
        border-bottom: none !important; 
        padding: 0 !important;
    }
    
    /* Ocultamos los separadores viejos */
    .separator { display: none !important; }


    /* --- 2. CHATBOT (ARREGLO DE ACCIONES CORTADAS) --- */
    
    .ai-quick-actions {
        /* Ajuste para que no parezca cortado */
        padding: 15px 20px !important; /* Más aire a los costados */
        gap: 12px !important;
        
        /* Asegurar scroll suave */
        justify-content: flex-start !important;
        mask-image: linear-gradient(to right, black 85%, transparent 100%); /* Desvanecido al final */
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }

    .quick-action-btn {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-right: 5px !important; /* Margen extra para separar */
    }
    
    /* Ocultar scrollbar visualmente pero permitir scroll */
    .ai-quick-actions::-webkit-scrollbar {
        display: none;
    }
}

/* ============================================
   MOBILE FIXES V6 (SOLUCIÓN SUPERPOSICIÓN)
   ============================================ */

@media (max-width: 768px) {

    /* --- 1. ARREGLO TRUST LINE (SUPERPOSICIÓN) --- */
    
    /* Cambiamos la estructura del Hero para que apile cosas verticalmente */
    .hero {
        flex-direction: column !important; /* Apilar contenido */
        justify-content: center !important;
        padding-bottom: 60px !important; /* Espacio extra abajo */
    }

    .trust-line {
        /* Ya no flota "encima", ahora es parte del flujo */
        position: relative !important; 
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        
        /* Ubicación exacta */
        margin-top: 50px !important; /* Separación del botón "Iniciar proyecto" */
        width: 100% !important;
        
        /* Estética limpia */
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 20px !important;
        
        /* Alineación vertical de los textos */
        flex-direction: column !important;
        gap: 8px !important;
    }

    .trust-line span {
        display: block !important;
        text-align: center !important;
        font-size: 13px !important;
        color: rgba(255, 255, 255, 0.6) !important;
        border: none !important; /* Sin líneas divisorias */
        padding: 0 !important;
    }
    
    /* Aseguramos que el contenido del hero no moleste */
    .hero-content {
        margin-bottom: 0 !important; /* Quitamos márgenes viejos */
    }


    /* --- 2. ARREGLO CHATBOT (SE VE CORTADO) --- */
    
    .ai-quick-actions {
        /* Quitamos la máscara que hacía que se vea "borroso/cortado" */
        mask-image: none !important;
        -webkit-mask-image: none !important;
        
        /* Márgenes internos para que los botones respiren */
        padding: 15px 20px !important;
        padding-right: 40px !important; /* Espacio extra al final para el último botón */
        gap: 10px !important;
        
        /* Asegurar scroll limpio */
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
    }

    .quick-action-btn {
        margin: 0 !important;
        flex-shrink: 0 !important; /* Evita que se aplasten */
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
}

/* ============================================
   MOBILE FIXES V7 (BOTONES PROLIJOS)
   ============================================ */

@media (max-width: 768px) {

    /* --- 1. MANTENEMOS EL ARREGLO DEL GLOBO (QUE YA TE GUSTÓ) --- */
    .hero {
        flex-direction: column !important;
        justify-content: center !important;
        padding-bottom: 60px !important;
    }

    .trust-line {
        position: relative !important; 
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 50px !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 20px !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .trust-line span {
        display: block !important;
        text-align: center !important;
        font-size: 13px !important;
        color: rgba(255, 255, 255, 0.6) !important;
        border: none !important;
        padding: 0 !important;
    }
    
    .hero-content { margin-bottom: 0 !important; }


    /* --- 2. ARREGLO CHATBOT (GRILLA COMPACTA SIN CORTES) --- */
    
    .ai-quick-actions {
        /* Cambiamos Scroll por "Wrap" (se acomodan solos) */
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important; /* Centrados prolijos */
        overflow: visible !important;
        
        /* Ajuste de espacios */
        padding: 10px 15px !important;
        gap: 8px !important;
        height: auto !important;
        
        /* Quitamos máscaras y cortes */
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }

    .quick-action-btn {
        /* Botones estilo "Etiqueta/Chip" */
        flex: 0 1 auto !important; /* Tamaño automático según texto */
        width: auto !important;
        margin: 0 !important;
        
        /* Diseño compacto para que entren bien */
        font-size: 12px !important;
        padding: 8px 12px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
    }
    
    /* Pequeño ajuste para que el chat tenga espacio arriba */
    .ai-chat-container {
        padding-top: 10px !important;
    }
}

/* ESTILOS COPY FLASH */
#copy-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00ff9d; /* Verde NODO */
    opacity: 0;
    pointer-events: none; /* No molesta al click */
    z-index: 20000; /* Encima de todo */
    transition: opacity 0.1s ease-out;
    mix-blend-mode: screen; /* Efecto de luz */
}

/* ============================================
   ADD-ON: SMOOTH SCROLL (MOTORES)
   ============================================ */
html {
    scroll-behavior: smooth !important;
}

/* ============================================
   FIX: TECH CORNERS V2 (CLEAN & INSIDE)
   ============================================ */

/* Aseguramos que la tarjeta oculte lo que sobra */
.service-card {
    position: relative;
    overflow: hidden !important; 
    z-index: 1;
}

/* Creamos el marco tecnológico (Invisible por defecto) */
.service-card::before {
    content: '';
    position: absolute;
    /* Ubicación: 10px hacia ADENTRO (no afuera) */
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    
    /* Dibujamos solo las esquinas usando gradientes (Truco Pro) */
    background: 
        linear-gradient(to right, #00ff9d 2px, transparent 2px) 0 0,
        linear-gradient(to bottom, #00ff9d 2px, transparent 2px) 0 0,
        linear-gradient(to left, #00ff9d 2px, transparent 2px) 100% 0,
        linear-gradient(to bottom, #00ff9d 2px, transparent 2px) 100% 0,
        linear-gradient(to left, #00ff9d 2px, transparent 2px) 100% 100%,
        linear-gradient(to top, #00ff9d 2px, transparent 2px) 100% 100%,
        linear-gradient(to right, #00ff9d 2px, transparent 2px) 0 100%,
        linear-gradient(to top, #00ff9d 2px, transparent 2px) 0 100%;
        
    background-repeat: no-repeat;
    background-size: 15px 15px; /* Tamaño de las esquinas */
    
    /* Animación */
    opacity: 0;
    transform: scale(1.1); /* Empieza un poco grande */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    border-radius: 8px; /* Respeta curvatura interna */
}

/* Al pasar el mouse: Aparecen y se "encastran" */
.service-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* ESTILOS GLOBO DE SERVICIO */
.service-toast {
    position: fixed;
    bottom: 30px; /* Un poco arriba del borde */
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Oculto abajo */
    
    background: rgba(10, 10, 10, 0.95); /* Casi negro */
    border: 1px solid #00ff9d; /* Borde Verde NODO */
    color: #ffffff;
    
    padding: 12px 24px;
    border-radius: 50px; /* Redondito */
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap; /* Que no ocupe dos renglones */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    
    z-index: 20000; /* Encima de todo */
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; /* Para que no moleste si tapan algo */
}

/* Cuando se activa */
.service-toast.show {
    transform: translateX(-50%) translateY(0); /* Sube a su lugar */
    opacity: 1;
}

/* ESTILOS SMART NAVBAR */
nav, .header {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Clase para ocultar (la agrega el JS) */
.nav-hidden {
    transform: translateY(-100%); /* Se va para arriba */
}

/* ============================================
   ADD-ON: GPU HARDWARE ACCELERATION
   ============================================ */
.service-card, .hero, .footer, img {
    /* Fuerza al navegador a usar la placa de video */
    transform: translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ============================================
   ADD-ON: HD TEXT RENDERING
   Pegar al final de styles.css
   ============================================ */
body {
    -webkit-font-smoothing: antialiased; /* Chrome/Safari: Texto más fino */
    -moz-osx-font-smoothing: grayscale; /* Firefox: Escala de grises real */
    text-rendering: optimizeLegibility; /* Activa ligaduras y kerning pro */
}

/* ============================================
   ADD-ON: UI SELECTION GUARD (APP FEEL)
   Pegar al final de styles.css
   ============================================ */

/* Evitar que se seleccione texto en elementos de interfaz */
.btn, button, .nav-link, .service-card, .logo, .footer-link, img, .ai-assistant-btn {
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
    user-select: none; /* Estándar */
}

/* Permitir selección solo donde importa (párrafos y títulos) */
p, h1, h2, h3, h4, span, li {
    user-select: text;
}

/* ============================================
   ADD-ON: AURORA TEXT ANIMATION
   ============================================ */

/* Aplicar esto a tu H1 principal o frases clave */
h1, .aurora-text {
    background: linear-gradient(
        120deg, 
        #ffffff 0%, 
        #e0e0e0 20%, 
        #00ff9d 50%, /* Tu verde NODO en el medio */
        #e0e0e0 80%, 
        #ffffff 100%
    );
    background-size: 200% auto;
    color: #fff; /* Fallback */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    animation: shine 5s linear infinite; /* Velocidad del flujo */
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* ============================================
   ADD-ON: LASER UNDERLINE NAV
   ============================================ */

.nav-link {
    position: relative;
    text-decoration: none; /* Sacar subrayado default si hay */
}

/* La línea invisible */
.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px; /* Separación del texto */
    left: 0;
    background-color: #00ff9d; /* Verde NODO */
    
    /* Magia de animación */
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

/* Al pasar el mouse */
.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* ============================================
   FINAL 1: PRECISION CURSOR SYSTEM
   ============================================ */
html, body {
    cursor: crosshair !important; /* Mira de francotirador/CAD */
}

/* Enlaces y botones: Mano puntero */
a, button, .btn, .service-card, .quick-action-btn {
    cursor: pointer !important;
}

/* Texto: Cursor de texto normal (I-beam) */
p, h1, h2, h3, h4, span, input, textarea {
    cursor: text !important;
}

/* ============================================
   FINAL 3: INFINITE BACKGROUND (NO WHITE BOUNCE)
   ============================================ */
html {
    background-color: #0a0a0a; /* Fondo de seguridad */
    overscroll-behavior: none; /* Bloquea el rebote en Chrome/Android */
}

body {
    background-color: #0a0a0a;
    /* Bloquea rebote horizontal (gesto de volver atrás) si molesta */
    overscroll-behavior-x: none; 
}

/* ============================================
   FINAL FIX: HERO SPACING (MOBILE)
   Evita que el menú tape el título en celulares
   ============================================ */

@media (max-width: 768px) {
    .hero {
        /* Agregamos un "colchón" de aire arriba */
        padding-top: 140px !important; 
        
        /* Ajustamos la alineación para que no quede raro */
        align-items: flex-start !important; 
        justify-content: flex-start !important;
        
        /* Aseguramos que ocupe la pantalla entera pero permitiendo scroll */
        height: auto !important;
        min-height: 100vh !important;
    }

    .hero-content {
        /* Un poco más de margen lateral para que respire */
        padding: 0 20px !important;
        
        /* Asegurar que el texto esté centrado si te gusta así */
        width: 100% !important;
        text-align: center !important;
        margin-top: 20px !important; /* Ajuste fino extra */
    }
}

/* ============================================
   FIX DEFINITIVO V3: ALTURA FORZADA (60px)
   ============================================ */

/* 1. EL CONTENEDOR (La caja del menú) */
.ai-quick-actions {
    /* Transición suave de altura */
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s;
    overflow: hidden; /* Esconde lo que sobra */
    
    /* Altura cuando está ABIERTO */
    max-height: 600px; 
    
    /* ESTILO "VIDRIO" */
    background: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    /* Bordes y sombras */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    
    /* Posición */
    position: relative; 
    z-index: 100;
    
    /* RESETEO DE MÁRGENES (Clave para que no se corte) */
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. EL TÍTULO (La barra que tocás) */
.quick-actions-label {
    cursor: pointer;
    
    /* ALTURA MAESTRA: 60px para todo */
    height: 60px !important;
    min-height: 60px !important;
    
    /* Centrado Vertical Perfecto (Flexbox) */
    display: flex !important;
    align-items: center !important; 
    justify-content: space-between !important;
    
    /* Espaciado lateral */
    padding: 0 20px !important;
    
    /* Texto */
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
    text-transform: uppercase;
    
    /* Fondo y borde */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    
    /* Reseteo para evitar conflictos */
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Efecto Hover */
.quick-actions-label:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #00ff9d;
}

/* 3. LA FLECHA (Estilo) */
.dynamic-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    font-size: 10px;
    color: #00ff9d;
    transition: transform 0.4s ease;
    background: rgba(0, 255, 157, 0.15);
    border-radius: 50%;
}

/* 4. ESTADO CERRADO (FORCE COLLAPSE) */
.ai-quick-actions.force-collapse {
    /* LA MISMA ALTURA MAESTRA QUE EL TÍTULO */
    max-height: 60px !important; 
    min-height: 60px !important;
    
    /* Fondo más oscuro */
    background: #050505 !important; 
    border-top: 1px solid #333;
}

/* Rotación de flecha al cerrar */
.ai-quick-actions.force-collapse .dynamic-arrow {
    transform: rotate(180deg);
    background: transparent;
    color: #666;
}

/* 5. OCULTAR CONTENIDO INTERNO */
.ai-quick-actions .actions-grid, 
.ai-quick-actions button {
    transition: opacity 0.2s ease;
    opacity: 1;
}

.ai-quick-actions.force-collapse .actions-grid, 
.ai-quick-actions.force-collapse button {
    opacity: 0;
    pointer-events: none;
}

/* FUERZA BRUTA: ESTO SE APLICA SÍ O SÍ AL NAVEGADOR */
div[class*="quick-actions"], 
div[style*="grid"], 
[role="menu"] {
    position: fixed !important;
    max-height: 80px !important; /* Lo achica a la fuerza */
    bottom: 90px !important;
    width: auto !important;
    overflow-y: scroll !important;
    opacity: 0.6 !important;
    z-index: 1 !important; /* Lo manda al fondo */
    pointer-events: auto !important;
}

/* En celulares, lo hacemos una tirita invisible */
@media (max-width: 600px) {
    div[class*="quick-actions"], 
    div[style*="grid"] {
        max-height: 40px !important;
        opacity: 0.3 !important;
        transform: scale(0.8);
        transform-origin: bottom right;
    }
}
/* ============================================
   SISTEMA DE PING Y HORARIO
   ============================================ */
.ping-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.ping-dot.online {
    background: #00ff9d;
    box-shadow: 0 0 10px #00ff9d;
    animation: pingPulse 2s ease-in-out infinite;
}

.ping-dot.offline {
    background: #666;
}

@keyframes pingPulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.status-dot-inline {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    position: relative;
}

.status-dot-inline.online {
    background: #00ff9d;
    box-shadow: 0 0 15px #00ff9d;
    animation: pingPulse 2s ease-in-out infinite;
}

.status-dot-inline.offline {
    background: #666;
    box-shadow: 0 0 5px #666;
}

#pingStatus {
    font-size: 12px;
    color: #888;
}

/* ============================================
   FIX TARJETA DE INDEX
   ============================================ */
   
.about-image {
    min-height: 400px;
    height: 100%; /* O la altura que prefieras */
    background-color: #050505; /* Casi negro */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.05); /* Sutil resplandor verde externo */
}

#nodo-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Un degradado sutil para dar profundidad */
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

/* ==========================================================================
   FONDO "AMBIENT GLOW" DEFINITIVO (Visibilidad Forzada + Alta Performance)
   ========================================================================== */

/* 1. Base del Documento: Color de seguridad */
html {
    background-color: #050505;
    height: 100%;
}

/* 2. Cuerpo: Hacemos que sea transparente para no tapar el fondo fijo */
body {
    background-color: transparent !important;
    background-image: none !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 3. EL FONDO (Capa Fija GPU) - No se mueve, no consume recursos al scrollear */
body::before {
    content: "";
    position: fixed; /* Se queda clavado en la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Se va al fondo de todo */
    pointer-events: none;
    
    /* ESTÉTICA: Negro profundo con 2 luces ambientales sutiles */
    background: 
        /* Luz Violeta (Arriba Izquierda) - Sutil y elegante */
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15), transparent 45%),
        
        /* Luz Verde NODO (Abajo Derecha) - Sutil y elegante */
        radial-gradient(circle at 85% 85%, rgba(0, 255, 157, 0.12), transparent 45%),
        
        /* Base Negra */
        #050505;

    /* Optimización para que la tarjeta gráfica maneje el renderizado */
    will-change: transform;
}

/* 4. ¡EL TRUCO! "Borramos" el fondo gris de todas las secciones para ver las luces */
section, 
.hero, 
.about, 
.services, 
.methodology, 
.roadmap-section, 
.contact {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important; /* Sacamos sombras viejas si molestan */
    border: none !important; /* Limpiamos bordes de sección si sobran */
}

/* 5. Mantener legibilidad en tarjetas (Estas SÍ mantienen fondo semi-transparente) */
.service-card, 
.method-step, 
.roadmap-card {
    background: rgba(20, 20, 20, 0.6) !important; /* Vidrio oscuro */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 6. Footer sólido para cerrar la página visualmente */
.footer {
    background-color: #050505 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto; /* Empuja el footer al final si falta contenido */
    position: relative;
    z-index: 10;
}

/* ============================================
   NUEVO BORDE "TECH PREMIER" (DETALLADO)
   ============================================ */

/* Limpiamos estilos viejos que puedan molestar */
.service-card, .roadmap-card {
    position: relative;
    background: rgba(20, 20, 20, 0.8) !important; /* Fondo oscuro semi-transparente */
    border: 1px solid rgba(255, 255, 255, 0.05) !important; /* Borde base muy sutil */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Sombra base */
    overflow: hidden; /* Importante para contener el efecto */
}

/* EL BORDE MÁGICO (Pseudo-elemento) */
.service-card::after, .roadmap-card::after {
    content: "";
    position: absolute;
    inset: 0; /* Cubre toda la tarjeta */
    border-radius: inherit; /* Copia las esquinas redondeadas */
    padding: 1.5px; /* Grosor del borde detallado */
    
    /* El gradiente del borde: Verde NODO + Violeta + Transparente */
    background: linear-gradient(
        135deg, 
        rgba(0, 255, 157, 0.4), 
        rgba(99, 102, 241, 0.1), 
        rgba(0, 255, 157, 0.1)
    );
    
    /* Máscara para dejar solo el borde visible */
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    
    pointer-events: none; /* Dejar pasar los clicks */
    opacity: 0.6; /* Sutil por defecto */
    transition: opacity 0.3s ease;
}

/* AL PASAR EL MOUSE (HOVER) */
.service-card:hover::after, .roadmap-card:hover::after {
    opacity: 1; /* Se ilumina al máximo */
    /* Cambiamos a un gradiente más vivo */
    background: linear-gradient(
        135deg, 
        #00ff9d, 
        #6366f1
    );
}

/* Detalle extra: Resplandor interno al hacer hover */
.service-card:hover, .roadmap-card:hover {
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.8), /* Sombra profunda */
        0 0 30px rgba(0, 255, 157, 0.1); /* Resplandor verde ambiente */
}