﻿:root {
    --bg: #07111d;
    --bg-soft: #0d1726;
    --card: rgba(12, 23, 38, 0.76);
    --card-strong: #13233a;
    --line: rgba(201, 179, 132, 0.24);
    --gold: #c9b384;
    --gold-soft: #f2e7ca;
    --sky: #74b3ff;
    --text: #e9edf3;
    --muted: #9ba9bc;
    --ok: #52d58d;
    --warn: #f4b26f;
    --danger: #fa8e8e;
    --shadow-lg: 0 28px 80px rgba(3, 8, 16, 0.5);
    --radius-xl: 28px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100dvh;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(1400px 540px at 90% -18%, rgba(121, 156, 205, 0.28), transparent 54%),
        radial-gradient(1000px 480px at -20% 10%, rgba(201, 179, 132, 0.18), transparent 55%),
        linear-gradient(180deg, #050d18 0%, #07111d 48%, #0a1422 100%);
}

.noise-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 4px 4px;
    mix-blend-mode: soft-light;
    z-index: -1;
}

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

.shell {
    padding: 18px;
}

.topbar {
    position: sticky;
    top: 12px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    backdrop-filter: blur(14px);
    background: rgba(9, 18, 31, 0.76);
    box-shadow: var(--shadow-lg);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.brand strong {
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.brand small {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.brand-mark {
    width: 40px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-family: "Playfair Display", serif;
    color: #0a1322;
    background: linear-gradient(145deg, var(--gold-soft), var(--gold));
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.nav-links a {
    padding: 0.45rem 0.88rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 220ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

.install-chip {
    border: 1px solid rgba(116, 179, 255, 0.45);
    border-radius: 999px;
    color: #ddecff;
    background: rgba(116, 179, 255, 0.1);
    padding: 0.45rem 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.page {
    max-width: 1240px;
    margin: 1.25rem auto 0;
    display: grid;
    gap: 1.15rem;
}

.hero-home,
.page-hero,
.panel,
.footer {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(158deg, rgba(19, 35, 58, 0.92), rgba(13, 24, 40, 0.9));
    box-shadow: var(--shadow-lg);
}

.hero-home {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr;
    gap: 1.2rem;
    padding: clamp(1.5rem, 3vw, 2.6rem);
    overflow: hidden;
    position: relative;
}

.hero-home::after,
.page-hero::after {
    content: "";
    position: absolute;
    width: min(70vw, 520px);
    height: 420px;
    right: -130px;
    top: -160px;
    background: radial-gradient(circle, rgba(201, 179, 132, 0.22), transparent 70%);
    pointer-events: none;
}

.page-hero {
    position: relative;
    padding: clamp(1.5rem, 2.6vw, 2.3rem);
    overflow: hidden;
}

.eyebrow {
    margin: 0 0 0.55rem;
    color: var(--gold-soft);
    font-size: 0.76rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 700;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    text-wrap: balance;
}

h1,
.hero-glass h2,
.panel-header h2 {
    font-family: "Playfair Display", serif;
}

h1 {
    font-size: clamp(1.95rem, 4.1vw, 3.2rem);
    line-height: 1.1;
    max-width: 22ch;
}

.lead {
    margin-top: 0.8rem;
    margin-bottom: 0;
    color: var(--muted);
    max-width: 68ch;
}

.hero-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.72rem;
}

.btn,
button {
    border: 0;
    font: inherit;
    cursor: pointer;
    border-radius: 999px;
    transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.25rem;
    font-weight: 700;
}

.btn-solid,
button,
.admin-actions button.secondary,
.admin-actions button.danger {
    color: #0a1322;
    background: linear-gradient(140deg, #f6edd6 0%, var(--gold) 100%);
}

.btn-soft,
button.ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    color: #deebff;
    background: rgba(116, 179, 255, 0.1);
    border: 1px solid rgba(116, 179, 255, 0.45);
}

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

.hero-glass {
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(7, 16, 27, 0.83), rgba(15, 29, 48, 0.78));
}

.hero-glass h2 {
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
}

.hero-kpis {
    display: grid;
    gap: 0.7rem;
}

.hero-kpis article {
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.hero-kpis span {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
}

.hero-kpis p,
.micro {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.panel {
    padding: clamp(1.2rem, 2.6vw, 2rem);
}

.panel-header {
    margin-bottom: 1.2rem;
}

.panel-header h2 {
    font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.panel-header p {
    margin: 0.45rem 0 0;
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.95rem;
}

.grid-features {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card,
.card,
.form-card,
.table-wrapper,
.empty {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(14, 27, 44, 0.94), rgba(12, 22, 36, 0.92));
}

.feature-card {
    padding: 1.2rem;
}

.feature-card h3 {
    font-size: 1.07rem;
    margin-bottom: 0.48rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
}

.link {
    display: inline-flex;
    margin-top: 0.85rem;
    font-weight: 700;
    color: var(--gold-soft);
}

.card {
    padding: 0.86rem;
    display: grid;
    gap: 0.65rem;
    transition: transform 260ms ease, border-color 260ms ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 179, 132, 0.52);
}

.card-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-media svg {
    width: 100%;
    height: 100%;
    display: block;
}

.card-header {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: flex-start;
}

.card h3 {
    font-size: 1.02rem;
    font-weight: 700;
}

.card-details {
    display: grid;
    gap: 0.24rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.card-details strong {
    color: #f7fbff;
    font-size: 1.17rem;
}

.card-details p {
    margin: 0.15rem 0 0;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    font-size: 0.78rem;
    color: #d0dcec;
}

.tag,
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.tag {
    background: rgba(255, 255, 255, 0.08);
}

.badge {
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge.type {
    border-color: rgba(116, 179, 255, 0.46);
    background: rgba(116, 179, 255, 0.12);
    color: #d9ebff;
}

.badge.status-disponible {
    border-color: rgba(82, 213, 141, 0.5);
    background: rgba(82, 213, 141, 0.16);
    color: #d8ffea;
}

.badge.status-opcionada {
    border-color: rgba(244, 178, 111, 0.5);
    background: rgba(244, 178, 111, 0.17);
    color: #ffead1;
}

.badge.status-vendida {
    border-color: rgba(250, 142, 142, 0.5);
    background: rgba(250, 142, 142, 0.16);
    color: #ffe0e0;
}

.badge.state-ready {
    border-color: rgba(82, 213, 141, 0.46);
    background: rgba(82, 213, 141, 0.17);
    color: #d8ffea;
}

.badge.state-watching,
.badge.state-new {
    border-color: rgba(116, 179, 255, 0.45);
    background: rgba(116, 179, 255, 0.14);
    color: #d7e8ff;
}

.card-actions {
    margin-top: 0.2rem;
}

.showroom-trigger {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(201, 179, 132, 0.5);
    background: rgba(201, 179, 132, 0.13);
    color: var(--gold-soft);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.filters,
.form-grid {
    display: grid;
    gap: 0.72rem;
}

.filters {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 1rem;
}

.form-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-grid .full {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 0.28rem;
    font-size: 0.86rem;
    color: #d6dfeb;
}

input,
select,
textarea {
    font: inherit;
    color: var(--text);
    padding: 0.64rem 0.72rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(201, 179, 132, 0.7);
    box-shadow: 0 0 0 2px rgba(201, 179, 132, 0.18);
}

textarea {
    resize: vertical;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.checkbox-inline input {
    width: auto;
}

.empty {
    text-align: center;
    padding: 1.7rem;
    margin-top: 0.5rem;
}

.empty h3,
.empty h4 {
    margin: 0;
}

.empty p {
    margin: 0.45rem 0 0;
    color: var(--muted);
}

.panel-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 0.92rem;
}

.form-card {
    padding: 0.95rem;
    display: grid;
    gap: 0.72rem;
}

.stack {
    display: grid;
    gap: 0.7rem;
}

.feedback,
.muted {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 740px;
    border-collapse: collapse;
}

thead {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-size: 0.76rem;
}

th,
td {
    padding: 0.86rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    font-size: 0.84rem;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.admin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 0.45rem;
}

.admin-actions button {
    padding: 0.46rem 0.6rem;
    border-radius: 10px;
    font-size: 0.77rem;
    font-weight: 700;
}

.admin-actions button.danger {
    color: #fff;
    background: linear-gradient(145deg, #ea6c6c, #c54545);
}

.timeline {
    display: grid;
    gap: 0.7rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.timeline-index {
    min-width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #0a1322;
    font-size: 0.75rem;
    font-weight: 800;
    background: linear-gradient(145deg, #f7edd4, var(--gold));
}

.footer {
    max-width: 1240px;
    margin: 1.15rem auto 0;
    padding: 1.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.75rem;
}

.footer h4,
.footer p {
    margin: 0;
}

.footer ul {
    list-style: none;
    margin: 0.45rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.3rem;
    color: var(--muted);
}

.showroom-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 18, 0.72);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 100;
}

.showroom-modal.is-open {
    display: flex;
}

.showroom-dialog {
    width: min(960px, 100%);
    max-height: 92dvh;
    overflow: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(13, 24, 40, 0.98), rgba(10, 19, 32, 0.98));
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    position: relative;
}

.showroom-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    display: block;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.showroom-track {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.65rem;
}

.scene-card {
    min-height: 220px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.scene-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(4, 10, 16, 0.8));
    z-index: 0;
}

.scene-card * {
    position: relative;
    z-index: 1;
}

.scene-card h4 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
}

.scene-card p {
    margin: 0.35rem 0 0;
    font-size: 0.84rem;
    color: #d7e2f1;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.58s ease, transform 0.58s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .shell {
        padding: 12px;
    }

    .topbar {
        border-radius: 26px;
        flex-wrap: wrap;
    }

    .hero-home {
        grid-template-columns: 1fr;
    }

    .panel-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .nav-links {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-links a {
        padding-inline: 0.7rem;
    }

    .install-chip {
        width: 100%;
    }

    .hero-actions,
    .btn,
    button,
    .showroom-trigger {
        width: 100%;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    table {
        min-width: 620px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
