:root {
    --tech-bg: #07111f;
    --tech-bg-secondary: #0a1626;
    --tech-surface: #0d1b2a;
    --tech-surface-light: #122438;

    --tech-primary: #2563eb;
    --tech-cyan: #22d3ee;

    --tech-text: #f8fafc;
    --tech-muted: #94a3b8;

    --tech-border: rgba(148, 163, 184, 0.16);
}


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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(37, 99, 235, 0.10),
            transparent 30%
        ),
        var(--tech-bg);

    color: var(--tech-text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    text-decoration: none;
}

section {
    scroll-margin-top: 80px;
}


/* =====================================================
   NAVBAR
===================================================== */

.tech-navbar {
    background: rgba(7, 17, 31, 0.94);
    border-bottom: 1px solid var(--tech-border);
    backdrop-filter: blur(12px);
}

.navbar-brand {
    color: var(--tech-text);
}

.navbar-brand:hover {
    color: var(--tech-text);
}

.brand-accent {
    color: var(--tech-cyan);
}

.brand-icon {
    width: 38px;
    height: 38px;

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

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--tech-primary),
            var(--tech-cyan)
        );

    color: white;

    box-shadow:
        0 0 25px rgba(34, 211, 238, 0.18);
}

.navbar .nav-link {
    color: #cbd5e1;
}

.navbar .nav-link:hover {
    color: var(--tech-cyan);
}


/* =====================================================
   BOTONES
===================================================== */

.btn-tech {
    border: none;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--tech-primary),
            #0891b2
        );

    box-shadow:
        0 8px 30px rgba(37, 99, 235, 0.22);
}

.btn-tech:hover {
    color: white;
    transform: translateY(-1px);

    background:
        linear-gradient(
            135deg,
            #1d4ed8,
            #06b6d4
        );
}

.btn-outline-tech {
    border: 1px solid rgba(34, 211, 238, 0.55);
    color: var(--tech-cyan);
}

.btn-outline-tech:hover {
    background: var(--tech-cyan);
    border-color: var(--tech-cyan);
    color: #07111f;
}


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

.hero-tech {
    position: relative;

    min-height: 680px;

    display: flex;
    align-items: center;

    padding: 110px 0 90px;

    overflow: hidden;
}

.hero-tech::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -150px;
    top: -100px;

    border-radius: 50%;

    background: rgba(37, 99, 235, 0.16);

    filter: blur(100px);

    pointer-events: none;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 14px;

    margin-bottom: 22px;

    border: 1px solid rgba(34, 211, 238, 0.25);

    border-radius: 30px;

    background: rgba(34, 211, 238, 0.05);

    color: var(--tech-cyan);

    font-size: 0.9rem;
}

.hero-tech h1 {
    max-width: 850px;

    font-size: clamp(2.7rem, 6vw, 5.4rem);
    line-height: 1.02;

    font-weight: 800;

    letter-spacing: -0.04em;
}

.hero-tech h1 span {
    background:
        linear-gradient(
            90deg,
            #60a5fa,
            var(--tech-cyan)
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: 720px;

    margin-top: 25px;

    color: var(--tech-muted);

    font-size: 1.2rem;
    line-height: 1.8;
}


/* =====================================================
   SECCIONES
===================================================== */

.section-tech {
    padding: 100px 0;
}

.section-alt {
    background: rgba(13, 27, 42, 0.45);

    border-top: 1px solid var(--tech-border);
    border-bottom: 1px solid var(--tech-border);
}

.section-label {
    color: var(--tech-cyan);

    text-transform: uppercase;

    letter-spacing: 0.14em;

    font-weight: 600;
    font-size: 0.78rem;
}

.section-title {
    margin-top: 10px;
    margin-bottom: 16px;

    font-size: clamp(2rem, 4vw, 3rem);

    font-weight: 700;
}

.section-description {
    max-width: 700px;

    color: var(--tech-muted);

    line-height: 1.8;
}


/* =====================================================
   CARDS
===================================================== */

.tech-card {
    height: 100%;

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(18, 36, 56, 0.95),
            rgba(13, 27, 42, 0.85)
        );

    border: 1px solid var(--tech-border);

    border-radius: 18px;

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

.tech-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(34, 211, 238, 0.40);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.20);
}

.tech-card-icon {
    width: 55px;
    height: 55px;

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

    margin-bottom: 22px;

    border-radius: 14px;

    background: rgba(37, 99, 235, 0.12);

    color: var(--tech-cyan);

    font-size: 1.5rem;
}

.tech-card h3,
.tech-card h4 {
    color: var(--tech-text);
}

.tech-card p {
    color: var(--tech-muted);
}


/* =====================================================
   PROYECTOS
===================================================== */

.project-card {
    overflow: hidden;
}

.project-type {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 20px;

    background: rgba(34, 211, 238, 0.08);

    color: var(--tech-cyan);

    font-size: 0.78rem;
}


/* =====================================================
   TECNOLOGÍAS
===================================================== */

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;

    border: 1px solid var(--tech-border);

    border-radius: 30px;

    background: rgba(13, 27, 42, 0.8);

    color: #cbd5e1;
}


/* =====================================================
   CTA
===================================================== */

.cta-tech {
    padding: 50px;

    border: 1px solid rgba(34, 211, 238, 0.20);

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.16),
            rgba(34, 211, 238, 0.06)
        );
}


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

.tech-footer {
    padding: 70px 0 30px;

    background: #040a12;

    border-top: 1px solid var(--tech-border);

    color: var(--tech-muted);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: white;

    font-size: 1.1rem;
}

.footer-text {
    max-width: 440px;

    line-height: 1.8;
}

.tech-footer h6 {
    color: white;

    margin-bottom: 18px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--tech-muted);
}

.footer-links a:hover {
    color: var(--tech-cyan);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--tech-muted);

    font-size: 1.3rem;
}

.footer-social a:hover {
    color: var(--tech-cyan);
}

.footer-separator {
    margin: 45px 0 25px;

    border-color: var(--tech-border);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 767.98px) {

    .hero-tech {
        min-height: auto;

        padding: 90px 0 70px;
    }

    .section-tech {
        padding: 75px 0;
    }

    .cta-tech {
        padding: 30px;
    }
}

/* =====================================================
   HERO - MOCKUP TECNOLÓGICO
===================================================== */

.browser-mockup {
    position: relative;
    overflow: hidden;

    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(13, 27, 42, 0.98),
            rgba(7, 17, 31, 0.98)
        );

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.35),
        0 0 60px rgba(37, 99, 235, 0.08);

    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
}

.browser-mockup::after {
    content: "";

    position: absolute;
    inset: auto -40px -70px auto;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    background: rgba(34, 211, 238, 0.08);

    filter: blur(55px);
}

.browser-topbar {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 14px 18px;

    border-bottom: 1px solid var(--tech-border);

    background: rgba(4, 10, 18, 0.75);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #334155;
}

.browser-dots span:nth-child(1) {
    background: #ef4444;
}

.browser-dots span:nth-child(2) {
    background: #f59e0b;
}

.browser-dots span:nth-child(3) {
    background: #22c55e;
}

.browser-address {
    flex: 1;

    padding: 7px 12px;

    border: 1px solid var(--tech-border);
    border-radius: 8px;

    background: rgba(15, 23, 42, 0.7);

    color: var(--tech-muted);

    font-size: 0.78rem;
}

.browser-content {
    padding: 28px 24px 24px;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 0.82rem;
}

.code-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    min-height: 34px;

    color: #cbd5e1;
}

.code-number {
    width: 32px;

    color: #475569;

    user-select: none;
}

.code-indent {
    width: 20px;
}

.code-tag {
    color: #60a5fa;
}

.code-attr {
    color: #c084fc;
}

.code-string {
    color: #22d3ee;
}

.code-highlight {
    color: var(--tech-cyan);
    font-weight: 700;
}

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;

    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid var(--tech-border);
}

.mockup-stats div {
    padding: 14px 10px;

    border: 1px solid var(--tech-border);
    border-radius: 12px;

    background: rgba(37, 99, 235, 0.06);
}

.mockup-stats strong,
.mockup-stats span {
    display: block;
}

.mockup-stats strong {
    color: var(--tech-cyan);

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 0.9rem;
}

.mockup-stats span {
    margin-top: 4px;

    color: var(--tech-muted);

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 0.7rem;
}

@media (max-width: 1199.98px) {

    .browser-content {
        padding: 22px 18px;
        font-size: 0.72rem;
    }

}