/* ==========================================================================
   Reservia — estils públics (pàgina d'organització, home de producte i webchat)
   Paleta: teal/verd-blau profund coherent amb el backend.
   ========================================================================== */

:root {
    --rv-primary: #0d7a8a;
    --rv-primary-dark: #0a5f6c;
    --rv-primary-darker: #07444e;
    --rv-primary-soft: #e3f1f3;
    --rv-accent: #14a3b8;
    --rv-ink: #16323a;
    --rv-ink-soft: #51707a;
    --rv-bg: #f4f8f9;
    --rv-card: #ffffff;
    --rv-border: rgba(13, 122, 138, 0.14);
    --rv-radius: 16px;
    --rv-shadow: 0 18px 45px rgba(7, 68, 78, 0.12);
    --rv-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.rv-body {
    font-family: var(--rv-font);
    background: var(--rv-bg);
    color: var(--rv-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.rv-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Barra superior
   -------------------------------------------------------------------------- */

.rv-topbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rv-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.rv-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
}

.rv-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--rv-ink);
    min-width: 0;
}

.rv-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    background: #fff;
    border: 1px solid var(--rv-border);
    flex-shrink: 0;
}

.rv-brand-initial {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--rv-primary), var(--rv-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rv-brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rv-wordmark {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--rv-primary-dark);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Botons
   -------------------------------------------------------------------------- */

.rv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    font-family: var(--rv-font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.rv-btn-primary {
    background: var(--rv-primary);
    color: #fff;
}

.rv-btn-primary:hover {
    background: var(--rv-primary-dark);
}

.rv-btn-light {
    background: #fff;
    color: var(--rv-primary-dark);
    border-color: var(--rv-border);
}

.rv-btn-light:hover {
    background: var(--rv-primary-soft);
}

.rv-btn-ghost {
    background: transparent;
    color: var(--rv-primary-dark);
    border-color: var(--rv-primary);
}

.rv-btn-ghost:hover {
    background: var(--rv-primary-soft);
}

/* --------------------------------------------------------------------------
   Hero d'organització
   -------------------------------------------------------------------------- */

.rv-hero {
    position: relative;
    background:
        linear-gradient(135deg, var(--rv-primary-darker) 0%, var(--rv-primary-dark) 45%, var(--rv-primary) 100%);
    color: #fff;
    overflow: hidden;
}

.rv-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(20, 163, 184, 0.35), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.07), transparent 40%);
    pointer-events: none;
}

.rv-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 3.5rem 0;
}

.rv-hero-content {
    flex: 1 1 55%;
    min-width: 0;
}

.rv-hero-kicker {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.rv-hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.rv-hero-lead {
    margin: 0 0 1.75rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 36rem;
}

.rv-hero-media {
    flex: 1 1 40%;
    min-width: 0;
}

.rv-hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--rv-radius);
    box-shadow: var(--rv-shadow);
    border: 4px solid rgba(255, 255, 255, 0.18);
}

/* --------------------------------------------------------------------------
   Targetes de valor
   -------------------------------------------------------------------------- */

.rv-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.rv-feature-card {
    background: var(--rv-card);
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius);
    padding: 1.4rem 1.5rem;
    box-shadow: 0 8px 24px rgba(7, 68, 78, 0.08);
}

.rv-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--rv-primary-soft);
    color: var(--rv-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.rv-feature-icon svg {
    width: 22px;
    height: 22px;
}

.rv-feature-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.rv-feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--rv-ink-soft);
}

/* --------------------------------------------------------------------------
   Secció de xat
   -------------------------------------------------------------------------- */

.rv-section {
    padding: 3.5rem 0;
}

.rv-section-heading {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.rv-section-heading h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.02em;
    color: var(--rv-primary-darker);
}

.rv-section-heading p {
    margin: 0;
    color: var(--rv-ink-soft);
}

.rv-chat-shell {
    max-width: 720px;
    margin: 0 auto;
    background: var(--rv-card);
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius);
    box-shadow: var(--rv-shadow);
    overflow: hidden;
}

.rv-chat-frame {
    display: block;
    width: 100%;
    height: 600px;
    border: 0;
    background: #fff;
}

.rv-chat-disabled {
    max-width: 720px;
    margin: 0 auto;
    background: var(--rv-primary-soft);
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius);
    padding: 2rem;
    text-align: center;
    color: var(--rv-primary-darker);
}

/* --------------------------------------------------------------------------
   Home de producte (arrel "/")
   -------------------------------------------------------------------------- */

.rv-product-hero {
    flex: 1;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 4.5rem 0;
}

.rv-product-hero .rv-container {
    max-width: 760px;
}

.rv-product-wordmark {
    font-size: clamp(2.6rem, 7vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: 0 0 1rem;
    background: linear-gradient(120deg, var(--rv-primary-darker), var(--rv-primary), var(--rv-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rv-product-tagline {
    font-size: 1.25rem;
    color: var(--rv-ink-soft);
    margin: 0 0 2rem;
}

.rv-product-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.rv-chip {
    background: var(--rv-primary-soft);
    color: var(--rv-primary-darker);
    border: 1px solid var(--rv-border);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Peu
   -------------------------------------------------------------------------- */

.rv-footer {
    border-top: 1px solid var(--rv-border);
    padding: 1.5rem 0;
    margin-top: auto;
    background: #fff;
}

.rv-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--rv-ink-soft);
}

.rv-footer a {
    color: var(--rv-primary-dark);
    text-decoration: none;
    font-weight: 600;
}

.rv-footer a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Webchat (mode embedded i bombolles compartides)
   -------------------------------------------------------------------------- */

body.rv-chat-body {
    font-family: var(--rv-font);
    background: #fff;
    color: var(--rv-ink);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rv-chat-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.rv-chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, var(--rv-primary-darker), var(--rv-primary));
    color: #fff;
    flex-shrink: 0;
}

.rv-chat-header-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
}

.rv-chat-header-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.rv-chat-header-meta {
    min-width: 0;
}

.rv-chat-header-name {
    font-weight: 700;
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rv-chat-header-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
}

.rv-chat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

.rv-chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1.1rem 1rem;
    background: var(--rv-bg);
}

.rv-chat-empty {
    text-align: center;
    color: var(--rv-ink-soft);
    font-size: 0.9rem;
    padding: 2rem 1rem;
}

.rv-msg-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.rv-msg {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    max-width: 85%;
}

.rv-msg--user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.rv-msg--agent {
    margin-right: auto;
}

.rv-msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rv-primary), var(--rv-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rv-msg-bubble {
    padding: 0.6rem 0.9rem;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-line;
}

.rv-msg--user .rv-msg-bubble {
    background: var(--rv-primary);
    color: #fff;
    border-bottom-right-radius: 5px;
}

.rv-msg--agent .rv-msg-bubble {
    background: #fff;
    color: var(--rv-ink);
    border: 1px solid var(--rv-border);
    border-bottom-left-radius: 5px;
    box-shadow: 0 1px 2px rgba(7, 68, 78, 0.06);
}

.rv-msg-time {
    margin-top: 0.3rem;
    font-size: 0.68rem;
    opacity: 0.65;
}

/* Indicador d'escriptura */

.rv-typing {
    display: none;
    align-items: flex-end;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.rv-typing.is-visible {
    display: flex;
}

.rv-typing-bubble {
    background: #fff;
    border: 1px solid var(--rv-border);
    border-radius: 16px;
    border-bottom-left-radius: 5px;
    padding: 0.7rem 0.9rem;
    display: flex;
    gap: 0.3rem;
}

.rv-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rv-primary);
    opacity: 0.4;
    animation: rv-typing-bounce 1.2s infinite ease-in-out;
}

.rv-typing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.rv-typing-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes rv-typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Compositor */

.rv-chat-composer {
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    background: #fff;
    border-top: 1px solid var(--rv-border);
}

.rv-chat-composer-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.rv-chat-input {
    flex: 1;
    min-width: 0;
    font-family: var(--rv-font);
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--rv-border);
    border-radius: 999px;
    background: var(--rv-bg);
    color: var(--rv-ink);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rv-chat-input:focus {
    border-color: var(--rv-primary);
    box-shadow: 0 0 0 3px rgba(13, 122, 138, 0.15);
    background: #fff;
}

.rv-chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--rv-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.rv-chat-send:hover {
    background: var(--rv-primary-dark);
}

.rv-chat-send svg {
    width: 20px;
    height: 20px;
}

.rv-chat-footer-note {
    text-align: center;
    font-size: 0.7rem;
    color: var(--rv-ink-soft);
    margin-top: 0.5rem;
}

/* Mode eina de prova (no embedded, dins del backend) */

.rv-chat-panel .rv-chat-messages {
    border-radius: 12px;
    border: 1px solid var(--rv-border);
    max-height: 480px;
    min-height: 280px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .rv-hero-inner {
        flex-direction: column;
        padding: 2.5rem 0;
        gap: 1.75rem;
    }

    .rv-hero-media {
        width: 100%;
    }

    .rv-hero-image {
        height: 220px;
    }

    .rv-features {
        grid-template-columns: 1fr;
        margin-top: 1.5rem;
    }
}

@media (max-width: 600px) {
    .rv-topbar-inner {
        min-height: 56px;
    }

    .rv-section {
        padding: 2.25rem 0;
    }

    .rv-chat-frame {
        height: 520px;
    }

    .rv-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .rv-msg {
        max-width: 92%;
    }
}

/* ============================================================
   Enllaç públic de reserva (booking link, mobile-first)
   ============================================================ */

.rv-booking {
    padding: 1.25rem 0 2.5rem;
}

.rv-booking-container {
    width: min(560px, calc(100% - 2rem));
    margin: 0 auto;
}

.rv-booking-card {
    background: var(--rv-card);
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius);
    box-shadow: var(--rv-shadow);
    padding: 1.5rem 1.25rem 1.75rem;
}

.rv-booking-card-center {
    text-align: center;
}

.rv-booking-header h1,
.rv-booking-card-center h1 {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    color: var(--rv-primary-darker);
}

.rv-booking-subtitle {
    margin: 0 0 1rem;
    color: var(--rv-ink-soft);
    font-size: 0.95rem;
}

.rv-booking-alert {
    background: #fdecea;
    border: 1px solid #f3c1bb;
    color: #8a2a1d;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.rv-day-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.rv-day-chip {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.05rem;
    min-width: 58px;
    padding: 0.5rem 0.4rem;
    border-radius: 12px;
    border: 1px solid var(--rv-border);
    background: var(--rv-bg);
    color: var(--rv-ink);
    text-decoration: none;
    font-size: 0.78rem;
}

.rv-day-chip:hover {
    background: var(--rv-primary-soft);
}

.rv-day-chip-active {
    background: var(--rv-primary);
    border-color: var(--rv-primary);
    color: #fff;
}

.rv-day-chip-active:hover {
    background: var(--rv-primary-dark);
}

.rv-day-chip-number {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
}

.rv-booking-day-title {
    margin: 0.5rem 0 0.75rem;
    font-size: 1.05rem;
    color: var(--rv-primary-darker);
}

.rv-booking-empty {
    color: var(--rv-ink-soft);
    background: var(--rv-bg);
    border: 1px dashed var(--rv-border);
    border-radius: 12px;
    padding: 1.1rem;
    text-align: center;
}

.rv-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.rv-slot input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rv-slot span {
    display: block;
    text-align: center;
    padding: 0.6rem 0.25rem;
    border-radius: 10px;
    border: 1px solid var(--rv-border);
    background: var(--rv-bg);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.rv-slot input:checked + span {
    background: var(--rv-primary);
    border-color: var(--rv-primary);
    color: #fff;
}

.rv-slot input:focus-visible + span {
    outline: 2px solid var(--rv-accent);
    outline-offset: 2px;
}

/* Enllaç multi-professional: chips més amples amb el nom del professional. */
.rv-slot-grid-multi {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.rv-slot-worker {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.75;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rv-booking-identify {
    border-top: 1px solid var(--rv-border);
    padding-top: 1rem;
    margin-bottom: 1.25rem;
}

.rv-booking-identify h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: var(--rv-primary-darker);
}

.rv-booking-hint {
    color: var(--rv-ink-soft);
    font-size: 0.85rem;
    margin: 0 0 0.75rem;
}

.rv-booking-field {
    display: block;
    margin-bottom: 0.75rem;
}

.rv-booking-field span {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--rv-ink);
}

.rv-booking-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--rv-border);
    font-family: var(--rv-font);
    font-size: 1rem;
    background: #fff;
    color: var(--rv-ink);
}

.rv-booking-field input:focus {
    outline: 2px solid var(--rv-accent);
    outline-offset: 1px;
}

.rv-booking-submit {
    width: 100%;
    font-size: 1rem;
    padding: 0.8rem 1rem;
}

.rv-booking-status-icon {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.rv-booking-summary {
    margin: 1.25rem 0;
    display: grid;
    gap: 0.5rem;
    text-align: left;
}

.rv-booking-summary div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--rv-border);
    padding-bottom: 0.45rem;
}

.rv-booking-summary dt {
    color: var(--rv-ink-soft);
    font-size: 0.88rem;
}

.rv-booking-summary dd {
    margin: 0;
    font-weight: 600;
}

.rv-booking-footer {
    text-align: center;
    padding: 0 0 2rem;
}

/* ==========================================================================
   Pàgines d'error estilitzades (error 403 / 404 / 500 / genèric)
   ========================================================================== */

.rv-error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.rv-error-wrap {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.rv-error-card {
    width: 100%;
    background: var(--rv-card);
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius);
    box-shadow: var(--rv-shadow);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.rv-error-brand {
    margin-bottom: 0.5rem;
}

.rv-error-dot {
    color: var(--rv-accent);
}

.rv-error-code {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--rv-primary), var(--rv-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    user-select: none;
}

.rv-error-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--rv-ink);
    margin: 0;
}

.rv-error-msg {
    color: var(--rv-ink-soft);
    font-size: 0.97rem;
    line-height: 1.6;
    margin: 0;
    max-width: 36ch;
}

.rv-error-btn {
    margin-top: 0.5rem;
}

.rv-error-footer {
    color: var(--rv-ink-soft);
    font-size: 0.82rem;
    margin: 0;
    opacity: 0.75;
}

/* ==========================================================================
   Fi de pàgines d'error
   ========================================================================== */

.rv-wordmark-small {
    font-size: 0.95rem;
    opacity: 0.7;
}

/* ---------- Landing de producte (arrel "/") ---------- */
.rv-landing { display: block; }
.rv-landing .rv-product-hero { padding: 4.5rem 0 3rem; text-align: center; }
.rv-landing-sub { max-width: 640px; margin: 1rem auto 0; color: var(--rv-ink-soft); font-size: 1.1rem; line-height: 1.6; }
.rv-landing-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; }
.rv-landing-section { padding: 3.25rem 0; }
.rv-landing-alt { background: var(--rv-primary-soft); }
.rv-landing-h2 { text-align: center; font-size: 1.65rem; margin: 0 0 2rem; color: var(--rv-ink); }
.rv-landing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.rv-landing-card { background: var(--rv-card); border: 1px solid var(--rv-border); border-radius: var(--rv-radius); padding: 1.5rem; box-shadow: var(--rv-shadow); }
.rv-landing-card h3 { margin: .75rem 0 .4rem; font-size: 1.1rem; color: var(--rv-ink); }
.rv-landing-card p { margin: 0; color: var(--rv-ink-soft); line-height: 1.55; font-size: .95rem; }
.rv-landing-icon { font-size: 1.8rem; }
.rv-landing-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.rv-landing-step { text-align: center; padding: 0 .5rem; }
.rv-landing-step h3 { margin: .9rem 0 .4rem; font-size: 1.1rem; color: var(--rv-ink); }
.rv-landing-step p { margin: 0; color: var(--rv-ink-soft); line-height: 1.55; font-size: .95rem; }
.rv-landing-num { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--rv-primary); color: #fff; font-weight: 700; font-size: 1.15rem; }
.rv-landing-final { text-align: center; }
.rv-landing-final .rv-btn { margin-top: 1.25rem; }
