@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* Color Palette */
    --color-barro: #A8331A;
    --color-barro-hover: #8F2712;
    --color-oro: #E0A33E;
    --color-oro-hover: #C58D31;
    --color-crema: #FBF6EE;
    --color-tierra: #241E1A;
    --color-tinta: #221C18;
    --color-verde: #1E7A4D;
    --color-rojo: #C0392B;
    
    /* Neutral overrides */
    --color-card-bg: rgba(255, 255, 255, 0.7);
    --color-border: #E8DFD3;
    --color-text-muted: #665D55;
    
    /* Typography */
    --font-headings: 'Fraunces', serif;
    --font-body: 'Hanken Grotesk', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-soft: 0 4px 20px rgba(34, 28, 24, 0.05);
    --shadow-medium: 0 10px 30px rgba(34, 28, 24, 0.08);
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-crema);
    color: var(--color-tinta);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--color-tierra);
}

a {
    color: var(--color-barro);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover {
    color: var(--color-barro-hover);
}

/* Common Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-barro);
    color: #FFF;
}
.btn-primary:hover {
    background-color: var(--color-barro-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 51, 26, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-tierra);
    border: 1px solid var(--color-border);
}
.btn-outline:hover {
    background-color: rgba(34, 28, 24, 0.04);
}

.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #FFF;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-tinta);
    transition: var(--transition-fast);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-barro);
    box-shadow: 0 0 0 3px rgba(168, 51, 26, 0.1);
}

/* Authentication Page */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    background: radial-gradient(circle at 10% 20%, rgba(224, 163, 62, 0.05) 0%, rgba(168, 51, 26, 0.05) 90%), var(--color-crema);
}
.auth-card {
    background: var(--color-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-medium);
}
.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-logo h1 {
    font-size: 2.5rem;
    color: var(--color-barro);
    letter-spacing: -0.02em;
}
.auth-logo p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 0.25rem;
}
.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.alert-error {
    background-color: rgba(192, 57, 43, 0.1);
    color: var(--color-rojo);
    border: 1px solid rgba(192, 57, 43, 0.2);
}

/* Dashboard Layout */
.dashboard-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

/* Sidebar navigation */
.sidebar {
    background-color: var(--color-tierra);
    color: #FFF;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
.sidebar-logo {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    color: var(--color-oro);
    margin-bottom: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.sidebar-nav {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-right: -4px;
    padding-right: 4px;
}
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
.sidebar-nav li {
    margin-bottom: 0.1rem;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.sidebar-nav a svg {
    flex-shrink: 0;
}
.sidebar-nav a:hover, .sidebar-nav li.active a {
    color: #FFF;
    background-color: rgba(255, 255, 255, 0.08);
}
.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
    flex-shrink: 0;
    display: none; /* shown only on desktop via media query below */
}
.user-info {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}
.logout-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: rgba(168, 51, 26, 0.2);
    color: #FFF;
    border: 1px solid var(--color-barro);
}
.logout-btn:hover {
    background-color: var(--color-barro);
}

@media (min-width: 769px) {
    .sidebar-footer { display: block; }
}

/* Main Content Wrapper */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.header-bar {
    background-color: #FFF;
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-bar h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}
.tenant-badge {
    background-color: rgba(224, 163, 62, 0.1);
    color: var(--color-oro-hover);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(224, 163, 62, 0.25);
}

/* Inbox Screen Specifics */
.inbox-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    flex: 1;
    overflow: hidden;
}

/* Conversation List Pane */
.conversations-pane {
    background-color: #FFF;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.pane-title {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 1.1rem;
    background-color: rgba(248, 245, 240, 0.5);
}
.conversation-list {
    list-style: none;
}
.conversation-item a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-tinta);
    transition: var(--transition-fast);
}
.conv-body {
    flex: 1;
    min-width: 0; /* allows the ellipsis on .conv-last-msg to work */
}
.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-oro) 0%, var(--color-barro) 130%);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    text-transform: uppercase;
    overflow: hidden;
}
.avatar-sm { width: 36px; height: 36px; font-size: 0.85rem; }
.conversation-item:hover a {
    background-color: rgba(248, 245, 240, 0.7);
}
.conversation-item.active a {
    background-color: rgba(168, 51, 26, 0.05);
    border-left: 4px solid var(--color-barro);
}
.conv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}
.conv-name {
    font-weight: 600;
    font-size: 0.95rem;
}
.conv-time {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}
.conv-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.conv-last-msg {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.badge {
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}
.badge-open { background-color: rgba(30, 122, 77, 0.1); color: var(--color-verde); }
.badge-closed { background-color: #EEE; color: #666; }
.badge-lost { background-color: #EEE; color: #666; }
.badge-booked { background-color: rgba(224, 163, 62, 0.1); color: var(--color-oro); }
.badge-needs_owner { background-color: rgba(192, 57, 43, 0.1); color: var(--color-rojo); font-weight: 600; }

/* Chat Window Pane */
.chat-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--color-crema);
}
.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--color-text-muted);
    text-align: center;
    padding: 2rem;
}
.chat-empty h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}
.chat-header {
    background-color: #FFF;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-contact-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.1rem;
}
.chat-contact-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Chat bubble styling */
.message-bubble {
    max-width: 70%;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.msg-inbound {
    align-self: flex-start;
    background-color: #FFF;
    border-bottom-left-radius: 2px;
    border: 1px solid var(--color-border);
}

.msg-outbound {
    align-self: flex-end;
    background-color: var(--color-barro);
    color: #FFF;
    border-bottom-right-radius: 2px;
}

.msg-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.msg-inbound .msg-meta {
    color: var(--color-text-muted);
}
.msg-outbound .msg-meta {
    color: rgba(255, 255, 255, 0.7);
}

.msg-sender-badge {
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}
.msg-inbound .msg-sender-badge {
    background-color: rgba(34, 28, 24, 0.05);
    color: var(--color-tierra);
}
.msg-outbound .msg-sender-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFF;
}
.tokens-badge {
    display: none;
}

/* Mobile back link (list <- chat). Hidden on desktop. */
.mobile-back {
    display: none;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Empty state for list panes */
.pane-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--color-text-muted);
    list-style: none;
}
.pane-empty svg {
    color: var(--color-border);
    margin-bottom: 1rem;
}
.pane-empty p {
    font-size: 0.9rem;
    line-height: 1.55;
    max-width: 22em;
}

/* Mobile bottom navigation — hidden on desktop */
.bottom-nav {
    display: none;
}

/* Mobile-only header right (email + gear) — hidden on desktop */
.sidebar-mobile-right { display: none; }

/* Responsive adjustments — the owner lives on the phone, so this matters. */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    /* Sidebar collapses into a slim top bar (rust on mobile) */
    .sidebar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.6rem 1rem;
        background-color: var(--color-barro);
        gap: 10px;
    }
    .sidebar-logo { margin-bottom: 0; font-size: 1.4rem; }
    .sidebar-nav { display: none; }

    /* Mobile header: email + logout + gear, aligned right */
    .sidebar-mobile-right {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
        min-width: 0;
    }
    .sidebar-mobile-email {
        font-size: 11px;
        color: rgba(255,255,255,.85);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 140px;
    }
    a.sidebar-mobile-logout {
        font-size: 11px;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 6px;
        border: 1px solid rgba(255,255,255,.6);
        color: #fff !important;
        white-space: nowrap;
        text-decoration: none;
        background: transparent;
        transition: background .15s;
    }
    a.sidebar-mobile-logout:hover { background: rgba(255,255,255,.15); color: #fff !important; }
    .sidebar-gear {
        color: rgba(255,255,255,.85);
        display: flex;
        align-items: center;
        flex: none;
        text-decoration: none;
        transition: color .15s;
    }
    .sidebar-gear:hover { color: #fff; }

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

    /* Default (no conversation open): show the list, hide the chat. */
    .inbox-grid .chat-pane { display: none; }
    .inbox-grid .conversations-pane { display: flex; }

    /* A conversation is selected: show the chat full-screen, hide the list. */
    .inbox-grid.has-selection .conversations-pane { display: none; }
    .inbox-grid.has-selection .chat-pane { display: flex; }

    .mobile-back { display: inline-flex; }
    .conv-last-msg { max-width: 60vw; }

    /* Padding to avoid content hiding behind fixed bottom nav (5 items ~64px) */
    .main-content {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
        overflow-x: hidden;
    }

    /* ── Inbox: fix scroll chain when a conversation is open ── */
    .dashboard-container.inbox-open {
        height: 100dvh;
        min-height: unset;
        overflow: hidden;
        grid-template-rows: auto 1fr;
    }
    .dashboard-container.inbox-open .main-content {
        overflow: hidden;
        padding-bottom: 0;
        min-height: 0;
    }
    .dashboard-container.inbox-open .inbox-grid {
        overflow: hidden;
        min-height: 0;
    }
    .dashboard-container.inbox-open .chat-pane {
        overflow: hidden;
    }
    .dashboard-container.inbox-open .chat-history {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .header-bar {
        padding: 0.85rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .header-bar h2 {
        font-size: 1.4rem;
    }

    /* Bottom navigation bar — 5 items, Vale center elevated */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        background: var(--color-barro);
        border-top: none;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        height: calc(60px + env(safe-area-inset-bottom, 0px));
        align-items: stretch;
        overflow: visible;
    }
    .bottom-nav a,
    .bottom-nav .nav-vale-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
        padding-bottom: 8px;
        color: rgba(255, 255, 255, 0.55);
        font-family: var(--font-body);
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        transition: color 0.15s;
        text-decoration: none;
        background: none;
        border: none;
        cursor: pointer;
        position: relative;
    }
    .bottom-nav a svg { margin-bottom: 3px; }
    .bottom-nav a:hover,
    .bottom-nav a.active,
    .bottom-nav .nav-vale-btn:hover { color: #fff; }
    .bottom-nav svg { width: 22px; height: 22px; }

    /* Center Vale button — flat rounded-rect (same level as bar) */
    .nav-vale-btn { flex: 1.2; justify-content: center; padding-bottom: 6px; }
    .nav-vale-center {
        width: 46px;
        height: 34px;
        background: rgba(0,0,0,.22);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 3px;
        transition: background .15s;
    }
    .nav-vale-btn:hover .nav-vale-center,
    .nav-vale-btn:active .nav-vale-center { background: rgba(0,0,0,.38); }
    .nav-vale-label {
        color: rgba(255,255,255,.55);
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .05em;
    }
    .nav-vale-btn:hover .nav-vale-label { color: #fff; }

    /* Unread badge on Mensajes — gold */
    .nav-badge {
        position: absolute;
        top: 4px;
        right: calc(50% - 20px);
        background: #C9962F;
        color: #3B2F27;
        font-size: 9px;
        font-weight: 800;
        min-width: 15px;
        height: 15px;
        border-radius: 99px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        line-height: 1;
    }

    /* FAB hidden on mobile — Vale tab handles it */
    .vale-chat-fab { display: none !important; }

    .bottom-nav.hidden { display: none; }
}

/* ── Vale Chat Drawer (shared across all owner pages) ── */
.vale-chat-fab {
    position: fixed;
    bottom: 28px;
    right: 22px;
    width: 54px;
    height: 54px;
    border-radius: 99px;
    background: var(--color-barro);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(168,51,26,.5);
    z-index: 300;
    transition: transform .18s, box-shadow .18s;
}
.vale-chat-fab:hover { transform: scale(1.07); box-shadow: 0 12px 30px rgba(168,51,26,.55); }
.vale-chat-fab.open  { background: var(--color-tierra); }

/* FAB: sits in the right slot of the bottom nav on mobile */
@media (max-width: 767px) {
    .vale-chat-fab {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
        right: 12px;
        width: 52px;
        height: 52px;
    }
}
@media (min-width: 768px) {
    .vale-chat-fab { bottom: 36px; right: 36px; }
}

/* Prevent background scroll when chat drawer is open */
body.vc-open { overflow: hidden; }

/* Overlay: only on desktop (mobile is full-screen, no overlay needed) */
.vc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(34,28,24,.45);
    backdrop-filter: blur(3px);
    z-index: 400;
}
@media (min-width: 768px) {
    .vc-overlay.show { display: block; }
}

/* Chat drawer base — mobile: full screen from right */
.vale-chat-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100dvh;
    background: #F4EDE3;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    z-index: 500;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.2,.8,.2,1);
    overflow: hidden;
}
.vale-chat-drawer.open { transform: translateX(0); }

/* Desktop: side panel */
@media (min-width: 768px) {
    .vale-chat-drawer {
        top: 0; bottom: 0; right: 0; left: auto;
        width: 420px; height: 100dvh;
        border-radius: 26px 0 0 26px;
        box-shadow: -16px 0 40px rgba(34,28,24,.2);
        z-index: 401;
        transform: translateX(110%);
    }
    .vale-chat-drawer.open { transform: translateX(0); }
}

.vc-head {
    background: var(--color-barro);
    color: #fff;
    padding: 14px 16px;
    padding-top: max(14px, env(safe-area-inset-top, 14px));
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}
.vc-head-av {
    width: 38px; height: 38px; border-radius: 99px;
    background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex: none;
}
.vc-head-title { font-family: var(--font-headings); font-weight: 700; font-size: 15px; color: #fff; }
.vc-head-sub   { font-size: 12px; color: #f1d9cf; margin-top: 1px; }
.vc-close {
    margin-left: auto;
    background: rgba(255,255,255,.12); border: none; color: #fff;
    width: 36px; height: 36px; border-radius: 99px; font-size: 20px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s; line-height: 1; flex: none;
}
.vc-close:hover { background: rgba(255,255,255,.22); }

.vc-msgs {
    flex: 1; overflow-y: auto; padding: 18px 15px;
    display: flex; flex-direction: column; gap: 12px;
    background: linear-gradient(180deg, #fff 0%, #FBF4E8 100%);
}
.vc-bubble {
    max-width: 80%; padding: 11px 14px;
    border-radius: 16px; font-size: 14px; line-height: 1.4; word-wrap: break-word;
}
.vc-in  { align-self: flex-start; background: #3B2F27; color: #f3ece4; border-bottom-left-radius: 5px; }
.vc-out { align-self: flex-end; background: var(--color-barro); color: #fff; border-bottom-right-radius: 5px; }
.vc-typing {
    align-self: flex-start; background: #3B2F27;
    border-radius: 16px; border-bottom-left-radius: 5px;
    padding: 13px 16px; display: flex; gap: 5px; align-items: center;
}
.vc-typing span {
    width: 7px; height: 7px; border-radius: 99px; background: #c2b3a6;
    animation: vcDot 1.2s ease infinite;
}
.vc-typing span:nth-child(2) { animation-delay: .2s; }
.vc-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes vcDot { 0%,100%{transform:translateY(0);opacity:.4} 50%{transform:translateY(-5px);opacity:1} }

.vc-form {
    display: flex; gap: 9px;
    padding: 12px 14px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
    border-top: 1px solid var(--color-border);
    background: #FFFDF9; flex: none;
}
.vc-form input {
    flex: 1; border: 1px solid var(--color-border); border-radius: 22px;
    padding: 11px 16px; font-size: 15px; font-family: var(--font-body);
    outline: none; background: #fff; color: var(--color-tinta); transition: border-color .15s;
}
.vc-form input:focus { border-color: var(--color-barro); }
.vc-form button {
    width: 44px; height: 44px; border-radius: 99px;
    background: var(--color-barro); border: none; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex: none; transition: background .15s, transform .12s;
}
.vc-form button:hover { background: var(--color-barro-hover); transform: scale(1.05); }
.vc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0; align-self: flex-start; max-width: 90%; }
.vc-chip { padding: 7px 14px; border-radius: 20px; border: 1.5px solid var(--color-barro); background: #fff; color: var(--color-barro); font-family: inherit; font-size: 13px; cursor: pointer; transition: background .15s, color .15s; }
.vc-chip:hover { background: var(--color-barro); color: #fff; }
.vc-form button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
