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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #0b0b0f;
    color: #f7f7f5;
    line-height: 1.6;
}


/* NAVBAR */

header {
    width: 100%;
    border-bottom: 1px solid #222228;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #f7f7f5;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo span {
    color: #4f7cff;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #8a8a93;
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #f7f7f5;
}


/* GENERAL */

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 30px;
}

.eyebrow {
    color: #4f7cff;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
}


/* HERO */

/* HERO */

.hero {
    position: relative;
    overflow: hidden;

    max-width: 1400px;
    min-height: 80vh;
    margin: 0 auto;

    padding: 100px 50px;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 80px;
}

.hero::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    top: -200px;
    right: -150px;

    background: radial-gradient(
        circle,
        rgba(79, 124, 255, 0.12) 0%,
        rgba(79, 124, 255, 0.04) 35%,
        transparent 70%
    );

    pointer-events: none;
}

.hero-content,
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 750px;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 82px);
    line-height: 1.02;
    letter-spacing: -4px;
    margin-bottom: 30px;
}

.hero-text {
    max-width: 620px;
    color: #8a8a93;
    font-size: 20px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


/* HERO VISUAL */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.system-card {
    width: 100%;
    max-width: 480px;

    padding: 30px;

    background-color: #111116;

    border: 1px solid #292930;
    border-radius: 20px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35);

    position: relative;
    overflow: hidden;
}


/* LÍNEA DE LUZ */

.system-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background-color: #4f7cff;
}


/* CABECERA */

.system-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    padding-bottom: 30px;

    border-bottom: 1px solid #292930;
}

.system-label {
    color: #4f7cff;

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 2px;
}

.system-header h2 {
    margin-top: 8px;

    font-size: 22px;
    line-height: 1.2;
}

.status {
    color: #65d68a;

    font-size: 10px;
    font-weight: bold;

    letter-spacing: 1px;

    white-space: nowrap;
}


/* FLUJO */

.system-flow {
    padding: 25px 0;
}

.flow-item {
    display: grid;

    grid-template-columns: 40px 1fr auto;

    align-items: center;

    gap: 15px;
}

.flow-number {
    color: #4f7cff;

    font-size: 12px;
    font-weight: bold;
}

.flow-item h3 {
    font-size: 15px;
    letter-spacing: 1px;
}

.flow-item p {
    color: #8a8a93;

    font-size: 13px;

    margin-top: 3px;
}

.flow-check {
    width: 28px;
    height: 28px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background-color: #18251d;

    color: #65d68a;

    font-size: 14px;
}

.flow-line {
    width: 1px;
    height: 25px;

    margin-left: 19px;

    background-color: #292930;
}


/* PIE */

.system-footer {
    display: flex;
    align-items: center;

    gap: 8px;

    padding-top: 20px;

    border-top: 1px solid #292930;

    color: #5f5f68;

    font-size: 10px;
    letter-spacing: 1px;
}

.footer-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background-color: #65d68a;
}
/* BUTTONS */

.button {
    display: inline-block;

    padding: 14px 24px;

    background-color: #4f7cff;
    color: white;

    border: none;
    border-radius: 8px;

    text-decoration: none;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

.button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.button-secondary {
    background-color: transparent;
    border: 1px solid #33333d;
}


/* SECTION HEADER */

.section-header {
    max-width: 700px;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-header > p:last-child {
    color: #8a8a93;
    font-size: 18px;
}


/* SERVICES */

.services {
    border-top: 1px solid #222228;
}

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

.service-card {
    padding: 40px;

    border: 1px solid #292930;
    border-radius: 15px;

    background-color: #111116;

    position: relative;
    overflow: hidden;

    transition: 
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background-color: #4f7cff;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);

    border-color: #4f7cff;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(79, 124, 255, 0.06);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-number {
    color: #4f7cff;
    font-weight: bold;
    font-size: 14px;
}

.service-card h3 {
    font-size: 32px;
    margin: 20px 0;
}

.service-card p {
    color: #8a8a93;
    margin-bottom: 25px;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 8px 0;
    border-bottom: 1px solid #222228;
}


/* PROCESS */

.process {
    border-top: 1px solid #222228;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.process-step {
    padding: 25px 0;
}

.process-step span {
    color: #4f7cff;
    font-weight: bold;
}

.process-step h3 {
    margin: 15px 0 10px;
    font-size: 22px;
}

.process-step p {
    color: #8a8a93;
}


/* CONTACT */

.contact-section {
    border-top: 1px solid #222228;
}

#contactForm {
    display: none;

    max-width: 500px;
    margin: 60px auto 0;
    padding: 40px;

    background-color: #111116;

    border: 1px solid #292930;
    border-radius: 15px;
}

#contactForm h2 {
    margin-bottom: 30px;
}

#contactForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

#contactForm input,
#contactForm select,
#contactForm textarea {
    width: 100%;

    padding: 12px;

    margin-bottom: 20px;

    border: 1px solid #33333d;
    border-radius: 8px;

    background-color: #0b0b0f;
    color: white;

    font-family: Arial, sans-serif;
    font-size: 16px;
}

#contactForm textarea {
    min-height: 120px;
    resize: vertical;
}

#contactForm .button {
    border: none;
}

#formMessage {
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
}

#formMessage.success {
    color: #65d68a !important;
}

#formMessage.error {
    color: #ff6b6b !important;
}

#contactForm select {
    width: 100%;

    padding: 12px;

    margin-bottom: 20px;

    border: 1px solid #33333d;
    border-radius: 8px;

    background-color: #0b0b0f;
    color: white;

    font-family: Arial, sans-serif;
    font-size: 16px;

    cursor: pointer;

    outline: none;
}

#contactForm select:focus {
    border-color: #4f7cff;

    box-shadow:
        0 0 0 2px rgba(79, 124, 255, 0.15);
}

#contactForm select option {
    background-color: #111116;
    color: white;
}

/* FOOTER */

footer {
    border-top: 1px solid #222228;

    padding: 30px;

    text-align: center;

    color: #8a8a93;
}

/* MODAL */

.modal-overlay {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.75);

    display: none;

    justify-content: center;
    align-items: center;

    padding: 20px;

    z-index: 1000;

    backdrop-filter: blur(6px);
}


.modal-overlay.active {
    display: flex;
}


.service-modal {
    width: 100%;
    max-width: 700px;

    max-height: 90vh;

    overflow-y: auto;

    padding: 45px;

    background-color: #111116;

    border: 1px solid #33333d;

    border-radius: 20px;

    position: relative;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.5);
}


.modal-close {
    position: absolute;

    top: 20px;
    right: 20px;

    width: 35px;
    height: 35px;

    border: 1px solid #33333d;
    border-radius: 50%;

    background-color: transparent;

    color: #8a8a93;

    font-size: 24px;

    cursor: pointer;

    transition: 0.3s;
}


.modal-close:hover {
    color: #f7f7f5;

    border-color: #4f7cff;
}


.service-modal h2 {
    font-size: 48px;

    line-height: 1.1;

    margin-bottom: 20px;
}


.modal-description {
    color: #8a8a93;

    font-size: 18px;

    max-width: 600px;

    margin-bottom: 35px;
}


.modal-content {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 30px;

    margin-bottom: 35px;
}


.modal-content h3 {
    font-size: 18px;

    margin-bottom: 15px;
}


.modal-content ul {
    list-style: none;
}


.modal-content li {
    padding: 10px 0;

    border-bottom: 1px solid #222228;

    color: #8a8a93;
}


.modal-content li::before {
    content: "✓";

    color: #4f7cff;

    margin-right: 10px;
}


.modal-price {
    padding: 25px;

    background-color: #0b0b0f;

    border: 1px solid #292930;

    border-radius: 12px;
}


.modal-price span {
    display: block;

    color: #8a8a93;

    font-size: 11px;

    letter-spacing: 2px;

    margin-bottom: 10px;
}


.modal-price strong {
    display: block;

    font-size: 36px;

    margin-bottom: 8px;
}


.modal-price small {
    color: #5f5f68;

    line-height: 1.4;
}

/* AI DEMO */

.ai-demo {
    border-top: 1px solid #222228;

    display: grid;

    grid-template-columns: 1fr 0.8fr;

    align-items: center;

    gap: 100px;
}


.ai-demo-content {
    max-width: 650px;
}


.ai-demo-content h2 {
    font-size: 52px;

    line-height: 1.05;

    letter-spacing: -2px;

    margin-bottom: 25px;
}


.ai-demo-content > p:last-child {
    color: #8a8a93;

    font-size: 18px;

    max-width: 600px;
}


/* CHAT */

.ai-chat {
    width: 100%;

    background-color: #111116;

    border: 1px solid #292930;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.3);
}


/* CABECERA */

.ai-chat-header {
    padding: 20px;

    border-bottom: 1px solid #292930;

    background-color: #15151b;
}


.ai-chat-header strong {
    display: block;

    font-size: 15px;
}


.ai-chat-header span {
    display: block;

    margin-top: 4px;

    color: #65d68a;

    font-size: 11px;
}


/* MENSAJES */

.ai-messages {
    height: 350px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    gap: 15px;

    overflow-y: auto;
}


.ai-message {
    max-width: 80%;

    padding: 12px 15px;

    border-radius: 12px;

    font-size: 14px;

    line-height: 1.5;
}


.ai-message-bot {
    align-self: flex-start;

    background-color: #1b1b22;

    color: #d8d8dd;
}


.ai-message-user {
    align-self: flex-end;

    background-color: #4f7cff;

    color: white;
}


/* INPUT */

.ai-input-area {
    display: flex;

    border-top: 1px solid #292930;
}


.ai-input-area input {
    flex: 1;

    padding: 18px;

    border: none;

    outline: none;

    background-color: transparent;

    color: white;

    font-size: 14px;
}

.ai-input-area input:focus-visible {
    outline: 2px solid #4f7cff;
    outline-offset: -2px;
}

.ai-input-area button {
    width: 60px;

    border: none;

    background-color: transparent;

    color: #4f7cff;

    font-size: 22px;

    cursor: pointer;
}


.ai-input-area button:hover {
    background-color: #181820;
}

.ai-contact-button {
    align-self: flex-start;

    padding: 10px 16px;

    border: none;
    border-radius: 8px;

    background-color: #4f7cff;
    color: white;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    transition: 0.2s;
}

.ai-contact-button:hover {
    background-color: #3d68e6;
}

/* ACCESIBILIDAD: FOCO DE TECLADO */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4f7cff;
    outline-offset: 3px;
}

/* ACCESIBILIDAD: FOCO DE TECLADO */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4f7cff;
    outline-offset: 3px;
}

.ai-input-area input:focus-visible {
    outline: 2px solid #4f7cff;
    outline-offset: -2px;
}

#formMessage.success {
    color: #65d68a !important;
}

#formMessage.error {
    color: #ff6b6b !important;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    section {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 50px;
        letter-spacing: -2px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 38px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 80px 20px;
    }

    .hero-visual {
        width: 100%;
    }

    .system-card {
        max-width: 100%;
    }

    .service-modal {
        padding: 30px 20px;
    }

    .service-modal h2 {
        font-size: 38px;
    }

    .modal-content {
        grid-template-columns: 1fr;
    }

    .ai-demo {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .ai-demo-content h2 {
        font-size: 38px;
    }

    .ai-messages {
        height: 300px;
    }
}