/* Source: /css/base.css */
/* ==========================================================================
   BASE.CSS — Design Tokens, Reset i Estils d'Elements
   Font única de veritat per a totes les variables del projecte.
   ========================================================================== */

:root {
    /* --- PRIMITIVES --- */
    --color-terracotta: #e87d52;
    --color-terracotta-light: #f0b357;
    --color-cream: #fffaf2;
    --color-beige: #f9f8f4;
    --color-bg-dark: #2c2c2c;
    --color-bg-team: #1a1a1a;
    --color-black-soft: #111111;
    --color-dark-grey: #333;
    --color-grey-muted: #555;
    --color-grey-hint: #888;
    --color-grey-neutral: #999;
    --color-grey-border: #ccc;
    --color-white: #fff;
    --color-white-creamy: #fffdf0;

    /* --- SEMÀNTIQUES --- */
    --color-accent: var(--color-terracotta);
    --color-accent-light: var(--color-terracotta-light);
    --color-text-main: var(--color-cream);
    /* Text sobre fons fosc */
    --color-text-body: var(--color-dark-grey);
    /* Text sobre fons clar */
    --color-text-secondary: #E0E0E0;
    /* Text secundari sobre fosc */

    /* --- OVERLAYS --- */
    --color-overlay-hero: rgba(0, 0, 0, 0.4);
    --color-overlay-dark: rgba(0, 0, 0, 0.6);

    /* --- OMBRES --- */
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 15px 40px rgba(186, 120, 107, 0.12);
    --shadow-header: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.4);

    /* --- TIPOGRAFIA --- */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* --- HEADER --- */
    --header-bg: var(--color-beige);
    --header-height-desktop: 90px;
    --header-height-shrunk: 52px;
    --header-height-mobile: 72px;
    --header-height-mobile-shrunk: 50px;

    /* --- ESPAIAT --- */
    --spacing-section: 8rem 2rem;
    --spacing-section-lg: 12rem 2rem;
    --container-max: 1200px;
    --container-padding: 2rem;

    /* --- BREAKPOINTS (referència, usar en @media) --- */
    /* --bp-mobile: 768px  */
    /* --bp-tablet: 1024px */
}

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

/* ==========================================================================
   BASE ELEMENTS
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    background-color: var(--color-cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   ACCESSIBILITY - FOCUS INDICATORS
   ========================================================================== */

/* Focus indicators for keyboard navigation */
*:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Remove default focus for mouse users, keep for keyboard */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Enhanced focus for interactive elements */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Focus for radio buttons and checkboxes */
input[type="radio"]:focus-visible,
input[type="checkbox"]:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: inherit;
}

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   GENERIC TEST CARD ILLUSTRATIONS
   ========================================================================== */

.test-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background-color: var(--color-white, #fff);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.test-card::before {
    content: '';
    display: block;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, rgba(232, 125, 82, 0.16), rgba(255, 255, 255, 0.02));
}

.test-card::after {
    content: '';
    position: absolute;
    top: 22px;
    right: 22px;
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.88), transparent 42%),
                radial-gradient(circle at 70% 70%, rgba(232, 125, 82, 0.22), transparent 48%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.test-card .test-card__content,
.test-card .card__content,
.test-card .card-content {
    position: relative;
    z-index: 1;
    padding-top: 1.5rem;
}

.test-card .test-card__title,
.test-card .card__title,
.test-card .card-title {
    margin-top: 1rem;
}

.test-card .test-card__meta,
.test-card .card__meta,
.test-card .card-meta,
.test-card .test-card__description,
.test-card .card__description,
.test-card .card-description {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   GENERIC FORM STYLING
   ========================================================================== */

.contact-form,
.site-form,
form {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--color-white, #fff);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.07);
    display: grid;
    gap: 1rem;
}

.contact-form label,
.site-form label,
form label {
    display: block;
    font-weight: 600;
    color: var(--color-dark-grey, #333);
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.site-form input,
.site-form textarea,
.site-form select,
form input,
form textarea,
form select {
    width: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid var(--color-grey-border, #ccc);
    border-radius: 14px;
    background-color: #fff;
    color: var(--color-black-soft, #111);
    font-size: 1rem;
}

.contact-form textarea,
.site-form textarea,
form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form .form-row,
.site-form .form-row,
form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-form button,
.site-form button,
form button {
    width: fit-content;
    padding: 1rem 1.8rem;
    border-radius: 999px;
}

.contact-form .form-actions,
.site-form .form-actions,
form .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 768px) {
    .contact-form,
    .site-form,
    form {
        padding: 1.5rem;
    }

    .contact-form .form-row,
    .site-form .form-row,
    form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   TEST SLIDE / CARD ILLUSTRATION STYLES
   ========================================================================== */

.slides,
.slider,
.carousel,
.test-slider {
    display: grid;
    gap: 1.5rem;
}

.slide,
.slider__item,
.carousel__item,
.test-card,
.test-slide {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background-color: var(--color-white, #fff);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
    min-height: 280px;
}

.slide::before,
.slider__item::before,
.carousel__item::before,
.test-card::before,
.test-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(232, 125, 82, 0.14), transparent 28%),
                radial-gradient(circle at 75% 20%, rgba(63, 109, 150, 0.08), transparent 32%),
                linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.92));
    pointer-events: none;
}

.slide .slide-title,
.slider__item .slide-title,
.carousel__item .slide-title,
.test-card .test-card__title,
.test-slide .test-title {
    position: relative;
    z-index: 1;
}

.slide .slide-image,
.slider__item .slide-image,
.carousel__item .slide-image,
.test-card .test-card__image,
.test-slide .test-image,
.card .card__image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 180px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    object-fit: cover;
    background: radial-gradient(circle at 20% 20%, rgba(232, 125, 82, 0.3), transparent 24%),
                radial-gradient(circle at 80% 70%, rgba(84, 125, 186, 0.18), transparent 30%);
}

@media (max-width: 768px) {
    .slide,
    .slider__item,
    .carousel__item,
    .test-card,
    .test-slide,
    .card {
        min-height: 220px;
    }
}

/* Honor the visitor's motion preference across shared components. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto !important; }
  *, *::before, *::after { animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}
:focus-visible { outline:3px solid currentColor; outline-offset:3px; }
.skip-link { position:fixed; left:1rem; top:1rem; transform:translateY(-200%); padding:0.75rem 1rem; background:var(--color-white); color:var(--color-black-soft); z-index:10000; }
.skip-link:focus { transform:none; }

/* Source: /css/components/buttons.css */
/* ==========================================================================
   BUTTONS.CSS — Component .btn
   Variants: --primary, --outline, --ghost
   ========================================================================== */

.btn {
   display: inline-block;
   padding: 0.75rem 1.75rem;
   font-family: var(--font-body);
   font-size: 0.85rem;
   font-weight: 600;
   letter-spacing: 1px;
   text-transform: uppercase;
   text-decoration: none;
   border-radius: 4px;
   border: 2px solid transparent;
   cursor: pointer;
   transition: all 0.3s ease;
   white-space: nowrap;
   line-height: 1;
}

/* Botó Principal — Acció primària de la pàgina */
.btn--primary {
   background-color: var(--color-accent);
   color: var(--color-black-soft);
   border-color: var(--color-accent);
}

.btn--primary:hover {
   opacity: 0.85;
   transform: translateY(-2px);
}

.btn--secondary {
   background-color: transparent;
   color: var(--color-accent);
   border-color: var(--color-accent);
}

.btn--secondary:hover {
   background-color: rgba(232, 125, 82, 0.1);
   color: var(--color-accent);
   transform: translateY(-2px);
}

.btn--large {
   padding: 1rem 2rem;
   font-size: 1rem;
   letter-spacing: 1.5px;
}

/* Botó Outline — Acció secundària */
.btn--outline {
   background-color: transparent;
   color: var(--color-accent);
   border-color: var(--color-accent);
}

.btn--outline:hover {
   background-color: var(--color-accent);
   color: var(--color-black-soft);
   transform: translateY(-2px);
}

/* Variant outline sobre fons fosc (hero) */
.btn--outline-light {
   background-color: transparent;
   color: var(--color-white);
   border-color: rgba(255, 255, 255, 0.7);
}

.btn--outline-light:hover {
   background-color: var(--color-black-soft);
   color: var(--color-accent);
}

/* Botó Ghost — Navegació dins targetes */
.btn--ghost {
   background-color: transparent;
   color: var(--color-accent);
   border-color: transparent;
   padding-left: 0;
   padding-right: 0;
   letter-spacing: 0.5px;
}

.btn--ghost:hover {
   opacity: 0.75;
   transform: translateX(4px);
}

/* Ghost sobre fons fosc */
.btn--ghost-light {
   color: var(--color-text-main);
}

.btn--ghost-light:hover {
   color: var(--color-accent-light);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
   .btn {
      padding: 0.65rem 1.4rem;
      font-size: 0.8rem;
   }
}
/* Readable link/button text on the site's light section variants. */
.section--cream .btn--ghost, .section--white .btn--ghost, .section--beige .btn--ghost,
.section--cream .btn--outline, .section--white .btn--outline, .section--beige .btn--outline { color:var(--color-black-soft); }

/* Source: /css/components/contact-form.css */
/* ==========================================================================
   COMPONENT: CONTACT FORM
   ========================================================================== */

.contact-form-section {
    background: linear-gradient(135deg, var(--color-cream, #faf8f5) 0%, var(--color-beige, #f9f8f4) 100%);
    padding: 6rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-form__inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-form__inner h2 {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-black-soft, #1a1a1a);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.contact-form__inner p {
    font-size: 1.1rem;
    color: var(--color-grey-muted, #555);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Form container - to be styled when form is added */
.contact-form {
    display: grid;
    gap: 1.25rem;
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--color-white, #fff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--color-dark-grey, #333);
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid var(--color-grey-border, #ccc);
    border-radius: 14px;
    background-color: #fff;
    font-size: 1rem;
    color: var(--color-black-soft, #111);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-form .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
}

.contact-form button {
    width: fit-content;
    padding: 1rem 1.8rem;
    border-radius: 999px;
}

.contact-form__field {
    margin-bottom: 0.75rem;
}

.contact-form__note {
    color: var(--color-grey-muted, #555);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-form-section {
        padding: 4rem 1rem;
    }

    .contact-form__inner h2 {
        font-size: 2rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Source: /css/components/cards.css */
/* ==========================================================================
   CARDS.CSS — Component .card
   Variants: --service (sobre fons fosc), --price, --team
   ========================================================================== */

.card {
   background-color: rgba(255, 255, 255, 0.06);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 12px;
   padding: 2.5rem 2rem;
   transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.card:hover {
   transform: translateY(-4px);
   box-shadow: var(--shadow-card-hover);
}

/* --- Variant: Servei (usat sobre fons fosc) --- */
.card--service {
   color: var(--color-text-main);
   text-align: left;
}

.card--service:hover {
   background-color: rgba(255, 255, 255, 0.1);
}

.card__icon {
   width: 52px;
   height: 52px;
   margin-bottom: 1.5rem;
   display: flex;
   align-items: center;
   justify-content: center;
   border: 1px solid rgba(255, 255, 255, 0.3);
   border-radius: 50%;
   padding: 0.8rem;
}

.card__icon svg {
   width: 100%;
   height: 100%;
   stroke: var(--color-text-main);
   stroke-width: 1.5;
   fill: none;
}

.card__title {
   font-size: 1.4rem;
   font-weight: 600;
   margin-bottom: 1rem;
   color: inherit;
}

.card__desc {
   font-size: 0.95rem;
   line-height: 1.7;
   color: var(--color-text-secondary);
   margin-bottom: 1.5rem;
}

.card__tags {
   list-style: none;
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem;
   margin-bottom: 2rem;
}

.card__tags li {
   font-size: 0.75rem;
   font-weight: 500;
   letter-spacing: 0.5px;
   padding: 0.3rem 0.8rem;
   border: 1px solid rgba(255, 255, 255, 0.2);
   border-radius: 20px;
   color: var(--color-text-secondary);
}

/* --- Variant sobre fons clar --- */
.card--light {
   background-color: var(--color-white);
   border-color: rgba(0, 0, 0, 0.06);
   color: var(--color-text-body);
}

.card--light .card__icon {
   border-color: var(--color-accent);
}

.card--light .card__icon svg {
   stroke: var(--color-accent);
}

.card--light .card__desc {
   color: var(--color-grey-muted);
}

.card--light .card__tags li {
   border-color: var(--color-grey-border);
   color: var(--color-grey-muted);
}

.card--light:hover {
   background-color: var(--color-white);
   box-shadow: var(--shadow-card-hover);
}

/* --- Diferenciació visual Psicologia vs Fisioterapia --- */
.card--psico {
   border-top: 3px solid var(--color-accent, #e87d52);
}

.card--fisio {
   border-top: 3px solid #7a9e8e;
}

/* --- Grup de CTAs dins una card (botó + link secundari) --- */
.card__cta-group {
   display: flex;
   align-items: center;
   gap: 1.5rem;
   flex-wrap: wrap;
}

.card__link-secondary {
   font-size: 0.8rem;
   color: rgba(255, 255, 255, 0.45);
   text-decoration: none;
   letter-spacing: 0.3px;
   transition: color 0.2s ease;
   white-space: nowrap;
}

.card__link-secondary:hover {
   color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
   .card {
      padding: 2rem 1.5rem;
   }
}

/* Source: /css/components/header.css */
/* =========================================================================
   COMPONENT: HEADER
   Descripció: Capçalera fixa. Logo, navigació, telèfon, CTA i drawer mòbil.
   Elements:   .header__inner, .header__logo, .header__nav, .header__nav-link,
               .header__actions, .header__phone, .header__cta,
               .header__burger, .header__drawer, .header__overlay
   Modificadors: .header--transparent (sobre hero), .header--shrunk (on scroll),
                 .header--landing (landings psico/fisio)
   ========================================================================= */

/* --- Base --- */
.header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   z-index: 1000;
   height: var(--header-height-desktop);
   background-color: var(--color-white);
   border-bottom: 1px solid rgba(0, 0, 0, 0.06);
   transition: height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header__inner {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 2rem;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 2rem;
}

/* --- Logo --- */
.header__logo {
   display: flex;
   align-items: center;
   text-decoration: none;
   flex-shrink: 0;
   max-width: 160px;
}

.header__logo img {
   height: 40px;
   width: auto;
   max-width: 100%;
   transition: height 0.3s ease;
}

/* --- Nav principal --- */
.header__nav {
   flex: 0 1 auto;
   min-width: auto;
}

.header__nav-list {
   list-style: none;
   padding: 0;
   margin: 0;
   display: flex;
   justify-content: center;
   gap: clamp(0.8rem, 1.2vw, 1.5rem);
}

.header__nav-link {
   font-family: var(--font-body);
   font-size: 0.78rem;
   font-weight: 500;
   letter-spacing: 0.4px;
   text-transform: uppercase;
   color: var(--color-black-soft);
   text-decoration: none;
   position: relative;
   padding-bottom: 4px;
   transition: color 0.2s ease;
   white-space: nowrap;
}

.header__nav-link::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 0;
   height: 2px;
   background-color: var(--color-accent);
   transition: width 0.25s ease;
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
   width: 100%;
}

.header__nav-link:hover,
.header__nav-link--active {
   color: var(--color-accent);
}

/* --- Actions --- */
.header__actions {
   display: flex;
   align-items: center;
   gap: clamp(0.75rem, 1vw, 1.5rem);
   flex-shrink: 0;
}

.header__cta {
   white-space: nowrap;
}

.header__phone {
   display: flex;
   align-items: center;
   gap: 0.4rem;
   text-decoration: none;
   color: var(--color-grey-muted);
   font-size: 0.85rem;
   font-weight: 500;
   white-space: nowrap;
   transition: color 0.2s ease;
}

.header__phone:hover {
   color: var(--color-accent);
}

/* --- Estado --transparent (sobre hero) --- */
.header--transparent {
   background-color: transparent;
   border-bottom-color: transparent;
   box-shadow: none;
}

.header--transparent .header__logo img {
   filter: brightness(0) invert(1);
   transition: filter 0.3s ease;
}

.header--transparent .header__nav-link {
   color: var(--color-white);
}

.header--transparent .header__nav-link:hover,
.header--transparent .header__nav-link--active {
   color: var(--color-white);
   opacity: 0.85;
}

.header--transparent .header__phone {
   color: rgba(255, 255, 255, 0.85);
}

.header--transparent .header__phone:hover {
   color: var(--color-white);
}

.header--transparent .header__burger span {
   background-color: var(--color-white);
}

.header--solid {
   background-color: var(--color-white);
   border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* --- Estado --shrunk (on scroll) --- */
.header--shrunk {
   height: var(--header-height-shrunk);
   box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header--shrunk .header__logo img {
   height: 32px;
}

/* --- Hamburguesa (mòbil) --- */
.header__burger {
   display: none;
   flex-direction: column;
   justify-content: center;
   gap: 5px;
   width: 36px;
   height: 36px;
   background: none;
   border: none;
   cursor: pointer;
   padding: 4px;
   flex-shrink: 0;
}

.header__burger span {
   display: block;
   width: 100%;
   height: 2px;
   background-color: var(--color-black-soft);
   border-radius: 2px;
   transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
   transform-origin: center;
}

/* Animació X quan obert */
.header__burger[aria-expanded="true"] span:nth-child(1) {
   transform: translateY(7px) rotate(45deg);
}

.header__burger[aria-expanded="true"] span:nth-child(2) {
   opacity: 0;
   transform: scaleX(0);
}

.header__burger[aria-expanded="true"] span:nth-child(3) {
   transform: translateY(-7px) rotate(-45deg);
}

/* --- Drawer mòbil --- */
.header__drawer {
   position: fixed;
   top: 0;
   right: -100%;
   width: min(320px, 85vw);
   height: 100dvh;
   background-color: var(--color-white);
   z-index: 1100;
   display: flex;
   flex-direction: column;
   transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
   box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
   overflow-y: auto;
}

.header__drawer--open {
   right: 0;
}

.header__drawer-inner {
   padding: 6rem 2rem 2rem;
   display: flex;
   flex-direction: column;
   gap: 3rem;
   flex: 1;
}

.header__drawer-list {
   list-style: none;
   padding: 0;
   margin: 0;
   display: flex;
   flex-direction: column;
   gap: 0;
}

.header__drawer-link {
   display: block;
   padding: 1rem 0;
   font-size: 1.1rem;
   font-weight: 500;
   color: var(--color-black-soft);
   text-decoration: none;
   border-bottom: 1px solid rgba(0, 0, 0, 0.07);
   transition: color 0.2s ease;
}

.header__drawer-link:hover,
.header__drawer-link--active {
   color: var(--color-accent);
}

.header__drawer-actions {
   display: flex;
   flex-direction: column;
   gap: 1rem;
   margin-top: auto;
}

.header__drawer-phone {
   display: block;
   text-align: center;
   color: var(--color-grey-muted);
   text-decoration: none;
   font-size: 0.95rem;
   padding: 0.75rem;
   border: 1px solid rgba(0, 0, 0, 0.1);
   border-radius: 8px;
   transition: color 0.2s ease;
}

.header__drawer-phone:hover {
   color: var(--color-accent);
}

/* --- Overlay fosc rere el drawer --- */
.header__overlay {
   position: fixed;
   inset: 0;
   background: rgba(0, 0, 0, 0.5);
   z-index: 1050;
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.35s ease;
}

.header__overlay--visible {
   opacity: 1;
   pointer-events: all;
}

@media (max-width: 1360px) {
   .header__inner {
      padding: 0 1rem;
      gap: 1rem;
   }

   .header__nav-link {
      font-size: 0.8rem;
      letter-spacing: 0.3px;
   }

   .header__phone {
      display: none;
   }

   .header__cta {
      font-size: 0.8rem;
      padding: 0.7rem 1rem;
   }
}

@media (max-width: 1120px) {
   .header__nav-list {
      gap: 0.8rem;
   }
}

/* --- Responsive: hamburguesa a pantalles mitjanes --- */
@media (max-width: 1100px) {
   .header__nav {
      display: none;
   }

   .header__burger {
      display: flex;
      margin-left: auto;
   }
}

/* --- Responsive: ocultar nav en mòbil --- */
@media (max-width: 768px) {
   .header {
      height: var(--header-height-mobile);
   }

   .header--shrunk {
      height: var(--header-height-mobile-shrunk);
   }

   .header__nav,
   .header__phone {
      display: none;
   }

   .header__burger {
      display: flex;
      margin-left: auto;
   }

   .header .header__cta {
      display: none;
      /* El CTA del header s'amaga: el del drawer és suficient */
   }
}

@media (max-width: 480px) {
   .header__inner {
      padding: 0 1rem;
   }
}

/* --- Landing: ajustos desktop per evitar overflow del header --- */
.header--landing .header__inner {
   max-width: 1360px;
   padding: 0 1rem;
   gap: 0.9rem;
}

.header--landing .header__nav-list {
   gap: 0.65rem;
}

.header--landing .header__nav-link {
   font-size: 0.78rem;
   letter-spacing: 0.2px;
}

.header--landing .header__actions {
   gap: 0.75rem;
}

.header--landing .header__phone {
   font-size: 0.8rem;
}

.header--landing .header__cta {
   font-size: 0.8rem;
   padding: 0.7rem 1rem;
}

@media (max-width: 1320px) {
   .header--landing .header__phone {
      display: none;
   }
}
/* Reserve space for the full corporate navigation and booking action. */
.header:not(.header--landing) .header__inner { max-width:1800px; }
/* Use the existing drawer before the navigation can push the booking action off-screen. */
@media (max-width: 768px) {
 .header:not(.header--landing) .header__nav { display:none; }
 .header:not(.header--landing) .header__burger { display:flex; margin-left:auto; }
}

/* Drawer controls use the existing palette and remain readable at narrow widths. */
.header__drawer-close { position:absolute; top:1rem; right:1rem; padding:0.75rem; border:0; background:transparent; color:var(--color-black-soft); font:inherit; cursor:pointer; }
.header__drawer-actions .btn { white-space:normal; line-height:1.4; width:100%; }
.header__drawer-link--active { color:var(--color-black-soft); text-decoration:underline; text-decoration-color:var(--color-accent); text-underline-offset:0.3em; }

/* Corporate desktop: keep every destination visible and give actions their own row when needed. */
@media(min-width:769px){
 .header:not(.header--landing) .header__inner { gap:1rem; padding:0 1rem; }
 .header:not(.header--landing) .header__nav { display:block; }
 .header:not(.header--landing) .header__burger { display:none; }
 .header:not(.header--landing) .header__nav-list { gap:.8rem; }
}
@media(min-width:769px) and (max-width:1050px){
 :root { --header-height-desktop:132px; --header-height-desktop-shrunk:132px; }
 .header:not(.header--landing) { height:132px; }
 .header:not(.header--landing) .header__inner { display:grid; grid-template-columns:auto 1fr; grid-template-rows:64px 68px; gap:0 1rem; }
 .header:not(.header--landing) .header__actions { grid-column:2; grid-row:1; justify-self:end; }
 .header:not(.header--landing) .header__nav { grid-column:1 / -1; grid-row:2; }
 .header:not(.header--landing) .header__nav-list { flex-wrap:wrap; gap:.6rem 1rem; }
 .header:not(.header--landing) .header__phone { display:flex; }
}

/* Source: /css/components/lang-switcher.css */
/* =========================================================================
   COMPONENT: LANG SWITCHER
   Selector d'idioma ES | CA al header.
   ========================================================================= */

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Quan el header és transparent (sobre hero fosc) */
.header--transparent .lang-switcher {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Quan el header és solid (scroll) */
.header--solid .lang-switcher {
    border-color: rgba(0, 0, 0, 0.15);
}

.lang-switcher__btn {
    padding: 0.3rem 0.7rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1;
}

.lang-switcher__btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.lang-switcher__btn--active {
    background: var(--color-accent, #e87d52);
    color: var(--color-black, #111) !important;
    pointer-events: none;
}

.lang-switcher__divider {
    width: 1px;
    height: 14px;
    background: currentColor;
    opacity: 0.25;
    flex-shrink: 0;
}

/* Quan el header és solid (dark) — adaptar colors */
.header--solid .lang-switcher__btn {
    color: var(--color-black-soft, #1a1a1a);
}

.header--solid .lang-switcher__btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* Mobile: lleugerament més gran per facilitar el toc */
@media (max-width: 768px) {
    .lang-switcher {
        display: none;
        /* Al mòbil apareix al drawer */
    }
}

/* Selector d'idioma al drawer mòbil */
.header__drawer-lang {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.header__drawer-lang a {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-black-soft);
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.header__drawer-lang a.active,
.header__drawer-lang a:hover {
    color: var(--color-accent, #e87d52);
    background: rgba(232, 125, 82, 0.1);
}
.header--transparent .lang-switcher__btn:not(.lang-switcher__btn--active) { color:var(--color-white); }
.header__drawer-lang a.active, .header__drawer-lang a:hover { color:var(--color-black-soft); text-decoration:underline; text-underline-offset:0.25em; }

/* Source: /css/components/hero.css */
/* ==========================================================================
   HERO.CSS — Component .hero
   Variants: --home (portada), --landing (psicologia / fisioterapia)
   ========================================================================== */

.hero {
   position: relative;
   min-height: 100vh;
   width: 100%;
   padding-top: var(--header-height-desktop);
   background-image: url('/assets/img/hero-bg.png');
   background-image: image-set(url('/assets/img/hero-bg.webp') type('image/webp'), url('/assets/img/hero-bg.png') type('image/png'));
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   color: var(--color-text-main);
}

/* Overlay fosc sobre la imatge */
.hero::before {
   content: '';
   position: absolute;
   inset: 0;
   background: linear-gradient(to bottom,
         rgba(0, 0, 0, 0.4) 0%,
         rgba(0, 0, 0, 0.6) 100%);
   z-index: 1;
}

/* Variant landing — mateix hero però pot tenir altra imatge */
.hero--landing {
   background-image: url('/assets/img/hero-bg.png');
   background-image: image-set(url('/assets/img/hero-bg.webp') type('image/webp'), url('/assets/img/hero-bg.png') type('image/png'));
}

/* Contingut interior */
.hero__content {
   position: relative;
   z-index: 2;
   padding: 2rem;
   max-width: 860px;
   animation: fadeInUp 1.2s ease-out;
}

.hero__overline {
   font-size: 0.9rem;
   font-weight: 600;
   letter-spacing: 0.15em;
   text-transform: uppercase;
   color: var(--color-accent-light);
   margin-bottom: 1.5rem;
   opacity: 0.9;
}

.hero__title {
   font-family: var(--font-heading);
   font-size: 4rem;
   font-weight: 700;
   letter-spacing: -1.5px;
   line-height: 1.1;
   margin-bottom: 1.5rem;
   text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
   font-size: 1.1rem;
   font-weight: 300;
   line-height: 1.7;
   margin-bottom: 3rem;
   opacity: 0.92;
   text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Bloc de CTA estàndard */
.hero__cta {
   display: flex;
   gap: 1.5rem;
   justify-content: center;
   flex-wrap: wrap;
   margin-bottom: 2rem;
}

/* Bloc dual de CTA (botó + hint) */
.hero__cta--dual {
   align-items: flex-start;
}

.hero__cta-block {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 0.5rem;
}

.hero__cta-hint {
   font-size: 0.75rem;
   font-weight: 400;
   color: var(--color-text-main);
   opacity: 0.75;
   letter-spacing: 0.5px;
}

/* Text de confiança sota els botons */
.hero__trust-text {
   font-size: 0.75rem;
   font-weight: 300;
   letter-spacing: 0.5px;
   opacity: 0.8;
   margin-top: 1rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
   .hero {
      padding-top: var(--header-height-mobile);
   }

   .hero__title {
      font-size: 2.6rem;
      letter-spacing: -0.5px;
   }

   .hero__subtitle {
      font-size: 1rem;
      margin-bottom: 2rem;
   }

   .hero__cta {
      gap: 1rem;
   }

   .hero__overline {
      display: none;
      /* Net al mòbil */
   }
}

@media (max-width: 480px) {
   .hero__title {
      font-size: 2rem;
   }

   .hero__cta--dual {
      flex-direction: column;
      width: 100%;
   }

   .hero__cta-block {
      width: 100%;
   }

   .hero__cta-block .btn {
      width: 100%;
      text-align: center;
   }
}
/* Home locations are separate from appointment actions. */
.hero--home .hero__trust-text { margin:0 0 2rem; }

/* Show the mobile hero immediately so its text can become LCP without waiting for animation. */
@media (max-width: 768px) {
   .hero--home .hero__content { animation: none; }
}

/* Source: /css/components/mission.css */
/* ==========================================================================
   MISSION.CSS — Component .mission
   Bloc de frase impactant. Fons fosc + tipografia gran + pes lleuger.
   Signatura visual del projecte.
   ========================================================================== */

.mission {
        background-color: var(--color-bg-dark);
        color: var(--color-text-main);
        padding: var(--spacing-section-lg);
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
}

.mission__content {
        max-width: 800px;
        margin: 0 auto;
}

/* Tipografia característica: gran, lleugera, impactant */
.mission__content h2 {
        font-family: var(--font-heading);
        font-size: 2.8rem;
        font-weight: 300;
        /* Lleuger — signatura del projecte */
        line-height: 1.3;
        color: var(--color-text-main);
        letter-spacing: -0.5px;
}

/* Variant sobre fons clar */
.mission--light {
        background-color: var(--color-cream);
        color: var(--color-text-body);
}

.mission--light .mission__content h2 {
        color: var(--color-black-soft);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
        .mission {
                padding: 6rem 1.5rem;
        }

        .mission__content h2 {
                font-size: 1.9rem;
        }
}

@media (max-width: 480px) {
        .mission__content h2 {
                font-size: 1.6rem;
        }
}

/* Source: /css/components/modal.css */
/* ==========================================================================
   MODAL.CSS — Component .modal
   Variants: activada amb classe .modal--active
   IDs: #modal-first-appointment (psico/general), #modal-fisio-appointment (fisio)
   ========================================================================== */

.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 2000;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    transition: opacity 0.3s ease;
}

/* Estat actiu */
.modal.active {
    display: flex;
}

/* Targeta interior */
.modal__card {
    background-color: var(--color-white);
    color: var(--color-text-body);
    width: 100%;
    max-width: 540px;
    padding: 3rem;
    border-radius: 16px;
    position: relative;
    box-shadow: var(--shadow-modal);
    animation: modalSlideIn 0.3s ease-out;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

/* Variant amplia per al widget de Doctoralia */
.modal__card--wide {
    max-width: 800px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Botó de tancar */
.modal__close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--color-grey-hint);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    transition: color 0.2s ease;
}

.modal__close:hover {
    color: var(--color-black-soft);
}

/* Contingut */
.modal__body {
    text-align: center;
}

.modal__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-black-soft);
    margin-bottom: 0.5rem;
}

.modal__subtitle {
    font-size: 1rem;
    color: var(--color-grey-muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.modal__trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--color-grey-muted, #888);
    margin: 1.25rem 0 1.75rem;
    flex-wrap: wrap;
}

.modal__cta-doctoralia {
    display: block;
    width: 100%;
    font-size: 1.05rem;
    padding: 0.9rem 1.5rem;
    margin-bottom: 1rem;
}

.modal__fine-print {
    font-size: 0.78rem;
    color: var(--color-grey-hint, #bbb);
    margin: 0;
}

.modal__info {
    font-size: 0.85rem;
    color: var(--color-grey-hint);
    margin-bottom: 2rem;
}

/* CRM iframe sizing inside modal forms */
#hubspot-modal-form iframe,
#hubspot-fisio-form iframe,
#hs-form-primera-consulta iframe,
#hs-form-psico iframe,
#hs-form-fisio iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: clamp(240px, 34vh, 320px); /* small forms avoid large empty area; can still grow via postMessage */
    border: 0;
    transition: height 0.2s ease;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 600px) {
    .modal {
        padding: 1rem;
    }

    .modal__card {
        padding: 2rem 1.25rem;
        max-height: calc(100vh - 2rem);
    }

    .modal__title {
        font-size: 1.5rem;
    }

    #hubspot-modal-form iframe,
    #hubspot-fisio-form iframe,
    #hs-form-primera-consulta iframe,
    #hs-form-psico iframe,
    #hs-form-fisio iframe {
        height: clamp(220px, 42vh, 300px);
    }
}

/* Source: /css/components/section.css */
/* ==========================================================================
   SECTION.CSS — Component .section
   Contenidor genèric de secció per a contingut text+imatge o centrat.
   Modificadors: --cream, --dark, --white, --reverse
   ========================================================================== */

.section {
   padding: 8rem 2rem;
   color: var(--color-text-body);
   background-color: var(--color-cream);
}

/* Modificadors de fons */
.section--cream {
   background-color: var(--color-cream);
   color: var(--color-text-body);
}

.section--beige {
   background-color: var(--color-beige);
   color: var(--color-text-body);
}

.section--white {
   background-color: var(--color-white);
   color: var(--color-text-body);
}

.section--dark {
   background-color: var(--color-bg-dark);
   color: var(--color-text-main);
}

/* Layout text + imatge (50/50) */
.section--cream,
.section--beige,
.section--white,
.section--dark {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 4rem;
   flex-wrap: wrap;
   max-width: 1400px;
   margin: 0 auto;
}

/* Però algunes seccions (dark/servicios) usen layout diferent, hauran de sobreescriure */
.section--dark {
   display: block;
   max-width: unset;
   margin: unset;
}

/* Layout invers: imatge a l'esquerra, text a la dreta */
.section--reverse {
   flex-direction: row-reverse;
}

/* Costat de text */
.section__text-side {
   flex: 1;
   min-width: 300px;
   max-width: 560px;
   padding: 1rem 2rem;
}

/* Costat d'imatge */
.section__image-side {
   flex: 1;
   min-width: 280px;
   max-width: 520px;
}

.section__image-side img {
   width: 100%;
   max-height: 460px;
   object-fit: cover;
   border-radius: 8px;
}

/* Elementi interiors */
.section__overline {
   font-size: 0.9rem;
   font-weight: 600;
   letter-spacing: 0.15em;
   text-transform: uppercase;
   color: var(--color-accent);
   margin-bottom: 1rem;
}

.section__title {
   font-size: 2.4rem;
   font-weight: 700;
   line-height: 1.15;
   color: var(--color-black-soft);
   margin-bottom: 1.5rem;
}

.section--dark .section__title {
   color: var(--color-text-main);
}

.section__title--centered {
   text-align: center;
}

.section__divider {
   width: 56px;
   height: 3px;
   background-color: var(--color-accent);
   margin-bottom: 2rem;
}

.section__divider--centered {
   margin: 0 auto 2rem auto;
}

.section p {
   font-size: 1rem;
   line-height: 1.7;
   color: inherit;
   margin-bottom: 1.2rem;
}

.section__intro {
   font-size: 1.1rem;
   font-weight: 300;
   text-align: center;
   margin-bottom: 3rem;
   max-width: 600px;
   margin-left: auto;
   margin-right: auto;
}

.section__cta-phrase {
   font-style: italic;
   color: var(--color-grey-muted);
   margin-top: 1.5rem;
   margin-bottom: 1.5rem;
}

.section__cta {
   margin-top: 2rem;
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   gap: 0.5rem;
}

.section__microcopy {
   font-size: 0.8rem;
   color: var(--color-grey-hint);
   margin-bottom: 0 !important;
}

/* Grid dual (2 columnes) per a serveis */
.section__dual-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 2.5rem;
   max-width: 920px;
   margin: 0 auto;
}

/* Grid de contacte */
.section__contact-grid {
   display: flex;
   flex-wrap: wrap;
   gap: 3rem;
   max-width: var(--container-max);
   margin: 0 auto;
   align-items: flex-start;
}

.section__contact-details {
   flex: 1;
   min-width: 260px;
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
}

/* Ítem de contacte */
.contact-detail h3 {
   font-size: 0.8rem;
   text-transform: uppercase;
   letter-spacing: 1px;
   color: #9a4328;
   margin: 0 0 0.3rem;
}

.contact-detail p {
   font-size: 0.95rem;
   color: var(--color-dark-grey);
   margin-bottom: 0;
}

/* Contenidor del formulari HubSpot */
#hubspot-form-container {
   flex: 1;
   min-width: 300px;
   max-width: 560px;
   background: var(--color-white);
   padding: 2.5rem;
   border-radius: 12px;
   box-shadow: var(--shadow-card);
}

#hubspot-form-container h3 {
   font-size: 1.4rem;
   font-weight: 600;
   margin-bottom: 0.5rem;
   color: var(--color-black-soft);
}

#hubspot-form-container>p {
   font-size: 0.9rem;
   color: var(--color-grey-muted);
   margin-bottom: 1.5rem;
}

/* Formularis CRM embeguts a secció (fallback si no arriba auto-resize) */
/* El CRM pot tenir 4 camps + botó → mínim 520px per mostrar-ho tot */
#hubspot-form iframe {
   display: block;
   width: 100%;
   max-width: 100%;
   border: 0;
   height: 520px;
   transition: height 0.2s ease;
}

/* Contingut de secció centrat (serveis, etc.) */
.section__content {
   max-width: var(--container-max);
   margin: 0 auto;
   text-align: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {

   .section--cream,
   .section--beige,
   .section--white {
      gap: 2.5rem;
   }

   .section__text-side {
      padding: 1rem;
   }
}

@media (max-width: 768px) {
   .section {
      padding: 5rem 1.5rem;
   }

   .section--cream,
   .section--beige,
   .section--white {
      flex-direction: column;
      gap: 2rem;
   }

   .section--reverse {
      flex-direction: column;
   }

   .section__title {
      font-size: 1.9rem;
   }

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

   .section__text-side,
   .section__image-side {
      max-width: 100%;
      padding: 0;
   }

   .section__image-side img {
      max-height: 300px;
   }

   #hubspot-form iframe {
      height: 480px;
   }
}

/* Source: /css/components/team.css */
/* =========================================================================
   COMPONENT: TEAM (Carrusel lateral)
   Descripció: Carrusel d'equip amb fons fosc. 2 targetes visibles desktop.
   Adaptat de team-component.css original.
   Elements: .team__carousel-wrapper, .team__scroll-container, .team__track,
             .team__card, .team__nav, .team__dots, .team__dot--active
   ========================================================================= */

/* --- Variables --- */
.team,
.team-theme {
   --team-bg: #0a0a0a;
   --team-text: #f5f5f5;
   --team-muted: #a0a0a0;
   --team-accent: var(--color-accent, #e87d52);
   --card-bg: rgba(255, 255, 255, 0.03);
   --card-hover-bg: rgba(255, 255, 255, 0.07);
   --card-border: rgba(255, 255, 255, 0.06);
   --card-gap: 2rem;
}

/* --- Secció --- */
.team,
.team-theme {
   background-color: var(--team-bg);
   color: var(--team-text);
}

.team {
   padding: 6rem 2rem;
   overflow: hidden;
}

/* --- Header --- */
.team__header {
   text-align: center;
   max-width: 600px;
   margin: 0 auto 4rem;
}

.team__overline {
   font-size: 0.7rem;
   font-weight: 700;
   letter-spacing: 2px;
   text-transform: uppercase;
   color: var(--team-accent);
   margin: 0 0 0.75rem;
}

.team__title {
   font-family: var(--font-heading);
   font-size: clamp(1.75rem, 4vw, 2.5rem);
   font-weight: 700;
   color: var(--team-text);
   margin: 0 0 0.75rem;
}

.team__divider {
   width: 50px;
   height: 2px;
   background-color: var(--team-accent);
   margin: 0 auto 1.25rem;
}

.team__intro {
   font-size: 1.05rem;
   font-weight: 300;
   color: var(--team-muted);
   margin: 0;
}

/* --- Wrapper del carrusel (botó + contenidor + botó) --- */
.team__carousel-wrapper {
   position: relative;
   max-width: 1200px;
   margin: 0 auto;
   display: flex;
   align-items: center;
   gap: 1rem;
}

.team__scroll-container {
   overflow: hidden;
   width: 100%;
}

/* --- Track que es desplaça --- */
.team__track {
   display: flex;
   gap: var(--card-gap);
   transition: transform 0.5s ease-in-out;
   align-items: stretch;
}

/* --- Targeta: 2 per fila desktop, 1 mòbil --- */
.team__card {
   flex: 0 0 calc(50% - 1rem);
   /* 2 per vista */
   background: var(--card-bg);
   border: 1px solid var(--card-border);
   border-radius: 12px;
   overflow: hidden;
   transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.team__card:hover {
   transform: translateY(-8px);
   background: var(--card-hover-bg);
   border-color: rgba(232, 125, 82, 0.3);
}

.team__card-link {
   display: flex;
   flex-direction: column;
   height: 100%;
   text-decoration: none;
   color: inherit;
   border-radius: 12px;
   transition: all 0.3s ease;
}

.team__card-link:focus {
   outline: 2px solid var(--team-accent);
   outline-offset: 4px;
   background: var(--card-hover-bg);
   transform: translateY(-4px);
}

.team__card-link:hover {
   background: var(--card-hover-bg);
   transform: translateY(-4px);
}

/* --- Foto --- */
.team__photo {
   width: 100%;
   height: 350px;
   background-color: #1a1a1a;
   overflow: hidden;
}

.team__photo img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center center;
   display: block;
   filter: grayscale(20%);
   transition: filter 0.3s ease;
}

.team__photo img[src="/assets/img/team-placeholder.jpg"] {
   background: linear-gradient(135deg, #333 0%, #555 100%);
   display: flex;
   align-items: center;
   justify-content: center;
   color: #888;
   font-size: 0.9rem;
   text-align: center;
   padding: 1rem;
}

.team__card:hover .team__photo img {
   filter: grayscale(0%);
}

/* --- Info --- */
.team__info {
   padding: 2rem;
   display: flex;
   flex-direction: column;
   flex: 1;
}

.team__name {
   font-family: var(--font-heading);
   font-size: 1.4rem;
   font-weight: 700;
   color: var(--team-text);
   margin: 0 0 0.4rem;
}

.team__role {
   font-size: 0.8rem;
   font-weight: 600;
   letter-spacing: 2px;
   text-transform: uppercase;
   color: var(--team-accent);
   margin: 0 0 1rem;
}

.team__specialties {
   display: flex;
   flex-wrap: wrap;
   gap: 0.4rem;
   margin-bottom: 1rem;
   min-height: 56px;
   align-content: flex-start;
}

.team__specialty {
   font-size: 0.75rem;
   font-weight: 500;
   background: rgba(232, 125, 82, 0.10);
   color: var(--team-accent);
   border-radius: 4px;
   padding: 0.3rem 0.75rem;
}

.team__bio {
   font-size: 0.9rem;
   line-height: 1.65;
   color: var(--team-muted);
   font-weight: 300;
   flex-grow: 1;
   margin: 0 0 1.5rem;
}

.team__cta {
   font-size: 0.875rem;
   font-weight: 600;
   color: var(--team-accent);
   border-bottom: 1px solid transparent;
   padding-bottom: 2px;
   transition: border-color 0.2s ease, padding-left 0.2s ease;
   display: inline-block;
   margin-top: auto;
}

.team__card:hover .team__cta {
   border-bottom-color: var(--team-accent);
   padding-left: 4px;
}

/* --- Botons de navegació --- */
.team__nav {
   flex-shrink: 0;
   width: 50px;
   height: 50px;
   border-radius: 50%;
   border: none;
   background: rgba(255, 255, 255, 0.1);
   color: var(--team-text);
   cursor: pointer;
   font-size: 1.2rem;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: background 0.3s ease;
   z-index: 10;
}

.team__nav:hover:not(:disabled) {
   background: var(--team-accent);
}

.team__nav:disabled {
   opacity: 0.3;
   cursor: not-allowed;
}

/* --- Dots indicadors --- */
.team__dots {
   display: flex;
   justify-content: center;
   gap: 0.6rem;
   margin-top: 2rem;
}

.team__dot {
   width: 10px;
   height: 10px;
   border-radius: 50%;
   border: none;
   background: rgba(255, 255, 255, 0.2);
   cursor: pointer;
   padding: 0;
   transition: background 0.2s ease, transform 0.2s ease;
}

.team__dot--active {
   background: var(--team-accent);
   transform: scale(1.3);
}

/* --- Responsive --- */
@media (max-width: 768px) {
   .team__card {
      flex: 0 0 100%;
   }

   .team__nav {
      display: none;
   }

   .team__scroll-container {
      scroll-snap-type: x mandatory;
      overflow-x: auto;
   }

   .team__card {
      scroll-snap-align: center;
   }

   .team__photo {
      height: 280px;
   }
}

@media (max-width: 540px) {
   .team {
      padding: 4rem 1.25rem;
   }
}

/* Source: /css/components/team-grid.css */
/* Layout variant of team.css. Appearance belongs to the original team__* classes. */
.team-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--card-gap); }
.team-grid__card { min-width:0; display:flex; flex-direction:column; }
.team-grid__photo { height:190px; }
.team-grid__info { padding:1rem; }
.team-grid__link { min-height:44px; align-self:flex-start; }
.team-grid-section__inner { max-width:var(--container-max); margin:auto; }
.team-grid-section__intro { margin-bottom:2rem; }
.team-grid-section__more { margin-top:1.5rem; min-height:44px; }
@media(max-width:900px){.team-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }}
@media(max-width:480px){.team-grid { gap:.75rem; }.team-grid__info { padding:.75rem; }.team-grid__photo { height:155px; }}
@media(max-width:350px){.team-grid { grid-template-columns:1fr; }}

/* Native scrolling keeps all professionals reachable with touch and keyboard. */
.team-grid--carousel { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:calc((100% - 3 * var(--card-gap)) / 4); overflow-x:auto; scroll-snap-type:x mandatory; padding:0.6rem 0 1rem; }
.team-grid--carousel > .team-grid__card { scroll-snap-align:start; }
.team-grid-section__controls { display:flex; justify-content:flex-end; gap:1rem; margin-top:1rem; }
@media(max-width:900px){.team-grid--carousel { grid-template-columns:none; grid-auto-columns:calc((100% - var(--card-gap)) / 2); }}
@media(max-width:480px){.team-grid--carousel { grid-auto-columns:85%; }}

.team-grid-section__controls .team__nav { display:flex; }

@media(max-width:480px){.team-grid--carousel .team-grid__photo img[src$="emma-hidalgo.jpg"]{object-position:center top;}}

/* Source: /css/components/social-proof.css */
/* =========================================================================
   COMPONENT: SOCIAL PROOF
   Descripció: Secció unificada de confiança. Tres blocs en vertical:
   1. Cites anònimes de pacients (3 en grid)
   2. Xifres clau (stats)
   3. Logos plataformes reconegudes
   Fons: #0a0a0a (fosc). Text: blanc/crema.
   Elements: .social-proof, .social-proof__testimonials, .social-proof__quote,
             .social-proof__stats, .social-proof__logos
   ========================================================================= */

/* ── Contenidor principal ── */
.social-proof {
    background-color: var(--color-cream, #faf8f5);
    color: var(--color-black-soft, #1a1a1a);
    padding: 5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ─────────────────────────────────────────
   BLOC 1 — CITES ANÒNIMES
   ───────────────────────────────────────── */
.social-proof__testimonials {
    max-width: 1100px;
    margin: 0 auto 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.social-proof__quote {
    background: var(--color-white, #fff);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: box-shadow 0.3s ease;
}

.social-proof__quote:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}

/* Cometes decoratives */
.social-proof__quote::before {
    content: '\201C';
    font-size: 3.5rem;
    line-height: 1;
    color: var(--color-accent, #e87d52);
    font-family: Georgia, serif;
    display: block;
    margin-bottom: -0.75rem;
}

.social-proof__quote-text {
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
    color: var(--color-grey-muted, #555);
    font-style: italic;
    flex: 1;
    margin: 0;
}

.social-proof__quote-author {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #9a4328;
    margin: 0;
}

.social-proof__verified {
    font-size: 0.68rem;
    color: #2e6843;
    font-weight: 500;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: -0.5rem;
    opacity: 1;
}

/* ─────────────────────────────────────────
   BLOC 2 — STATS
   ───────────────────────────────────────── */
.social-proof__stats {
    max-width: 780px;
    margin: 0 auto 4rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 2.5rem 0;
}

.social-proof__stat {
    text-align: center;
    padding: 0 2rem;
}

.social-proof__stat-number {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: #9a4328;
    display: block;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.social-proof__stat-label {
    font-size: 0.8rem;
    color: var(--color-grey-muted, #888);
    display: block;
    line-height: 1.4;
}

.social-proof__stats-divider {
    width: 1px;
    height: 44px;
    background: rgba(0, 0, 0, 0.1);
}

/* ─────────────────────────────────────────
   BLOC 3 — LOGOS PLATAFORMES
   ───────────────────────────────────────── */
.social-proof__logos {
    text-align: center;
}

.social-proof__logos-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-grey-muted, #555);
    margin: 0 0 1.5rem;
}

.social-proof__logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.social-proof__logo-link {
    display: block;
    opacity: 0.45;
    transition: opacity 0.2s ease;
}

.social-proof__logo-link:hover {
    opacity: 0.8;
}

.social-proof__logo-link img {
    height: 32px;
    width: auto;
    filter: brightness(0);
    display: block;
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 900px) {
    .social-proof__testimonials {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .social-proof__stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .social-proof__stats-divider {
        display: none;
    }

    .social-proof__stat {
        padding: 0;
    }
}

@media (max-width: 540px) {
    .social-proof {
        padding: 4rem 1.25rem;
    }
}

/* Source: /css/components/bridge.css */
/* ==========================================================================
   BRIDGE.CSS — Component .bridge
   Secció de tancament / CTA final. Separa l'equip del contacte.
   ========================================================================== */

.bridge {
    background-color: var(--color-beige);
    padding: 8rem 2rem;
    text-align: center;
}

.bridge__content {
    max-width: 680px;
    margin: 0 auto;
}

.bridge__title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--color-black-soft);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.bridge__divider {
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 1.2rem auto 1.8rem auto;
}

.bridge__desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-grey-muted);
    margin-bottom: 2.5rem;
}

.bridge__cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.bridge__microcopy {
    font-size: 0.8rem;
    color: var(--color-grey-muted);
    letter-spacing: 0.5px;
}

.bridge__cta .btn--outline {
    color: var(--color-black-soft);
    border-color: var(--color-black-soft);
}

.bridge__tarifas-link {
    margin-top: 0.75rem;
    font-size: 0.82rem;
}

.bridge__tarifas-link a {
    color: #9a4328;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.bridge__tarifas-link a:hover {
    opacity: 0.75;
}

/* ── Disponibilitat (fisioterapia) ── */
.bridge__availability {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2d7a4f;
    background: rgba(45, 122, 79, 0.08);
    border: 1px solid rgba(45, 122, 79, 0.2);
    border-radius: 100px;
    padding: 0.35rem 1rem;
    margin-bottom: 1.25rem;
}

.bridge__availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2d7a4f;
    flex-shrink: 0;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* ── Urgència emotiva (psicologia) ── */
.bridge__urgency {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-grey-muted, #888);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ── Empatia (valida el pas del pacient) ── */
.bridge__empathy {
    font-size: 1rem;
    font-style: italic;
    color: var(--color-black-soft, #2a2a2a);
    margin-bottom: 0.75rem;
    line-height: 1.65;
    opacity: 0.75;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .bridge {
        padding: 5rem 1.5rem;
    }

    .bridge__title {
        font-size: 1.9rem;
    }

    .bridge__cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .bridge__cta .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
}

/* Source: /css/components/footer.css */
/* =========================================================================
   COMPONENT: FOOTER
   Descripció: Peu de pàgina compartit. Grid de 4 columnes (brand, serveis,
               contacte, legal). Bottom bar amb copyright.
   Elements:   .footer__inner, .footer__brand, .footer__col, .footer__links,
               .footer__link, .footer__address, .footer__bottom, .footer__copy
   ========================================================================= */

.footer {
    background-color: var(--color-grey-dark, #1a1a1a);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* --- Grid principal --- */
.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
}

/* --- Columna Brand --- */
.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__logo img {
    height: 36px;
    width: auto;
    opacity: 0.9;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s ease;
}

.footer__logo:hover img {
    opacity: 1;
}

.footer__tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin: 0;
}

.footer__phone {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.footer__phone:hover {
    opacity: 0.8;
}

/* --- Columnes de contingut --- */
.footer__col-title {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-white);
    margin: 0 0 1.25rem;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__link:hover {
    color: var(--color-white);
}

/* Variant botó (Gestionar cookies) — mateix aspecte que l'anchor */
.footer__link--btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

/* --- Adreça --- */
.footer__address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__address p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Bottom bar --- */
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer__copy {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.footer__colegiados {
    margin: 0.5rem 0 0;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.6;
}


/* --- Responsive --- */
@media (max-width: 960px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 540px) {
    .footer__inner {
        grid-template-columns: 1fr;
        padding: 3rem 1.25rem 2rem;
        gap: 2rem;
    }

    .footer__brand {
        grid-column: auto;
    }
}

/* Source: /css/pages/core/index.css */
/* ==========================================================================
   INDEX.CSS — Overrides exclusius de la pàgina d'inici (body.page-index)
   Tot el que aquí hi ha NO existeix com a component global.
   ========================================================================== */

/* La secció de serveis de l'index usa vídeo de fons — específic d'aquesta pàgina */
body.page-index #services {
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem;
    color: var(--color-text-main);
}

body.page-index #services::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-overlay-dark);
    z-index: 1;
}

body.page-index #services .section__content {
    position: relative;
    z-index: 2;
}

/* Si es vol vídeo de fons, afegir un element <video> a l'HTML i aplicar: */
body.page-index #services video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Source: /css/components/cookie-banner.css */
/**
 * cookie-banner.css
 * Banner de consentiment de cookies RGPD.
 * Apareix a la part inferior de la pantalla fins que l'usuari decideix.
 */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-bg-team);
    color: var(--color-white);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner--visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cookie-banner__text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.55;
    font-family: 'Montserrat', sans-serif;
}

.cookie-banner__text a {
    color: var(--color-accent);
    /* terracota marca */
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
    color: var(--color-accent-light);
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    align-items: center;
}

/* Botó acceptar */
.cookie-banner__accept {
    background: var(--color-accent);
    color: var(--color-black-soft);
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.cookie-banner__accept:hover {
    background: var(--color-accent);
    transform: translateY(-1px);
}

.cookie-banner__accept:active {
    transform: translateY(0);
}

/* Botó rebutjar */
.cookie-banner__reject {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    border-radius: 6px;
    padding: 0.6rem 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.cookie-banner__reject:hover {
    color: var(--color-white);
    border-color: var(--color-white);
}

/* Responsiu mòbil */
@media (max-width: 640px) {
    .cookie-banner__inner {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__accept,
    .cookie-banner__reject {
        flex: 1;
        text-align: center;
    }
}

/* Compact, brand-aligned first-layer consent banner. */
.cookie-banner {
    padding: 1rem 1.5rem;
    background: rgba(255, 250, 243, .94);
    color: #171717;
    border-top: 1px solid rgba(120, 93, 75, .18);
    box-shadow: 0 -4px 20px rgba(35, 26, 20, .08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.cookie-banner__inner { max-width: 1280px; gap: 1.5rem; }
.cookie-banner__text { margin: 0; min-width: 0; font-size: .84rem; line-height: 1.5; color: #29231f; }
.cookie-banner__text a { color: #9e4d30; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions button,
.cookie-banner__accept,
.cookie-banner__reject {
    min-height: 44px;
    padding: .6rem 1rem;
    border-radius: 9px;
    font: 600 .82rem/1.2 Montserrat, sans-serif;
    cursor: pointer;
    white-space: nowrap;
}
.cookie-banner__reject { flex: 0 0 auto; background: #fffaf3; color: #803b25; border: 1px solid #b75f40; }
.cookie-banner__accept { background: var(--color-accent, #e87d52); color: #171717; border: 1px solid var(--color-accent, #e87d52); }
.cookie-banner button:focus-visible,
.cookie-banner a:focus-visible { outline: 3px solid #235fa5; outline-offset: 3px; }
@media (max-width: 800px) {
    .cookie-banner { padding: .9rem 1rem; }
    .cookie-banner__inner { display: flex; flex-direction: column; align-items: stretch; gap: .65rem; }
    .cookie-banner__text { order: 1; }
    .cookie-banner__actions { display: block; order: 2; }
    .cookie-banner__accept { width: 100%; }
    .cookie-banner__reject { order: 3; width: 100%; }
}

.cookie-banner__configure,
.cookie-preferences__actions button {
    min-height: 44px;
    padding: .6rem 1rem;
    border-radius: 9px;
    font: 600 .82rem/1.2 Montserrat, sans-serif;
    cursor: pointer;
}
.cookie-banner__configure { background: transparent; color: #29231f; border: 1px solid #b75f40; }
.cookie-banner__configure:hover { background: rgba(183,95,64,.08); }
.cookie-preferences-backdrop {
    position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center;
    padding: 1rem; background: rgba(24,20,18,.48); backdrop-filter: blur(3px);
}
.cookie-preferences {
    position: relative; width: min(100%, 570px); max-height: min(90vh, 760px); overflow: auto;
    padding: clamp(1.25rem,4vw,2rem); border-radius: 18px; background: #fffaf3; color: #211d1a;
    box-shadow: 0 20px 70px rgba(20,15,12,.24); font-family: Montserrat,sans-serif;
}
.cookie-preferences__close { position:absolute; top:.75rem; right:.85rem; width:42px; height:42px; border:0; border-radius:50%; background:transparent; color:#39312d; font-size:1.8rem; cursor:pointer; }
.cookie-preferences__eyebrow { margin:0 0 .35rem; color:#a65335; font-size:.78rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.cookie-preferences h2 { margin:.2rem 2rem .5rem 0; font-size:clamp(1.45rem,4vw,1.9rem); }
.cookie-preferences__intro { margin:0 0 1.15rem; color:#514943; font-size:.92rem; line-height:1.55; }
.cookie-preferences__row { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 0; border-top:1px solid rgba(87,69,56,.18); cursor:pointer; }
.cookie-preferences__row strong { font-size:.98rem; }
.cookie-preferences__row p { margin:.25rem 0 0; color:#665d56; font-size:.82rem; line-height:1.45; }
.cookie-preferences__always { flex:0 0 auto; color:#695c52; font-size:.75rem; font-weight:600; }
.cookie-preferences__row input { flex:0 0 auto; width:24px; height:24px; accent-color:#e87d52; cursor:pointer; }
.cookie-preferences__actions { display:flex; justify-content:space-between; gap:.75rem; padding-top:1.1rem; }
.cookie-preferences__reject { color:#803b25; border:1px solid #b75f40; background:transparent; }
.cookie-preferences__save { color:#171717; border:1px solid var(--color-accent,#e87d52); background:var(--color-accent,#e87d52); }
.cookie-preferences button:focus-visible,.cookie-preferences input:focus-visible { outline:3px solid #235fa5; outline-offset:3px; }
@media(max-width:520px){
    .cookie-banner__actions { display:grid; grid-template-columns:1fr 1fr; gap:.55rem; }
    .cookie-banner__configure,.cookie-banner__accept { width:100%; }
    .cookie-preferences__actions { flex-direction:column-reverse; }
    .cookie-preferences__actions button { width:100%; }
}
