/* Kike.dev — portafolio personal */
:root {
    color-scheme: dark;
    --bg: #0b0d12;
    --surface: #11141c;
    --surface-2: #171b25;
    --text: #f2f4f8;
    --muted: #9299aa;
    --line: rgba(255, 255, 255, .1);
    --accent: #a7f36b;
    --accent-2: #73e5c1;
    --purple: #b4a2ff;
    --font: 'Manrope', sans-serif;
    --mono: 'DM Mono', monospace
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit;
    text-decoration: none
}

img {
    display: block;
    max-width: 100%
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--accent);
    color: #10130c;
    padding: 10px 14px;
    z-index: 100
}

.skip-link:focus {
    left: 8px
}

.site-header {
    height: 76px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 13, 18, .88);
    backdrop-filter: blur(16px)
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -.04em;
    font-size: 18px
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--accent);
    color: #11150d;
    font-size: 18px
}

.brand-dot {
    color: var(--accent)
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    color: #c2c6d0;
    font-size: 13px
}

.nav-links a {
    transition: color .2s
}

.nav-links a:hover,
.text-link:hover {
    color: var(--accent)
}

.nav-contact {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 9px 14px
}

.nav-contact span {
    color: var(--accent);
    margin-left: 6px
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--text)
}

.hero {
    min-height: 670px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    position: relative;
    padding-top: 50px;
    padding-bottom: 90px
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding-bottom: 12px
}

.eyebrow {
    font: 11px var(--mono);
    letter-spacing: .12em;
    color: #b2bac8;
    margin: 0 0 22px
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 9px;
    box-shadow: 0 0 12px #a7f36b80
}

.hero h1 {
    font-size: clamp(43px, 5.8vw, 72px);
    letter-spacing: -.07em;
    line-height: 1.08;
    margin: 0 0 24px;
    font-weight: 800
}

.gradient-text {
    background: linear-gradient(105deg, var(--accent), var(--accent-2) 62%, #b3edc8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.hero-description {
    max-width: 510px;
    color: #a8afbd;
    font-size: 15px;
    line-height: 1.9
}

.hero-actions,
.contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 47px;
    padding: 0 18px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    transition: transform .2s, border-color .2s, background .2s
}

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

.button-primary {
    background: var(--accent);
    color: #10140c
}

.button-primary:hover {
    background: #b9ff84
}

.button-ghost {
    border: 1px solid var(--line);
    color: #e3e6ed
}

.button-ghost:hover {
    border-color: #a7f36b88
}

.hero-meta {
    display: flex;
    gap: 23px;
    margin-top: 40px;
    color: #9299a8;
    font: 11px var(--mono)
}

.meta-symbol {
    color: var(--accent);
    margin-right: 7px
}

.hero-visual {
    height: 470px;
    position: relative;
    display: grid;
    place-items: center
}

.visual-grid {
    position: absolute;
    inset: 3% -3%;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse, black 15%, transparent 72%)
}

.orbit {
    position: absolute;
    border: 1px solid rgba(167, 243, 107, .16);
    border-radius: 50%;
    transform: rotate(-25deg)
}

.orbit-one {
    width: 390px;
    height: 250px
}

.orbit-two {
    width: 450px;
    height: 300px;
    transform: rotate(35deg);
    border-color: rgba(115, 229, 193, .12)
}

.portrait-frame {
    position: relative;
    width: 240px;
    height: 300px;
    overflow: hidden;
    border-radius: 130px 130px 24px 24px;
    border: 1px solid rgba(167, 243, 107, .35);
    background: linear-gradient(150deg, #28342b, #151a20 55%, #2a263e);
    box-shadow: 0 25px 90px #0008
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2
}

.portrait-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    color: #a8d6a1;
    font-size: 13px;
    letter-spacing: .08em;
    background: radial-gradient(ellipse at 50% 35%, #456247, #202a2a 52%, #141821)
}

.floating-card {
    position: absolute;
    background: rgba(19, 23, 32, .94);
    border: 1px solid #ffffff20;
    border-radius: 12px;
    box-shadow: 0 18px 50px #0005;
    backdrop-filter: blur(10px)
}

.code-card {
    top: 54px;
    right: -2px;
    padding: 14px 18px;
    font: 11px/1.9 var(--mono);
    color: #d4d9e4
}

.window-dots {
    display: flex;
    gap: 5px;
    margin-bottom: 10px
}

.window-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e77b7b
}

.window-dots i:nth-child(2) {
    background: #eac86f
}

.window-dots i:nth-child(3) {
    background: #91d77e
}

.code-purple {
    color: var(--purple)
}

.code-green {
    color: var(--accent)
}

.code-yellow {
    color: #f0cd83
}

.badge-card {
    left: -2px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    font-size: 10px;
    color: #d6dbe3
}

.badge-icon {
    color: var(--accent);
    font-size: 19px
}

.visual-index {
    position: absolute;
    right: 0;
    bottom: 9px;
    font: 10px var(--mono);
    color: #697181;
    letter-spacing: .12em
}

.scroll-cue {
    position: absolute;
    bottom: 26px;
    left: 0;
    font: 9px var(--mono);
    letter-spacing: .12em;
    color: #747c8b;
    display: flex;
    align-items: center;
    gap: 12px
}

.scroll-cue span {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--accent)
}

.section {
    padding-top: 112px;
    padding-bottom: 112px
}

.section-heading {
    margin-bottom: 44px
}

.section-heading .eyebrow {
    margin-bottom: 16px
}

.section-heading h2,
.contact-inner h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    letter-spacing: -.055em;
    margin: 0;
    font-weight: 800
}

.muted {
    color: #777f90
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px
}

.about-copy p {
    color: #a6adbb;
    font-size: 14px;
    line-height: 1.95;
    margin: 0 0 18px
}

.text-link {
    display: inline-flex;
    gap: 10px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 800;
    color: var(--accent)
}

.principles {
    border-top: 1px solid var(--line)
}

.principle {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 21px 0;
    border-bottom: 1px solid var(--line)
}

.principle-number {
    font: 11px var(--mono);
    color: var(--accent);
    padding-top: 4px
}

.principle h3 {
    margin: 0 0 5px;
    font-size: 14px
}

.principle p {
    margin: 0;
    color: #9299a8;
    font-size: 12px
}

.tech-section {
    background: #0f1219;
    border-block: 1px solid #ffffff08
}

.section-intro {
    max-width: 600px;
    color: #9299a8;
    font-size: 13px;
    margin: 16px 0 0
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line)
}

.tech-item {
    min-height: 130px;
    padding: 23px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    transition: background .2s
}

.tech-item:hover {
    background: #171d25
}

.tech-icon {
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 8px
}

.tech-item>span:nth-child(2) {
    font-size: 13px;
    font-weight: 800
}

.tech-item small {
    font-size: 11px;
    color: #8991a0
}

.project-heading {
    display: flex;
    justify-content: space-between;
    align-items: end
}

.project-count {
    font: 10px var(--mono);
    letter-spacing: .1em;
    color: #838b9a;
    padding-bottom: 6px
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px
}

.project-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #10131a;
    transition: transform .25s, border-color .25s
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: #a7f36b55
}

.project-featured {
    grid-row: span 1
}

.project-image {
    height: 250px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(130deg, #263b31, #171b26 60%, #39304c);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-featured .project-image {
    height: 250px
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.035)
}

.image-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    color: #c4d5c1;
    font-size: 12px;
    background: radial-gradient(ellipse at 50% 40%, #344e3a, #171b24 65%)
}

.outfit-image {
    background: linear-gradient(130deg, #493c50, #1a1b29 65%, #6c514c)
}

.outfit-image .image-placeholder {
    background: radial-gradient(ellipse at 50% 40%, #59445d, #191b28 65%);
    color: #e4cce5
}

.triqui-image {
    background: linear-gradient(130deg, #213f4b, #191d2c 65%, #5c4935)
}

.triqui-image .image-placeholder {
    background: radial-gradient(ellipse at 50% 40%, #2c4b56, #191d2b 65%);
    color: #c5e5e9
}

.project-type {
    position: absolute;
    z-index: 3;
    left: 16px;
    top: 16px;
    background: #0b0d12d9;
    border: 1px solid #ffffff20;
    border-radius: 5px;
    padding: 6px 8px;
    font: 9px var(--mono);
    letter-spacing: .08em
}

.project-content {
    padding: 22px
}

.project-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #81899a;
    font: 9px var(--mono);
    letter-spacing: .06em
}

.project-arrow {
    color: var(--accent);
    font-size: 17px
}

.project-content h3 {
    font-size: 22px;
    letter-spacing: -.04em;
    margin: 11px 0 8px
}

.project-content p {
    font-size: 12px;
    line-height: 1.85;
    color: #9ba3b1;
    margin: 0 0 17px
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px
}

.tag-list span {
    font: 9px var(--mono);
    color: #b8c0cd;
    border: 1px solid #ffffff18;
    border-radius: 5px;
    padding: 5px 7px
}

.project-link {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    font-size: 11px;
    font-weight: 800
}

.project-link span {
    color: var(--accent)
}

.project-note {
    font-size: 11px;
    color: #777f8e;
    margin-top: 20px
}

.contact-section {
    padding: 100px 0;
    background: radial-gradient(ellipse at 80% 50%, #203126 0, transparent 42%), #10131a;
    border-block: 1px solid var(--line)
}

.contact-inner {
    text-align: center
}

.contact-inner .eyebrow {
    margin-bottom: 20px
}

.contact-inner h2 {
    font-size: clamp(36px, 5vw, 58px)
}

.contact-copy {
    max-width: 500px;
    margin: 20px auto 0;
    color: #9ba3b1;
    font-size: 13px
}

.contact-actions {
    justify-content: center
}

.site-footer {
    padding: 24px 0
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.footer-inner>span,
.back-top {
    font-size: 10px;
    color: #7e8695
}

.back-top:hover {
    color: var(--accent)
}

@media(max-width:800px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 80px;
        padding-bottom: 100px;
        gap: 15px
    }

    .hero-copy {
        max-width: 650px
    }

    .hero-visual {
        height: 420px;
        margin-top: 10px
    }

    .portrait-frame {
        width: 235px;
        height: 300px
    }

    .orbit-one {
        width: 330px
    }

    .orbit-two {
        width: 380px
    }

    .code-card {
        right: 4%;
        top: 30px
    }

    .badge-card {
        left: 3%;
        bottom: 40px
    }

    .visual-index {
        right: 4%
    }

    .scroll-cue {
        bottom: 28px
    }

    .about-grid {
        gap: 42px
    }

    .projects-grid {
        gap: 15px
    }

    .project-featured .project-image {
        height: 260px
    }
}

@media(max-width:600px) {
    .container {
        width: calc(100% - 36px)
    }

    .site-header {
        height: 66px
    }

    .menu-toggle {
        display: flex;
        width: 40px;
        height: 40px;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        align-items: center;
        border: 1px solid var(--line);
        border-radius: 9px
    }

    .menu-toggle span {
        display: block;
        width: 17px;
        height: 1px;
        background: var(--text)
    }

    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 65px;
        padding: 18px;
        background: #10131af7;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 0
    }

    .nav-links.is-open {
        display: flex
    }

    .nav-links a {
        padding: 13px 4px
    }

    .nav-links .nav-contact {
        padding: 12px 14px;
        margin-top: 8px
    }

    .hero {
        padding-top: 65px;
        min-height: 0
    }

    .hero h1 {
        font-size: clamp(42px, 12vw, 62px)
    }

    .hero-description {
        font-size: 14px
    }

    .hero-meta {
        gap: 14px;
        flex-wrap: wrap;
        font-size: 10px
    }

    .hero-visual {
        height: 370px
    }

    .portrait-frame {
        width: 205px;
        height: 265px
    }

    .orbit-one {
        width: 280px;
        height: 200px
    }

    .orbit-two {
        width: 310px;
        height: 230px
    }

    .code-card {
        right: -4px;
        top: 15px;
        padding: 10px 12px;
        font-size: 9px
    }

    .badge-card {
        left: -4px;
        bottom: 25px;
        font-size: 9px;
        padding: 10px
    }

    .section {
        padding-top: 78px;
        padding-bottom: 78px
    }

    .section-heading {
        margin-bottom: 30px
    }

    .section-heading h2 {
        font-size: 34px
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 35px
    }

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

    .tech-item {
        padding: 17px;
        min-height: 120px
    }

    .project-heading {
        align-items: start;
        gap: 15px;
        flex-direction: column
    }

    .projects-grid {
        grid-template-columns: 2fr
    }

    .project-featured {
        grid-row: auto
    }

    .project-featured .project-image,
    .project-image {
        height: 220px
    }

    .contact-section {
        padding: 76px 0
    }

    .contact-inner h2 {
        font-size: 39px
    }

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 330px;
        margin-inline: auto
    }

    .footer-inner {
        flex-wrap: wrap
    }

    .footer-inner>span {
        order: 3;
        width: 100%
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important
    }
}
