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

:root {
    --black: #080808;
    --dark: #111111;
    --card: #161616;
    --border: #252525;
    --gold: #00D6FF;
    --gold-light: #E8C96A;
    --white: #F0EDE8;
    --muted: #888888;
    --red: #C0392B;
}

html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* NAV */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 100px;
    background: rgba(8,8,8,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo { text-decoration: none; }
.nav-logo img { height: 80px; width: auto; display: block; }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

/* HERO */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0,214,255,0.10) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 20%, rgba(0,214,255,0.05) 0%, transparent 60%),
        linear-gradient(rgba(8,8,8,0.72), rgba(8,8,8,0.72)),
        url('img/gallery/interior.jpg') center/cover no-repeat;
}

.waveform-deco {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding: 0 10%;
    opacity: 0.25;
}
.waveform-deco span {
    display: block;
    width: 3px;
    background: var(--gold);
    border-radius: 2px;
    animation: wave 1.8s ease-in-out infinite;
}
@keyframes wave {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

.hero-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.8s ease both;
}

.hero-logo-img {
    height: 140px;
    width: auto;
    max-width: 90vw;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.8s 0.15s ease both;
}

.hero-sub {
    font-size: 16px;
    color: #f1f1f1;
    margin-top: 24px;
    max-width: 480px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.8s 0.3s ease both;
}

.hero-cta {
    margin-top: 48px;
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.8s 0.45s ease both;
}

.btn-primary {
    padding: 14px 36px;
    background: var(--gold);
    color: var(--black);
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-outline {
    padding: 14px 36px;
    border: 1px solid var(--border);
    color: var(--white);
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SECTIONS */
section { padding: 100px 48px; }

.section-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 6vw, 80px);
    line-height: 1;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 48px;
}

/* SERVICIOS */
#servicios { background: var(--dark); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.service-card {
    background: var(--dark);
    padding: 48px 36px;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: var(--card); }

.service-icon { font-size: 28px; color: var(--gold); margin-bottom: 24px; }

.service-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--white);
}
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.8; }

/* STATS */
.stats-bar {
    background: var(--gold);
    padding: 40px 48px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
}
.stat-item { text-align: center; }
.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 56px;
    color: var(--black);
    line-height: 1;
}
.stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(8,8,8,0.6);
    margin-top: 4px;
}

/* EQUIPO */
#equipo { background: var(--black); }

.equipo-intro {
    max-width: 560px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 40px;
}

/* ── Tabs ── */
.gear-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 48px;
}
.gear-tab {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.gear-tab i { font-size: 11px; opacity: 0.7; }
.gear-tab:hover {
    background: rgba(0,214,255,0.08);
    border-color: rgba(0,214,255,0.4);
    color: var(--gold);
}
.gear-tab.active {
    background: rgba(0,214,255,0.12);
    border-color: var(--gold);
    color: var(--gold);
}

/* ── Grid ── */
.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}
.gear-cat-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    transition: opacity 0.25s, transform 0.25s;
}
.gear-cat-block.gear-hidden { display: none; }

.gear-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(0,214,255,0.04);
}
.gear-cat-header i { font-size: 14px; color: var(--gold); }
.gear-cat-name {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    flex: 1;
}
.gear-cat-count {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 1px;
}

/* ── Items ── */
.gear-list { list-style: none; }
.gear-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 16px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s;
}
.gear-item:last-child { border-bottom: none; }
.gear-item:hover { background: rgba(0,214,255,0.05); }
.gear-item:hover .gear-bar { transform: scaleY(1); }
.gear-item:hover .gear-item-name { color: #d0f0ff; }
.gear-item:hover .gear-thumb img { transform: scale(1.08); }

/* accent bar */
.gear-bar {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.2s;
}

/* thumbnail */
.gear-thumb {
    width: 54px;
    height: 54px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.gear-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.35s ease;
}
.gear-thumb-fallback {
    font-size: 20px;
    color: rgba(0,214,255,0.25);
    display: none;
}
.gear-thumb--err .gear-thumb-fallback { display: block; }

/* text */
.gear-item-body { flex: 1; min-width: 0; }
.gear-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.3;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gear-item-detail {
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.3px;
}
.gear-item-idx {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: rgba(0,214,255,0.2);
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* INSTALACIONES */
#instalaciones { background: var(--dark); }

.instalaciones-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.instalaciones-text p { color: var(--muted); font-size: 15px; line-height: 1.9; margin-bottom: 20px; }

.feature-list {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--muted);
}
.feature-list li::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--gold);
    flex-shrink: 0;
}

.instalaciones-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ins-img-box {
    aspect-ratio: 1;
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}
.ins-img-box.tall { grid-row: span 2; aspect-ratio: auto; }

.ins-img-box img {
    width: 100%; height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.4s ease;
    display: block;
}
.ins-img-box:hover img { transform: scale(1.05); }

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.modal-overlay.open { display: flex; }

.modal-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 80px rgba(0,0,0,0.9);
    cursor: default;
    animation: modalIn 0.25s ease both;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 24px; right: 32px;
    font-size: 36px;
    color: var(--white);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 1001;
}
.modal-close:hover { color: var(--gold); }

.modal-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

/* CONTACTO */
#contacto { background: var(--black); }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    color: var(--white);
    line-height: 1;
    margin-bottom: 20px;
}
.contact-info p { color: var(--muted); font-size: 14px; line-height: 1.9; margin-bottom: 32px; }

.contact-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}
.contact-detail i { color: var(--gold); width: 18px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-group label {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 14px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select option { background: var(--card); }

.btn-submit {
    padding: 16px 36px;
    background: var(--gold);
    color: var(--black);
    border: none;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-start;
}
.btn-submit:hover { background: var(--gold-light); }

/* FOOTER */
footer {
    background: var(--dark);
    border-top: 1px solid var(--border);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 4px; color: var(--gold); }
.footer-logo span { color: var(--muted); }
.footer-copy { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--muted); letter-spacing: 1px; }
.social-links { display: flex; gap: 20px; }
.social-links a { color: var(--muted); font-size: 18px; transition: color 0.2s; }
.social-links a:hover { color: var(--gold); }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: 0.3s; }

/* MOBILE NAV */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 2px;
    transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-close { position: absolute; top: 24px; right: 24px; font-size: 32px; color: var(--muted); cursor: pointer; }

/* RESPONSIVE */
@media (max-width: 900px) {
    nav { padding: 0 24px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    section { padding: 72px 24px; }
    .instalaciones-layout,
    .contact-layout { grid-template-columns: 1fr; }
    .stats-bar { padding: 32px 24px; }
    footer { padding: 32px 24px; }
    .hero-logo-img { height: 80px; }
}