:root {
    color-scheme: dark;
    --bg: #070a12;
    --bg-2: #0b1020;
    --panel: rgba(14, 19, 36, 0.72);
    --panel-2: rgba(255, 255, 255, 0.075);
    --panel-3: rgba(255, 255, 255, 0.115);
    --line: rgba(255, 255, 255, 0.14);
    --line-strong: rgba(255, 255, 255, 0.24);
    --text: #f8fbff;
    --muted: #93a4bc;
    --muted-2: #667085;
    --vite: #646cff;
    --cyan: #00e5ff;
    --blue: #2f80ff;
    --green: #35f2a5;
    --amber: #ffd166;
    --orange: #ff8a3d;
    --red: #ff5c7a;
    --pink: #ff4ecd;
    --purple: #8b5cf6;
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
    --glow: 0 0 0 1px rgba(100, 108, 255, 0.22), 0 24px 80px rgba(100, 108, 255, 0.28);
}

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

html {
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 10%, rgba(100, 108, 255, 0.28), transparent 28rem),
        radial-gradient(circle at 82% 8%, rgba(0, 229, 255, 0.18), transparent 24rem),
        radial-gradient(circle at 70% 70%, rgba(53, 242, 165, 0.12), transparent 28rem),
        linear-gradient(145deg, #070a12 0%, #10162a 48%, #070a12 100%);
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 82%);
}

body::after {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -4;
    pointer-events: none;
    background:
        conic-gradient(from 120deg at 30% 20%, transparent, rgba(100, 108, 255, 0.14), transparent, rgba(0, 229, 255, 0.1), transparent),
        conic-gradient(from 240deg at 70% 80%, transparent, rgba(53, 242, 165, 0.1), transparent, rgba(255, 78, 205, 0.08), transparent);
    filter: blur(40px);
    animation: aurora 18s ease-in-out infinite alternate;
}

@keyframes aurora {
    from {
        transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1);
    }
    to {
        transform: translate3d(2%, 1%, 0) rotate(8deg) scale(1.06);
    }
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-shell {
    position: relative;
    z-index: 1;
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header,
.site-footer,
.card,
.panel,
.hero-console,
.hero-orbit,
.pipeline,
.table-shell {
    border: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
        rgba(8, 12, 24, 0.74);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.site-header {
    position: sticky;
    top: 18px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    margin: 18px 0 0;
    border-radius: 999px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.brand-copy {
    min-width: 0;
    overflow: hidden;
}


.brand-logo {
    width: clamp(72px, 7.5vw, 120px);
    height: clamp(72px, 7.5vw, 120px);
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 64px rgba(100, 108, 255, 0.72);
}

.brand-copy {
    min-width: 0;
}

.brand-copy strong {
    display: block;
    max-width: none;
    overflow: visible;
    font-size: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand-copy span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

nav a,
.btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.68rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

nav a::before,
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent);
    opacity: 0;
    transition: opacity 180ms ease;
}

nav a:hover,
.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(100, 108, 255, 0.55);
    box-shadow: 0 12px 34px rgba(100, 108, 255, 0.2);
}

nav a:hover::before,
.btn:hover::before {
    opacity: 1;
}

.site-main {
    padding: 2.6rem 0 3.4rem;
}

.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 2rem auto 0;
    padding: 1.15rem;
    border-radius: 24px;
    color: var(--muted);
    text-align: center;
}

.page-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.55fr);
    gap: 1.4rem;
    min-height: 360px;
    padding: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.4rem;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 0%, rgba(100, 108, 255, 0.22), transparent 34%),
        radial-gradient(circle at 95% 10%, rgba(0, 229, 255, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(100, 108, 255, 0.12), transparent 45%),
        rgba(7, 10, 18, 0.3);
}

.page-hero > * {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.page-hero h1 {
    max-width: 16ch;
    font-size: clamp(1.9rem, 3vw, 3.35rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

.hero-console h1,
.panel h2,
.card h2 {
    font-size: clamp(1.35rem, 2.2vw, 2.15rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
}


    .hero-console {
        min-height: 210px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


.page-hero p,
.panel p,
.card p,
.hero-console p {
    color: var(--muted);
    font-size: 1.08rem;
}

.page-hero p {
    max-width: 68ch;
    margin-top: 1rem;
    font-size: 1.05rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.8rem;
    color: #dce3ff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 18px rgba(53, 242, 165, 0.8);
}

.hero-console {
    position: relative;
    display: grid;
    align-content: space-between;
    gap: 1.15rem;
    min-height: 320px;
    padding: 1.35rem;
    overflow: hidden;
    border-radius: 26px;
}

.hero-console::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-console > * {
    position: relative;
    z-index: 1;
}

.console-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.console-dots {
    display: flex;
    gap: 0.4rem;
}

.console-dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--red);
}

.console-dots span:nth-child(2) {
    background: var(--amber);
}

.console-dots span:nth-child(3) {
    background: var(--green);
}

.console-badge {
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(53, 242, 165, 0.28);
    border-radius: 999px;
    background: rgba(53, 242, 165, 0.1);
    color: #c8ffe8;
    font-size: 0.76rem;
    font-weight: 900;
}

.hero-console h1 {
    margin-top: 1.4rem;
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    letter-spacing: -0.055em;
}

.console-lines {
    display: grid;
    gap: 0.45rem;
    color: #c7d2fe;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
}

.console-lines span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orbit {
    position: relative;
    display: grid;
    place-items: center;
    height: 96px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.055);
}

.orbit::before,
.orbit::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(100, 108, 255, 0.3);
    border-radius: 999px;
}

.orbit::before {
    width: 78px;
    height: 78px;
    animation: pulse 2.4s ease-in-out infinite;
}

.orbit::after {
    width: 118px;
    height: 118px;
    border-color: rgba(0, 229, 255, 0.2);
    animation: pulse 2.4s ease-in-out infinite 0.5s;
}

.orbit strong {
    position: relative;
    z-index: 1;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.25rem;
}

.card {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
    border-radius: 28px;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.18), transparent 32%);
    transition: opacity 180ms ease;
}

.card:hover::before {
    opacity: 1;
}

.card.accent-cyan {
    border-color: rgba(0, 229, 255, 0.24);
}

.card.accent-violet {
    border-color: rgba(100, 108, 255, 0.28);
}

.card.accent-green {
    border-color: rgba(53, 242, 165, 0.25);
}

.card.accent-amber {
    border-color: rgba(255, 209, 102, 0.28);
}

.card-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.9;
}

.card strong {
    display: block;
    margin-top: 0.45rem;
    font-size: clamp(2rem, 3.8vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    overflow-wrap: anywhere;
}

.card small {
    display: block;
    margin-top: 0.45rem;
    color: var(--muted-2);
}

.hero-console h1,
.panel h2,
.card h2 {
    margin-bottom: 0.9rem;
}

.panel {
    margin-bottom: 1rem;
    border-radius: var(--radius-xl);
}

.panel.pad {
    padding: clamp(1.25rem, 4vw, 2rem);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-head p {
    max-width: 58ch;
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.45fr);
    gap: 1.2rem;
}

.dashboard-grid > *,
.form-shell > * {
    min-width: 0;
}

.pipeline {
    padding: 1rem;
    border-radius: var(--radius-lg);
}

.pipeline-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
}

.pipeline-step + .pipeline-step {
    margin-top: 0.55rem;
}

.pipeline-index {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.9), rgba(0, 229, 255, 0.72));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 950;
}

.pipeline-step strong {
    display: block;
    font-size: 0.92rem;
}

.pipeline-step span {
    color: var(--muted);
    font-size: 0.78rem;
}

.pipeline-state {
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(53, 242, 165, 0.28);
    border-radius: 999px;
    background: rgba(53, 242, 165, 0.1);
    color: #c8ffe8;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.activity-list {
    display: grid;
    gap: 0.75rem;
}

.activity-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
}

.activity-dot {
    width: 12px;
    height: 12px;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.activity-item strong {
    display: block;
    font-size: 0.92rem;
}

.activity-item span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
}

.table-shell {
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.table-wrap table,
.tabla {
    width: 100%;
    border-collapse: collapse;
}

.tabla th,
.tabla td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    vertical-align: middle;
}

.tabla th {
    color: #dbeafe;
    background: rgba(100, 108, 255, 0.1);
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tabla td {
    color: #edf4ff;
}

.tabla td.nowrap,
.tabla th.nowrap {
    white-space: nowrap;
}

.tabla tr:hover td {
    background: rgba(255, 255, 255, 0.055);
}

.status-pill,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.28rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
}

.status-disponible,
.badge-ok {
    border-color: rgba(53, 242, 165, 0.28);
    background: rgba(53, 242, 165, 0.12);
    color: #c8ffe8;
}

.status-en_uso,
.status-rentado,
.badge-info {
    border-color: rgba(0, 229, 255, 0.28);
    background: rgba(0, 229, 255, 0.12);
    color: #c7f9ff;
}

.status-mantenimiento,
.badge-warning {
    border-color: rgba(255, 209, 102, 0.32);
    background: rgba(255, 209, 102, 0.12);
    color: #ffe7a3;
}

.status-inactivo,
.badge-muted {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

.btn {
    border-radius: 14px;
    font-size: 0.88rem;
}

.btn-primary {
    border-color: rgba(100, 108, 255, 0.5);
    background: linear-gradient(135deg, var(--vite), var(--cyan));
    box-shadow: 0 18px 48px rgba(100, 108, 255, 0.32);
}

.btn-submit {
    border-color: rgba(53, 242, 165, 0.48);
    background: linear-gradient(135deg, var(--green), #18c982);
    color: #05130d;
    box-shadow: 0 18px 48px rgba(53, 242, 165, 0.24);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
}

.btn-edit {
    background: rgba(47, 128, 255, 0.18);
}

.btn-maint {
    background: rgba(255, 209, 102, 0.16);
}

.btn-delete {
    background: rgba(255, 92, 122, 0.16);
}

.btn-back {
    margin-top: 1rem;
}

.form-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.38fr);
    gap: 1.2rem;
}

.form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

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

.form-group {
    display: grid;
    gap: 0.45rem;
}

.form-group label {
    color: #e5edff;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    background: rgba(3, 7, 18, 0.46);
    color: var(--text);
    padding: 0.88rem 0.95rem;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(100, 108, 255, 0.8);
    background: rgba(3, 7, 18, 0.62);
    box-shadow: 0 0 0 4px rgba(100, 108, 255, 0.14);
}

.form-note {
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 20% 0%, rgba(0, 229, 255, 0.16), transparent 34%),
        rgba(255, 255, 255, 0.055);
}

.form-note h2 {
    font-size: 1.5rem;
}

.form-note p {
    margin: 0;
}

.form-note ul {
    display: grid;
    gap: 0.55rem;
    padding-left: 1.1rem;
    color: #d7e2f5;
}

.form-group small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.inline-form {
    display: inline-flex;
    gap: 0.45rem;
}

.success,
.error-box,
.no-data {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 18px;
}

.success {
    border: 1px solid rgba(53, 242, 165, 0.35);
    background: rgba(53, 242, 165, 0.12);
    color: #c8ffe8;
}

.error-box {
    border: 1px solid rgba(255, 92, 122, 0.35);
    background: rgba(255, 92, 122, 0.12);
    color: #ffd0d8;
}

.no-data {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
}

.result-list {
    display: grid;
    gap: 0.75rem;
}

.result-item {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.result-item span {
    color: var(--muted);
}

.text-success {
    color: var(--green);
}

.text-danger {
    color: var(--red);
}

.text-muted {
    color: var(--muted);
}

.machine-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.machine-title strong {
    display: block;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.machine-title span {
    color: var(--muted);
}

.machine-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.9), rgba(0, 229, 255, 0.7));
    font-weight: 950;
}

.cost {
    color: #c8ffe8;
    font-weight: 900;
}

@media (max-width: 980px) {
    .site-header,
    .page-hero,
    .dashboard-grid,
    .form-shell {
        grid-template-columns: 1fr;
    }

    .site-header {
        align-items: stretch;
        flex-direction: column;
        border-radius: 28px;
    }

    nav {
        justify-content: flex-start;
    }

    .brand-logo {
        width: clamp(64px, 12vw, 96px);
        height: clamp(64px, 12vw, 96px);
        max-width: 96px;
        max-height: 96px;
    }

    .page-hero h1 {
        font-size: clamp(1.45rem, 4.8vw, 2.4rem);
        line-height: 1.1;
        letter-spacing: -0.025em;
    }

    .hero-console h1,
    .panel h2,
    .card h2 {
        font-size: clamp(1.25rem, 3vw, 1.85rem);
        line-height: 1.12;
        letter-spacing: -0.02em;
    }

    .card strong {
        font-size: clamp(1.5rem, 7vw, 2.1rem);
    }

    .page-hero p,
    .panel p,
    .card p,
    .hero-console p {
        font-size: 0.96rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .app-shell,
    .site-footer {
        width: min(100% - 20px, 1180px);
    }

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

    .activity-dot {
        margin-top: 0;
    }

    .brand-logo {
        width: clamp(56px, 18vw, 76px);
        height: clamp(56px, 18vw, 76px);
        max-width: 76px;
        max-height: 76px;
    }

    .page-hero h1 {
        font-size: clamp(1.35rem, 7vw, 2rem);
        line-height: 1.14;
        letter-spacing: -0.015em;
    }

    .hero-console h1,
    .panel h2,
    .card h2 {
        font-size: clamp(1.2rem, 5vw, 1.75rem);
        line-height: 1.15;
        letter-spacing: -0.015em;
    }

    .card strong {
        font-size: clamp(1.45rem, 9vw, 2rem);
    }

    .stats-grid,
    .form {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 1.15rem;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .actions,
    nav {
        width: 100%;
    }

    .actions a,
    .actions button,
    nav a,
    .btn {
        width: 100%;
    }

    .pipeline-step {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .pipeline-state {
        grid-column: 2;
        justify-self: start;
    }
}

/* Marketing Layouts & Enhancements */
.hero-marketing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-marketing {
        grid-template-columns: 1fr;
    }
}

.hero-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1rem;
    position: relative;
}

.hero-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
    filter: brightness(0.85);
}

.hero-gallery img:hover {
    transform: scale(1.05) translateY(-5px);
    filter: brightness(1.1);
    z-index: 10;
}

.hero-gallery img:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    border-radius: var(--radius-lg);
}

.marketing-ad-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(14, 19, 36, 0.9), rgba(11, 16, 32, 0.9));
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    margin: 4rem 0;
}

.marketing-ad-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/69329.jpg') center/cover no-repeat;
    opacity: 0.25;
    z-index: -1;
    filter: blur(3px) brightness(0.8);
    transition: transform 0.5s ease;
}

.marketing-ad-section:hover::before {
    transform: scale(1.05);
}

.marketing-ad-content {
    position: relative;
    z-index: 2;
}

.marketing-ad-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.marketing-ad-content h2 span {
    color: var(--cyan);
}

.marketing-ad-content p {
    font-size: 1.2rem;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.fleet-section {
    margin: 4rem 0;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.fleet-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.fleet-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: var(--glow);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.fleet-card:hover {
    transform: translateY(-8px);
    border-color: var(--cyan);
    z-index: 5;
}

.fleet-card:hover::after {
    opacity: 1;
}

.fleet-image-wrap {
    overflow: hidden;
    height: 220px;
}

.fleet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
    transition: transform 0.5s ease;
}

.fleet-card:hover .fleet-image {
    transform: scale(1.08);
}

.fleet-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fleet-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.fleet-content p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Micro-animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Fleet Badges */
.fleet-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    color: #fff;
}

.fleet-badge.accent-cyan { background: rgba(0, 229, 255, 0.2); border: 1px solid rgba(0, 229, 255, 0.4); }
.fleet-badge.accent-violet { background: rgba(139, 92, 246, 0.2); border: 1px solid rgba(139, 92, 246, 0.4); }
.fleet-badge.accent-amber { background: rgba(255, 209, 102, 0.2); border: 1px solid rgba(255, 209, 102, 0.4); }
.fleet-badge.accent-green { background: rgba(53, 242, 165, 0.2); border: 1px solid rgba(53, 242, 165, 0.4); }
