.entry-hero-content h1 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
    margin: 0;
    line-height: 1.1;
}
/* === SOBRE MI - ESPECTACULAR MAIN === */
/* === SOBRE MI - MAIN EN COHERÈNCIA HOME === */
.about-main.spectacular {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(170, 158, 107, 0.10);
    padding: 64px 0 48px 0;
    margin-top: 32px;
    margin-bottom: 32px;
}
.about-main .container {
    max-width: 900px;
    background: rgba(255,255,255,0.98);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(204,204,167,0.08);
    padding: 48px 32px;
}
.about-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: 1px;
}
.about-intro {
    font-size: 1.18rem;
    color: var(--color-dark);
    margin-bottom: 18px;
    text-align: center;
}
.about-section-title {
    font-size: 1.35rem;
    color: var(--color-accent);
    margin-top: 32px;
    margin-bottom: 12px;
    font-weight: 600;
    text-align: left;
}
.about-list {
    margin-bottom: 18px;
    padding-left: 24px;
    font-size: 1.05rem;
    color: var(--color-text);
}
.about-list li {
    margin-bottom: 10px;
    line-height: 1.7;
    position: relative;
}
.about-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-accent);
    margin-right: 10px;
    font-size: 1rem;
}
.about-cta {
    background: var(--color-accent);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(170,158,107,0.10);
    padding: 32px 24px;
    margin-top: 36px;
    text-align: center;
}
.about-cta h3 {
    font-size: 1.18rem;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
}
.about-cta p {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 16px;
}
.about-cta .btn {
    /* Use global .btn styles for coherence */
    margin: 8px 12px 0 12px;
}
.about-note {
    font-size: 0.98rem;
    color: #fff;
    margin-top: 18px;
    opacity: 0.85;
}
.score-config-btn-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.score-config-btn-bar {
    min-width: 160px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s;
    border-radius: 2em;
    background: #f7f7fa;
    color: #333;
    border: 1px solid #e0e0e0;
    padding: 0.5em 1.2em;
    gap: 0.5em;
    text-align: center;
    display: inline-flex;
    align-items: center;
}
.score-config-btn-bar:hover {
    background: #e9ecef;
    color: #1a1a1a;
    text-decoration: none;
}
.score-config-btn-bar i {
    margin-right: 0.4em;
}
.score-card {
    position: relative;
}
/* Variables i estils generals - COLORS ACTUALITZATS */
:root {
    --color-primary: #CCCCA7;       /* Blau suau i tranquil */
    --color-secondary: #474742;     /* Lila tranquil */
    --color-accent: #aa9e6b;        /* Verd suau i natural */
    --color-light: 230, 225, 212;         /* Blanc molt suau */
    --color-dark: #474742;          /* Gris blavós fosc */
    --color-text: #474742;          /* Gris blavós per text */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Libre Baskerville', Verdana, Arial;
    line-height: 1.6;
    color: var(--color-text);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Capçalera i navegació */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Estil quan es fa scroll */
header.scrolled {
    background-color: rgba(var(--color-light), 1);
    box-shadow: var(--shadow);
}

/* Mobile-first responsive rules for blog page */
.blog-main{
    max-width:900px;
    margin:0 auto 48px auto;
    background:#fff;
    border-radius:12px;
    padding:20px;
    box-sizing:border-box;
}
.blog-row{
    display:flex;
    flex-direction:column;
    gap:16px;
    margin-bottom:24px;
    align-items:flex-start;
}
.blog-content{
    width:100%;
    box-sizing:border-box;
}
.blog-col{
    width:100%;
    box-sizing:border-box;
}
.blog-aside{
    width:100%;
    background:#f7f7f7;
    border-radius:8px;
    padding:16px;
    min-height:auto;
    box-sizing:border-box;
}

/* On narrow screens, show filters/aside before the main content so users can filter first */
.blog-aside{order:-1}
.entrada-thumb{margin-bottom:12px}
.entrada-thumb-img{display:block;width:100%;height:auto;border-radius:8px;object-fit:cover}

/* Desktop / wider screens: switch to multi-column */
@media (min-width:800px){
    .blog-main{padding:32px;margin-bottom:60px}
    .blog-row{flex-direction:row;gap:32px;margin-bottom:32px}
    .blog-content{flex:0 0 80%}
    .blog-aside{flex:0 0 20%;width:auto;min-height:220px;order:0}
    .blog-col{flex:1}
}

/* Millores visuals per als enllaços quan es fa scroll */
header.scrolled nav ul li a {
    color: var(--color-text);
}

header.scrolled .btn {
    background-color: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

header.scrolled .btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px; /* Padding lateral en lloc de container */
    width: 100%;
    max-width: none; /* Elimina límit d'amplada */
    position: relative;
}

/* Contenidor de navegació i accions - Centrat en desktop */
.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-actions {
    display: flex;
    align-items: center;
    margin-left: auto; /* Empeny el selector d'idiomes a la dreta */
}

.logo-nav {
    margin-left: 15px;
    height: 100px;
    width: auto;
}

.logo {
    display: flex;
    align-items: center;
}

h1 {
    font-size: 2.8rem;
    color: #ffffff;
    text-shadow: #474742 5px 2px 5px;
    margin-left: 10px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--color-secondary);
}

/* Contenidor dret del header */
.header-right {
    display: flex;
    align-items: center;
}

/* Botó hamburguesa (amagat per defecte) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

/* Ocultar selector mòbil per defecte */
.mobile-language-selector {
    display: none;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 40px; /* Més espai entre elements */
}

nav ul li a {
    text-decoration: none;
    color: var(--color-secondary);
    font-weight: 700;
    transition: var(--transition);
    text-shadow: #ffffff 0px 0px 10px;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Estil especial per a l'enllaç de "Dues ànimes" */
.love-link {
    position: relative;
    transition: all 0.3s ease;
    padding-right: 10px; /* Un xic més d'espai */
}

.love-link::before {
    content: '♥';
    position: absolute;
    right: -8px; /* Un xic més separat del text */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em; /* Més gran */
    background: linear-gradient(45deg, #e74c3c, #c0392b, #e74c3c);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(231, 76, 60, 0.3));
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    animation: shimmer 2s ease-in-out infinite;
}

/* Animació de brillantor del cor */
@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.love-link:hover {
    color: #e74c3c !important;
    text-decoration: underline !important;
    text-decoration-color: #e74c3c !important;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

.love-link:hover::before {
    opacity: 1;
    animation: heartbeat 1.5s ease-in-out infinite, shimmer 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(231, 76, 60, 0.5));
}

/* Animació de batec del cor */
@keyframes heartbeat {
    0% {
        transform: translateY(-50%) scale(1);
    }
    14% {
        transform: translateY(-50%) scale(1.3);
    }
    28% {
        transform: translateY(-50%) scale(1);
    }
    42% {
        transform: translateY(-50%) scale(1.3);
    }
    70% {
        transform: translateY(-50%) scale(1);
    }
}

/* Accions de la capçalera (idioma + botó) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Selector d'idioma */
.language-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Blog listing thumbnails: fixed aspect ratio and cropped images */
.entrada-thumb {
    position: relative;
    width: 100%;
    /* 4:3 aspect ratio fallback via padding-top for broad browser support */
    padding-top: 75%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #efefef;
}
.entrada-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* If you prefer perfectly square thumbnails, change padding-top to 100% above.
   To use a wider format (16:9) use 56.25% instead of 75%.
*/

/* Breadcrumbs (visible trail) and JSON-LD styling
   Accessible, compact, responsive. Use render_breadcrumbs() helper to output markup.
*/
.breadcrumbs {
     /* Center breadcrumbs consistently across pages.
         Keep them visually aligned with the main content (900px wide typical)
         while remaining responsive on small screens. */
     margin: 12px auto;
    font-size: 0.95rem;
    color: var(--color-text);
    display: flex;
    justify-content: center; /* center within available container */
    max-width: 900px; /* match blog/entrada visual width */
    padding: 0 16px; /* small horizontal gutter on narrow screens */
}
.breadcrumbs ol {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.breadcrumbs ol li {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: var(--color-text);
}
.breadcrumbs ol li a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}
.breadcrumbs ol li a:hover {
    text-decoration: underline;
    color: var(--color-secondary);
}
.breadcrumbs ol li[aria-current="page"] {
    color: var(--color-dark);
    font-weight: 600;
}
.breadcrumbs ol li + li::before {
    content: '›';
    display: inline-block;
    margin: 0 .45rem;
    color: rgba(71,71,66,0.35);
    font-size: 0.95rem;
}

/* Truncation helper for long breadcrumbs on small screens */
.breadcrumbs .crumb-truncate {
    max-width: 40ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 640px) {
    .breadcrumbs { font-size: 0.88rem; }
    .breadcrumbs ol li + li::before { margin: 0 .25rem; }
    .breadcrumbs { max-width: 100%; padding: 0 12px; }
}

/* Ensure a consistent vertical gap between the bottom of any "*-hero" section
   and the breadcrumbs that follow. Many entry templates use an "entry-hero"
   which already provides a 32px bottom margin; normalize other hero types
   so the visual distance to the breadcrumbs is identical. */
/* Make the distance from the bottom of any hero to the breadcrumb row
   consistent by normalizing the top spacing of the container that follows
   the hero. Strategy:
   - Ensure the element immediately after a hero has no external top margin.
   - Force that following <main> to have a 32px padding-top (the canonical gap).
   - Remove extra margin on the breadcrumbs themselves so the gap is driven by
     the container padding (consistent across pages). */
[class$="-hero"] + *,
.hero + * {
    margin-top: 0 !important;
}

/* If the following element is a <main>, use padding-top to define the gap */
[class$="-hero"] + main,
.hero + main {
    padding-top: 16px !important; /* canonical gap (reduced for tighter alignment) */
}

[class$="-hero"] + main .breadcrumbs,
.hero + main .breadcrumbs {
    margin-top: 0 !important; /* breadcrumbs sit at the top of the padded main */
}

/* When the breadcrumbs element itself is the immediate sibling of a hero,
   it needs its own top margin — undo the generic "zero sibling margin"
   rule only for .breadcrumbs so it sits separated from the hero. */
[class$="-hero"] + .breadcrumbs,
.hero + .breadcrumbs {
    margin-top: 16px !important;
}

/* Entry hero defaults (used by entry templates) */
/* Entry hero: fully independent from .hero */
.entry-hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 60vh;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-radius: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 32px;
}
.entry-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: block;
}
.entry-hero-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8vh;
    width: 100%;
    text-align: center;
    z-index: 2;
    color: #fff;
}
.entry-hero-content h1 {
    margin: 0;
    font-size: 2.5rem;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.hero-hidden {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}


/* Make .love-hero identical to .sobremi-hero for hero consistency */
.love-hero {
    /* use the same hero image as 'sobremi' for visual coherence */
    background-image: url("../img/manos.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    padding: 160px 0 100px;
    text-align: center;
    min-height: 100vh;
    position: relative;
}

.love-content {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 32px 18px;
    box-shadow: 0 2px 16px rgba(168,153,104,0.07);
}

.love-title {
    font-size: 2.5em;
    color: #a89968;
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    margin-bottom: 18px;
}

.love-subtitle {
    font-size: 1.3em;
    color: #444;
    margin-bottom: 24px;
}

/* Responsive tweaks: reduce hero padding & height on small screens */
@media (max-width: 720px) {
    .love-hero { padding: 100px 0 60px; min-height: 60vh; background-position: center top; }
    .love-title { font-size: 1.8rem; }
    .love-subtitle { font-size: 1rem; }
}

@media (max-width: 420px) {
    .love-hero { padding: 80px 0 48px; min-height: 50vh; }
    .love-title { font-size: 1.5rem; }
}

.lang-btn.active {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 2px 10px rgba(170, 158, 107, 0.3);
}

.lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lang-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Estils quan es fa scroll */
header.scrolled .language-selector {
    background: rgba(var(--color-light), 0.3);
    border-color: rgba(var(--color-accent), 0.2);
}

header.scrolled .lang-btn {
    color: var(--color-text);
}

header.scrolled .lang-btn:hover {
    background: rgba(var(--color-accent), 0.1);
}

header.scrolled .lang-btn.active {
    background: var(--color-accent);
    color: white;
}

.btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-dark);
    transform: translateY(-3px);
}

/* Privacy policy content styles */
.policy-content {
    max-width: 900px;
    margin: 24px auto 48px auto;
    padding: 18px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 1rem;
}
.policy-content h2 {
    font-size: 1.15rem;
    color: var(--color-accent);
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 700;
}
.policy-content p, .policy-content li {
    color: #333;
    margin-bottom: 10px;
}
.policy-content ul {
    margin-left: 18px;
    margin-bottom: 12px;
}

@media print {
    .policy-content { box-shadow: none; background: transparent; padding: 0; }
}

/* Cookie policy specific tweaks */
.cookie-table-wrapper{overflow:auto;margin-top:12px}
.cookie-table{width:100%;border-collapse:collapse;margin:12px 0;font-size:0.95rem}
.cookie-table th,.cookie-table td{padding:10px 12px;border:1px solid rgba(0,0,0,0.06);text-align:left}
.cookie-table thead th{background:rgba(170,158,107,0.08);color:var(--color-dark);font-weight:700}
.cookie-table tbody tr:nth-child(even){background:rgba(0,0,0,0.02)}
.policy-content .lead{font-size:1.05rem;margin-bottom:12px;color:var(--color-dark)}
.policy-content .last-updated{margin-top:18px;font-size:0.95rem;color:#666}

@media (max-width:600px){
    .policy-content{padding:14px}
    .cookie-table th,.cookie-table td{padding:8px}
}

/* Utility: visually-hidden for accessible labels */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Simple booking calendar styles */
.booking-calendar{
    max-width:700px;
    margin:14px 0 8px 0;
    background: #fff;
    border-radius:8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    padding:12px;
}
.booking-calendar .cal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.booking-calendar .cal-title{font-weight:700;color:var(--color-accent)}
.booking-calendar .cal-prev,.booking-calendar .cal-next{background:transparent;border:0;font-size:1.4rem;cursor:pointer;color:var(--color-dark)}
.booking-calendar .cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.booking-calendar .cal-grid .dow{font-size:0.85rem;text-align:center;color:#666;padding:6px 4px}
.booking-calendar .day{min-height:56px;padding:6px;border-radius:6px;background:transparent;border:1px solid transparent;text-align:left;cursor:pointer;transition:all 0.2s ease}
.booking-calendar .day:hover:not(.disabled):not(.fully-booked){background:rgba(170,158,107,0.08);border-color:rgba(170,158,107,0.3)}
.booking-calendar .day .date{display:block;font-weight:700}
.booking-calendar .day.disabled{opacity:0.45;cursor:not-allowed}
.booking-calendar .day.today{outline:2px solid rgba(170,158,107,0.25);background:rgba(170,158,107,0.05)}
.booking-calendar .day.selected{background:var(--color-accent);color:#fff;border-color:var(--color-accent)}
/* Days with sessions - subtle indicator */
.booking-calendar .day.has-sessions{background:rgba(170,158,107,0.12);border-color:rgba(170,158,107,0.2)}
.booking-calendar .day.has-sessions:hover:not(.disabled){background:rgba(170,158,107,0.18)}
/* Fully booked days - clear visual feedback */
.booking-calendar .day.fully-booked{opacity:0.5;cursor:not-allowed;background:#fef3f3;border-color:#f5c6c6;color:#999}

/* small badge showing number of sessions on a day */
.booking-calendar .day .count-badge{
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.08);
    color: #222;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
    display: none;
}

/* Modal simple inline panel for times */
.times-panel{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2000;background:#fff;padding:18px;border-radius:10px;box-shadow:0 10px 40px rgba(0,0,0,0.2);display:none;min-width:280px;max-width:90vw}
.times-panel h4{margin:0 0 12px 0;font-size:1.1rem;color:var(--color-dark)}
.times-panel .times-list{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.times-panel .times-list button{padding:10px 16px;border-radius:8px;border:1px solid rgba(0,0,0,0.08);background:#fff;cursor:pointer;font-weight:500;transition:all 0.2s ease;min-width:75px}
.times-panel .times-list button:hover:not([disabled]){background:var(--color-accent);color:#fff;border-color:var(--color-accent);transform:translateY(-1px);box-shadow:0 2px 8px rgba(0,0,0,0.1)}
.times-panel .times-list button.disabled{opacity:0.5;cursor:not-allowed}
/* Occupied time slots - clear red tint */
.times-panel .times-list button.occupied{opacity:0.6;cursor:not-allowed;background:#fef3f3;border-color:#f5c6c6;color:#999;text-decoration:line-through}
.times-panel .times-list button[disabled]{opacity:0.6;cursor:not-allowed}
.times-panel .times-close{position:absolute;right:8px;top:8px;border:0;background:transparent;font-size:1.3rem;cursor:pointer;color:#999;transition:color 0.2s}
.times-panel .times-close:hover{color:#333}

/* Session info display in times panel */
.times-panel .session-info{
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
    font-style: italic;
    line-height: 1.3;
}
.times-panel .time-slot-wrapper{
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

@media (max-width:700px){
    .booking-calendar{padding:8px}
    .booking-calendar .day{min-height:48px}
    .times-panel{width:90%;min-width:unset}
}

/* Secció Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 160px 0 100px;
    text-align: center;
    height: 100vh;
}

/* Blog listing uses the site cover by default */
.hero.blog-hero {
    background-image: url("../img/portada.jpg");
}

/* Use an actual img element inside .hero when present; keep it behind content */
.hero .hero-img {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.hero .hero-content {
    position: relative; /* ensure content sits above the image */
    z-index: 2;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3); /* Negre amb 50% opacitat */
  z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin-top: 250px;
    position: relative;
    z-index: 2;
}

/* Specific hero sizing overrides for pages that should not be full-height
   (match the contact page compact hero: smaller vertical padding and no 100vh) */
.privacy-hero,
.contact-hero {
    padding: 140px 0 80px;
    height: auto; /* don't force full viewport height */
}

.privacy-hero .hero-content,
.contact-hero .contact-hero-content {
    max-width: 800px;
    margin: 0 auto; /* vertically center via padding instead of big margin-top */
}

.privacy-hero .hero-title {
    font-size: 3.5rem; /* match contact hero sizing */
}

.hero h1 {
    font-size: 4rem;
    color: #ffffff;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 400;
}

/* Specific override for the love hero to win over the generic .hero rules */
.hero.love-hero {
    background-image: url("../img/manos.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    min-height: 100vh;
}

.hero h1 .highlight {
    color: var(--color-accent);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: #ffffff;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero h2 {
    font-size: 1.8rem;
    color: #ffffff;
    text-shadow: #474742 5px 2px 5px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    padding: 16px 32px;
    font-weight: 500;
}

.hero-buttons .btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    border: 2px solid var(--color-accent);
    box-shadow: 0 4px 15px rgba(204, 204, 167, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-dark);
    border-color: var(--color-dark);
    box-shadow: 0 6px 20px rgba(71, 71, 66, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: white;
}

/* Seccions generals */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 15px;
}

/* Service intro: Love Match intro block styles (mobile-first) */
.service-intro{ padding: 36px 0; }
.service-intro .container{ max-width: 920px; margin: 0 auto; }
.service-intro h2{
    font-size: 1.35rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    line-height: 1.15;
    font-weight: 700;
}
.service-intro p{
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.9rem;
}
.service-intro p strong{ color: var(--color-accent); }
.service-intro ul{ margin: 0.5rem 0 0 1.15rem; padding: 0; list-style: disc; color: var(--color-text); }
.service-intro ul li{ margin-bottom: 0.6rem; }
.service-intro .service-cta{ margin-top: 18px; text-align: left; }
.service-intro .service-cta .btn{ padding: 12px 20px; font-weight:700; }

/* Slight visual lift on larger screens */
@media(min-width:720px){
    .service-intro{ padding: 48px 0; }
    .service-intro h2{ font-size: 1.6rem; }
    .service-intro .service-cta{ text-align: left; }
}

@media(min-width:1024px){
    .service-intro h2{ font-size: 1.9rem; }
    .service-intro p{ font-size: 1.05rem; }
}

/* Secció frase inspiradora */
.quote-section {
    background: rgba(var(--color-light), 1);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(170,158,107,0.1)"/></svg>');
    background-size: 30px 30px;
    opacity: 0.5;
}

.quote-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.quote-content blockquote {
    margin: 0;
    position: relative;
}

.quote-content blockquote::before {
    content: '"';
    font-size: 6rem;
    color: var(--color-accent);
    position: absolute;
    top: -20px;
    left: -40px;
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    opacity: 0.3;
}

.quote-content blockquote::after {
    content: '"';
    font-size: 6rem;
    color: var(--color-accent);
    position: absolute;
    bottom: -60px;
    right: -40px;
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    opacity: 0.3;
}

.quote-content p {
    font-size: 2.4rem;
    font-style: italic;
    color: var(--color-dark);
    line-height: 1.4;
    margin: 20px 0;
    font-weight: 400;
    font-family: 'Libre Baskerville', serif;
}

.quote-content cite {
    font-size: 1.1rem;
    color: var(--color-accent);
    font-weight: 700;
    font-style: normal;
    display: block;
    margin-top: 30px;
    letter-spacing: 1px;
}

/* Especialitats - Nova secció */
.specialties-section {
    padding: 80px 0;
    background-color: var(--color-light);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.specialty-card {
    background-color: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--color-accent);
    display: flex;
    flex-direction: column;
}

.specialty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.specialty-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.specialty-icon i {
    font-size: 2rem;
    color: white;
}

.specialty-card h3 {
    font-size: 1.6rem;
    color: var(--color-dark);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.specialty-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.specialty-card ul li {
    padding: 10px 0 10px 30px;
    color: var(--color-dark);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.specialty-card ul li:last-child {
    border-bottom: none;
}

.specialty-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.specialty-card ul li:hover {
    padding-left: 35px;
    transition: var(--transition);
}

/* Serveis Especials */
.special-services {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.special-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
}

/* Remove the thin line under the title for the specialties and special services
   sections (it looks like a horizontal rule and is unwanted between title and cards). */
.specialties-section .section-title,
.special-services .section-title {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 30px; /* keep spacing between title and cards */
}

.services-special-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.service-special-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 5px solid var(--color-accent);
    position: relative;
    overflow: hidden;
}

.service-special-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(170,158,107,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.service-special-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-special-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-special-header i {
    font-size: 3rem;
    color: var(--color-accent);
    flex-shrink: 0;
}

.service-special-header h3 {
    font-size: 1.8rem;
    color: var(--color-dark);
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.service-special-card p {
    color: var(--color-dark);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.service-special-card p strong {
    color: var(--color-accent);
    font-weight: 600;
}

.service-special-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-special-card ul li {
    padding: 10px 0 10px 30px;
    color: var(--color-dark);
    font-size: 1rem;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-special-card ul li:last-child {
    border-bottom: none;
}

.service-special-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
    transition: var(--transition);
}

.service-special-card ul li:hover {
    padding-left: 35px;
    color: var(--color-accent);
}

.service-special-card ul li:hover::before {
    color: var(--color-accent);
}

/* ===================================== */
/* SECCIÓ SOBRE MI - ESTIL SENZILL */
/* ===================================== */

.about-section {
    padding: 80px 0;
}

.about-content {
    display: flex;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.about-image {
    flex: 0 0 300px;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    border-radius: 8px;
}

.about-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
}

.about-text {
    flex: 1;
    width: 100%;
    max-width: none;
    min-width: 0;
}

.about-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--color-secondary);
    line-height: 1.3;
    margin-bottom: 30px;
}

.about-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 40px;
}

.about-services h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 30px;
}

.service-item {
    margin-bottom: 30px;
}

.service-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.service-item p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 0;
}

.about-location {
    margin: 40px 0;
}

.about-location p {
    font-size: 1.1rem;
    color: var(--color-text);
    font-style: italic;
    margin: 0;
}

.about-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    padding: 16px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background: var(--color-secondary);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-image {
        flex: none;
        align-self: center;
        max-width: 300px;
    }
    
    .about-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .about-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn {
        flex: 1;
        min-width: 200px;
        text-align: center;
    }
}

/* Animacions personalitzades */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Testimonis - Quadrícula de 2 columnes */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--color-secondary);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--color-dark);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Tarifes */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 0 0 25px 0;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 480px;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.pricing-header {
    margin-bottom: 15px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: rgb(var(--color-light));
    padding: 20px 15px;
    border-radius: 15px 15px 0 0;
}

.pricing-icon {
    font-size: 2.2rem;
    color: var(--color-accent);
    margin-bottom: 10px;
    display: block;
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 0;
    font-weight: 700;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 10px;
}

.currency {
    font-size: 1.2rem;
    color: var(--color-accent);
    font-weight: 700;
}

.amount {
    font-size: 3rem;
    color: var(--color-dark);
    font-weight: 700;
    margin: 0 5px;
}

.period {
    font-size: 1rem;
    color: var(--color-text);
}

.original-price {
    text-decoration: line-through;
    opacity: 0.5;
    font-size: 1.8rem;
    color: var(--color-text);
    margin-right: 10px;
    font-weight: 500;
}

.price-note {
    font-size: 0.85rem;
    color: var(--color-text);
    margin-top: 8px;
    font-style: italic;
}

.pricing-features {
    margin: 0;
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(var(--color-light), 0.5);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    font-size: 0.9rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--color-accent);
    margin-right: 10px;
    font-size: 0.9rem;
}

.pricing-btn {
    width: 60%;
    margin: 15px auto 0;
    background: var(--color-accent);
    color: white;
    border: 2px solid var(--color-accent);
    padding: 12px 20px;
    font-size: 0.9rem;
}

.pricing-btn:hover {
    background: transparent;
    color: var(--color-accent);
}

/* Contacte - Quadrícula de 2 columnes */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: rgba(var(--color-light), 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: rgba(var(--color-light), 0.8);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-dark);
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(170, 158, 107, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Responsive per Contacte */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-item {
        padding: 12px;
    }
    
    .contact-icon {
        font-size: 1.3rem;
        margin-right: 12px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .contact-grid {
        gap: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .form-group {
        gap: 8px;
    }
}

/* Peu de pàgina */
footer {
    background: rgb(var(--color-light));
    color:var(--color-dark);
    padding: 50px 0 20px;
}

.logo-footer {
    height: 120px;
    width: auto;
    margin-bottom: 10px;
}

    .footer-grid {
    display: grid;
    /* show 5 columns instead of 4 to match number of .footer-column elements */
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color:var(--color-dark);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-dark);
}

/* ========================================
   SISTEMA RESPONSIVE FLUID MILLORAT
   ======================================== */
/* Large Desktop - 1200px+ */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    nav ul li {
        margin-left: 50px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
}

/* Desktop - 992px to 1199px */
@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        max-width: 1140px;
        padding: 0 20px;
    }
    
    nav ul li {
        margin-left: 35px;
    }
    
    nav ul li a {
        font-size: 0.95rem;
    }
}

/* Tablet Large - 768px to 991px */
@media (max-width: 991px) and (min-width: 769px) {
    .header-container {
        padding: 15px 20px;
    }
    
    nav ul li {
        margin-left: 25px;
    }
    
    nav ul li a {
        font-size: 0.9rem;
    }
    
    .services-grid,
    .testimonials-grid,
    .footer-grid,
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .services-special-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-content h3 {
        font-size: 2rem;
    }
    
    .about-highlights {
        gap: 12px;
    }
    
    .highlight-item {
        padding: 12px 16px;
    }
    
    .about-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .image-container img {
        height: 300px;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-content {
        margin-top: 150px;
    }
}

/* Tablet - 768px and below (Mobile starts) */
@media (max-width: 768px) {
    /* Header layout changes for mobile */
    .nav-menu {
        position: static;
        transform: none;
    }
    
    .header-actions {
        display: none; /* Amagar selector d'idiomes desktop en mòbil */
    }
    
    /* Navigation - Mobile Mode */
    .mobile-menu-toggle {
        display: flex;
        transition: all 0.3s ease;
    }
    
    .nav-menu ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(var(--color-light), 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1000;
        backdrop-filter: blur(10px);
        transition: all 0.4s ease;
    }
    
    .nav-menu ul.show {
        display: flex;
        animation: slideInDown 0.4s ease;
    }
    
    .nav-menu ul li {
        margin: 0;
        opacity: 0;
        transform: translateY(-20px);
        animation: fadeInUp 0.4s ease forwards;
    }
    
    .nav-menu ul li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu ul li:nth-child(2) { animation-delay: 0.15s; }
    .nav-menu ul li:nth-child(3) { animation-delay: 0.2s; }
    .nav-menu ul li:nth-child(4) { animation-delay: 0.25s; }
    .nav-menu ul li:nth-child(5) { animation-delay: 0.3s; }
    .nav-menu ul li:nth-child(6) { animation-delay: 0.35s; }
    .nav-menu ul li:nth-child(7) { animation-delay: 0.4s; }
    
    .nav-menu ul li a {
        font-size: 1.4rem;
        color: var(--color-dark);
        text-align: center;
        padding: 12px 20px;
        transition: all 0.3s ease;
        border-radius: 8px;
        position: relative;
        overflow: hidden;
    }
    
    .nav-menu ul li a:before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(var(--color-primary), 0.1), transparent);
        transition: left 0.5s;
    }
    
    .nav-menu ul li a:hover:before {
        left: 100%;
    }
    
    /* Estils especials per "Dues ànimes" en mòbil */
    .nav-menu ul li a.love-link {
        color: #e74c3c !important;
        position: relative;
        font-weight: 800;
    }
    
    .nav-menu ul li a.love-link::after {
        content: '♥';
        position: absolute;
        right: -25px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.4em;
        background: linear-gradient(45deg, #e74c3c, #c0392b, #e74c3c);
        background-size: 200% 200%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(0 2px 6px rgba(231, 76, 60, 0.4));
        animation: heartbeat 2s ease-in-out infinite, shimmer 3s ease-in-out infinite;
    }
    
    .nav-menu ul li a.love-link:hover {
        color: #c0392b !important;
        text-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
    }
    
    .nav-menu ul li a:hover {
        background: rgba(var(--color-primary), 0.1);
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    /* Language Selector Mobile */
    .mobile-language-selector {
        margin-top: 30px !important;
        padding-top: 30px;
        border-top: 2px solid rgba(var(--color-primary), 0.3);
        display: block;
        animation: fadeInUp 0.4s ease forwards;
        animation-delay: 0.5s;
        opacity: 0;
    }
    
    .mobile-language-buttons {
        display: flex;
        gap: 20px;
        justify-content: center;
    }
    
    .mobile-lang {
        background: rgba(var(--color-primary), 0.1);
        border: 2px solid var(--color-primary);
        border-radius: 25px;
        padding: 15px 25px;
        color: var(--color-dark);
        font-weight: 600;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        box-shadow: 0 3px 15px rgba(0,0,0,0.1);
        position: relative;
        overflow: hidden;
    }
    
    .mobile-lang:before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
        transition: left 0.4s ease;
        z-index: -1;
    }
    
    .mobile-lang:hover:before,
    .mobile-lang.active:before {
        left: 0;
    }
    
    .mobile-lang:hover,
    .mobile-lang.active {
        color: white;
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(var(--color-primary), 0.4);
    }
    
    .mobile-lang .lang-flag {
        width: 22px;
        height: auto;
        transition: transform 0.3s ease;
    }
    
    .mobile-lang:hover .lang-flag {
        transform: scale(1.1);
    }
    
    .mobile-lang .lang-text {
        display: block;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }
    
    /* Hide Desktop Elements */
    header .header-actions .language-selector {
        display: none !important;
    }
    
    .header-actions .btn {
        display: none;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-left: auto; /* Només a mòbil per alinear a la dreta */
    }
    
    /* Content adjustments */
    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }
    
    .hero h2 {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 30px;
        line-height: 1.6;
    }
    
    .hero-badge {
        padding: 12px 20px;
        font-size: 0.9rem;
        margin-bottom: 40px;
        transition: all 0.3s ease;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .hero-content {
        margin-top: 120px;
        padding: 0 20px;
    }
    
    /* Grid adjustments with animations */
    .services-grid,
    .testimonials-grid,
    .footer-grid,
    .specialties-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .services-special-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-special {
        padding: 30px 20px;
        transition: all 0.3s ease;
    }
    
    .service-special:hover {
        transform: translateY(-5px);
    }
    
    .service-special-header {
        margin-bottom: 25px;
    }
    
    .service-special-header i {
        font-size: 2.5rem;
        margin-bottom: 15px;
        transition: all 0.3s ease;
    }
    
    .service-special:hover .service-special-header i {
        transform: scale(1.1);
    }
    
    .service-special-header h3 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
}

/* Mobile Large - 576px to 767px */
@media (max-width: 767px) and (min-width: 577px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .nav-menu ul li a {
        font-size: 1.3rem;
        padding: 10px 18px;
    }
    
    .mobile-lang {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Mobile Small - 576px and below */
@media (max-width: 576px) {
    .header-container {
        padding: 12px 15px;
    }
    
    .logo-nav {
        height: 80px;
        margin-left: 10px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .hero-badge {
        padding: 10px 16px;
        font-size: 0.85rem;
        margin-bottom: 30px;
    }
    
    .hero-content {
        margin-top: 100px;
        padding: 0 15px;
    }
    
    .nav-menu ul li a {
        font-size: 1.2rem;
        padding: 8px 15px;
    }
    
    .mobile-language-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .mobile-lang {
        padding: 10px 18px;
        font-size: 0.95rem;
        min-width: 120px;
        justify-content: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .services-grid,
    .specialties-grid {
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .quote-content p {
        font-size: 1.6rem;
        padding: 0 15px;
    }
    
    .quote-section {
        padding: 30px 0;
    }
}

/* Mobile Extra Small - 400px and below */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .nav-menu ul li a {
        font-size: 1.1rem;
    }
    
    .mobile-lang {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* ========================================
   SMOOTH ANIMATIONS
   ======================================== */

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

/* Hover effects for cards */
.service-card:hover,
.testimonial-card:hover,
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ================================== */
/* ESTILOS PÁGINA SOBRE MI */
/* ================================== */

/* Hero About */
.about-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/about-pattern.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.about-hero .hero-content {
    position: relative;
    z-index: 2;
}

/* About Introduction */
.about-intro {
    margin-bottom: 25px;
}

/* Professional Journey */
.professional-journey {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(var(--color-primary), 0.05) 0%, rgba(var(--color-secondary), 0.05) 100%);
}

.professional-journey h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 60px;
}

.credentials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.credential-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,1) 100%);
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(var(--color-primary), 0.1);
    position: relative;
    overflow: hidden;
}

.credential-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.credential-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: rgba(var(--color-primary), 0.2);
}

.credential-item:hover::before {
    transform: scaleX(1);
}

.credential-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-secondary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(var(--color-primary), 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.credential-icon::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    pointer-events: none;
}

.credential-item:hover .credential-icon {
    transform: rotateY(180deg);
    box-shadow: 0 12px 30px rgba(var(--color-primary), 0.4);
}

.credential-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.credential-content h3 {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.credential-content p {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.85;
}

/* Animacions staggered per les credential cards */
.credential-item:nth-child(1) { animation-delay: 0.1s; }
.credential-item:nth-child(2) { animation-delay: 0.2s; }
.credential-item:nth-child(3) { animation-delay: 0.3s; }
.credential-item:nth-child(4) { animation-delay: 0.4s; }

/* Efecte de hover millorat per la icona */
.credential-item:hover .credential-icon i {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    80% { transform: translateY(-4px); }
}

.main-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.main-description p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* Core Pillars */
.core-pillars {
    padding: 100px 0;
    background-color: rgba(var(--color-light), 1);
}

.core-pillars h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 60px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.pillar-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.pillar-card h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.pillar-card p {
    color: var(--color-text);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Unique Service */
.unique-service {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 40px;
    align-items: center;
}

.service-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: white;
}

.service-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.service-icon {
    text-align: center;
}

.service-icon i {
    font-size: 8rem;
    color: rgba(255,255,255,0.3);
    animation: pulse 2s ease-in-out infinite;
}

/* Specialization Areas */
.specialization-areas {
    padding: 100px 0;
    background-color: rgba(var(--color-light), 1);
}

.specialization-areas h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 60px;
}

.specialization-content > p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 40px;
}

.specialization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.spec-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--color-accent);
}

.spec-item h4 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.spec-item p {
    color: var(--color-text);
    line-height: 1.6;
}

/* Therapeutic Approach */
.therapeutic-approach {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(var(--color-secondary), 0.05) 0%, rgba(var(--color-accent), 0.05) 100%);
}

.therapeutic-approach h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 60px;
}

.approach-content {
    max-width: 900px;
    margin: 0 auto;
}

.approach-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    text-align: justify;
    margin-bottom: 40px;
}

.therapy-types {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.therapy-type {
    background: white;
    padding: 15px 30px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    border: 2px solid var(--color-accent);
    transition: all 0.3s ease;
}

.therapy-type:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-3px);
}

.therapy-type span {
    font-weight: 600;
    font-size: 1rem;
}

/* Practice Heart */
.practice-heart {
    padding: 100px 0;
    background-color: rgba(var(--color-light), 1);
}

.practice-heart h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 60px;
}

.heart-content {
    max-width: 900px;
    margin: 0 auto;
}

.heart-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    text-align: justify;
    margin-bottom: 40px;
}

.specialties {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin: 40px 0;
}

.specialties h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.specialties ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
}

.specialties li {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.specialties li:hover {
    transform: scale(1.05);
}

/* Beyond Consultation */
.beyond-consultation {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(var(--color-primary), 0.05) 0%, rgba(var(--color-secondary), 0.05) 100%);
}

.beyond-consultation h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 60px;
}

.beyond-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.beyond-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 40px;
}

.outreach-activities {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.activity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    min-width: 200px;
    transition: transform 0.3s ease;
}

.activity:hover {
    transform: translateY(-5px);
}

.activity i {
    font-size: 2.5rem;
    color: var(--color-accent);
}

.activity span {
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* RESPONSIVE DESIGN PARA CREDENCIALES */

@media (max-width: 768px) {
    .credentials {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .credential-item {
        padding: 30px 20px;
        gap: 18px;
    }
    
    .credential-item:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .credential-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .service-icon {
        order: -1;
    }
    
    .service-icon i {
        font-size: 5rem;
    }
    
    .specialization-grid {
        grid-template-columns: 1fr;
    }
    
    .therapy-types {
        justify-content: center;
    }
    
    .outreach-activities {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 280px;
    }
}

@media (max-width: 576px) {
    .about-hero {
        min-height: 60vh;
        padding: 60px 0;
    }
    
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-text h2,
    .professional-journey h2,
    .core-pillars h2,
    .unique-service h2,
    .specialization-areas h2,
    .therapeutic-approach h2,
    .practice-heart h2,
    .beyond-consultation h2,
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .credential-item,
    .pillar-card,
    .spec-item,
    .specialties {
        padding: 20px;
    }
    
    .specialties ul {
        grid-template-columns: 1fr;
    }
}

/* ====================================
   ESTILS AVANÇATS PER MODAL DE BLOG
   ================================== */

/* Modal base */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.4em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--background-light);
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: var(--background-light);
    border-radius: 0 0 8px 8px;
}

/* Modal avançat */
.modal-xlarge {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Sistema de tabs */
.tabs-container {
    width: 100%;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid #e1e1e1;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-right: 1px solid #e1e1e1;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    background: #fff;
    color: var(--color-primary);
}

.tab-btn.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 -2px 4px rgba(204,204,167,0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Seccions organitzades */
.seo-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e1e1e1;
}

.section-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h4 i {
    color: var(--color-primary);
}

/* Millores als form-row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Contador de caràcters */
.char-count {
    display: block;
    text-align: right;
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.char-count.warning {
    color: #ff6b35;
}

.char-count.danger {
    color: #dc3545;
    font-weight: bold;
}

/* Toolbar de contingut millorat */
.content-toolbar {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
}

.btn-tool {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    color: #555;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-tool:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Informació de contingut */
.content-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e1e1e1;
}

/* Gestió d'imatges */
.image-upload-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.image-upload-container input {
    flex: 1;
}

.image-preview {
    margin-top: 10px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-preview.empty::after {
    content: "Vista previa de la imagen";
    color: #999;
    font-style: italic;
}

/* Galeria */
.gallery-container {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
}

.gallery-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.gallery-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Selector de categories */
.categories-selector {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 10px;
    background: #f9f9f9;
}

.checkbox-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

/* Checkboxes personalitzats */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 10px 12px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e1e1e1;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 8px;
}

.checkbox-label:hover {
    background: #f0f7ff;
    border-color: var(--color-primary);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    transform: scale(1.2);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 500;
    color: var(--color-primary);
}

/* Categories bilíngües */
.category-bilingual {
    line-height: 1.4;
    flex: 1;
}

.category-bilingual strong {
    color: #333;
    font-size: 13px;
}

.category-bilingual small {
    opacity: 0.7;
    font-size: 11px;
    color: #666;
    display: block;
    margin-top: 2px;
}

/* Millores als tags */
.tags-input-container {
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 10px;
    background: #fff;
    min-height: 50px;
}

.tags-input-container input {
    border: none;
    outline: none;
    width: 100%;
    padding: 5px;
    font-size: 14px;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tag-item {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 4px rgba(204,204,167,0.3);
    position: relative;
}

.tag-item.tag-new {
    background: linear-gradient(135deg, #28a745, #20c997);
    animation: pulse 2s infinite;
}

.tag-item.tag-existing {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.tag-item .tag-text {
    font-weight: 500;
}

.tag-item .fas {
    font-size: 10px;
    margin-left: 2px;
}

.tag-item .remove-tag {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-item .remove-tag:hover {
    background: rgba(255,255,255,0.5);
}

.tags-info {
    display: block;
    color: #666;
    font-size: 11px;
    margin-top: 8px;
    font-style: italic;
}

.tags-suggestions {
    margin-top: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e1e1e1;
    max-height: 200px;
    overflow-y: auto;
}

.suggestions-label {
    display: block;
    color: #666;
    font-size: 11px;
    margin-bottom: 5px;
    font-weight: 500;
}

.suggestions-label i {
    margin-right: 4px;
}

.suggestions-divider {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #e1e1e1;
}

.tag-suggestion {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tag-suggestion:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag-suggestion.existing {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.tag-suggestion.existing:hover {
    background: #17a2b8;
    color: white;
}

.tag-suggestion.new {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    font-weight: 500;
}

.tag-suggestion.new:hover {
    background: #28a745;
    color: white;
}

.tag-suggestion .fas {
    margin-right: 4px;
    font-size: 10px;
}

/* Categories bilíngües */
.category-bilingual {
    line-height: 1.3;
}

.category-bilingual small {
    opacity: 0.8;
    font-size: 10px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Estils responsives millorats */
@media (max-width: 1024px) {
    .modal-xlarge {
        width: 98%;
        max-height: 95vh;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: none;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .modal-xlarge {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: center;
        border-right: none;
        border-bottom: 1px solid #e1e1e1;
    }
    
    .checkbox-container {
        grid-template-columns: 1fr;
    }
    
    .image-upload-container {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ====================================
   ESTILS PER LLISTA D'ENTRADES
   ================================== */

/* Header accions */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Indicador de càrrega */
.loading-indicator {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.loading-indicator i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Missatge sense dades */
.no-data-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-data-message i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-data-message h3 {
    margin: 20px 0 10px;
    color: #444;
}

.no-data-message p {
    margin-bottom: 30px;
}

/* Millores a la taula d'entrades */
.article-meta {
    margin-top: 8px;
}

.article-meta small {
    font-size: 11px;
    color: #666;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.category-badge {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.stats-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stats-group div {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Badges d'idiomes */
.languages-cell {
    text-align: center;
}

.language-badges {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.language-badge {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

.language-badge.lang-ca {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}

.language-badge.lang-es {
    background: #fff3e0;
    border-color: #ff9800;
    color: #f57c00;
}

/* Dropdown menus */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 6px;
    border: 1px solid #e1e1e1;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-content button {
    background: none;
    border: none;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-content button:hover {
    background-color: #f8f9fa;
}

.dropdown-content button.text-danger {
    color: #dc3545;
}

.dropdown-content button.text-danger:hover {
    background-color: #fee;
}

.dropdown-content hr {
    margin: 5px 0;
    border: none;
    border-top: 1px solid #e1e1e1;
}

/* Sistema de notificacions */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 6px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
    max-width: 350px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #28a745;
    color: #155724;
    background-color: #d4edda;
}

.notification-error {
    border-left-color: #dc3545;
    color: #721c24;
    background-color: #f8d7da;
}

.notification-warning {
    border-left-color: #ffc107;
    color: #856404;
    background-color: #fff3cd;
}

.notification-info {
    border-left-color: #17a2b8;
    color: #0c5460;
    background-color: #d1ecf1;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.7;
}

.notification-close:hover {
    opacity: 1;
}

/* Millores responsive per la taula */
@media (max-width: 1200px) {
    .articles-table th,
    .articles-table td {
        padding: 8px 6px;
        font-size: 13px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }
    
    .btn-icon {
        padding: 6px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .articles-table {
        font-size: 12px;
    }
    
    .article-title h4 {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .article-summary {
        display: none; /* Amagar resum en mòbil */
    }
    
    .date-info {
        font-size: 11px;
    }
    
    .stats-group {
        font-size: 11px;
    }
    
    .language-badges {
        flex-direction: column;
    }
    
    .dropdown-content {
        min-width: 140px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* ==========================================
   MODAL COMPLETAMENT RENOVAT
   ========================================== */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
    backdrop-filter: blur(2px);
}

.modal-overlay.show {
    display: flex;
}

/* Modal Container */
.modal-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 1400px;
    max-height: calc(100vh - 40px);
    margin: auto;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Header */
.modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px 12px 0 0;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
}

.modal-title i {
    color: var(--primary-color);
    font-size: 1.3em;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6c757d;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #f8f9fa;
    color: #dc3545;
    transform: scale(1.1);
}

/* Modal Navigation */
.modal-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0 30px;
    gap: 2px;
}

.nav-tab {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s;
    position: relative;
}

.nav-tab:hover {
    background: #e9ecef;
    color: #495057;
}

.nav-tab.active {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.nav-tab i {
    font-size: 1.1em;
}

/* Modal Content */
.modal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

/* Tab Panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Content Sections */
.content-section {
    max-width: 100%;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
}

.section-title i {
    color: var(--primary-color);
}

/* Field Layout */
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
}

.flag-icon {
    font-size: 1.1em;
}

.field-input,
.field-textarea,
.field-select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.2s;
    font-family: inherit;
}

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(204, 204, 167, 0.2);
}

.field-textarea {
    resize: vertical;
    min-height: 80px;
}

.content-editor {
    min-height: 300px;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

.field-hint {
    font-size: 0.85em;
    color: #6c757d;
    font-style: italic;
}

.char-counter {
    font-size: 0.85em;
    color: #6c757d;
    text-align: right;
}

/* Editor Toolbar */
.editor-toolbar {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.toolbar-btn {
    background: none;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    color: #6c757d;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.editor-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85em;
    color: #6c757d;
}

/* Media Upload */
.media-upload {
    display: flex;
    gap: 10px;
}

.btn-select-media {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-select-media:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.image-preview {
    margin-top: 15px;
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Taxonomy Container */
.taxonomy-container {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
    max-height: 200px;
    overflow-y: auto;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #f0f0f0;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-size: 0.95em;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 204, 167, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .modal-container {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .field-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-nav {
        padding: 0 20px;
        overflow-x: auto;
    }
    
    .nav-tab {
        padding: 12px 16px;
        font-size: 0.9em;
        white-space: nowrap;
    }
    
    .footer-actions {
        flex-direction: column-reverse;
    }
    
    .btn {
        justify-content: center;
    }
}

/* ==========================================
   SISTEMA D'ETIQUETES INTEGRAT
   ========================================== */

/* Contenidor principal del selector d'etiquetes */
.tags-selector {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background: white;
    margin-top: 8px;
}

/* Etiquetes seleccionades */
.selected-tags-display {
    margin-bottom: 15px;
    min-height: 50px;
    padding: 15px;
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    transition: all 0.3s ease;
}

.selected-tags-display.has-tags {
    border-style: solid;
    border-color: var(--primary-color);
    background: rgba(204, 204, 167, 0.1);
}

.no-tags-message {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9em;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    animation: fadeInTag 0.3s ease;
    box-shadow: 0 2px 8px rgba(204, 204, 167, 0.3);
}

.selected-tag .remove-tag {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.selected-tag .remove-tag:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Etiquetes disponibles */
.available-tags {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: white;
}

.tags-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.available-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
}

.available-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    font-weight: 500;
}

.available-tag:hover {
    border-color: var(--primary-color);
    background: rgba(204, 204, 167, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.available-tag.selected {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(204, 204, 167, 0.4);
}

.available-tag .tag-count {
    background: rgba(0, 0, 0, 0.1);
    color: #6c757d;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 4px;
}

.available-tag.selected .tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Animacions */
@keyframes fadeInTag {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive per etiquetes */
@media (max-width: 768px) {
    .available-tags-grid {
        gap: 6px;
        padding: 10px;
    }
    
    .available-tag,
    .selected-tag {
        font-size: 0.8em;
        padding: 6px 10px;
    }
    
    .selected-tags-display {
        min-height: 40px;
        padding: 10px;
    }
}

/* Contenidor principal del selector d'etiquetes */
.tags-selector {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    background: var(--card-bg);
    margin-top: 8px;
}

/* Etiquetes seleccionades */
.selected-tags-display {
    margin-bottom: 15px;
    min-height: 40px;
    padding: 10px;
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    background: var(--background-light);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    transition: all 0.3s ease;
}

.selected-tags-display.has-tags {
    border-style: solid;
    border-color: var(--primary-color);
    background: rgba(204, 204, 167, 0.1);
}

.no-tags-message {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9em;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    animation: fadeInTag 0.3s ease;
    box-shadow: 0 2px 4px rgba(204, 204, 167, 0.3);
}

.selected-tag .remove-tag {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.selected-tag .remove-tag:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Etiquetes disponibles */
.available-tags {
    max-height: 250px;
    overflow-y: auto;
}

.tags-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-style: italic;
}

.available-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
}

.available-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.available-tag:hover {
    border-color: var(--primary-color);
    background: rgba(204, 204, 167, 0.1);
    transform: translateY(-1px);
}

.available-tag.selected {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(204, 204, 167, 0.3);
}

.available-tag .tag-count {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 4px;
}

.available-tag.selected .tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Animacions */
@keyframes fadeInTag {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .available-tags-grid {
        gap: 6px;
    }
    
    .available-tag,
    .selected-tag {
        font-size: 0.8em;
        padding: 6px 10px;
    }
}

/* NOVA MODAL FULLSCREEN */
.fullscreen-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.fullscreen-modal.show {
    display: flex !important;
}

.modal-window {
    display: flex;
    width: 95%;
    max-width: 1400px;
    height: 90%;
    max-height: 900px;
    margin: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.modal-sidebar {
    width: 250px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    padding: 0;
    display: flex;
    flex-direction: column;
    border-radius: 12px 0 0 12px;
}

.modal-header {
    padding: 25px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-title {
    color: white;
    font-size: 1.4em;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-nav {
    flex: 1;
    padding: 10px 0;
}

.modal-nav-item {
    display: block;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
}

.modal-nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding-left: 30px;
}

.modal-nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
    border-right: 3px solid white;
}

.modal-close-btn {
    margin-top: auto;
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-close {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.modal-content {
    flex: 1;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-section,
.content-panel {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.modal-section.active,
.content-panel.active {
    display: flex;
}

.section-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.section-title {
    font-size: 1.3em;
    color: var(--color-dark);
    margin: 0;
    font-weight: 600;
}

.section-subtitle {
    color: #666;
    margin-top: 5px;
    font-size: 0.9em;
}

.section-body {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.dual-language-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    height: 100%;
}

.language-section {
    display: flex;
    flex-direction: column;
}

.language-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.flag-icon {
    width: 24px;
    height: auto;
    margin-right: 10px;
}

.language-label {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1.1em;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-dark);
    font-size: 0.95em;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary), 0.1);
}

.form-textarea {
    min-height: 200px;
    resize: vertical;
    flex: 1;
}

.tags-categories-section {
    padding: 30px;
}

.tags-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.tag-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.tag-group h4 {
    color: var(--color-dark);
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 600;
}

.selected-tags-container {
    margin-bottom: 15px;
    min-height: 45px;
    padding: 10px;
    background: white;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.selected-tags-container.has-tags {
    border-style: solid;
    border-color: var(--color-primary);
    background: rgba(var(--color-primary), 0.05);
}

.selected-tag {
    background: var(--color-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: tagAppear 0.3s ease;
}

.selected-tag .remove-tag {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.selected-tag .remove-tag:hover {
    background: rgba(255, 255, 255, 0.5);
}

.available-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 5px;
}

.available-tag {
    background: white;
    border: 2px solid #e9ecef;
    color: #666;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.available-tag:hover {
    border-color: var(--color-primary);
    background: rgba(var(--color-primary), 0.1);
    color: var(--color-dark);
    transform: translateY(-2px);
}

.available-tag.selected {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.section-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.btn-primary:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Animacions */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes tagAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive design */
@media (max-width: 1200px) {
    .modal-window {
        width: 98%;
        height: 95%;
    }
    
    .dual-language-container {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .modal-window {
        flex-direction: column;
        width: 95%;
        height: 95%;
    }
    
    .modal-sidebar {
        width: 100%;
        height: auto;
        border-radius: 12px 12px 0 0;
    }
    
    .modal-nav {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }
    
    .modal-nav-item {
        white-space: nowrap;
        padding: 10px 20px;
        margin-right: 10px;
        border-radius: 6px;
    }
    
    .modal-nav-item.active {
        border-right: none;
        border-bottom: 3px solid white;
    }
    
    .dual-language-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .tags-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-body {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .modal-window {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .modal-sidebar {
        border-radius: 0;
    }
    
    .section-body {
        padding: 15px;
    }
    
    .dual-language-container,
    .tags-grid {
        gap: 15px;
    }
}