Enjoy more time for what matters.
Spend less time on the rest.

A discreet, reliable personal concierge service in Barcelona for people who value their time and prefer to have everyday tasks taken care of for them.

From looking after your property while you’re away, running errands, or handling appointments to organizing practical matters and taking care of those little things that are difficult to find time for, I provide a flexible, personalized service tailored to your needs.

Barcelona Concierge Logo Collectionbc

Your trusted contact in Barcelona

For companies, individuals, or parents of students abroad.

Property care

Open & close the property
Do regular property checks
Coordinate repairs and maintenance
Coordinate cleaning & housekeeping services
Coordinate gardening & pool maintenance services
  • Housewatch & regular property checks

  • Home opening & closing

  • Repairs & maintenance coordination

  • Cleaning & housekeeping coordination

  • Gardening & pool maintenance coordination

  • Security checks & emergency assistance

Arrivals & Departures

Prepare the house
Do groceries & household essentials
Coordinate the moving service
Pack & Unpack
  • Home preparation before arrival & after departure

  • Grocery shopping & household essentials

  • Fridge & pantry stocking

  • Airport & station coordination

  • Moving in / moving out

  • Furniture deliveries, unpacking & home setup

Property search

Meet estate agents / owners
Do property visits
Take photos & videos
Produce condition report
  • Potential-home inspections

  • Property visits on your behalf

  • Photos & videos

  • Property condition reports

  • Neighborhood & surrounding-area checks

  • Estate agent & owner meetings

Personal assistance

Run paperwork & administrative errands
Book & coordinate local services
Collect & deliver items
Do well-checks & provide emergency assistance
Watch & walk the dog
  • Appointments & scheduling

  • Paperwork & administrative errands

  • Local errands & collections

  • Deliveries, waiting services & key handovers

  • Booking & coordinating local services

  • Pet care, keyholding & local assistance

Testimonials

About me

My name is Kathryn, and Barcelona is now my home. I know the city well — not just its streets and neighbourhoods, but also the practicalities of living here.

I offer a personal, discreet and reliable concierge service for international residents, property owners and visitors who need someone they can trust on the ground in Barcelona.

Whether you are away from your home, preparing to move in, dealing with paperwork, expecting a delivery or simply need something taken care of, I can be your local point of contact.

My aim is simple: to make things easier for you. I take care of the practical details, coordinate with the right people and keep you informed, so you don’t have to be here to get things done.

Contact

Fill out this form and I will get back to you shortly.

Name
thumbtack2

Service Request

Fill out this form and I will get back to you shortly.​
Personal Concierge Service Agreement

Agreement

Service Agreement · Date: ____ / ____ / ______

1. Parties

Service Provider

Client

2. Purpose of the Agreement

The Service Provider agrees to provide the personal concierge and property-related services expressly agreed with the Client.

3. Duration
4. Fees and Payment
5. Client Responsibilities

The Client agrees to:

6. Property Access and Keys
7. Third-Party Services

The Service Provider may assist in finding, booking or coordinating independent professionals, including cleaners, tradespeople, delivery companies and maintenance providers.

8. Property Checks and Reports
9. Cancellations and Changes
10. Confidentiality and Personal Data
11. Liability

The Service Provider shall exercise reasonable care and skill in performing the agreed services. Each Party shall be responsible for loss or damage to the extent attributable to their own acts or omissions.

12. Termination
13. Complaints and Disputes
14. Governing Law

This Agreement shall be governed by the laws of Spain, subject to any mandatory legal provisions applicable to the Client.

15. Entire Agreement and Amendments
16. Signatures

By signing below, the Parties confirm that they have read and understood this Agreement and agree to its terms.

The Service Provider

Service Provider's Signature

The Client

Client's Signature
Schedule A – Services and Fees

This Schedule forms an integral part of the Service Agreement between the Parties.

A. Services agreed

B. Service arrangements

C. Fees and expenses

D. Additional authorisations

The Client authorises the Service Provider to:

These authorisations apply only to the services agreed in this Schedule. They do not authorise the Service Provider to enter into property transactions, sign contracts on the Client's behalf or incur unapproved expenditure.

Personal Concierge Service

Your trusted contact in Barcelona

1. Website Owner

This website is owned and operated by:
  • Owner: [Full legal name or registered company name]
  • Business name: [Business name, if different]
  • Tax identification number: [NIF/NIE or company tax ID, as applicable]
  • Business address: [Full address]
  • Email: [Contact email]
  • Telephone: [Telephone number, if applicable]
  • Business registration details: [Where applicable]

2. Purpose of the Website

This website provides information about personal concierge, property care, property search assistance, arrival and departure coordination, and related services in Barcelona, Spain.The information published on this website is intended for general information purposes and does not constitute a binding offer unless expressly stated otherwise.

3. Terms of Use

By accessing this website, visitors agree to use it lawfully and refrain from any activity that may damage the website, interfere with its operation, or infringe the rights of the owner or third parties.

4. Intellectual Property

Unless otherwise stated, the content of this website, including its text, design, photographs, graphics and branding, is protected by applicable intellectual property laws.No content may be reproduced, distributed or used for commercial purposes without prior authorisation, except where permitted by law.

5. External Links

This website may contain links to third-party websites. The owner does not control the content, availability or privacy practices of external websites and is not responsible for them.

6. Applicable Law

This Legal Notice is governed by the laws applicable in Spain. Any disputes shall be handled by the competent courts in accordance with applicable law and mandatory consumer protection rules.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Enjoy more time for what matters. Spend less time on the rest.

 

A discreet, reliable personal concierge service in Barcelona for people who value their time and prefer to have everyday tasks taken care of for them.

From running errands and handling appointments to organising practical matters and taking care of those little things that are difficult to find time for, we provide a flexible, personalised service tailored to your needs.

concierge@personal.com
+34.123.456.789

Barcelona Concierge Logo Collectionbc

For companies, individuals, or parents of students abroad.

Property care

Open & close the property
Do regular property checks
Coordinate repairs and maintenance
Coordinate cleaning & housekeeping services
Coordinate gardening & pool maintenance services
  • Housewatch & regular property checks

  • Home opening & closing

  • Repairs & maintenance coordination

  • Cleaning & housekeeping coordination

  • Gardening & pool maintenance coordination

  • Security checks & emergency assistance

Arrivals & Departures

Prepare the house
Do groceries & household essentials
Coordinate the moving service
Pack & Unpack
  • Home preparation before arrival & after departure

  • Grocery shopping & household essentials

  • Fridge & pantry stocking

  • Airport & station coordination

  • Moving in / moving out

  • Furniture deliveries, unpacking & home setup

Property search

Meet estate agents / owners
Do property visits
Take photos & videos
Produce condition report
  • Potential-home inspections
  • Property visits on your behalf
  • Photos & videos
  • Property condition reports
  • Neighbourhood & surrounding-area checks
  • Estate agent & owner meetings

    Personal assitance

    I can run errands & handle local tasks
    Run paperwork & administrative errands
    Book & coordinate local services
    Collect & deliver items
    Do well-checks & provide emergency assistance
    Watch & walk the dog
    • Appointments & scheduling

    • Paperwork & administrative errands

    • Local errands & collections

    • Deliveries, waiting services & key handovers

    • Booking & coordinating local services

    • Pet care, keyholding & local assistance

      About me

      My name is Kathryn, and Barcelona is now my home. I know the city well — not just its streets and neighborhoods, but also the practicalities of living here.

      I offer a personal, discreet and reliable concierge service for international residents, property owners and visitors who need someone they can trust on the ground in Barcelona.

      Whether you are away from your home, preparing to move in, dealing with paperwork, expecting a delivery or simply need something taken care of, I can be your local point of contact.

      My aim is simple: to make things easier for you. I take care of the practical details, coordinate with the right people and keep you informed, so you don’t have to be here to get things done.

      Contact me

      Fill out this form and I will get back to you shortly.

      Name
      thumbtack2

      Service Request

      Fill out this form
      and I will get back to you shortly.​
      Name

      Please select your choices below:

      Property Care
      Arrivals & Departures​
      Property Search​
      Personal Assistance​

      PERSONAL CONCIERGE SERVICE

      SERVICE AGREEMENT

      Agreement date: ____ / ____ / ______

      This Service Agreement is entered into between the following parties:

       

      1. PARTIES

       

      SERVICE PROVIDER

      Full legal name: ______________________________________

      Trading name: ________________________________________

      Tax identification number: ______________________________

      Address: _____________________________________________

      Email: _______________________________________________

      Telephone: ___________________________________________

      Hereinafter referred to as the “Service Provider”.

       

      CLIENT

      Full name: ___________________________________________

      Identification / passport number (if necessary): ___________

      Address: _____________________________________________

      Email: _______________________________________________

      Telephone: ___________________________________________

      Hereinafter referred to as the “Client”.

      The Service Provider and the Client are collectively referred to as the “Parties”.

       

      2. PURPOSE OF THE AGREEMENT

      The Service Provider agrees to provide the personal concierge and property-related services expressly agreed with the Client.

      These services may include:

      • Property care and regular property checks.
      • Home opening and closing.
      • Coordination of repairs, maintenance and cleaning.
      • Arrival and departure arrangements.
      • Home preparation and household shopping.
      • Property visits, photographs and observations.
      • Appointment scheduling, errands and administrative assistance.
      • Deliveries, key collection and access coordination.
      • Other services agreed in writing by the Parties.

      The specific services covered by this Agreement are described in Schedule A – Services and Fees, attached to this Agreement.

      No service outside the agreed scope will be undertaken without the Client’s approval.

       

      3. DURATION

      This Agreement shall commence on:

      ____ / ____ / ______

      It shall remain in force until:

      ☐ The agreed services have been completed.

      ☐ ____ / ____ / ______

      ☐ Further notice, subject to the termination provisions below.

      Any extension or renewal must be agreed by the Parties in writing.

       

      4. FEES AND PAYMENT

      The Client agrees to pay the fees specified in Schedule A.

      Unless otherwise agreed in writing:

      • Fees are quoted in euros (€).
      • Applicable taxes, including VAT where required, will be charged in accordance with the law.
      • Third-party charges, purchases, materials, transport and other expenses are additional unless expressly included in the agreed fee.
      • The Service Provider must obtain the Client’s approval before incurring additional expenditure on the Client’s behalf.
      • Invoices shall be paid within ____ calendar days of issue.

      Payment method:

      ☐ Bank transfer
      ☐ Card payment
      ☐ Other: ____________________________________________

      Any deposit, advance payment or recurring payment arrangement must be expressly agreed in writing.

       

      5. CLIENT RESPONSIBILITIES

      The Client agrees to:

      a. Provide accurate information and reasonable instructions necessary for the services.

      b. Ensure that they are legally entitled to authorise the requested services and grant access to the relevant property.

      c. Provide the necessary keys, access arrangements and permissions where applicable.

      d. Inform the Service Provider of relevant property restrictions, known hazards and special requirements.

      e. Approve purchases, repairs and additional expenses before they are incurred, except where a different arrangement has been expressly agreed.

      f. Pay the agreed fees and approved expenses in accordance with this Agreement.

      The Service Provider may decline or suspend a request that is unlawful, unsafe, outside the agreed scope or beyond the Service Provider’s reasonable capabilities.

       

      6. PROPERTY ACCESS AND KEYS

      Where the services require access to a property, the Client authorises the Service Provider to enter the property solely for the agreed purposes and during the authorised period.

      The Parties shall agree separately on any arrangements for key collection, keyholding, access codes, key handovers and the return of keys.

      The Service Provider shall exercise reasonable care when handling keys and access devices and shall not knowingly disclose access information to unauthorised persons.

      The Client should not provide unnecessary sensitive access information through unsecured communication channels.

      Any loss, damage or security incident involving keys or access devices must be reported to the other Party as soon as reasonably practicable.

      The Service Provider shall not make copies of keys or grant access to third parties without the Client’s authorisation, except where required by law or reasonably necessary to respond to an emergency involving an imminent risk of harm or serious damage.

       

      7. THIRD-PARTY SERVICES

      The Service Provider may assist in finding, booking or coordinating independent professionals, including cleaners, tradespeople, delivery companies and maintenance providers.

      The Parties shall clarify, where relevant, whether the Service Provider acts as a coordinator or contracts directly with the Client to provide a particular service.

      Unless otherwise agreed, independent providers remain responsible for the work they perform under their own contractual arrangements.

      The Service Provider shall exercise reasonable care when selecting or coordinating third-party services within the agreed scope.

      Nothing in this clause excludes any responsibility that the Service Provider may have under applicable law.

       

      8. PROPERTY CHECKS AND REPORTS

      Property checks, photographs, videos and written reports are limited to the tasks and observations agreed with the Client.

      Unless expressly agreed otherwise, such checks are not professional building surveys, structural inspections, security monitoring or guarantees that a property is free from defects, damage, theft or other incidents.

      The Service Provider shall inform the Client of significant issues observed during an agreed visit within a reasonable time.

      The frequency of checks, reporting arrangements and any emergency contact procedure shall be specified in Schedule A where applicable.

       

      9. CANCELLATIONS AND CHANGES

      Either Party should notify the other as soon as reasonably possible of any requested change or cancellation.

      The following cancellation terms apply, subject to mandatory legal rights:

      Notice period: ________________________________________

      Cancellation fee, if applicable: __________________________

      Refund conditions: ____________________________________

      If a service cannot be performed because of circumstances beyond the Service Provider’s reasonable control, the Parties shall seek a reasonable alternative arrangement, rescheduling or refund as appropriate to the circumstances and applicable law.

      Nothing in this Agreement removes any statutory right of withdrawal, refund or other consumer right that applies to the Client.

      Where the Agreement is concluded at a distance or away from business premises, any applicable pre-contractual information and withdrawal requirements must be complied with separately.

       

      10. CONFIDENTIALITY AND PERSONAL DATA

      Both Parties agree to handle confidential information received in connection with the services responsibly and not to disclose it to unauthorised persons, except where disclosure is authorised, necessary to perform the agreed services or required by law.

      The Service Provider shall process the Client’s personal data in accordance with applicable data protection legislation and the Service Provider’s Privacy Policy.

      Personal information, property details, photographs and access instructions shall be used only for legitimate purposes connected with the agreed services or other purposes permitted by law.

      Any applicable data protection information or additional processing arrangements shall be provided separately where required.

       

      11. LIABILITY

      The Service Provider shall exercise reasonable care and skill in performing the agreed services.

      Each Party shall be responsible for loss or damage to the extent attributable to their own acts or omissions, in accordance with applicable law.

      The Service Provider does not guarantee the performance of independent third-party providers or the prevention of incidents beyond the agreed scope of the services.

      The Service Provider shall not be responsible for circumstances outside their reasonable control except to the extent that responsibility arises under applicable law.

      Nothing in this Agreement excludes or limits liability for fraud, wilful misconduct, negligence or any other matter where such exclusion or limitation is prohibited by law.

      Nothing in this Agreement limits the Client’s mandatory rights under applicable consumer protection legislation.

       

      12. TERMINATION

      Either Party may terminate this Agreement by giving ____ calendar days’ written notice, where the Agreement is ongoing.

      Either Party may request immediate termination where the other Party commits a material breach and, where the breach can reasonably be remedied, fails to remedy it within a reasonable period after written notice.

      Upon termination:

      a. The Client shall pay for services properly performed up to the termination date and any approved expenses legally payable.

      b. Any prepaid amount relating to services not provided shall be refunded where required by the agreed terms or applicable law.

      c. The Service Provider shall arrange the return of the Client’s keys and access devices within a reasonable agreed period.

      d. Each Party shall return or securely dispose of confidential information where appropriate, subject to any legal retention requirements.

      Termination shall not affect any rights or obligations that have already accrued.

       

      13. COMPLAINTS AND DISPUTES

      The Parties shall first attempt to resolve any disagreement through good-faith communication.

      Complaints may be submitted to:

      Email: _______________________________________________

      This procedure does not prevent either Party from exercising their legal rights or using any applicable consumer dispute resolution or complaint procedure.

       

      14. GOVERNING LAW

      This Agreement shall be governed by the laws of Spain, subject to any mandatory legal provisions applicable to the Client.

      Any dispute shall be submitted to the competent courts or other legally applicable dispute resolution body. Nothing in this clause deprives a consumer of any mandatory rights concerning jurisdiction.

       

      15. ENTIRE AGREEMENT AND AMENDMENTS

      This Agreement and Schedule A constitute the agreement between the Parties regarding the services described herein.

      Any amendment or additional service must be agreed in writing, including by email where legally valid.

      If any provision is held to be invalid or unenforceable, the remaining provisions shall continue to apply to the extent permitted by law.

       

      16. SIGNATURES

      By signing below, the Parties confirm that they have read and understood this Agreement and agree to its terms.

       

      THE SERVICE PROVIDER

      Full name: ___________________________________________

      Signature: ___________________________________________

      Date: ____ / ____ / ______

       

      THE CLIENT

      Full name: ___________________________________________

      Signature: ___________________________________________

      Date: ____ / ____ / ______


       

      SCHEDULE A – SERVICES AND FEES

      This Schedule forms an integral part of the Service Agreement between the Parties.

      Client name: _______________________________________

      Property address, if applicable: _______________________


       

      A. Services agreed

      ☐ Property care and regular checks

      ☐ Home opening and closing

      ☐ Repairs and maintenance coordination

      ☐ Cleaning and housekeeping coordination

      ☐ Arrival and departure assistance

      ☐ Home preparation and household shopping

      ☐ Property visits, photographs and reports

      ☐ Appointments, errands and administrative assistance

      ☐ Deliveries, key collection and handovers

      ☐ Other: ____________________________________________

      Detailed description and specific instructions:




       

      B. Service arrangements

      Start date: ____ / ____ / ______

      End date or duration: __________________________________

      Frequency of visits, if applicable: ________________________

      Reporting method: ____________________________________

      Authorised access arrangements: _________________________

      Emergency contact and agreed procedure: _________________


       

      C. Fees and expenses

      Agreed fee: € _________________________________________

      ☐ Hourly rate

      ☐ Fixed fee

      ☐ Monthly fee

      ☐ Other: ____________________________________________

      Applicable taxes: _____________________________________

      Approved additional expenses or spending limit: € __________

      Payment terms: _______________________________________

      Other agreed conditions: ________________________________


       

      D. Additional authorisations

      The Client authorises the Service Provider to:

      ☐ Access the property for the services specified above.

      ☐ Collect or hand over keys as specifically agreed.

      ☐ Arrange appointments with third-party providers.

      ☐ Make purchases up to the approved limit specified above.

      ☐ Take photographs or videos for private reporting to the Client.

      ☐ Other specifically agreed action: _______________________

      These authorisations apply only to the services agreed in this Schedule. They do not authorise the Service Provider to enter into property transactions, sign contracts on the Client’s behalf or incur unapproved expenditure.

       

      THE SERVICE PROVIDER

      Name: ______________________________________________

      Signature: ___________________________________________

      Date: ____ / ____ / ______

       

      THE CLIENT

      Name: ______________________________________________

      Signature: ___________________________________________

      Date: ____ / ____ / ______

      Enjoy more time for what matters.
      Spend less time on tasks.

      Personal Concierge Service

      Your trusted contact in Barcelona

      1. Website Owner

      This website is owned and operated by:

      • Owner: [Full legal name or registered company name]
      • Business name: [Business name, if different]
      • Tax identification number: [NIF/NIE or company tax ID, as applicable]
      • Business address: [Full address]
      • Email: [Contact email]
      • Telephone: [Telephone number, if applicable]
      • Business registration details: [Where applicable]

      2. Purpose of the Website

      This website provides information about personal concierge, property care, property search assistance, arrival and departure coordination, and related services in Barcelona, Spain.

      The information published on this website is intended for general information purposes and does not constitute a binding offer unless expressly stated otherwise.

      3. Terms of Use

      By accessing this website, visitors agree to use it lawfully and refrain from any activity that may damage the website, interfere with its operation, or infringe the rights of the owner or third parties.

      4. Intellectual Property

      Unless otherwise stated, the content of this website, including its text, design, photographs, graphics and branding, is protected by applicable intellectual property laws.

      No content may be reproduced, distributed or used for commercial purposes without prior authorisation, except where permitted by law.

      5. External Links

      This website may contain links to third-party websites. The owner does not control the content, availability or privacy practices of external websites and is not responsible for them.

      6. Applicable Law

      This Legal Notice is governed by the laws applicable in Spain. Any disputes shall be handled by the competent courts in accordance with applicable law and mandatory consumer protection rules.

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

      WHAT WE CAN DO FOR YOU

      Errands & Personal Tasks

      • Shopping and purchases
      • Collecting and delivering items
      • Returns and exchanges
      • Posting parcels and documents
      • Picking up prescriptions and other everyday essentials
      • Taking care of small personal errands

      Appointments & Organisation

      • Booking restaurants, appointments and services
      • Organising schedules and reservations
      • Arranging deliveries and collections
      • Making phone calls and dealing with everyday arrangements
      • Helping organise trips, events and personal activities

      Practical Assistance

      • Waiting for deliveries or tradespeople
      • Organising repairs and maintenance
      • Collecting keys or documents
      • Coordinating services at your home
      • Helping with time-consuming administrative tasks

      Whatever You Need

      Not every task fits into a category.

      If there is something you need done and simply don’t have the time — or don’t want to spend your time doing it — get in touch.

      I’ll see how I can help.

      A SERVICE BUILT AROUND YOU

      Every client has different needs. Some require occasional help with individual tasks; others prefer someone they can rely on regularly.

      Whether you need help once a week, once a month or simply when something comes up, the service can be arranged around your lifestyle and requirements.

      Discreet. Reliable. Personal.

      Your time is valuable.

      Let someone else take care of the things that take up your time.

      Tell me what you need, and let’s see how I can help.

       

       

      • Personal Concierge & Relocation Assistance
      • Personal Concierge & Barcelona Assistance
      • Personal Concierge & Settling-In Services
      • Barcelona Personal Concierge
      • Personal Concierge for Life in Barcelona

      I fins i tot faria servir com a titular:

      Your Personal Concierge in Barcelona

      amb:

      Helping you settle in, get things done and make the most of your time.WE

      PERSONAL CONCIERGE & RELOCATION SERVICES

      Making life in Barcelona easier.

      A discreet, reliable and personalised service for people who value their time — whether you are new to Barcelona, have recently moved here, or simply want someone you can rely on to take care of things for you.

      From finding an apartment and dealing with practical arrangements to running errands, organising appointments and taking care of everyday tasks, I can help make life in Barcelona simpler and more convenient.

      NEW TO BARCELONA?

      Settle in with less stress.

      Moving to a new city can be exciting, but dealing with unfamiliar systems, paperwork and practical arrangements can also be time-consuming.

      I can help you navigate the practical side of settling into Barcelona.

      • Searching for apartments and arranging viewings
      • Helping you identify suitable neighbourhoods
      • Accompanying you to appointments and viewings
      • Helping with local paperwork and administrative procedures
      • Setting up utilities and essential services
      • Finding local professionals and service providers
      • Arranging deliveries, installations and repairs
      • Helping you get familiar with the city and its services
      • Translating or explaining everyday communications
      • Taking care of practical tasks on your behalf

      PERSONAL CONCIERGE

      Your time is valuable. Let someone else handle the details.

      You don’t always need a full-time personal assistant. Sometimes you simply need someone trustworthy who can take care of the things you don’t have time for.

      Errands & Personal Tasks

      • Shopping and purchases
      • Collecting and delivering items
      • Returns and exchanges
      • Posting parcels and documents
      • Collecting prescriptions and everyday essentials
      • Running personal errands

      Appointments & Reservations

      • Booking restaurants and appointments
      • Organising services and deliveries
      • Making phone calls
      • Arranging collections and bookings
      • Coordinating your schedule

      Home & Practical Assistance

      • Waiting for deliveries or tradespeople
      • Arranging repairs and maintenance
      • Collecting keys or documents
      • Coordinating home services
      • Organising installations and deliveries

      LOCAL KNOWLEDGE. PERSONAL ATTENTION.

      Barcelona can be easy to live in once you know how things work.

      If you are new to the city, don’t speak Spanish or Catalan confidently, or simply don’t want to spend your time dealing with everyday practicalities, I can help.

      The service is flexible and tailored to you.

      You might need help with one particular task, assistance while settling into Barcelona, or someone you can rely on regularly.

      Discreet. Reliable. Personal.

      Tell me what you need. I’ll take care of it.

      add_action('wp_footer', function() { ?> window.LessonProgress={getStorageKey:function(){var body=document.body;var userId=null;var meta=document.querySelector('meta[name="current-user-id"]');if(meta){userId=meta.getAttribute('content')} if(!userId&&window.currentUser&&window.currentUser.id){userId=window.currentUser.id} if(!userId&&body){var match=body.className.match(/user-id-(\d+)/);if(match){userId=match[1]}} if(!userId&&body){userId=body.getAttribute('data-user-id')} if(!userId){userId=localStorage.getItem('lesson_user_id')} if(!userId){userId='guest'} return'lesson_progress_'+userId},getProgress:function(){try{var data=localStorage.getItem(this.getStorageKey());return data?JSON.parse(data):{}}catch(error){console.error('Could not read lesson progress:',error);return{}}},saveProgress:function(progress){try{localStorage.setItem(this.getStorageKey(),JSON.stringify(progress))}catch(error){console.error('Could not save lesson progress:',error)}},isCompleted:function(lessonId){var progress=this.getProgress();return!!progress[lessonId]},complete:function(lessonId){if(!lessonId)return;var progress=this.getProgress();progress[lessonId]={completed:!0,completedAt:new Date().toISOString()};this.saveProgress(progress);updateSidebarCheckmarks();document.dispatchEvent(new CustomEvent('lessonProgressUpdated',{detail:{lessonId:lessonId,completed:!0}}))},uncomplete:function(lessonId){if(!lessonId)return;var progress=this.getProgress();delete progress[lessonId];this.saveProgress(progress);updateSidebarCheckmarks();document.dispatchEvent(new CustomEvent('lessonProgressUpdated',{detail:{lessonId:lessonId,completed:!1}}))},toggle:function(lessonId){if(this.isCompleted(lessonId)){this.uncomplete(lessonId)}else{this.complete(lessonId)}}};function getCurrentLessonId(){var body=document.body;if(body){var bodyLessonId=body.getAttribute('data-lesson-id');if(bodyLessonId)return bodyLessonId;var postId=body.getAttribute('data-post-id');if(postId)return postId;var classes=body.className;var match=classes.match(/postid-(\d+)/);if(match)return match[1]} return null} function updateSidebarCheckmarks(){if(!window.LessonProgress)return;var progress=window.LessonProgress.getProgress();document.querySelectorAll('[data-lesson-id]').forEach(function(element){var lessonId=element.getAttribute('data-lesson-id');if(!lessonId)return;var completed=!!progress[lessonId];var existing=element.querySelector('.lesson-completion-check');if(existing)existing.remove();if(completed){var check=document.createElement('span');check.className='lesson-completion-check';check.textContent='✓ ';check.setAttribute('aria-hidden','true');element.insertBefore(check,element.firstChild)}})} function connectCpmButtonToProgress(){var btn=document.getElementById('cpm-complete-button');if(!btn)return;if(window.__cpmButtonConnected===!0){return} if(btn.getAttribute('data-progress-connected')==='true'){return} window.__cpmButtonConnected=!0;btn.setAttribute('data-progress-connected','true');btn.dataset.progressConnected='true';var lessonId=btn.getAttribute('data-lesson-complete')||btn.getAttribute('data-lesson-id')||getCurrentLessonId();if(lessonId){var isDone=window.LessonProgress.isCompleted(lessonId);btn.setAttribute('data-completed',isDone?'1':'0');var completedText=btn.getAttribute('data-completed-text');var incompleteText=btn.getAttribute('data-incomplete-text');if(isDone&&completedText){btn.textContent=completedText}else if(!isDone&&incompleteText){btn.textContent=incompleteText}} btn.addEventListener('click',function(){var lessonId=btn.getAttribute('data-lesson-complete')||btn.getAttribute('data-lesson-id')||getCurrentLessonId();if(!lessonId){console.warn('⚠️ No s\'ha trobat lessonId per al botó CPM');return} window.LessonProgress.toggle(lessonId);var completed=window.LessonProgress.isCompleted(lessonId);btn.setAttribute('data-completed',completed?'1':'0');var completedText=btn.getAttribute('data-completed-text');var incompleteText=btn.getAttribute('data-incomplete-text');if(completed&&completedText){btn.textContent=completedText}else if(!completed&&incompleteText){btn.textContent=incompleteText} console.log('✅ Progrés actualitzat per lessonId:',lessonId,'→',completed)})} if(document.readyState==='loading'){document.addEventListener('DOMContentLiteSpeedLoaded',function(){updateSidebarCheckmarks();connectCpmButtonToProgress()})}else{updateSidebarCheckmarks();connectCpmButtonToProgress()}