/* =====================================================
   SAS ELSYSTEMS
   ESTILOS PRINCIPALES
===================================================== */


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #070b14;
    color: #f4f7fb;
    line-height: 1.6;

    position: relative;
    min-height: 100vh;
    isolation: isolate;
}

/* =====================================================
   FONDO GENERAL - MARCA DE AGUA
===================================================== */

body::before {

    content: "";

    position: fixed;

    inset: 0;

    background:
        linear-gradient(
            rgba(7, 11, 20, 0.78),
            rgba(7, 11, 20, 0.86)
        ),
        url("/recursos/img/general/fondo.jpeg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    z-index: -1;

    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =====================================================
   VARIABLES
===================================================== */

:root {
    --bg: #070b14;
    --bg-secondary: #0b1220;
    --card: #101827;
    --card-hover: #142033;

    --primary: #00a8ff;
    --primary-light: #38c6ff;

    --text: #f4f7fb;
    --muted: #9aa8bb;

    --border: rgba(255, 255, 255, .08);
}


/* =====================================================
   NAVBAR
===================================================== */

header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(7, 11, 20, .82);

    backdrop-filter: blur(14px);

    border-bottom: 1px solid var(--border);
}

.navbar {
    max-width: 1200px;

    margin: auto;

    height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 25px;
}

.logo {
    font-size: 24px;

    font-weight: 800;

    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}
.logo img {
    display: block;
    width: 220px;
    height: auto;
}

nav {
    display: flex;

    gap: 30px;
}

nav a {
    color: #c8d2df;

    font-size: 14px;

    transition: .3s;
}

nav a:hover {
    color: var(--primary-light);
}

.nav-button {
    padding: 10px 18px;

    border: 1px solid rgba(0, 168, 255, .5);

    border-radius: 8px;

    color: white;
}

.nav-button:hover {
    background: var(--primary);

    color: #00111b;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 100vh;

    display: flex;

    align-items: center;

    position: relative;

    overflow: hidden;

    padding: 130px 25px 80px;
}

.hero::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    background: rgba(0, 168, 255, .12);

    border-radius: 50%;

    filter: blur(100px);

    top: -200px;
    right: -150px;
}

.hero::after {
    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    background: rgba(80, 40, 255, .08);

    border-radius: 50%;

    filter: blur(100px);

    bottom: -150px;
    left: -150px;
}

.hero-container {
    max-width: 1200px;

    width: 100%;

    margin: auto;

    display: grid;

    grid-template-columns: 1.1fr .9fr;

    gap: 70px;

    align-items: center;

    position: relative;

    z-index: 2;
}

.badge {
    display: inline-flex;

    padding: 8px 14px;

    border-radius: 30px;

    border: 1px solid rgba(0, 168, 255, .25);

    background: rgba(0, 168, 255, .06);

    color: var(--primary-light);

    font-size: 13px;

    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 76px);

    line-height: 1.05;

    letter-spacing: -3px;

    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    max-width: 650px;

    color: var(--muted);

    font-size: 18px;

    margin-bottom: 35px;
}

.buttons {
    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}

.btn {
    padding: 14px 24px;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 600;

    transition: .3s;
}

.btn-primary {
    background: var(--primary);

    color: #00131e;
}

.btn-primary:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 30px rgba(0, 168, 255, .2);
}

.btn-secondary {
    border: 1px solid var(--border);

    background: rgba(255, 255, 255, .03);

    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .07);
}


/* =====================================================
   TERMINAL
===================================================== */

.terminal {
    background: #090e18;

    border: 1px solid var(--border);

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .4);
}

.terminal-header {
    height: 42px;

    background: #0e1522;

    display: flex;

    align-items: center;

    padding: 0 15px;

    gap: 7px;
}

.dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #526173;
}

.terminal-title {
    margin-left: 10px;

    color: #718096;

    font-size: 12px;
}

.terminal-body {
    padding: 25px;

    font-family: Consolas, monospace;

    font-size: 13px;

    color: #9fb0c5;

    min-height: 300px;
}

.terminal-line {
    margin-bottom: 10px;
}

.terminal-green {
    color: #55e6a5;
}

.terminal-blue {
    color: #38c6ff;
}

.terminal-white {
    color: white;
}


/* =====================================================
   SECTION
===================================================== */

section {
    padding: 100px 25px;
}

.container {
    max-width: 1200px;

    margin: auto;
}

.section-header {
    text-align: center;

    max-width: 700px;

    margin: 0 auto 55px;
}

.section-header span {
    color: var(--primary);

    font-size: 13px;

    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: 2px;
}

.section-header h1,
.section-header h2 {
    font-size: 40px;

    margin: 12px 0;
}

.section-header p {
    color: var(--muted);
}


/* =====================================================
   SERVICES
===================================================== */

.services {
    background: var(--bg-secondary);
}

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.service {
    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 30px;

    transition: .3s;
}

.service:hover {
    transform: translateY(-7px);

    border-color:
        rgba(0, 168, 255, .35);

    background: var(--card-hover);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .2);
}

.service-icon {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(0, 168, 255, .08);

    color: var(--primary-light);

    font-size: 22px;

    margin-bottom: 20px;
}

.service h3 {
    margin-bottom: 10px;

    font-size: 19px;
}

.service p {
    color: var(--muted);

    font-size: 14px;
}


/* =====================================================
   TECHNOLOGIES
===================================================== */

.tech-grid {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 12px;
}

.tech {
    padding: 12px 18px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: rgba(255, 255, 255, .025);

    color: #bdc8d7;

    font-size: 14px;

    transition: .3s;
}

.tech:hover {
    border-color: var(--primary);

    color: var(--primary-light);

    transform: translateY(-2px);
}


/* =====================================================
   ABOUT
===================================================== */

.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;

    grid-template-columns: .8fr 1.2fr;

    gap: 70px;

    align-items: center;
}

.about-box {
    border: 1px solid var(--border);

    background: var(--card);

    border-radius: 14px;

    padding: 35px;
}

.about-number {
    font-size: 70px;

    font-weight: 800;

    color: var(--primary);

    line-height: 1;
}

.about-label {
    color: var(--muted);

    margin-top: 10px;
}

.about h1,
.about h2 {
    font-size: 38px;

    margin-bottom: 20px;
}

.about p {
    color: var(--muted);

    margin-bottom: 15px;
}


/* =====================================================
   CONTACTO
===================================================== */

.contact {
    background: var(--bg);
}

.contact-form {
    max-width: 700px;

    margin: auto;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 35px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    color: #c8d2df;
}

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: #090e18;

    color: var(--text);

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition: .3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(0, 168, 255, .08);
}

.form-group textarea {
    resize: vertical;

    min-height: 150px;
}


/* =====================================================
   HONEYPOT ANTIBOT
===================================================== */

.campo-oculto {
    position: absolute;

    left: -9999px;

    width: 1px;

    height: 1px;

    overflow: hidden;
}

/* =====================================================
   CTA
===================================================== */

.cta {
    text-align: center;

    position: relative;

    overflow: hidden;
}

.cta-box {
    max-width: 900px;

    margin: auto;

    padding: 70px 30px;

    border-radius: 18px;

    border: 1px solid rgba(0, 168, 255, .2);

    background:
        linear-gradient(
            135deg,
            rgba(0, 168, 255, .08),
            rgba(255, 255, 255, .02)
        );
}

.cta h2 {
    font-size: 42px;

    margin-bottom: 15px;
}

.cta p {
    color: var(--muted);

    margin-bottom: 30px;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    border-top: 1px solid var(--border);

    padding: 35px 25px;

    background: #050810;
}

.footer-container {
    max-width: 1200px;

    margin: auto;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;
}

.footer-copy {
    color: #718096;

    font-size: 13px;
}

.footer-contact {
    color: var(--primary-light);

    font-size: 13px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    nav {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .service-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .hero h1 {
        letter-spacing: -2px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .section-header h1,
    .section-header h2 {
        font-size: 32px;
    }

    .cta h2 {
        font-size: 32px;
    }

    .footer-container {
        flex-direction: column;

        text-align: center;
    }

}