@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;300;400;700&family=Share+Tech+Mono&display=swap');

:root {
    --bg-color: #000000;
    --pure-white: #ffffff;
    --dim-white: rgba(255, 255, 255, 0.4);
    --line-white: rgba(255, 255, 255, 0.1);
    --glow-white: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    background-color: var(--bg-color);
    color: var(--pure-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.nav-open {
    overflow: hidden;
}

.mono {
    font-family: 'Share Tech Mono', monospace;
}

/* --- CAPAS CINEMÁTICAS --- */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--line-white) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-white) 1px, transparent 1px);
    background-size: 120px 120px;
    background-position: center center;
    mask-image: radial-gradient(circle, black 20%, transparent 80%);
    z-index: -2;
    pointer-events: none;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    background-size: 100% 2px;
    z-index: 100;
    pointer-events: none;
}

/* --- NAVEGACIÓN --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

header.scrolled {
    padding: 20px 2rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand img {
    height: 40px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    color: var(--dim-white);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: 0.4s;
}

nav a:hover {
    color: #fff;
}

/* --- NAV TOGGLE (HAMBURGUESA) --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--line-white);
    padding: 12px 10px;
    cursor: pointer;
    z-index: 210;
    transition: 0.4s;
}

.nav-toggle:hover {
    border-color: var(--pure-white);
}

.nav-toggle .bar {
    width: 24px;
    height: 1px;
    background: var(--pure-white);
    transition: 0.4s;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- SECTION BASE --- */
.section {
    position: relative;
    padding: 100px 2rem;
    z-index: 100;
    max-width: 1600px;
    margin: 0 auto;
}

.section--narrow {
    max-width: 1400px;
}

.section--wide {
    max-width: 1800px;
}

.section--full {
    max-width: none;
}

/* --- HUD TITLE --- */
.hud-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    letter-spacing: clamp(5px, 2vw, 15px);
    color: var(--dim-white);
    margin-bottom: 100px;
    text-align: center;
    text-transform: uppercase;
}

/* --- CARDS GRID --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    border-top: 1px solid var(--line-white);
}

.card-item {
    padding: 60px;
    border-bottom: 1px solid var(--line-white);
    border-right: 1px solid var(--line-white);
    transition: 0.5s;
}

.card-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.card-item span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--dim-white);
    display: block;
    margin-bottom: 30px;
}

.card-item h3 {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.card-item p {
    font-size: 0.9rem;
    color: var(--dim-white);
    line-height: 1.8;
}

/* --- EXPLODED VIEW (PRODUCTO) --- */
.product-presentation {
    padding: 150px 50px;
    position: relative;
    z-index: 100;
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 100px;
}

.product-info-panel h2 {
    font-size: 4rem;
    font-weight: 100;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 30px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid var(--line-white);
    padding-top: 40px;
}

.spec-item {
    padding: 20px;
    border: 1px solid var(--line-white);
    background: rgba(255, 255, 255, 0.02);
}

.spec-item label {
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    color: var(--dim-white);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.product-visual-exploded {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
}

.exploded-core {
    width: 300px;
    height: 300px;
    border: 1px solid var(--pure-white);
    position: relative;
    transform: rotateX(60deg) rotateZ(45deg);
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.scanner-line {
    position: absolute;
    width: 150%;
    height: 2px;
    background: #fff;
    box-shadow: 0 0 20px #fff;
    z-index: 10;
    top: 0;
    left: -25%;
    animation: scan 4s linear infinite;
}

/* --- TAGS --- */
.tags-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.tags-group {
    border-top: 1px solid var(--line-white);
    padding-top: 40px;
}

.group-label {
    font-size: 0.75rem;
    color: var(--dim-white);
    margin-bottom: 30px;
    display: block;
    letter-spacing: 5px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tag-item {
    padding: 15px 30px;
    border: 1px solid var(--line-white);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: 0.4s;
    background: rgba(255, 255, 255, 0.02);
}

.tag-item:hover {
    border-color: var(--pure-white);
    color: #000;
    background: var(--pure-white);
    box-shadow: 0 0 20px var(--glow-white);
}

/* --- VERTICAL TABS --- */
.vtabs {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
    min-height: 600px;
}

.vtabs-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.vtab-item {
    padding: 30px;
    border-left: 1px solid var(--line-white);
    cursor: pointer;
    transition: 0.4s;
    position: relative;
    background: rgba(255, 255, 255, 0.01);
}

.vtab-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--pure-white);
}

.vtab-item.active {
    border-left: 4px solid var(--pure-white);
    background: rgba(255, 255, 255, 0.05);
}

.vtab-item .item-id {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--dim-white);
    margin-bottom: 10px;
    display: block;
}

.vtab-item h3 {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.vtabs-viewer {
    position: relative;
    border: 1px solid var(--line-white);
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vtab-content {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: glitch-in 0.5s ease;
    text-align: center;
    padding: 40px;
}

.vtab-content.active {
    display: flex;
}

.vtab-content .img-placeholder {
    font-size: 1.2rem;
    color: var(--dim-white);
    font-family: 'Share Tech Mono', monospace;
    border: 1px dashed var(--dim-white);
    padding: 60px;
    width: 80%;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.vtab-content p {
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--dim-white);
    max-width: 400px;
    line-height: 1.6;
}

/* --- FEATURES --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-box {
    border: 1px solid var(--line-white);
    padding: 40px;
    transition: 0.4s;
    position: relative;
    background: rgba(255, 255, 255, 0.01);
}

.feature-box:hover {
    border-color: var(--pure-white);
    background: rgba(255, 255, 255, 0.04);
    transform: scale(1.02);
}

.feature-box .visual-indicator {
    width: 40px;
    height: 40px;
    border: 1px solid var(--dim-white);
    margin-bottom: 30px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-box:hover .visual-indicator {
    border-color: var(--pure-white);
    box-shadow: 0 0 15px var(--glow-white);
}

.visual-indicator::after {
    content: '';
    width: 4px;
    height: 4px;
    background: #fff;
}

.feature-box h4 {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    letter-spacing: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.feature-box p {
    font-size: 0.8rem;
    color: var(--dim-white);
    line-height: 1.6;
    letter-spacing: 1px;
}

/* --- ZIGZAG --- */
.zigzag-item {
    display: flex;
    align-items: center;
    margin-bottom: 150px;
    gap: 100px;
}

.zigzag-item:nth-child(even) {
    flex-direction: row-reverse;
}

.zigzag-content {
    flex: 1;
}

.zigzag-content h2 {
    font-size: 3rem;
    font-weight: 100;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.zigzag-content p {
    color: var(--dim-white);
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 40px;
}

.zigzag-visual {
    flex: 1;
    height: 400px;
    border: 1px solid var(--line-white);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
}

.tech-box {
    width: 60%;
    aspect-ratio: 1 / 1;
    border: 1px solid #fff;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-box::after,
.tech-box::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 1px;
    background: var(--line-white);
}

.tech-box::after {
    transform: rotate(45deg);
}

.tech-box::before {
    transform: rotate(-45deg);
}

.corner-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
}

.tl {
    top: 10px;
    left: 10px;
    border-right: 0;
    border-bottom: 0;
}

.br {
    bottom: 10px;
    right: 10px;
    border-left: 0;
    border-top: 0;
}

/* --- PARTNERS --- */
.partners {
    text-align: center;
    border-top: 1px solid var(--line-white);
    padding-top: 50px;
}

.badge-container {
    display: inline-block;
    padding: 40px 80px;
    border: 1px solid var(--line-white);
    transition: 0.4s;
}

.badge-container:hover {
    border-color: #fff;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

/* --- FORM --- */
.hud-form {
    border: 1px solid var(--line-white);
    padding: 60px;
    background: rgba(255, 255, 255, 0.01);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.7rem;
    color: var(--dim-white);
    letter-spacing: 3px;
}

.form-field input,
.form-field select,
.form-field textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line-white);
    padding: 15px 20px;
    color: var(--pure-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: 0.4s;
    outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--pure-white);
    background: rgba(255, 255, 255, 0.05);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--dim-white);
}

.form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.4)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-field select option {
    background: #000;
    color: #fff;
}

.submit-btn {
    background: transparent;
    border: 1px solid var(--pure-white);
    color: var(--pure-white);
    padding: 20px 50px;
    font-size: 0.8rem;
    letter-spacing: 5px;
    cursor: pointer;
    transition: 0.4s;
    text-transform: uppercase;
}

.submit-btn:hover {
    background: var(--pure-white);
    color: #000;
    box-shadow: 0 0 30px var(--glow-white);
}

/* --- FORM RESPONSIVE --- */
@media (max-width: 768px) {
    .hud-form {
        padding: 40px 30px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .submit-btn {
        width: 100%;
        padding: 18px 30px;
    }
}

@media (max-width: 480px) {
    .hud-form {
        padding: 30px 20px;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .form-field label {
        font-size: 0.65rem;
    }

    .submit-btn {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }
}

/* --- FOOTER --- */
footer {
    padding: 100px 50px;
    display: flex;
    justify-content: space-between;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: var(--dim-white);
    letter-spacing: 3px;
    border-top: 1px solid var(--line-white);
}

/* --- ANIMACIONES --- */
@keyframes glitch-in {
    0% {
        opacity: 0;
        transform: scale(1.05) skew(5deg);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.98) skew(-2deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) skew(0);
    }
}

@media (max-width: 992px) {
    .section {
        padding: 60px 30px;
    }

    .vtabs {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .zigzag-item,
    .zigzag-item:nth-child(even) {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
    }

    .zigzag-content h2 {
        font-size: 2rem;
    }

    .zigzag-visual {
        width: 100%;
        height: 300px;
        min-height: 250px;
    }

    .tech-box {
        width: 180px;
        aspect-ratio: 1 / 1;
    }

    .tech-items,
    .tags-list {
        justify-content: center;
    }

    .product-visual-core {
        width: 300px;
        height: 300px;
    }

    .callout {
        display: none;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 40px 20px;
    }

    .zigzag-item,
    .zigzag-item:nth-child(even) {
        gap: 30px;
        margin-bottom: 60px;
    }

    .zigzag-content h2 {
        font-size: 1.5rem;
    }

    .zigzag-content p {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .zigzag-visual {
        height: 250px;
        min-height: 200px;
    }

    .tech-box {
        width: 150px;
        aspect-ratio: 1 / 1;
    }

    .corner-marker {
        width: 15px;
        height: 15px;
    }
}

/* --- MOBILE NAV --- */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .nav-toggle {
        display: flex;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        padding: 80px 20px 40px;
        background: rgba(0, 0, 0, 0.97);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 999;
    }

    header nav.active {
        right: 0;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    header nav ul li a {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }

    .nav-toggle.active {
        position: fixed;
        right: 20px;
        z-index: 1001;
    }
}