/* =============================================
   TEMA LADOLCEVIDA – FULL D'ESTILS PRINCIPAL
   =============================================
   Autor: El teu equip
   Versió: 3.1
   Descripció: Tots els estils del tema, responsive,
   amb explicacions en català per a cada bloc.
   Inclou estils per al sistema de favorits.
   ============================================= */

/* ---------------------------------------------
   1. VARIABLES GLOBALS (CSS CUSTOM PROPERTIES)
   ---------------------------------------------
   Permeten canviar fàcilment la paleta de colors
   des del personalitzador de WordPress.
   --------------------------------------------- */
:root {
    --ldv-primary: #2c3e50;      /* Color principal (blau fosc) */
    --ldv-secondary: #e67e22;    /* Color secundari (taronja) */
    --ldv-background: #f5f5f5;   /* Fons general */
    --ldv-text: #333;            /* Color de text principal */
    --ldv-white: #fff;           /* Blanc */
    --ldv-gray-light: #f9fafc;   /* Gris molt clar per a fons alterns */
    --ldv-gray: #666;           /* Gris per a textos secundaris */
    --ldv-border: #ddd;         /* Color de vores */
    --ldv-shadow: rgba(0,0,0,0.05); /* Ombra lleu */
    --ldv-shadow-heavy: rgba(0,0,0,0.1); /* Ombra més marcada */
    --ldv-favorite: #ff6b6b;    /* Color per al cor de favorits */
}

/* ---------------------------------------------
   2. RESET I MODEL DE CAIXA
   ---------------------------------------------
   Assegura que tots els elements es mesurin
   de manera coherent i no tinguin marge per defecte.
   --------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------------------------------------------
   3. ESTILS BASE DEL COS
   --------------------------------------------- */
body {
    font-family: 'Open Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--ldv-background);
    color: var(--ldv-text);
    line-height: 1.6;
    overflow-x: hidden; /* Evita desplaçament horitzontal innecessari */
}

/* ---------------------------------------------
   4. CONTENIDOR PRINCIPAL
   ---------------------------------------------
   Classe reutilitzable per centrar i limitar l'amplada
   del contingut a 1200px màxim.
   --------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ---------------------------------------------
   5. ENLLAÇOS I BOTONS
   --------------------------------------------- */
a {
    color: var(--ldv-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--ldv-secondary);
}

/* Botons genèrics */
.button,
button,
input[type="submit"] {
    display: inline-block;
    background-color: var(--ldv-primary);
    color: var(--ldv-white);
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1;
    box-shadow: 0 2px 5px var(--ldv-shadow);
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background-color: var(--ldv-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--ldv-shadow-heavy);
}

/* Botó amb contorn (outline) */
.button-outline {
    background: transparent;
    border: 2px solid var(--ldv-primary);
    color: var(--ldv-primary);
}

.button-outline:hover {
    background: var(--ldv-primary);
    color: var(--ldv-white);
}

/* Botó gran (per a crides a l'acció) */
.button-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* ---------------------------------------------
   6. CAPÇALERA I MENÚ PRINCIPAL
   ---------------------------------------------
   Conté el logotip, el menú i el botó hamburguesa
   per a dispositius mòbils.
   --------------------------------------------- */
.site-header {
    background: var(--ldv-white);
    box-shadow: 0 2px 10px var(--ldv-shadow-heavy);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Logotip / Títol del lloc */
.site-branding {
    max-width: 200px;
}

.site-branding img {
    max-width: 100%;
    height: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--ldv-primary);
}

/* Botó hamburguesa (visible només en mòbil) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
    color: var(--ldv-primary);
    line-height: 1;
}

.hamburger-icon {
    display: block;
}

/* Menú principal (escriptori) */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation .menu-wrapper {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation .menu-wrapper li {
    margin: 0 15px;
    position: relative;
}

.main-navigation .menu-wrapper a {
    color: var(--ldv-primary);
    font-weight: 600;
    padding: 10px 0;
    display: block;
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
}

.main-navigation .menu-wrapper a:hover {
    color: var(--ldv-secondary);
    border-bottom-color: var(--ldv-secondary);
}

/* Estil especial per a l'element de saldo */
.menu-item-saldo a {
    background: linear-gradient(135deg, var(--ldv-primary) 0%, #1e2b38 100%);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 60px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-bottom: none !important;
}

.menu-item-saldo a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* ---------------------------------------------
   7. SISTEMA DE FAVORITS (COR)
   --------------------------------------------- */
.favorit-cor {
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.favorit-cor:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.favorit-cor.actiu {
    background: var(--ldv-favorite);
    color: white;
}

.favorit-cor-single {
    background: #f0f0f0;
    border: none;
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 10px;
}

.favorit-cor-single.actiu {
    background: var(--ldv-favorite);
    color: white;
}

.favorit-cor-single:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.favorit-single-container {
    margin-bottom: 20px;
}

/* ---------------------------------------------
   8. PÀGINA DE FAVORITS (GRAELLA)
   --------------------------------------------- */
.ldv-favorits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.favorit-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.favorit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.favorit-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.favorit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorit-card .favorit-cor {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.favorit-content {
    padding: 20px;
}

.favorit-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.favorit-content h3 a {
    color: #2d3748;
    text-decoration: none;
}

.favorit-content h3 a:hover {
    color: var(--ldv-primary);
}

.favorit-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 5px;
}

.favorit-type {
    color: #718096;
    font-size: 0.9rem;
}

.token-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 10px;
}

/* ---------------------------------------------
   9. SELECTOR D'IDIOMA
   ---------------------------------------------
   (flotant, cantonada superior dreta)
   --------------------------------------------- */
.ldv-language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--ldv-white);
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 2px 10px var(--ldv-shadow-heavy);
}

.ldv-language-switcher select {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ldv-primary);
    cursor: pointer;
    outline: none;
}

/* ---------------------------------------------
   10. TAULA PERSONALITZADA (PER A DADES)
   --------------------------------------------- */
.ldv-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--ldv-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--ldv-shadow);
}

.ldv-table th,
.ldv-table td {
    padding: 12px 15px;
    border: 1px solid var(--ldv-border);
    text-align: left;
}

.ldv-table th {
    background-color: var(--ldv-primary);
    color: var(--ldv-white);
    font-weight: 600;
}

/* ---------------------------------------------
   11. SECCIÓ HERO (PORTADA)
   ---------------------------------------------
   Gran imatge de fons amb cercador i crides.
   --------------------------------------------- */
.hero {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: var(--ldv-white);
    padding: 120px 0;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Cercador de l'hero */
.hero .search-form {
    background: var(--ldv-white);
    border-radius: 60px;
    padding: 10px 10px 10px 30px;
    max-width: 900px;
    margin: 30px auto;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.hero .search-grid {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero .search-field {
    flex: 1 1 200px;
    margin: 0;
}

.hero .search-field input,
.hero .search-field select {
    width: 100%;
    padding: 15px 20px;
    border: none;
    background: transparent;
    font-size: 1rem;
    border-radius: 0;
    border-right: 1px solid var(--ldv-border);
}

.hero .search-field:last-of-type input,
.hero .search-field:last-of-type select {
    border-right: none;
}

.hero .search-submit button {
    background: var(--ldv-secondary);
    color: var(--ldv-white);
    border: none;
    padding: 15px 35px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.hero .search-submit button:hover {
    background: #c95f1a;
    transform: scale(1.05);
}

.hero-cta {
    margin-top: 40px;
}

.hero-cta .button {
    margin: 0 10px;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 40px;
}

/* Botó contorn clar per a fons fosc */
.button-outline-light {
    background: transparent;
    border: 2px solid var(--ldv-white);
    color: var(--ldv-white);
}

.button-outline-light:hover {
    background: var(--ldv-white);
    color: var(--ldv-primary);
}

/* ---------------------------------------------
   12. SECCIÓ "COM FUNCIONA?" (3 PASSOS)
   --------------------------------------------- */
.how-it-works {
    padding: 80px 0;
    background: var(--ldv-gray-light);
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--ldv-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 40px 30px;
    background: var(--ldv-white);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--ldv-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--ldv-shadow-heavy);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--ldv-primary);
}

.step p {
    color: var(--ldv-gray);
    line-height: 1.6;
}

/* ---------------------------------------------
   13. GRAELLA DE PROPIETATS I TARGETES
   --------------------------------------------- */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Targeta de propietat */
.property-card {
    background: var(--ldv-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--ldv-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--ldv-shadow-heavy);
}

.property-card .card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.property-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .card-image img {
    transform: scale(1.05);
}

/* Etiqueta de tipus d'immoble */
.property-type {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--ldv-primary);
    color: var(--ldv-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 5;
}

/* Etiqueta de tokenització (vermella/taronja) */
.property-token-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--ldv-secondary);
    color: var(--ldv-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.property-card .card-content {
    padding: 20px;
}

.property-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--ldv-primary);
}

.property-card .card-location {
    color: var(--ldv-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-card .card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ldv-secondary);
    margin-bottom: 15px;
}

.property-card .card-meta {
    display: flex;
    gap: 15px;
    color: var(--ldv-gray);
    font-size: 0.9rem;
    border-top: 1px solid var(--ldv-border);
    padding-top: 15px;
}

/* Peu de secció (botó "Veure tots") */
.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ---------------------------------------------
   14. CRIDA AL REGISTRE (CTA)
   --------------------------------------------- */
.register-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--ldv-primary) 0%, #1e2b38 100%);
    color: var(--ldv-white);
}

.cta-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------------------------------------------
   15. EXPLICACIÓ DELS TOKENS
   --------------------------------------------- */
.token-explanation {
    padding: 80px 0;
    background: var(--ldv-white);
}

.token-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.token-text h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--ldv-primary);
}

.token-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ldv-gray);
    margin-bottom: 25px;
}

.token-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.token-benefits li {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--ldv-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.token-benefits li::before {
    content: "✅";
    font-size: 1.2rem;
}

.token-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ---------------------------------------------
   16. GRAELLA DEL BLOG
   --------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Targeta d'entrada de blog */
.blog-card {
    background: var(--ldv-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--ldv-shadow);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--ldv-shadow-heavy);
}

.blog-card .card-image {
    height: 180px;
    overflow: hidden;
}

.blog-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-image img {
    transform: scale(1.05);
}

.blog-card .card-content {
    padding: 20px;
}

.blog-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--ldv-primary);
}

.blog-card .card-excerpt {
    color: var(--ldv-gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-card .post-date {
    color: #999;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ---------------------------------------------
   17. PEU DE PÀGINA (FOOTER)
   --------------------------------------------- */
.site-footer {
    background: var(--ldv-white);
    padding: 60px 0 30px;
    margin-top: 60px;
    border-top: 1px solid var(--ldv-border);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Menú del peu */
.footer-navigation {
    margin: 20px 0;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: var(--ldv-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: var(--ldv-secondary);
}

/* Informació del lloc (copyright) */
.site-info {
    text-align: center;
    color: var(--ldv-gray);
    font-size: 0.9rem;
    border-top: 1px solid var(--ldv-border);
    padding-top: 30px;
    margin-top: 30px;
}

.site-info a {
    color: var(--ldv-primary);
    font-weight: 600;
}

/* ---------------------------------------------
   18. PÀGINA "COM FUNCIONA LA INVERSIÓ"
   --------------------------------------------- */
.page-investment {
    background: var(--ldv-white);
}

/* Hero de la pàgina d'inversió */
.page-investment .investment-hero {
    background: linear-gradient(135deg, var(--ldv-primary) 0%, #1e2b38 100%);
    color: var(--ldv-white);
    padding: 80px 0;
    text-align: center;
}

.page-investment .investment-hero .hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.page-investment .investment-hero .hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Seccions generals */
.page-investment section {
    padding: 80px 0;
}

/* Graella 2 columnes */
.page-investment .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.page-investment .grid-2.reverse {
    direction: rtl;
}

.page-investment .grid-2.reverse .col {
    direction: ltr;
}

/* Llista de beneficis */
.page-investment .benefits-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-investment .benefits-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--ldv-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-investment .benefits-list li::before {
    content: "✅";
}

/* Passos */
.page-investment .investment-steps {
    background: var(--ldv-gray-light);
}

.page-investment .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.page-investment .step {
    text-align: center;
    padding: 40px 30px;
    background: var(--ldv-white);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--ldv-shadow);
}

.page-investment .step-number {
    width: 60px;
    height: 60px;
    background: var(--ldv-secondary);
    color: var(--ldv-white);
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.page-investment .step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--ldv-primary);
}

/* Preguntes freqüents */
.page-investment .faq {
    background: var(--ldv-gray-light);
}

.page-investment .faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.page-investment .faq-item {
    background: var(--ldv-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--ldv-shadow);
}

.page-investment .faq-item h3 {
    color: var(--ldv-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* CTA final */
.page-investment .investment-cta {
    text-align: center;
    background: var(--ldv-white);
}

.page-investment .investment-cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--ldv-primary);
}

.page-investment .investment-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--ldv-gray);
}

/* ---------------------------------------------
   19. MEDIA QUERIES – RESPONSIVE
   ---------------------------------------------
   Ajustos per a diferents amplades de pantalla.
   --------------------------------------------- */

/* Dispositius grans (992px o menys) */
@media (max-width: 991.98px) {
    /* Menú hamburguesa */
    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 100;
    }

    .main-navigation {
        display: block;
        width: 100%;
    }

    .main-navigation .menu-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--ldv-white);
        box-shadow: 0 5px 15px var(--ldv-shadow-heavy);
        padding: 20px;
        z-index: 99;
        flex-direction: column;
    }

    .main-navigation .menu-wrapper.toggled {
        display: block;
    }

    .main-navigation .menu-wrapper li {
        margin: 10px 0;
        text-align: center;
    }

    .main-navigation .menu-wrapper a {
        display: block;
        padding: 10px;
    }

    /* Pàgina d'inversió */
    .page-investment .grid-2 {
        grid-template-columns: 1fr;
    }
    .page-investment .steps-grid,
    .page-investment .faq-grid {
        grid-template-columns: 1fr;
    }
    .page-investment .investment-hero .hero-title {
        font-size: 2rem;
    }
    .page-investment .investment-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Dispositius mitjans (576px - 991px) */
@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero .search-grid {
        flex-wrap: wrap;
    }
    .hero .search-field {
        flex: 1 1 calc(50% - 10px);
    }
    .hero .search-submit {
        flex: 1 1 100%;
    }
    .hero .search-submit button {
        width: 100%;
    }
    .steps-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .token-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Dispositius petits (mòbils, 575px o menys) */
@media (max-width: 575.98px) {
    .site-header {
        padding: 15px;
    }
    .hero {
        padding: 60px 0;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero .search-form {
        border-radius: 20px;
        padding: 15px;
    }
    .hero .search-grid {
        flex-direction: column;
        gap: 10px;
    }
    .hero .search-field {
        width: 100%;
    }
    .hero .search-field input,
    .hero .search-field select {
        border-right: none;
        border-bottom: 1px solid var(--ldv-border);
        padding: 12px 15px;
    }
    .hero .search-submit button {
        width: 100%;
        padding: 12px;
    }
    .hero-cta .button {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .steps-grid,
    .properties-grid,
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .step {
        padding: 30px 20px;
    }
    .token-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .token-image {
        order: -1;
        margin-bottom: 30px;
    }
    .cta-buttons .button {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-menu {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .ldv-language-switcher {
        position: static;
        margin-top: 10px;
        text-align: center;
    }
}

/* ---------------------------------------------
   20. UTILITATS ADDICIONALS
   --------------------------------------------- */
/* Amagar visualment però accessible per a lectors de pantalla */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Neteja de floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Alineacions */
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

/* Marges i espaiats (utilitats ràpides) */
.mt-0 { margin-top: 0; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.p-20 { padding: 20px; }
.p-40 { padding: 40px; }

/* ---------------------------------------------
   21. DASHBOARD D'USUARI – PANELL PROFESSIONAL
   --------------------------------------------- */
.ldv-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Capçalera del perfil */
.dashboard-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--ldv-primary) 0%, #1e2b38 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dashboard-header .user-avatar {
    flex-shrink: 0;
}

.dashboard-header .user-avatar img {
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.dashboard-header .user-info {
    flex: 1;
}

.dashboard-header h1 {
    font-size: 1.8rem;
    margin: 0 0 5px;
    color: white;
}

.dashboard-header .user-email {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.dashboard-header .user-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.dashboard-header .button {
    background: white;
    color: var(--ldv-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s;
}

.dashboard-header .button:hover {
    background: var(--ldv-secondary);
    color: white;
    transform: translateY(-2px);
}

.dashboard-header .button-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.dashboard-header .button-outline:hover {
    background: white;
    color: var(--ldv-primary);
}

/* Targetes d'estadístiques */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--ldv-primary), var(--ldv-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ldv-primary);
    line-height: 1;
}

/* Seccions del dashboard */
.dashboard-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.dashboard-section h2 {
    font-size: 1.4rem;
    color: var(--ldv-primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.dashboard-section h2 i {
    color: var(--ldv-secondary);
}

/* Graella d'inversions */
.investment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.investment-card {
    background: #f9fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.investment-card:hover {
    border-color: var(--ldv-secondary);
    box-shadow: 0 5px 15px rgba(230,126,34,0.1);
}

.investment-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--ldv-primary);
}

.investment-details {
    margin-bottom: 20px;
}

.investment-details p {
    margin: 5px 0;
    color: #555;
}

.investment-details strong {
    color: #333;
}

/* Taula de propietats */
.properties-table-responsive {
    overflow-x: auto;
}

.properties-table {
    width: 100%;
    border-collapse: collapse;
}

.properties-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
}

.properties-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-published {
    background: #d4edda;
    color: #155724;
}

.status-draft {
    background: #fff3cd;
    color: #856404;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.token-actiu {
    background: var(--ldv-secondary);
    color: white;
}

.token-pendent {
    background: #ffc107;
    color: #333;
}

/* Botó petit */
.button-small {
    padding: 5px 12px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 992px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    .dashboard-header .user-actions {
        justify-content: center;
    }
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    .investment-grid {
        grid-template-columns: 1fr;
    }
}