/* Explain: Styles for reusable UI elements like buttons, cards, and forms. */
.texture-panel {
    position: relative;
    overflow: hidden;
}

.texture-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background-image:
        linear-gradient(115deg, transparent 0 46%, rgba(143, 198, 255, 0.1) 47% 49%, transparent 50% 100%),
        radial-gradient(circle at 16% 22%, rgba(47, 127, 224, 0.24) 0 2px, transparent 3px),
        radial-gradient(circle at 78% 68%, rgba(143, 198, 255, 0.18) 0 1px, transparent 3px);
    background-size: 32px 32px, 52px 52px, 38px 38px;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: var(--radius-oval);
    background: var(--steel-gradient);
    box-shadow: 0 0 0 1px rgba(143, 198, 255, 0.35), 0 10px 26px var(--blue-glow);
}

.logo-badge img {
    border-radius: var(--radius-oval);
    object-fit: cover;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-block: 0.4rem;
    color: var(--text-muted);
    transition: color 240ms ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--steel-gradient);
    transition: transform 260ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--espresso-color);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.btn-espresso {
    min-height: 3rem;
    border-radius: var(--radius-oval);
    background: var(--steel-gradient);
    color: var(--pearl-color);
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding-inline: 1.35rem;
    font-weight: 600;
    box-shadow: 0 12px 30px var(--blue-glow);
    transition: all 300ms ease;
    cursor: pointer;
}

.btn-espresso:hover,
.btn-espresso:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(47, 127, 224, 0.5);
}

.btn-espresso:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.btn-outline {
    min-height: 3rem;
    border-radius: var(--radius-oval);
    background: rgba(8, 21, 46, 0.6);
    color: var(--text-color);
    border: 1px solid rgba(143, 198, 255, 0.45);
    padding-inline: 1.35rem;
    transition: all 300ms ease;
    cursor: pointer;
}

.btn-outline:hover,
.btn-outline:focus-visible {
    border-color: var(--champagne-color);
    background: rgba(17, 40, 82, 0.85);
    color: #ffffff;
}

.btn-gold {
    min-height: 3rem;
    border-radius: var(--radius-oval);
    background: linear-gradient(135deg, #3F97F0 0%, #1E5FBF 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding-inline: 1.35rem;
    font-weight: 600;
    box-shadow: 0 12px 30px var(--blue-glow);
    transition: all 300ms ease;
    cursor: pointer;
}

.btn-gold:hover,
.btn-gold:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(47, 127, 224, 0.55);
}

.card-soft {
    border: 1px solid rgba(143, 198, 255, 0.18);
    background: rgba(9, 21, 44, 0.74);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px);
}

.frame-soft {
    border-radius: var(--radius-soft);
    border: 1px solid rgba(143, 198, 255, 0.4);
    box-shadow: var(--shadow-soft), 0 0 60px rgba(47, 127, 224, 0.22);
    overflow: hidden;
}

.car-card img {
    transition: transform 600ms ease;
}

.car-card:hover img {
    transform: scale(1.04);
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    border-radius: var(--radius-oval);
    border: 1px solid rgba(143, 198, 255, 0.28);
    background: rgba(9, 21, 44, 0.7);
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.65rem;
    border-bottom: 1px solid rgba(143, 198, 255, 0.16);
    font-size: 0.9rem;
}

.spec-row:last-child {
    border-bottom: 0;
}

[data-gallery-main] {
    transition: opacity 240ms ease;
}

.gallery-thumb {
    border: 1px solid rgba(143, 198, 255, 0.25);
    opacity: 0.6;
    cursor: pointer;
    transition: all 240ms ease;
}

.gallery-thumb.is-active,
.gallery-thumb:hover,
.gallery-thumb:focus-visible {
    opacity: 1;
    border-color: var(--champagne-color);
    box-shadow: 0 0 0 1px var(--champagne-color);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(3, 8, 20, 0.96);
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    transition: opacity 240ms ease;
}

.lightbox img.is-loading {
    opacity: 0.3;
}

.empty-state {
    display: none;
}

.empty-state.is-visible {
    display: block;
}

.is-filtered-out {
    display: none !important;
}

.field-input {
    width: 100%;
    min-height: 2.875rem;
    border-radius: 1rem;
    border: 1px solid rgba(143, 198, 255, 0.28);
    background: rgba(6, 15, 34, 0.88);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: border-color 240ms ease, box-shadow 240ms ease;
}

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

.field-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(47, 127, 224, 0.25);
    outline: none;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-status {
    min-height: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5rem;
    color: var(--text-muted);
}

.toast-app {
    position: fixed;
    left: 50%;
    bottom: 5.75rem;
    z-index: 90;
    max-width: min(92vw, 30rem);
    text-align: center;
    transform: translateX(-50%) translateY(1rem);
    opacity: 0;
    pointer-events: none;
    transition: all 240ms ease;
}

.toast-app.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.whatsapp-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 95;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-oval);
    background: linear-gradient(135deg, #34D06A 0%, #128C7E 100%);
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(18, 140, 126, 0.45);
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 22px 46px rgba(18, 140, 126, 0.55);
}