/* Inforgraft - tema compartido
   Base visual del sitio: consola monocroma sobre fondo oscuro. */

:root {
    --a: #f85149;
    --b: #1793d1;
    --c: #25D366;
    --d: #0d1117;
    --e: #161b22;
    --f: #30363d;
    --g: #3fb950;
    --h: #f0f6fc;
    --i: #8b949e;
    --j: #a371f7;
    --k: #1793d1
}

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

html {
    scroll-behavior: smooth;
    background: var(--d)
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: transparent;
    color: var(--h);
    line-height: 1.5;
    overflow-x: hidden
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(180deg, #000 0%, #0a0a0a 50%, #0d1117 100%)
}

.matrix-bg canvas {
    display: block;
    width: 100%;
    height: 100%
}

main,
.footer {
    position: relative;
    z-index: 1
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--f);
    z-index: 1000;
    padding: .6rem 1rem
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: var(--h)
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--a)
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2
}

.nav-logo-text span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--a)
}

.nav-logo-text small {
    font-size: .6rem;
    color: var(--i);
    font-weight: 400
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none
}

.nav-links a {
    color: var(--i);
    text-decoration: none;
    font-size: .8rem;
    transition: color .3s
}

.nav-links a:hover,
.nav-links a[aria-current=page] {
    color: var(--a)
}

.nav-links a::before {
    content: "$ ";
    color: var(--g)
}

.nav-contact {
    background: var(--c);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: .8rem;
    transition: transform .3s, box-shadow .3s;
    display: inline-flex;
    align-items: center;
    gap: .4rem
}

.nav-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, .4)
}

.nav-contact svg {
    flex-shrink: 0
}

.mobile-menu-btn {
    display: none;
    background: 0 0;
    border: none;
    color: var(--h);
    font-size: 1.3rem;
    cursor: pointer
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 1rem 2rem;
    position: relative
}

.hero--compact {
    min-height: auto;
    padding: 6rem 1rem 2.5rem
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1
}

.hero-terminal {
    background: rgba(13, 17, 23, .95);
    border: 1px solid var(--f);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .5);
    backdrop-filter: blur(5px)
}

.terminal-header {
    background: var(--e);
    padding: .6rem .8rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    border-bottom: 1px solid var(--f)
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%
}

.dot-red {
    background: #1793d1
}

.dot-yellow {
    background: #ffbd2e
}

.dot-green {
    background: #27ca40
}

.terminal-title {
    flex: 1;
    text-align: center;
    color: var(--i);
    font-size: .7rem
}

.terminal-body {
    padding: 1rem;
    font-size: .8rem
}

.prompt-line {
    margin-bottom: .3rem;
    display: flex;
    flex-wrap: wrap
}

.prompt-line--spaced {
    margin-top: .5rem
}

.prompt-user {
    color: var(--g)
}

.prompt-at {
    color: var(--h)
}

.prompt-host {
    color: var(--a)
}

.prompt-path {
    color: var(--j)
}

.prompt-symbol {
    color: var(--k);
    margin-right: .4rem
}

.prompt-cmd {
    color: var(--h)
}

.output {
    color: var(--i);
    margin: .8rem 0;
    font-size: .75rem
}

.output-row {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap
}

.output-row--spaced {
    margin-top: .4rem
}

.output-highlight {
    color: var(--a);
    font-weight: 600
}

.output-success {
    color: var(--g)
}

.output-warn {
    color: #ffbd2e
}

.ascii-logo {
    color: var(--a);
    font-size: .45rem;
    line-height: 1.1;
    margin: .5rem 0
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    font-size: .72rem;
    color: var(--i);
    margin-bottom: .8rem
}

.crumbs a {
    color: var(--i);
    text-decoration: none;
    transition: color .3s
}

.crumbs a:hover {
    color: var(--a)
}

.crumbs span[aria-current] {
    color: var(--g)
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: .8rem;
    background: linear-gradient(135deg, var(--h) 0%, var(--a) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.hero-content p {
    font-size: .95rem;
    color: var(--i);
    margin-bottom: 1.5rem;
    max-width: 450px
}

.hero-buttons {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap
}

.btn-primary {
    background: var(--b);
    color: #fff;
    padding: .8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: transform .3s, box-shadow .3s
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 147, 209, .4)
}

.btn-secondary {
    background: 0 0;
    color: var(--h);
    padding: .8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: .85rem;
    border: 2px solid var(--f);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: border-color .3s, color .3s
}

.btn-secondary:hover {
    border-color: var(--a);
    color: var(--a)
}

.services {
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 7rem
}

.services-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none
}

.services-bg canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: .5rem;
    color: var(--h)
}

.section-header h2::before {
    content: "# ";
    color: var(--g)
}

.section-header p {
    color: var(--i);
    font-size: .85rem;
    max-width: 500px;
    margin: 0 auto
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 1
}

.services-grid--catalog {
    grid-template-columns: repeat(2, 1fr)
}

.service-card {
    background: rgba(13, 17, 23, .9);
    border: 1px solid var(--f);
    border-radius: 10px;
    padding: 1.2rem;
    transition: transform .3s, border-color .3s, box-shadow .3s;
    backdrop-filter: blur(5px)
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--a);
    box-shadow: 0 8px 30px rgba(248, 81, 73, .2)
}

a.service-card {
    text-decoration: none;
    color: inherit;
    display: block
}

.service-icon {
    font-size: 2rem;
    margin-bottom: .5rem
}

.ico {
    width: 26px;
    height: 26px;
    display: block
}

.service-title {
    font-size: 1.1rem;
    color: var(--h);
    margin-bottom: .3rem
}

.service-title::before {
    content: "→ ";
    color: var(--a)
}

.service-desc {
    color: var(--i);
    font-size: .8rem;
    margin-bottom: .8rem
}

.service-features {
    list-style: none
}

.service-features li {
    color: var(--i);
    font-size: .75rem;
    padding: .2rem 0
}

.service-features li::before {
    content: "├── ";
    color: var(--f)
}

.service-features li:last-child::before {
    content: "└── "
}

.panel {
    padding: 3rem 1rem;
    position: relative
}

.panel--alt {
    background: rgba(22, 27, 34, .45)
}

.panel-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1
}

.panel-inner--narrow {
    max-width: 900px
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid var(--f);
    border-radius: 999px;
    padding: .2rem .7rem;
    font-size: .7rem;
    color: var(--g);
    background: rgba(63, 185, 80, .08);
    margin-bottom: .8rem
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem
}

.feature-card {
    background: rgba(13, 17, 23, .9);
    border: 1px solid var(--f);
    border-radius: 10px;
    padding: 1.1rem;
    border-left: 2px solid var(--g)
}

.feature-card .ico {
    color: var(--g);
    margin-bottom: .5rem
}

.feature-card h3 {
    font-size: .95rem;
    margin-bottom: .35rem;
    color: var(--h)
}

.feature-card p {
    font-size: .78rem;
    color: var(--i)
}

.steps {
    display: grid;
    gap: .7rem;
    counter-reset: step
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(13, 17, 23, .85);
    border: 1px solid var(--f);
    border-radius: 8px;
    padding: .9rem 1rem
}

.step-index {
    color: var(--a);
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0
}

.step h3 {
    font-size: .9rem;
    margin-bottom: .2rem;
    color: var(--h)
}

.step p {
    font-size: .78rem;
    color: var(--i)
}

.faq {
    display: grid;
    gap: .6rem
}

.faq details {
    background: rgba(13, 17, 23, .85);
    border: 1px solid var(--f);
    border-radius: 8px;
    overflow: hidden
}

.faq details[open] {
    border-color: var(--g)
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: .8rem 1rem;
    font-size: .85rem;
    color: var(--h);
    position: relative;
    padding-right: 2.2rem
}

.faq summary::-webkit-details-marker {
    display: none
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--g);
    font-size: 1rem
}

.faq details[open] summary::after {
    content: "-"
}

.faq details p {
    padding: 0 1rem .9rem;
    font-size: .78rem;
    color: var(--i)
}

.rate-list {
    list-style: none
}

.rate-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    background: rgba(13, 17, 23, .85);
    border: 1px solid var(--f);
    border-radius: 8px;
    padding: .7rem .9rem;
    margin-bottom: .5rem;
    font-size: .8rem;
    color: var(--i)
}

.rate-list li strong {
    color: var(--h);
    font-weight: 600;
    flex-shrink: 0;
    color: var(--a)
}

.contact {
    padding: 3rem 1rem;
    background: 0 0
}

.contact-container {
    max-width: 800px;
    margin: 0 auto
}

.contact-terminal {
    background: rgba(13, 17, 23, .95);
    border: 1px solid var(--f);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(5px)
}

.contact-body {
    padding: 1.2rem
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem
}

.contact-item {
    display: flex;
    align-items: center;
    gap: .8rem
}

.contact-item-icon {
    font-size: 1.3rem
}

.contact-item-text {
    color: var(--i);
    font-size: .8rem
}

.contact-item-text strong {
    display: block;
    margin-bottom: .2rem
}

.contact-item-text a {
    color: var(--a);
    text-decoration: none;
    transition: color .3s
}

.contact-item-text a:hover {
    color: var(--g)
}

.footer {
    background: rgba(22, 27, 34, .9);
    border-top: 1px solid var(--f);
    padding: 1.2rem;
    text-align: center
}

.footer p {
    color: var(--i);
    font-size: .75rem
}

.footer a {
    color: var(--a);
    text-decoration: none
}

.footer .footer-links {
    margin-top: .5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap
}

.footer .footer-links a {
    color: var(--i);
    font-size: .75rem
}

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

.cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--g);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 3px
}

@keyframes blink {
    50% {
        opacity: 0
    }
}

@media (max-width:1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem
    }

    .hero-content {
        order: -1
    }

    .hero-content p {
        margin: 0 auto 1.5rem
    }

    .hero-buttons {
        justify-content: center
    }

    .crumbs {
        justify-content: center
    }

    .ascii-logo {
        font-size: .35rem
    }

    .services-grid,
    .services-grid--catalog,
    .feature-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 17, 23, .95);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--f);
        backdrop-filter: blur(10px);
        gap: 1rem
    }

    .nav-links.active {
        display: flex
    }

    .mobile-menu-btn {
        display: block
    }

    .nav-logo img {
        width: 35px;
        height: 35px
    }

    .nav-logo-text span {
        font-size: 1rem
    }

    .nav-logo-text small {
        font-size: .5rem
    }

    .nav-contact {
        padding: .4rem .8rem;
        font-size: .7rem
    }

    .hero {
        padding: 4rem .8rem 1.5rem;
        min-height: auto
    }

    .hero--compact {
        padding: 5.5rem .8rem 1.5rem
    }

    .hero-content h1 {
        font-size: 1.6rem
    }

    .terminal-body {
        padding: .8rem;
        font-size: .7rem
    }

    .ascii-logo {
        font-size: .28rem
    }

    .services,
    .panel,
    .contact {
        padding: 2rem .8rem
    }

    .section-header h2 {
        font-size: 1.4rem
    }

    .services-grid,
    .services-grid--catalog,
    .feature-grid {
        grid-template-columns: 1fr;
        gap: .8rem
    }

    .contact-info {
        grid-template-columns: 1fr
    }

    .rate-list li {
        flex-direction: column;
        gap: .2rem
    }
}

@media (max-width:480px) {
    .hero-content h1 {
        font-size: 1.4rem
    }

    .btn-primary,
    .btn-secondary {
        padding: .6rem 1rem;
        font-size: .8rem;
        width: 100%;
        justify-content: center
    }

    .hero-buttons {
        flex-direction: column
    }

    .ascii-logo {
        display: none
    }
}

@media (prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important
    }
}
