:root {
    --primary-color: #00ffff;
    --secondary-color: #ff00ff;
    --accent-color: #9d00ff;
    --dark-bg: #0a0a0f;
    --dark-surface: #1a1a2e;
    --neon-blue: #00d9ff;
    --neon-purple: #9d00ff;
    --neon-pink: #ff006e;
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 100px 0 50px; }
    .hero h1 { font-size: 2.5rem; }
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--dark-bg);
    color: #ffffff;
    position: relative;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
}

body::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(157, 0, 255, 0.1) 0%, transparent 50%);
    will-change: transform;
    backface-visibility: hidden;
    z-index: -2;
}

.matrix-bg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1; 
    opacity: 0.03; 
    pointer-events: none; 
}

@keyframes glitch {
    0%,100%{text-shadow:0.05em 0 0 rgba(0,255,255,.75),-0.05em -0.025em 0 rgba(255,0,255,.75),.025em .05em 0 rgba(255,255,0,.75)}
    15%{text-shadow:0.05em 0 0 rgba(0,255,255,.75),-0.05em -0.025em 0 rgba(255,0,255,.75),.025em .05em 0 rgba(255,255,0,.75)}
    16%{text-shadow:-0.05em -0.025em 0 rgba(0,255,255,.75),.025em .025em 0 rgba(255,0,255,.75),-0.05em -0.05em 0 rgba(255,255,0,.75)}
    49%{text-shadow:-0.05em -0.025em 0 rgba(0,255,255,.75),.025em .025em 0 rgba(255,0,255,.75),-0.05em -0.05em 0 rgba(255,255,0,.75)}
    50%{text-shadow:.025em .05em 0 rgba(0,255,255,.75),.05em 0 0 rgba(255,0,255,.75),0 -0.05em 0 rgba(255,255,0,.75)}
    99%{text-shadow:.025em .05em 0 rgba(0,255,255,.75),.05em 0 0 rgba(255,0,255,.75),0 -0.05em 0 rgba(255,255,0,.75)}
}

/* ================================ */
/* NAVEGACIÓN */
/* ================================ */
.navbar { 
    background: rgba(10,10,15,0.8); 
    backdrop-filter: blur(20px); 
    border-bottom: 1px solid rgba(0,255,255,0.3); 
    padding: 1rem 0; 
    transition: all 0.3s ease; 
}

.navbar-toggler { 
    border: 1px solid var(--primary-color); 
    padding: 0.25rem 0.5rem; 
}

.navbar-toggler-icon i { 
    color: var(--primary-color); 
    font-size: 1.5rem; 
}

.navbar-toggler:focus { 
    box-shadow: 0 0 10px var(--primary-color); 
}

.navbar-collapse { 
    background: rgba(10,10,15,0.95); 
    margin-top: 1rem; 
    padding: 1rem; 
    border-radius: 10px; 
    border: 1px solid rgba(0,255,255,0.2); 
}

@media (max-width: 991px) {
    .navbar-collapse { margin-top: 1rem; }
    .navbar-nav { text-align: center; }
    .nav-link { padding: 0.5rem 0; border-bottom: 1px solid rgba(0,255,255,0.1); }
    .nav-link:last-child { border-bottom: none; }
    .lang-switcher { margin-top: 1rem; width: 100%; }
}

@media (min-width: 992px) { 
    .navbar-collapse { 
        background: transparent; 
        margin-top: 0; 
        padding: 0; 
        border: none; 
    } 
}

.navbar-brand { 
    font-family: 'Orbitron',monospace; 
    font-weight: 800; 
    font-size: clamp(1.1rem,3vw,1.8rem); 
    color: var(--primary-color) !important; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    animation: glitch 2s infinite; 
}

.nav-link { 
    font-weight: 500; 
    color: rgba(255,255,255,0.8) !important; 
    margin: 0 1rem; 
    transition: all 0.3s ease; 
    position: relative; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.nav-link::after { 
    content: ''; 
    position: absolute; 
    bottom: -5px; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: linear-gradient(90deg,var(--primary-color),var(--secondary-color)); 
    transition: width 0.3s ease; 
}

.nav-link:hover::after { width: 100%; }

.nav-link:hover { 
    color: var(--primary-color) !important; 
    text-shadow: 0 0 10px var(--primary-color); 
}

.lang-switcher { 
    background: transparent; 
    color: var(--primary-color); 
    border: 2px solid var(--primary-color); 
    padding: 0.5rem 1.5rem; 
    border-radius: 50px; 
    font-weight: 600; 
    transition: all 0.3s ease; 
    position: relative; 
    overflow: hidden; 
}

.lang-switcher::before { 
    content: ''; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    width: 0; 
    height: 0; 
    background: var(--primary-color); 
    transform: translate(-50%,-50%); 
    border-radius: 50%; 
    transition: width 0.3s ease,height 0.3s ease; 
}

.lang-switcher:hover::before { 
    width: 100%; 
    height: 100%; 
}

.lang-switcher:hover { 
    color: var(--dark-bg); 
    border-color: var(--primary-color); 
    box-shadow: 0 0 20px var(--primary-color); 
    z-index: 1; 
}

.lang-switcher span { 
    position: relative; 
    z-index: 2; 
}

/* ================================ */
/* HERO SECTION */
/* ================================ */
.hero { 
    min-height: 100vh; 
    min-height: 100dvh; 
    position: relative; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    background: linear-gradient(135deg,rgba(0,255,255,0.1) 0%,rgba(157,0,255,0.1) 100%); 
    padding: 80px 0 40px; 
}

.neural-bg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0.1; 
    z-index: 0; 
}

.hero-content {
    position: relative; 
    z-index: 2; 
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
}

.hero-content-centered {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1rem;
    z-index: 2;
    position: relative;
    width: 100%;
    overflow-wrap: break-word;
}

.hero h1 { 
    font-family: 'Orbitron',monospace; 
    font-size: clamp(2rem,5vw,4rem); 
    font-weight: 900; 
    margin-bottom: 2rem; 
    line-height: 1.2; 
    text-transform: uppercase; 
    background: linear-gradient(135deg,var(--primary-color),var(--secondary-color),var(--accent-color)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    animation: gradient 3s ease infinite; 
    background-size: 200% 200%; 
    word-wrap: break-word; 
    overflow-wrap: break-word; 
    white-space: normal; 
    width: 100%; 
}

@keyframes gradient { 
    0%{background-position:0% 50%} 
    50%{background-position:100% 50%} 
    100%{background-position:0% 50%} 
}

.hero p { 
    font-size: clamp(1.1rem,2.5vw,1.4rem); 
    color: rgba(255,255,255,0.8); 
    margin-bottom: 2.5rem; 
    line-height: 1.6; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto; 
}

.btn-hero { 
    padding: 1rem 3rem; 
    font-size: 1.1rem; 
    font-weight: 600; 
    border-radius: 50px; 
    border: 2px solid var(--primary-color); 
    background: transparent; 
    color: var(--primary-color); 
    transition: all 0.3s ease; 
    margin-right: 1rem; 
    margin-bottom: .5rem; 
    text-decoration: none; 
    display: inline-block; 
    position: relative; 
    overflow: hidden; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.btn-hero::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(90deg,transparent,var(--primary-color),transparent); 
    transition: left 0.5s; 
}

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

.btn-hero:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 30px rgba(0,255,255,0.5); 
    text-shadow: 0 0 10px var(--primary-color); 
}

.btn-hero-outline { 
    background: var(--primary-color); 
    color: var(--dark-bg); 
    border-color: var(--primary-color); 
}

.btn-hero-outline:hover { 
    background: transparent; 
    color: var(--primary-color); 
}





/* ================================ */
/* SERVICIOS */
/* ================================ */
.services { 
    padding: clamp(3rem,8vw,5rem) 0; 
    background: rgba(26,26,46,0.5); 
    position: relative; 
}

.section-title h2 { 
    font-family: 'Orbitron',monospace; 
    font-size: clamp(1.6rem,4vw,3rem); 
    font-weight: 800; 
    text-transform: uppercase; 
    text-align: center; 
    margin-bottom: 1rem; 
    background: linear-gradient(135deg,var(--primary-color),var(--secondary-color)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.section-title p.lead { 
    color: rgba(255,255,255,0.8); 
    text-align: center; 
    margin-bottom: 2rem; 
}

.service-card { 
    background: rgba(10,10,15,0.8); 
    border: 1px solid rgba(0,255,255,0.3); 
    border-radius: 20px; 
    padding: 2.5rem; 
    height: 100%; 
    transition: all 0.3s ease; 
    position: relative; 
    overflow: hidden; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
}

.service-card p { 
    color: rgba(255,255,255,0.8); 
    flex-grow: 1; 
}

.service-card::before { 
    content: ''; 
    position: absolute; 
    top: -50%; 
    left: -50%; 
    width: 200%; 
    height: 200%; 
    background: linear-gradient(45deg,transparent,var(--primary-color),transparent); 
    transform: rotate(45deg); 
    transition: all 0.5s; 
    opacity: 0; 
}

.service-card:hover::before { animation: sweep .5s ease-in-out }

@keyframes sweep { 
    0%{transform:translateX(-100%) translateY(-100%) rotate(45deg);opacity:0} 
    50%{opacity:1} 
    100%{transform:translateX(100%) translateY(100%) rotate(45deg);opacity:0} 
}

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

.service-icon { 
    width: 100px; 
    height: 100px; 
    margin: 0 auto 1.5rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 3rem; 
    color: var(--primary-color); 
    position: relative; 
}

.service-icon::before { 
    content: ''; 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    border: 2px solid var(--primary-color); 
    border-radius: 50%; 
    animation: rotateServiceIcon 10s linear infinite; 
}

.service-icon::after { 
    content: ''; 
    position: absolute; 
    width: 120%; 
    height: 120%; 
    border: 1px solid rgba(0,255,255,0.3); 
    border-radius: 50%; 
    animation: rotateServiceIcon 15s linear infinite reverse; 
}

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

.service-card h3 { 
    font-family: 'Orbitron',monospace; 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--primary-color); 
    margin-bottom: 1rem; 
    text-transform: uppercase; 
}

.service-card .btn-outline-primary { 
    color: var(--accent-color); 
    border-color: var(--accent-color); 
    margin-top: auto; 
    align-self: center; 
    padding: .375rem 1rem; 
    position: relative;
    z-index: 10;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.service-card .btn-outline-primary:hover { 
    background-color: var(--accent-color); 
    color: var(--dark-bg); 
    border-color: var(--accent-color); 
    box-shadow: 0 0 15px var(--accent-color);
    transform: translateY(-2px);
}

/* ================================ */
/* SECCIÓN POTENCIAL */
/* ================================ */
.potential-section { 
    padding: clamp(2rem,5vw,3rem) 0; 
    text-align: center; 
    background: rgba(26,26,46,0.3);
    position: relative;
    overflow: hidden;
}

.potential-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(157, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.potential-section h3 { 
    font-family: 'Orbitron',monospace; 
    color: var(--accent-color); 
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px var(--accent-color);
    animation: glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% { text-shadow: 0 0 20px var(--accent-color); }
    100% { text-shadow: 0 0 30px var(--accent-color), 0 0 40px var(--accent-color); }
}

.potential-section p.lead { color: rgba(255,255,255,0.8); }

.btn-potential { 
    padding: .8rem 2.5rem; 
    font-size: 1rem; 
    font-weight: 600; 
    border-radius: 50px; 
    border: 2px solid var(--accent-color); 
    background: transparent; 
    color: var(--accent-color); 
    transition: all .3s ease; 
    text-decoration: none; 
    display: inline-block; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-potential::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.btn-potential:hover::before {
    width: 300px;
    height: 300px;
}

.btn-potential:hover { 
    background: var(--accent-color); 
    color: var(--dark-bg); 
    box-shadow: 0 0 20px var(--accent-color), 0 0 40px var(--accent-color);
    transform: translateY(-3px);
}

#potential-quiz-container { 
    display:none; 
    margin-top: 2rem; 
    text-align: left; 
    background: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(10,10,15,0.9)); 
    padding: 2.5rem; 
    border-radius: 20px; 
    border: 2px solid var(--accent-color); 
    box-shadow: 
        0 0 30px rgba(157, 0, 255, 0.3),
        inset 0 0 30px rgba(157, 0, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

#potential-quiz-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    animation: gradient-border 4s ease infinite;
}

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

#potential-quiz-container h5 { 
    color: var(--primary-color); 
    margin-bottom: 1.5rem; 
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--primary-color);
}

#potential-quiz-container .form-check-label { 
    color: rgba(255,255,255,0.9); 
}

#potential-quiz-container .form-check-input:checked { 
    background-color: var(--accent-color); 
    border-color: var(--accent-color); 
}

#potential-quiz-container .form-select { 
    background-color: var(--dark-surface); 
    color: white; 
    border-color: var(--accent-color); 
}

#potential-quiz-container .form-select:focus { 
    box-shadow: 0 0 0 0.25rem rgba(157, 0, 255, 0.25); 
}

#potential-results-container { 
    display:none; 
    margin-top: 2rem; 
    text-align: center; 
    background-color: rgba(157,0,255,0.1); 
    padding: 2rem; 
    border-radius: 15px; 
    border: 1px solid var(--accent-color); 
}

#potential-results-container h4 { 
    color: var(--accent-color); 
    font-family: 'Orbitron', monospace;
}

#potential-results-container #results-text { 
    font-size: 1.2rem; 
    margin-top: 1rem; 
    color: #fff;
}

#potential-results-container #results-text strong { 
    color: var(--primary-color); 
}

.quiz-navigation {
    position: relative;
}

.quiz-navigation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 20px;
    background: var(--accent-color);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent-color);
    animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
    0%, 100% { height: 20px; opacity: 0.5; }
    50% { height: 40px; opacity: 1; }
}

/* ================================ */
/* PROCESO */
/* ================================ */
.process { 
    padding: clamp(3rem,8vw,5rem) 0; 
    position: relative; 
    overflow: hidden; 
}

.process::before { 
    content: ''; 
    position: absolute; 
    top: 50%; 
    left: 0; 
    width: 100%; 
    height: 2px; 
    background: linear-gradient(90deg,transparent,var(--primary-color),transparent); 
    animation: scan 3s linear infinite; 
}

@keyframes scan { 
    0%{transform:translateY(-100vh)} 
    100%{transform:translateY(100vh)} 
}

.process-step { 
    text-align: center; 
    position: relative; 
    padding: 2rem; 
    background: rgba(10,10,15,0.6); 
    border-radius: 20px; 
    border: 1px solid rgba(0,255,255,0.2); 
    transition: all 0.3s ease; 
}

.process-step:hover { 
    background: rgba(0,255,255,0.1); 
    border-color: var(--primary-color); 
    transform: translateY(-5px); 
}

.step-number { 
    width: 80px; 
    height: 80px; 
    background: transparent; 
    border: 3px solid var(--primary-color); 
    color: var(--primary-color); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-family: 'Orbitron',monospace; 
    font-size: 2rem; 
    font-weight: 700; 
    margin: 0 auto 1rem; 
    position: relative; 
}

.step-number::before { 
    content: ''; 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    border: 1px solid var(--primary-color); 
    border-radius: 50%; 
    animation: ping 2s cubic-bezier(0,0,0.2,1) infinite; 
}

@keyframes ping { 
    75%,100%{transform:scale(1.5);opacity:0} 
}

.process-step h4 { 
    font-family: 'Orbitron',monospace; 
    color: var(--primary-color); 
    text-transform: uppercase; 
    margin-bottom: 1rem; 
}

.process-step p { 
    color: rgba(255,255,255,0.8); 
}

/* ================================ */
/* CONTACTO */
/* ================================ */
.contact { 
    padding: clamp(3rem,8vw,5rem) 0; 
    background: linear-gradient(135deg,rgba(0,255,255,0.1) 0%,rgba(157,0,255,0.1) 100%); 
    position: relative; 
}

.contact-form { 
    background: rgba(22,33,62,0.95); 
    border: 2px solid rgba(0,255,255,0.4); 
    border-radius: 15px; 
    padding: 40px; 
    box-shadow: 
        0 0 30px rgba(0,255,255,0.2),
        inset 0 0 20px rgba(0,255,255,0.1); 
    backdrop-filter: blur(10px);
    position: relative;
    animation: containerGlow 3s ease-in-out infinite alternate;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ffff, #9d00ff, #00ffff, transparent);
    border-radius: 15px 15px 0 0;
    animation: borderScan 4s linear infinite;
}

@keyframes containerGlow {
    0% { 
        box-shadow: 
            0 0 30px rgba(0, 255, 255, 0.2),
            inset 0 0 20px rgba(0, 255, 255, 0.1);
    }
    100% { 
        box-shadow: 
            0 0 40px rgba(0, 255, 255, 0.4),
            inset 0 0 30px rgba(0, 255, 255, 0.2);
    }
}

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

.contact-form h3 {
    color: #ffffff;
    font-size: 28px;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #00ffff, #9d00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.contact-form > p {
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form .form-control { 
    background: rgba(15, 52, 96, 0.8); 
    border: 2px solid rgba(0,255,255,0.4); 
    border-radius: 8px; 
    padding: 16px; 
    margin-bottom: 20px; 
    font-size: 16px; 
    color: #ffffff; 
    transition: all 0.3s ease; 
    backdrop-filter: blur(5px);
}

.contact-form .form-control:focus { 
    background: rgba(15, 52, 96, 1); 
    border-color: #00ffff; 
    box-shadow: 
        0 0 0 3px rgba(0, 255, 255, 0.2),
        0 0 20px rgba(0, 255, 255, 0.3); 
    outline: none; 
    color: #ffffff; 
    transform: translateY(-2px);
}

.contact-form .form-control::placeholder { 
    color: rgba(255,255,255,0.7); 
    font-style: italic;
}

.contact-form select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2300ffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn-submit { 
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #9d00ff, #00ffff);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(157, 0, 255, 0.3);
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.contact-form .btn-submit:hover::before { 
    left: 100%;
}

.contact-form .btn-submit:hover { 
    transform: translateY(-3px);
    box-shadow: 
        0 6px 25px rgba(157, 0, 255, 0.4),
        0 0 30px rgba(0, 255, 255, 0.3);
}

.contact-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contact-form .btn-submit .loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.form-feedback-message { 
    text-align: center; 
    margin: 20px 0; 
    font-weight: 600; 
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: messageAppear 0.5s ease-out;
}

.form-feedback-message.success { 
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.2), rgba(46, 213, 115, 0.1));
    border: 1px solid rgba(46, 213, 115, 0.5);
    color: #2ed573;
    animation: successPulse 2s ease-in-out;
}

.form-feedback-message.error { 
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(255, 71, 87, 0.1));
    border: 1px solid rgba(255, 71, 87, 0.5);
    color: #ff4757;
    animation: errorShake 0.5s ease-in-out;
}

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

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ================================ */
/* FOOTER */
/* ================================ */
footer { 
    background: rgba(10,10,15,0.9); 
    color: #fff; 
    padding: 3rem 0; 
    text-align: center; 
    border-top: 1px solid rgba(0,255,255,0.3); 
}

footer p { 
    color: rgba(255,255,255,0.8); 
}

.social-links a { 
    color: var(--primary-color); 
    font-size: 1.5rem; 
    margin: 0 1rem; 
    transition: all 0.3s ease; 
}

.social-links a:hover { 
    color: var(--secondary-color); 
    text-shadow: 0 0 10px currentColor; 
    transform: translateY(-3px); 
}

/* ================================ */
/* CHAT WIDGET */
/* ================================ */
.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(157, 0, 255, 0.4);
    transition: all 0.3s ease;
    animation: chat-pulse 2s ease-in-out infinite;
}

.ai-chat-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(157, 0, 255, 0.6);
}

.ai-chat-widget i {
    color: white;
    font-size: 24px;
}

@keyframes chat-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(157, 0, 255, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(157, 0, 255, 0.8), 0 0 20px rgba(157, 0, 255, 0.4); }
}

.chat-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: rgba(10, 10, 15, 0.95);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateY(100%) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.chat-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(157, 0, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(157, 0, 255, 0.2), rgba(0, 255, 255, 0.1));
    border-radius: 18px 18px 0 0;
}

.chat-header span {
    color: var(--accent-color);
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chat-close {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.chat-close:hover {
    background: rgba(157, 0, 255, 0.2);
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: message-appear 0.3s ease-out;
}

.chat-message.ai {
    background: linear-gradient(135deg, rgba(157, 0, 255, 0.2), rgba(0, 255, 255, 0.1));
    border: 1px solid rgba(157, 0, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    align-self: flex-start;
    border-radius: 15px 15px 15px 5px;
}

.chat-message.user {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(157, 0, 255, 0.1));
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    align-self: flex-end;
    border-radius: 15px 15px 5px 15px;
}

@keyframes message-appear {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.chat-input-container {
    padding: 1rem;
    border-top: 1px solid rgba(157, 0, 255, 0.3);
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(157, 0, 255, 0.3);
    border-radius: 25px;
    padding: 0.8rem 1rem;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(157, 0, 255, 0.3);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-send {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(157, 0, 255, 0.4);
}

.chat-send i {
    font-size: 16px;
}

/* ================================ */
/* LOADER AVANZADO */
/* ================================ */
.advanced-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-bg) 0%, rgba(26,26,46,0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
    pointer-events: auto;
}

.advanced-loader.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.quantum-loader {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
}

.quantum-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: quantum-spin 2s linear infinite;
}

.quantum-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: var(--accent-color);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.quantum-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: var(--secondary-color);
    animation-duration: 1s;
}

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

.loading-messages {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-messages span {
    animation: glow-text 2s ease-in-out infinite alternate;
}

@keyframes glow-text {
    0% { 
        text-shadow: 0 0 20px var(--primary-color);
        color: var(--primary-color);
    }
    100% { 
        text-shadow: 0 0 30px var(--primary-color), 0 0 40px var(--primary-color);
        color: rgba(0, 255, 255, 0.8);
    }
}

.loading-progress {
    width: 300px;
    height: 4px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    width: 0%;
    animation: progress-fill 4s ease-in-out forwards;
    box-shadow: 0 0 10px var(--primary-color);
}

@keyframes progress-fill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ================================ */
/* CURSOR FUTURISTA */
/* ================================ */
.futuristic-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out;
    transform: translate(-50%, -50%);
}

.futuristic-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    animation: cursor-pulse 2s ease-in-out infinite;
}

.futuristic-cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: radial-gradient(circle, var(--accent-color), transparent);
    border-color: var(--accent-color);
}

.futuristic-cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
}

@keyframes cursor-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

.cursor-trail {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.7;
    transform: translate(-50%, -50%);
    animation: trail-fade 0.5s ease-out forwards;
}

@keyframes trail-fade {
    0% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
}

/* ================================ */
/* MODALES */
/* ================================ */
.modal-content { 
    background-color: var(--dark-surface)!important; 
    border: 1px solid var(--primary-color)!important; 
    color: #fff!important; 
}

.modal-header { 
    border-bottom: 1px solid rgba(0,255,255,0.3)!important; 
}

.modal-header .btn-close { 
    filter: invert(1) grayscale(0%) brightness(200%); 
}

.modal-title { 
    color: var(--primary-color)!important; 
    font-family: 'Orbitron',monospace; 
}

.modal-body p,.modal-body li { 
    font-family: 'Space Grotesk',sans-serif; 
    color: rgba(255,255,255,0.8); 
}

.modal-body h6 { 
    color: var(--accent-color); 
    font-family: 'Orbitron',monospace; 
    margin-top: 1rem; 
    margin-bottom: .5rem; 
}

.modal-footer { 
    border-top: 1px solid rgba(0,255,255,0.3)!important; 
}

.modal-footer .btn-outline-secondary { 
    color: var(--primary-color); 
    border-color: var(--primary-color); 
}

.modal-footer .btn-outline-secondary:hover { 
    background-color: var(--primary-color); 
    color: var(--dark-bg); 
}

.modal { z-index: 1055; }
.modal-backdrop { z-index: 1050; background-color: rgba(0,0,0,0.7); }
.modal-dialog { z-index: 1060; }
.modal.show { display: block !important; }
.modal-content { border-radius: 15px; box-shadow: 0 0 30px rgba(0,255,255,0.3); }
.modal-body ul { padding-left: 1.5rem; }
.modal-body li { margin-bottom: 0.5rem; list-style-type: disc; }

button[data-bs-toggle="modal"] {
    pointer-events: all !important;
    position: relative;
    z-index: 100;
    cursor: pointer !important;
}

button[data-bs-toggle="modal"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px var(--accent-color) !important;
}

button[data-bs-toggle="modal"]:active {
    transform: translateY(0) !important;
    transition: transform 0.1s ease !important;
}

.modal-backdrop.fade:not(.show) {
    display: none !important;
}

body:not(.modal-open) .modal-backdrop {
    display: none !important;
}

.modal:not(.show) {
    display: none !important;
    pointer-events: none !important;
}

body:not(.modal-open) {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* ================================ */
/* UTILIDADES */
/* ================================ */
#scroll-progress-bar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    height: 5px; 
    background: linear-gradient(90deg,var(--primary-color),var(--secondary-color),var(--accent-color)); 
    width: 0%; 
    z-index: 10000; 
    transition: width .1s ease-out; 
    box-shadow: 0 0 10px var(--primary-color); 
}

.btn-hero .sparkle-container { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    pointer-events: none; 
    overflow: hidden; 
    border-radius: 50px; 
}

.btn-hero .sparkle { 
    position: absolute; 
    width: 4px; 
    height: 4px; 
    background: var(--primary-color); 
    border-radius: 50%; 
    box-shadow: 0 0 5px var(--primary-color),0 0 10px var(--primary-color); 
    opacity: 0; 
    animation: sparkle-effect .6s ease-out forwards 
}

@keyframes sparkle-effect { 
    0%{transform:scale(.5) translate(var(--sx,0px),var(--sy,0px));opacity:1} 
    100%{transform:scale(1.5) translate(calc(var(--sx,0px) + var(--tx,0px)),calc(var(--sy,0px) + var(--ty,0px)));opacity:0} 
}

.circuit-pattern { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    opacity: .03; 
    background-image: linear-gradient(var(--primary-color) 1px,transparent 1px),linear-gradient(90deg,var(--primary-color) 1px,transparent 1px); 
    background-size: 50px 50px; 
    animation: circuit 20s linear infinite; 
    z-index: -1; 
}

@keyframes circuit { 
    0%{transform:translate(0,0)} 
    100%{transform:translate(50px,50px)} 
}

@keyframes energy-pulse {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(5); opacity: 0; }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(157, 0, 255, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(157, 0, 255, 0.6), 0 0 20px rgba(157, 0, 255, 0.4);
        transform: scale(1.02);
    }
}

/* ================================ */
/* RESPONSIVE DESIGN */
/* ================================ */
@media (max-width:1200px) { 
    .hero h1{font-size:2.8rem;line-height:1.2;word-wrap:break-word} 
    .section-title h2{font-size:2.5rem} 
}

@media (max-width:992px) { 
    .hero h1{font-size:2.5rem;line-height:1.2;word-wrap:break-word} 
    .hero p{font-size:1.2rem} 
    .service-icon{width:80px;height:80px;font-size:2.5rem} 
    .process-step{margin-bottom:2rem} 
}

@media (max-width:768px) { 
    /* ================================ */
/* ESTILOS PARA FORMULARIOS PHP */
/* ================================ */

/* Reset y configuración base - SOLO para páginas PHP */
.php-form-container * {
    box-sizing: border-box;
}

body.php-form-page {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
}

/* Fondo animado futurista - SOLO para páginas PHP */
body.php-form-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(157, 0, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Encabezados generales - SOLO para formularios PHP */
.php-form-container h1, 
.php-form-container h2, 
.php-form-container h3, 
.php-form-container h4, 
.php-form-container h5, 
.php-form-container h6 {
    color: #ffffff !important;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    font-weight: 600;
}

.php-form-container h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #00ffff, #9d00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Párrafos - SOLO para formularios PHP */
.php-form-container p {
    color: #e0e0e0 !important;
    margin-bottom: 16px;
    font-size: 16px;
}

/* Etiquetas de campos - SOLO para formularios PHP */
.php-form-container label {
    display: block;
    color: #ffffff !important;
    font-weight: 600 !important;
    margin-bottom: 8px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Campos de entrada - SOLO para formularios PHP */
.php-form-container input[type="text"],
.php-form-container input[type="email"],
.php-form-container input[type="tel"],
.php-form-container input[type="number"],
.php-form-container input[type="password"],
.php-form-container input[type="url"],
.php-form-container textarea,
.php-form-container select {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 8px;
    background: rgba(15, 52, 96, 0.8) !important;
    color: #ffffff !important;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.php-form-container input:focus,
.php-form-container textarea:focus,
.php-form-container select:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    background: rgba(15, 52, 96, 1) !important;
}

/* Botones - SOLO para formularios PHP */
.php-form-container .btn-primary {
    background: linear-gradient(135deg, #00ffff, #9d00ff);
    border: none;
    color: #000000;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}

.php-form-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
    background: linear-gradient(135deg, #9d00ff, #00ffff);
}

/* Alertas - SOLO para formularios PHP */
.php-form-container .alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid;
    font-weight: 600;
}

.php-form-container .alert-success {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #00ff00;
}

.php-form-container .alert-danger {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    color: #ff0000;
}

/* Configuración básica para móviles */
html, body {
    -webkit-overflow-scrolling: touch;
}
    
    .navbar-brand{font-size:1.3rem} 
    .nav-link{margin:.5rem 0;text-align:center} 
    .hero{text-align:center} 
    .hero h1{font-size:1.8rem;margin-bottom:1rem;word-wrap:break-word;overflow-wrap:break-word;white-space:normal} 
    .hero p{font-size:1rem;margin-bottom:1.5rem} 
    .btn-hero{display:block;width:100%;margin-bottom:1rem;padding:.8rem 2rem;font-size:1rem;margin-right:0} 
 
    .section-title h2{font-size:2rem} 
    .section-title p.lead{font-size:1rem} 
    .service-card{margin-bottom:2rem;padding:2rem} 
    .service-icon{width:70px;height:70px;font-size:2rem} 
    .service-card h3{font-size:1.3rem} 
    .service-card p{font-size:.9rem} 
    .process-step{padding:1.5rem} 
    .step-number{width:60px;height:60px;font-size:1.5rem} 
    .process-step h4{font-size:1.2rem} 
    .process-step p{font-size:.9rem} 
    .contact-form{padding:2rem} 
    .form-control{font-size:.9rem;padding:.8rem} 
    .btn-submit{padding:.8rem 2rem;font-size:1rem} 
    footer{padding:2rem 0} 
    .social-links a{font-size:1.3rem;margin:0 .5rem} 
    
    .futuristic-cursor {
        display: none;
    }
    
    .cursor-trail {
        display: none;
    }
    
    .quantum-loader {
        width: 80px;
        height: 80px;
    }
    
    .loading-messages {
        font-size: 1rem;
    }
    
    .loading-progress {
        width: 250px;
    }
    
    .chat-panel {
        width: 300px;
        height: 450px;
        right: 20px;
    }
    
    .ai-chat-widget {
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
    }
    
    .ai-chat-widget i {
        font-size: 20px;
    }
    
    @keyframes float{
        0%,100%{transform:translate(-50%,-50%) translateY(0)}
        50%{transform:translate(-50%,-50%) translateY(-10px)}
    } 
    
    .matrix-bg{opacity:.02} 
    .circuit-pattern{background-size:30px 30px} 
}

@media (max-width:576px) { 
    .hero h1{font-size:1.8rem;letter-spacing:1px;word-wrap:break-word;overflow-wrap:break-word;white-space:normal} 
    .hero p{font-size:.9rem} 
    .navbar-brand{font-size:1.1rem;letter-spacing:1px} 
    .lang-switcher{padding:.4rem 1rem;font-size:.9rem} 
 
    .section-title h2{font-size:1.6rem} 
    .service-card{padding:1.5rem} 
    .contact-form{padding:1.5rem} 
    .neural-bg{display:none} 
    .process::before{display:none} 
    
    .chat-panel {
        width: calc(100vw - 40px);
        height: 400px;
        right: 20px;
        left: 20px;
    }
}

@media (max-width:400px) { 
    .hero h1{font-size:1.5rem;word-wrap:break-word;overflow-wrap:break-word;white-space:normal} 
    .btn-hero{padding:.7rem 1.5rem;font-size:.9rem} 
    .section-title h2{font-size:1.4rem} 
    .dna-loader{width:40px;height:40px} 
}

@media (prefers-reduced-motion:reduce) { 
    *,::before,::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important} 
    .navbar-brand,.hero h1,.service-icon::before,.service-icon::after,.step-number::before,.dna-loader::before,.dna-loader::after,.typing,.circuit-pattern,.service-card:hover::before,.btn-hero::before,.btn-submit::before{animation:none!important} 
    .btn-hero:hover,.service-card:hover,.process-step:hover,.btn-submit:hover,.social-links a:hover,.lang-switcher:hover{transform:none!important;box-shadow:none!important} 
    .lang-switcher:hover::before{width:0;height:0} 
    .btn-hero .sparkle{display:none} 
    .typing{border-right:none} 
    .process::before{display:none} 
}

/* ================================
   N8N IFRAME STYLES - INTEGRATED
   ================================ */

/* Tarjeta del formulario n8n */
.n8n-form-card {
    background: rgba(22, 33, 62, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 
        0px 8px 32px 0px rgba(0, 255, 255, 0.2), 
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 32px;
    margin: 0 auto 24px;
    position: relative;
    backdrop-filter: blur(10px);
    animation: formSlideIn 0.8s ease-out;
}

.n8n-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    border-radius: 15px 15px 0 0;
    animation: borderGlow 3s ease-in-out infinite;
}

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

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Encabezados del formulario */
.n8n-form-header {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    font-family: 'Orbitron', sans-serif;
}

.n8n-form-subheader {
    color: #a0a0a0;
    font-size: 16px;
    text-align: center;
    margin-bottom: 24px;
    opacity: 0.9;
}

/* Contenedor del iframe */
.n8n-iframe-container {
    position: relative;
    width: 100%;
    min-height: 700px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 52, 96, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.4);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    animation: iframeGlow 3s ease-in-out infinite alternate;
}

.n8n-iframe-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ffff, #9d00ff, #00ffff, transparent);
    border-radius: 12px 12px 0 0;
    animation: borderScan 4s linear infinite;
}

@keyframes iframeGlow {
    0% { 
        box-shadow: 
            0 0 30px rgba(0, 255, 255, 0.2),
            inset 0 0 20px rgba(0, 255, 255, 0.1);
    }
    100% { 
        box-shadow: 
            0 0 40px rgba(0, 255, 255, 0.4),
            inset 0 0 30px rgba(0, 255, 255, 0.2);
    }
}

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

/* Iframe principal */
.n8n-iframe {
    width: 100%;
    height: 700px;
    min-height: 700px;
    border: none;
    border-radius: 10px;
    background: transparent;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 2;
}

/* Indicador de carga */
.iframe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #00ffff;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.iframe-loading p {
    margin-top: 1rem;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    text-shadow: 0 0 10px #00ffff;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Spinner de carga futurista */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-top: 3px solid #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    position: relative;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid rgba(157, 0, 255, 0.3);
    border-top: 2px solid #9d00ff;
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-top: 2px solid #ff00ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Ocultar loading cuando iframe carga */
.n8n-iframe-container.loaded .iframe-loading {
    opacity: 0;
    pointer-events: none;
}

.n8n-iframe-container.loaded .n8n-iframe {
    opacity: 1;
}

/* Responsive para iframe */
@media (max-width: 768px) {
    .n8n-form-card {
        padding: 20px;
    }
    
    .n8n-form-header {
        font-size: 20px;
    }
    
    .n8n-iframe-container {
        min-height: 650px;
    }
    
    .n8n-iframe {
        height: 650px;
        min-height: 650px;
    }
}

@media (max-width: 576px) {
    .n8n-form-card {
        padding: 16px;
    }
    
    .n8n-form-header {
        font-size: 18px;
    }
    
    .n8n-iframe-container {
        min-height: 600px;
    }
    
    .n8n-iframe {
        height: 600px;
        min-height: 600px;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
    
    .iframe-loading p {
        font-size: 0.9rem;
    }
}

/* Efectos adicionales para el iframe */
.n8n-iframe-container:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 50px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.15);
}

/* Animación de entrada */
@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}