:root {
    --bg-dark: #050810;
    --primary-blue: #0044ff;
    --neon-cyan: #00f3ff;
    --text-gray: #a0aab5;
    --glass: rgba(10, 20, 40, 0.65);
    --glass-border: rgba(0, 243, 255, 0.1);
    --nav-height: 90px;
}

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

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

.text-muted {
    color: var(--text-gray);
}

/* --- 3D CANVAS BACKGROUND --- */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 8, 16, 0.85);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    text-transform: uppercase;
}

.logo span {
    color: white;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.cta-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Space Mono', monospace;
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-height) + 30px) 10% 160px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #8aaeff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 15, 40, 0.6);
    font-size: 0.95rem;
    color: var(--text-gray);
    font-family: 'Space Mono', monospace;
    margin-bottom: 30px;
}

.typing-label {
    letter-spacing: 2px;
    color: var(--neon-cyan);
    font-size: 0.75rem;
}

#typing-text {
    color: white;
}

.typing-cursor {
    color: var(--neon-cyan);
    animation: blink 1s step-end infinite;
}

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

.hero .glitch-text {
    font-family: 'Space Mono', monospace;
    color: var(--neon-cyan);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hero p {
    max-width: 600px;
    color: var(--text-gray);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* --- SERVICES GRID --- */
.services {
    padding: 100px 10%;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    display: inline-block;
    border-left: 5px solid var(--neon-cyan);
    padding-left: 20px;
}

.section-title.centered {
    border-left: none;
    padding-left: 0;
    text-align: center;
    display: block;
    margin: 0 auto 30px;
    border-bottom: 3px solid var(--neon-cyan);
    padding-bottom: 15px;
    width: fit-content;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

#partners, #services, #ai, #infra, #dev, #portfolio, #team, #testimonials {
    scroll-margin-top: calc(var(--nav-height) + 20px);
}

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

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 15px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.card i {
    font-size: 2.5rem;
    color: var(--neon-cyan);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- TECH STACK & SHOWCASE --- */
.hero-tech-strip {
    width: 100vw;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

.tech-strip {
    background: rgba(3, 6, 16, 0.75);
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- PARTNERS --- */
.partners {
    padding: 80px 0 50px;
    position: relative;
    overflow: hidden;
}

.partners-content {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    padding: 0 20px;
}

.partner-strip {
    position: relative;
    overflow: hidden;
    padding: 18px 0 5px;
}

.partner-track {
    display: flex;
    gap: 20px;
    animation: partners-scroll 35s linear infinite;
    will-change: transform;
    /* Ensure smooth scrolling */
    min-width: max-content; 
}

/* Pause animation on hover for better UX */
.partner-track:hover {
    animation-play-state: paused;
}

/* Handle case where content is not enough to scroll - ONLY if explicitly needed, 
   but usually duplicated content handles this. 
   However, "No partners available" should not scroll. */
.partner-track:has(.partner-card:only-child) {
    animation: none;
    justify-content: center;
    width: 100%;
}

.partner-card {
    flex: 0 0 auto;
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

.partner-name {
    margin-top: 12px;
    color: var(--text-gray);
}

.partner-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: white;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.partner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes partners-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partners::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg, var(--bg-dark), transparent 15%, transparent 85%, var(--bg-dark));
    z-index: 0;
}

.partners>* {
    position: relative;
    z-index: 1;
}

.tech-track {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.tech-item {
    display: inline-block;
    margin: 0 30px;
    font-family: 'Space Mono', monospace;
    color: #556677;
    font-size: 1.2rem;
    font-weight: 700;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.portfolio {
    padding: 100px 10%;
}

.portfolio-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.portfolio-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.portfolio-row .port-item {
    width: 100%;
}

.port-item.placeholder {
    visibility: hidden;
}

@media (max-width: 900px) {
    .portfolio-row {
        grid-template-columns: 1fr;
    }
}

.port-item {
    background: linear-gradient(45deg, #1a1f2e, #0f1219);
    padding: 20px 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
    justify-content: space-between;
    flex: 1 1 260px;
}

.port-main {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.port-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-pill-btn {
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.demo-pill-btn:hover {
    background: var(--neon-cyan);
    color: #041019;
    border-color: var(--neon-cyan);
}

.port-item:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.05);
}

.port-tag {
    font-size: 0.7rem;
    background: var(--primary-blue);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Space Mono', monospace;
}

/* --- TEAM & TESTIMONIALS --- */
.team {
    padding: 100px 10%;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    transition: 0.3s;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neon-cyan);
    margin-bottom: 20px;
}

.team-role {
    font-family: 'Space Mono', monospace;
    color: var(--neon-cyan);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.team-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.testimonial-slide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    position: absolute;
    inset: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 50px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.testimonial-dot.active {
    background: var(--neon-cyan);
    transform: scale(1.3);
}

.testimonials {
    position: relative;
    overflow: hidden;
    padding: 110px 10%;
}


.testimonial-card {
    background: linear-gradient(160deg, rgba(10, 20, 40, 0.92), rgba(0, 70, 120, 0.35));
    border: 1px solid rgba(0, 243, 255, 0.12);
    border-radius: 24px;
    padding: 120px 32px 42px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.testimonial-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.testimonial-card .quote {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.08);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.7;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.testimonial-avatar-wrapper {
    position: absolute;
    top: 32px;
    left: 32px;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.testimonial-avatar {
    width: 65px;
    height: 65px;
    border-radius: 15px;
    object-fit: cover;
}

.testimonial-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    font-size: 1.2rem;
}

.testimonial-user strong {
    display: block;
    color: white;
}

.testimonial-user span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.testimonial-meta {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: 8px;
    opacity: 0.7;
}

/* --- FOOTER --- */
footer {
    padding: 50px 10%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* --- WISP PRODUCT SHOWCASE --- */
.product-showcase {
    padding: 100px 10%;
    background: linear-gradient(180deg, rgba(5, 8, 16, 0) 0%, rgba(0, 68, 255, 0.05) 50%, rgba(5, 8, 16, 0) 100%);
}

.product-hero {
    text-align: center;
    margin-bottom: 80px;
}

.product-hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.workflow-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.step-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    width: 250px;
    text-align: center;
    position: relative;
}

.step-card::after {
    content: '→';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--neon-cyan);
    opacity: 0.5;
}

.step-card:last-child::after {
    display: none;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--neon-cyan);
    margin-bottom: 20px;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse .feature-text {
    direction: ltr;
}

.feature-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.feature-image:hover img {
    transform: scale(1.02);
}

.feature-text h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
}

.feature-text p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d0d0d0;
}

.feature-list li i {
    color: var(--neon-cyan);
}

.ticket-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.ticket-img-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.ticket-img-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
}

.ticket-img-card img {
    width: 100%;
    height: auto;
}

.ticket-caption {
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
}

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

    .step-card::after {
        display: none;
        transform: rotate(90deg);
        right: auto;
        bottom: -30px;
        left: 50%;
    }

    .workflow-steps {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    nav {
        padding: 20px;
    }

    .nav-links {
        display: none;
    }

    /* Simple hide for mobile demo */
    .team,
    .testimonials {
        padding: 60px 8%;
    }

    .typing-badge {
        display: none; /* Ocultar en móvil para evitar saltos de línea y reflow */
    }

    .partner-card {
        width: 100px;
    }

    nav {
        padding: 0 20px;
    }

    /* Testimonios móvil - mostrar de a 1 */
    .testimonial-carousel {
        min-height: auto;
    }

    .testimonial-slide {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 90px 24px 32px;
    }

    .testimonial-avatar-wrapper {
        width: 65px;
        height: 65px;
        top: 24px;
        left: 24px;
    }

    .testimonial-avatar {
        width: 52px;
        height: 52px;
    }

    .testimonial-text {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }

    .testimonial-dots {
        margin-top: 30px;
    }
}

/* --- SYSTEM MODAL (REPLACEMENT FOR OFFCANVAS) --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.system-window {
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    max-height: 90vh;
    background: rgba(10, 20, 40, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    position: relative;
}

/* Gradient border effect */
.system-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0.6;
    z-index: 10;
}

.modal-backdrop.active .system-window {
    transform: scale(1) translateY(0);
}

/* Window Header */
.window-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    flex-shrink: 0;
}

.window-title {
    font-family: 'Space Mono', monospace;
    color: var(--neon-cyan);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 1px;
    font-weight: 700;
}

.window-title::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.window-controls button {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.window-controls button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Window Content */
.window-body {
    overflow-y: auto;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) rgba(0, 0, 0, 0.3);
    flex: 1;
    overscroll-behavior: contain; /* CRITICAL FIX FOR MOBILE SCROLL */
    scroll-behavior: smooth;
}

.window-body::-webkit-scrollbar {
    width: 6px;
}

.window-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.window-body::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 3px;
}

/* Adjust product showcase for modal */
.product-showcase {
    padding: 50px 6%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 68, 255, 0.08), transparent 70%);
}

/* Trigger Button Styling */
.trigger-wisp-demo {
    cursor: pointer;
    position: relative;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.trigger-wisp-demo::before {
    content: 'VER SISTEMA';
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--neon-cyan);
    color: black;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    animation: pulse-badge 2s infinite;
}

/* --- CONTRACT FLOW --- */
.contract-modal {
    background: rgba(2, 5, 12, 0.9);
    backdrop-filter: blur(12px);
}

.contract-window {
    width: min(1100px, 96vw);
    height: min(90vh, 760px);
    background: rgba(5, 10, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    display: flex;
    overflow: hidden;
    position: relative;
}

.contract-sidebar {
    width: 320px;
    background: linear-gradient(180deg, rgba(0, 68, 255, 0.25), rgba(0, 243, 255, 0.1));
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.contract-sidebar h3 {
    margin-bottom: 8px;
}

.contract-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contract-step-list li {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    opacity: 0.6;
}

.contract-step-list li.active,
.contract-step-list li.completed {
    opacity: 1;
    border-color: rgba(0, 243, 255, 0.5);
}

.contract-step-list span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
}

.contract-sidebar-footer .cta-link {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
}
.contract-sidebar-footer .cta-link:hover {
    text-decoration: underline;
}

.contract-content {
    flex: 1;
    padding: 30px;
    position: relative;
    overflow-y: auto;
}

.contract-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
}

.contract-step {
    display: none;
    height: 100%;
}

.contract-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.step-tag {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.contract-kind-toggle {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 20px 0 30px;
}

.contract-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.contract-choice {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.02);
    color: inherit;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.contract-choice span {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-gray);
}

.contract-choice strong {
    font-size: 1.05rem;
}

.contract-choice.active {
    border-color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 243, 255, 0.12);
}

.contract-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.contract-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    color: inherit;
    text-align: left;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.contract-card i {
    font-size: 1.4rem;
    color: var(--neon-cyan);
}

.contract-card.selected {
    border-color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.08);
}

.contract-tabs {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
}

.contract-tabs button {
    background: transparent;
    border: none;
    padding: 10px 20px;
    color: var(--text-gray);
    cursor: pointer;
}

.contract-tabs button.active {
    background: rgba(0, 243, 255, 0.1);
    color: white;
}

.contract-tab {
    display: none;
}

.contract-tab.active {
    display: block;
}

.contract-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contract-form input,
.contract-form textarea,
.contract-form select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 243, 255, 0.12);
    background: rgba(8, 12, 20, 0.85);
    color: #fff;
    font-family: inherit;
}

.contract-form input:focus,
.contract-form textarea:focus,
.contract-form select:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 2px rgba(0, 243, 255, 0.15);
}

.contract-auth-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    margin-top: 15px;
}

.contract-auth-card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contract-auth-card input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    color: white;
}

.contract-auth-card input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 2px rgba(0, 243, 255, 0.12);
}

.contract-auth-card button {
    margin-top: 6px;
    width: 100%;
}

.contract-select {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(0, 243, 255, 0.2) !important;
    color: #fff;
    border-radius: 12px;
    padding: 12px;
    transition: 0.2s;
}

.contract-select:focus {
    outline: none;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 0 2px rgba(0, 243, 255, 0.15);
}

.contract-choice-label {
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-gray);
}

.contract-choice h3 {
    font-size: 1.15rem;
    margin: 4px 0 6px;
    color: #fff;
}

.contract-choice-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.contract-choice-list li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.contract-choice-list li::before {
    content: '•';
    color: var(--neon-cyan);
    font-size: 1rem;
}

.contract-option-wrapper {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 20px 22px;
}

.contract-option-header {
    margin-bottom: 20px;
}

.contract-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.contract-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.contract-primary-btn,
.contract-secondary-btn {
    border: 1px solid var(--neon-cyan);
    background: transparent;
    color: var(--neon-cyan);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.contract-primary-btn {
    background: var(--neon-cyan);
    color: black;
}

.contract-secondary-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-gray);
}

.contract-auth-state {
    border: 1px solid rgba(0, 243, 255, 0.4);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.contract-auth-state i {
    color: var(--neon-cyan);
    font-size: 1.5rem;
}

.contract-step .text-muted {
    display: block;
    margin-bottom: 18px;
}

.contract-auth-state {
    margin-top: 12px;
}

.contract-form label {
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contract-form label:first-of-type {
    margin-top: 0;
}

.contract-form textarea,
.contract-form input,
.contract-form select {
    margin-bottom: 4px;
}

.contract-step h2 {
    margin-bottom: 6px;
}

.contract-summary-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    margin-top: 20px;
}

.desktop-only {
    display: block;
}

.contract-choice-extra {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.contract-success {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.success-icon-wrapper {
    font-size: 4rem;
    color: var(--neon-cyan);
    animation: pulse-badge 2s infinite;
}

.contract-success h2 {
    margin: 0;
    font-size: 2rem;
    background: linear-gradient(90deg, #fff, var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contract-success p {
    max-width: 420px;
    line-height: 1.6;
    color: var(--text-gray);
}

.contract-actions.center {
    justify-content: center;
}

.contract-alert {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    margin-bottom: 16px;
}

.contract-alert.success {
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(52, 211, 153, 0.12);
    color: #86efac;
}

.contract-secondary-btn.small {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 8px;
}

.hidden {
    display: none !important;
}

.contract-mobile-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 16px;
}

.contract-mobile-head h3 {
    margin: 0;
    font-size: 1.25rem;
}

.mobile-panel-link {
    display: none;
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

body.contract-flow-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.contract-modal {
    overscroll-behavior: contain;
}

.contract-content {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }

    /* Modal de contrato - ajuste móvil similar al modal de contacto */
    .contract-modal {
        padding: 0;
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .contract-window {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        max-height: none;
        height: auto;
        border-radius: 16px;
        border: none;
        margin: 10px;
        margin-bottom: calc(100px + env(safe-area-inset-bottom, 20px));
    }

    .contract-sidebar {
        display: none;
    }

    .contract-mobile-head {
        display: flex;
    }

    .mobile-panel-link {
        display: inline-flex;
    }

    .contract-choice-grid {
        grid-template-columns: 1fr;
    }

    .contract-content {
        padding: 20px 16px;
        padding-top: 60px;
        padding-bottom: 24px;
        max-height: none;
        overflow-y: visible;
    }

    .contract-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }

    /* Prevent zoom on mobile inputs */
    .contract-step input,
    .contract-step textarea,
    .contract-step select {
        font-size: 16px !important;
        -webkit-text-size-adjust: 100%;
    }

    .contract-option-wrapper {
        padding: 16px;
    }

    .contract-actions {
        flex-direction: column-reverse;
    }

    .contract-primary-btn,
    .contract-secondary-btn {
        width: 100%;
        justify-content: center;
    }

    .contract-step h2 {
        font-size: 1.3rem;
    }

    .contract-mobile-head {
        margin-bottom: 12px;
    }

    .contract-mobile-head h3 {
        font-size: 1.1rem;
    }
}

@keyframes pulse-badge {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(0, 243, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 243, 255, 0);
    }
}
