@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&family=Josefin+Sans:wght@100;200;300;400&display=swap');

:root {
    --primary: #8b7355;
    --primary-light: #a89278;
    --primary-dark: #6d5a43;
    --dark: #1a1a1a;
    --dark-soft: #2d2d2d;
    --dark-menu: #2a2a2a;
    --text: #555555;
    --text-light: #888888;
    --border: #e0dbd4;
    --bg: #ffffff;
    --bg-alt: #f5f1eb;
    --bg-warm: #eae5dc;
    --bg-cream: #f0ebe3;
    --white: #ffffff;
    --gold: #c4a265;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-logo: 'Josefin Sans', 'Inter', -apple-system, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

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

/* ===================== HEADER ===================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 0 4vw;
}

.header--transparent {
    background: transparent;
}

.header--solid {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.header__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.header__logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header__logo img {
    height: 110px;
    width: auto;
    transition: var(--transition);
    -webkit-filter: contrast(1.3);
    filter: contrast(1.3);
}

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

.header--transparent .header__logo img {
    filter: brightness(0) invert(1) contrast(1.3);
}

.header--solid .header__logo {
    color: var(--dark);
}

.header--solid .header__logo img {
    filter: none;
}

.header__nav {
    display: none;
    gap: 0;
    align-items: center;
}

.header__link {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.header__link .chevron {
    font-size: 0.55rem;
    transition: transform 0.3s;
}

.header--transparent .header__link {
    color: rgba(255,255,255,0.9);
}

.header--solid .header__link {
    color: var(--text);
}

.header__link:hover {
    opacity: 0.7;
}

/* ===================== DROPDOWN MENUS ===================== */
.header__dropdown {
    position: relative;
}

.header__dropdown .header__link {
    cursor: pointer;
}

.header__dropdown:hover .header__link .chevron i {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--white);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1001;
}

.header__dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown__link {
    display: block;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.dropdown__link:hover {
    background: var(--bg-cream);
    color: var(--primary);
}

/* ===================== MOBILE MENU EXPANDABLE ===================== */
.mobile-menu__group {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu__group:first-child {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu__toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.2rem 0;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.mobile-menu__toggle .arrow {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    transition: transform 0.3s;
}

.mobile-menu__toggle.active .arrow i {
    transform: rotate(180deg);
}

.mobile-menu__sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.mobile-menu__toggle.active + .mobile-menu__sub {
    max-height: 500px;
}

.mobile-menu__sublink {
    display: block;
    padding: 0.7rem 0 0.7rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

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

.header__right {
    display: none;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header__search {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 8px;
    transition: var(--transition);
}

.header--transparent .header__search {
    color: rgba(255,255,255,0.9);
}

.header--solid .header__search {
    color: var(--text);
}

.header__search:hover {
    opacity: 0.7;
}

.header__cta {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.header--transparent .header__cta {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
}

.header--transparent .header__cta:hover {
    background: var(--white);
    color: var(--dark);
}

.header--solid .header__cta {
    background: var(--dark);
    color: var(--white);
    border: 1px solid var(--dark);
}

.header--solid .header__cta:hover {
    background: var(--dark-soft);
}

.header__mobile {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
    padding: 8px;
    position: absolute;
    right: 0;
}

.header__mobile span {
    display: block;
    width: 24px;
    height: 1.5px;
    transition: var(--transition);
}

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

.header--solid .header__mobile span {
    background: var(--dark);
}

.header__mobile.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
    background: var(--white);
}

.header__mobile.active span:nth-child(2) {
    opacity: 0;
}

.header__mobile.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
    background: var(--white);
}

/* ===================== MOBILE MENU OVERLAY ===================== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark-menu);
    z-index: 100002;
    flex-direction: column;
    padding: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
}

.mobile-menu__header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 110px;
    padding: 0 4vw;
    position: relative;
}

.mobile-menu__logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--white);
    display: flex;
    align-items: center;
}

.mobile-menu__logo img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.mobile-menu__close {
    position: absolute;
    left: 4vw;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu__search {
    position: absolute;
    right: 4vw;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 3rem 6vw;
    gap: 0;
}

.mobile-menu__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu__link:first-child {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu__link .arrow {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.mobile-menu__footer {
    padding: 2rem 6vw 3rem;
}

.mobile-menu__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 400;
    padding: 12px 24px;
    background: var(--bg-cream);
    color: var(--dark);
    border-radius: var(--radius-sm);
}

/* ===================== HERO ===================== */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero--short {
    height: 70vh;
    min-height: 500px;
}

.hero__video,
.hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.45) 0%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.05) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 0 4vw 8rem;
    max-width: 750px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s 0.5s forwards;
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1s 0.3s forwards;
}

.hero__text {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2.5rem;
    max-width: 450px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1s 0.7s forwards;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1s 0.9s forwards;
}

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

/* ===================== HERO FULL (Specialty pages) ===================== */
.hero-full {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 0;
}

.hero-full__media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-full__media img,
.hero-full__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-full__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(26, 26, 26, 0.55) 0%,
        rgba(26, 26, 26, 0.15) 50%,
        rgba(26, 26, 26, 0.05) 100%
    );
    z-index: 1;
}

.hero-full__content {
    position: absolute;
    bottom: 4rem;
    left: 4vw;
    z-index: 2;
    max-width: 600px;
    animation: heroFadeIn 1.2s ease-out;
}

.hero-full__indicator {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    margin-bottom: 2rem;
}

.hero-full__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    letter-spacing: 0.01em;
}

.hero-full__subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 450px;
}

/* ===================== SUB NAV (Specialty pages) ===================== */
.subnav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.subnav__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 4vw;
}

.subnav__link {
    padding: 1.4rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.subnav__link:hover,
.subnav__link.active {
    color: var(--dark);
    border-bottom-color: var(--dark);
}

.breadcrumb {
    padding: 1.2rem 4vw;
    font-size: 0.88rem;
    color: var(--text-light);
    max-width: 1200px;
    margin: 0 auto;
    letter-spacing: 0.2px;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--dark);
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 14px 28px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border-radius: var(--radius-sm);
}

.btn .arrow {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.btn:hover .arrow {
    transform: translateX(3px);
}

.btn--white {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

.btn--white:hover {
    background: rgba(255,255,255,0.85);
}

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn--outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}

.btn--dark {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

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

.btn--outline {
    background: transparent;
    color: var(--dark);
    border-color: var(--dark);
}

.btn--outline:hover {
    background: var(--dark);
    color: var(--white);
}

.btn--outline-warm {
    background: transparent;
    color: var(--dark);
    border-color: var(--border);
}

.btn--outline-warm:hover {
    border-color: var(--dark);
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

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

.btn--cream {
    background: var(--bg-cream);
    color: var(--dark);
    border-color: var(--bg-cream);
}

.btn--cream:hover {
    background: var(--bg-warm);
}

/* ===================== SECTIONS ===================== */
.section {
    padding: 7rem 4vw;
}

.section--alt {
    background: var(--bg-alt);
}

.section--warm {
    background: var(--bg-warm);
}

.section--cream {
    background: var(--bg-cream);
}

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

.section__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.section--dark .section__label {
    color: var(--gold);
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    background: linear-gradient(90deg, #8b7355 0%, #8b7355 var(--title-fill, 0%), #1a1a1a var(--title-fill, 0%), #1a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section--dark .section__title {
    background: linear-gradient(90deg, #c4a87c 0%, #c4a87c var(--title-fill, 0%), #ffffff var(--title-fill, 0%), #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section__desc {
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.8;
}

.section--dark .section__desc {
    color: rgba(255,255,255,0.7);
}

/* ===================== ABOUT ===================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about__img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
}

.about__content h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about__content p {
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 1rem;
}

/* ===================== SPECIALTIES GRID (IMR style - icons) ===================== */
.specialties-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 100%;
    margin: 0 auto;
}

.specialties-icon-grid--4 {
    max-width: 100%;
    gap: 0;
}

/* ===================== SPECIALTY LOGOS (premium icon-only) ===================== */
.spec-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.spec-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    text-align: center;
    cursor: pointer;
    position: relative;
    padding: 2rem 1rem;
}

.spec-logo__circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1.5px solid rgba(139,115,85,0.15);
    padding: 36px;
    margin-bottom: 1.8rem;
    color: var(--primary);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.5s ease,
                border-color 0.5s ease,
                color 0.4s ease;
    position: relative;
}

.spec-logo__circle::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(139,115,85,0.06);
    transition: border-color 0.5s ease, inset 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.spec-logo:hover .spec-logo__circle {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(139,115,85,0.18);
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.spec-logo:hover .spec-logo__circle::after {
    border-color: rgba(139,115,85,0.2);
    inset: -12px;
}

.spec-logo__letter {
    font-family: var(--font-logo);
    font-size: 5rem;
    font-weight: 100;
    line-height: 1;
    color: var(--primary);
    letter-spacing: 0.05em;
    user-select: none;
}
.spec-logo:hover .spec-logo__letter {
    color: #fff;
}

.spec-logo__name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.03em;
    transition: color 0.4s ease;
    position: relative;
}

.spec-logo__name::after {
    content: '';
    display: block;
    width: 0;
    height: 1.5px;
    background: var(--primary);
    margin: 0.6rem auto 0;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.spec-logo:hover .spec-logo__name {
    color: var(--primary);
}

.spec-logo:hover .spec-logo__name::after {
    width: 40px;
}

/* Keep old spec-icon for backward compat */
.spec-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    border-radius: var(--radius);
}

.spec-icon:hover {
    background: var(--white);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.spec-icon:hover .spec-icon__icon {
    color: var(--primary);
}

.spec-icon__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    margin-bottom: 1.6rem;
    transition: color 0.4s ease;
    font-size: 2.2rem;
}

.spec-icon__icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.2;
}

.spec-icon__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.spec-grid-footer {
    text-align: center;
    margin-top: 3rem;
}

/* ===================== OLD SPECIALTIES (image cards) ===================== */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

.spec-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    background: var(--dark);
    border-radius: var(--radius);
}

.spec-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s;
    opacity: 0.7;
}

.spec-card:hover .spec-card__img {
    transform: scale(1.05);
    opacity: 0.5;
}

.spec-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    z-index: 2;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.spec-card__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.spec-card__text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    font-weight: 300;
    margin-bottom: 1rem;
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}

.spec-card:hover .spec-card__text {
    transform: translateY(0);
    opacity: 1;
}

.spec-card__link {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spec-card__link::after {
    content: '\2192';
    transition: transform 0.3s;
}

.spec-card:hover .spec-card__link::after {
    transform: translateX(5px);
}

/* ===================== POR QUE INNOVA INFOGRAPHIC ===================== */
.porqueinnova__desc {
    color: var(--dark);
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
    text-align: center;
}

.infographic {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.5rem 0;
    position: relative;
}

.infographic__img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .infographic {
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* ===================== BENEFITS ===================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.benefit {
    padding: 3rem 2rem;
    text-align: center;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.benefit:hover {
    background: rgba(139, 115, 85, 0.05);
}

.benefit__icon {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.benefit__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.benefit__text {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================== CTA ===================== */
.cta-section {
    padding: 5rem 4vw;
    text-align: center;
    background: var(--primary);
    color: var(--white);
}

.cta-section h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.cta-section p {
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.85;
}

/* ===================== TEAM ===================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.team-card {
    cursor: pointer;
    perspective: 1000px;
}

.team-card__inner {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.team-card.flipped .team-card__inner {
    transform: rotateY(180deg);
}

.team-card__front,
.team-card__back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
    border-radius: var(--radius);
}

.team-card__front {
    background: var(--bg-warm);
}

.team-card__front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: var(--transition);
}

.team-card:hover .team-card__front img {
    opacity: 0.75;
    transform: scale(1.03);
}

.team-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
}

.team-card__name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
}

.team-card__role {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-top: 0.3rem;
}

.team-card__back {
    background: var(--dark);
    color: var(--white);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}

.team-card__back h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 0.8rem;
    flex-shrink: 0;
}

.team-card__back p {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.2rem;
}

.team-card__back .btn {
    flex-shrink: 0;
    align-self: flex-start;
}

/* ===================== CLINIC SLIDER ===================== */
.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider__track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider__slide {
    min-width: 100%;
    height: 550px;
}

.slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.slider__nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider__btn {
    pointer-events: all;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    border-radius: 0;
    padding: 0;
}

.slider__btn::before {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    border-left: 2px solid rgba(255,255,255,0.75);
    border-bottom: 2px solid rgba(255,255,255,0.75);
    transform: rotate(45deg);
    transition: var(--transition);
}

.slider__btn--next::before {
    transform: rotate(-135deg);
}

.slider__btn:hover::before {
    border-color: var(--white);
}

.slider__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slider__dot.active {
    background: var(--primary);
}

/* ===================== REVIEWS ===================== */
.reviews-container {
    overflow: hidden;
    position: relative;
    background: var(--primary);
    border-radius: var(--radius);
    padding: 4rem 5rem;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.review {
    min-width: 100%;
    text-align: center;
    padding: 0 1rem;
}

.review__label {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2rem;
}

.review__stars {
    display: none;
}

.review__text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.7;
    color: var(--white);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.review__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.8rem;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    background: none;
    cursor: pointer;
}

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

.review__author {
    display: none;
}

.reviews__nav {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.reviews__btn {
    pointer-events: all;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    padding: 0;
}

.reviews__btn::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-left: 2px solid rgba(255,255,255,0.6);
    border-bottom: 2px solid rgba(255,255,255,0.6);
    transform: rotate(45deg);
    transition: var(--transition);
}

.reviews__btn--next::before {
    transform: rotate(-135deg);
}

.reviews__btn:hover::before {
    border-color: var(--white);
}

.reviews__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.reviews__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.reviews__dot.active {
    background: var(--white);
}

/* ===================== FAQ ===================== */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid var(--border);
}

.faq__question {
    width: 100%;
    padding: 1.8rem 0;
    text-align: left;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.faq__question:hover {
    color: var(--primary);
}

.faq__icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__item.active .faq__answer {
    max-height: 300px;
    padding-bottom: 1.8rem;
}

.faq__answer p {
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-light);
}

/* ===================== DOCTOR PROFILE ===================== */
.doctor-profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.doctor-profile__img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
}

.doctor-profile__content h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.doctor-profile__content .doctor-role {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.doctor-profile__content p {
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.section--dark .doctor-profile__content h3 {
    color: var(--white);
}

.section--dark .doctor-profile__content .doctor-role {
    color: var(--gold);
}

.section--dark .doctor-profile__content p {
    color: rgba(255,255,255,0.75);
}

/* ===================== PATHOLOGIES ===================== */
.pathologies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
}

.pathology {
    padding: 2.5rem 2rem;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border-radius: var(--radius-sm);
}

.pathology:hover {
    background: var(--bg-alt);
}

.pathology__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.pathology__desc {
    display: none;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
    margin-top: 1rem;
}

.pathology.active .pathology__desc {
    display: block;
}

/* ===================== SERVICES LIST ===================== */
.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
}

.service-item {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.service-item:hover {
    background: var(--bg-alt);
}

.service-item__icon {
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.service-item__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--dark);
}

/* ===================== FOOTER ===================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 5rem 4vw 2rem;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
}

.footer__brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.footer__logo-img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer__text {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer__heading {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
}

.footer__link {
    display: block;
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

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

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-icon {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
    border-radius: var(--radius-sm);
}

.footer__social-icon:hover {
    background: var(--white);
    color: var(--dark);
}

.footer__legal {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__legal-link {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer__legal-link:hover {
    color: rgba(255,255,255,0.7);
}
.footer__bottom {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    padding-top: 1rem;
}

/* ===================== CHAT BUTTON (dark circle) ===================== */
.chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: var(--dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 9998;
    transition: var(--transition);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    border: none;
    cursor: pointer;
}

.chat-btn:hover {
    transform: scale(1.08);
    background: var(--dark-soft);
}

.chat-btn.active {
    background: transparent;
    box-shadow: none;
    z-index: 10001;
}

.chat-btn.active i::before {
    content: "\f00d";
}

/* ===================== CHAT OVERLAY (IMR style) ===================== */
.chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(51, 47, 44, 0.97);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.chat-overlay.active {
    opacity: 1;
    visibility: visible;
}

.chat-overlay__title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 3rem;
    text-align: center;
    padding: 0 2rem;
}

.chat-overlay__options {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
}

.chat-overlay__link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    transition: color 0.2s;
    padding: 0.4rem 0;
}

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

.chat-overlay__link .arrow {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
    .chat-btn {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
        bottom: 20px;
        right: 20px;
    }

    .chat-overlay__title {
        font-size: 2rem;
    }

    .chat-overlay__link {
        font-size: 1rem;
    }
}

/* ===================== WHATSAPP FLOAT (legacy) ===================== */
.whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    background: var(--dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    transition: var(--transition);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.whatsapp:hover {
    transform: scale(1.08);
    background: var(--dark-soft);
}

/* ===================== STATS COUNTER ===================== */
.stats-section {
    padding: 4rem 4vw;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(139,115,85,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(139,115,85,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.stats__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
    flex: 1;
    padding: 1rem;
}

.stat__number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    font-weight: 300;
    color: var(--white);
    display: block;
    line-height: 1;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.stat__label {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

.stat__divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.15), transparent);
    flex-shrink: 0;
}

/* ===================== MARQUEE ===================== */
.marquee {
    overflow: hidden;
    padding: 1.8rem 0;
    background: var(--bg-cream);
    border-top: 1px solid rgba(139,115,85,0.08);
    border-bottom: 1px solid rgba(139,115,85,0.08);
}

.marquee__track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}

.marquee__item {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 300;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 2rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.marquee__dot {
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================== MAGNETIC BUTTON ===================== */
.btn--magnetic {
    position: relative;
    transition: transform 0.25s cubic-bezier(0.33, 1, 0.68, 1), background 0.4s, border-color 0.4s, color 0.4s;
    will-change: transform;
}

/* ===================== CURSOR TRAIL ===================== */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out, opacity 0.3s;
    opacity: 0;
    will-change: left, top;
    contain: layout style;
}

.cursor-dot.visible {
    opacity: 1;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(139,115,85,0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: width 0.35s cubic-bezier(0.33, 1, 0.68, 1),
                height 0.35s cubic-bezier(0.33, 1, 0.68, 1),
                border-color 0.35s,
                opacity 0.3s;
    transform: translate(-50%, -50%);
    opacity: 0;
    will-change: left, top;
    contain: layout style;
}

.cursor-ring.visible {
    opacity: 1;
}

.cursor-ring.hover {
    width: 56px;
    height: 56px;
    border-color: var(--primary);
}

/* ===================== SECTION DECORATIVE LINE ===================== */
.section__header::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: var(--primary);
    margin: 1.5rem auto 0;
    opacity: 0.5;
}

.section--dark .section__header::after {
    background: var(--gold);
    opacity: 0.4;
}

/* ===================== ANIMATIONS ===================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Staggered reveal for grid children */
.stagger-reveal > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-reveal.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-reveal.visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
.stagger-reveal.visible > *:nth-child(3) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.stagger-reveal.visible > *:nth-child(4) { transition-delay: 0.36s; opacity: 1; transform: translateY(0); }
.stagger-reveal.visible > *:nth-child(5) { transition-delay: 0.48s; opacity: 1; transform: translateY(0); }
.stagger-reveal.visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* Parallax slow scroll */
.parallax-slow {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ===================== PRELOADER ===================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__inner {
    text-align: center;
}

.preloader__logo {
    height: 120px;
    filter: brightness(0) invert(1);
    opacity: 0;
    transform: translateY(20px);
    animation: preloaderFadeIn 0.8s ease 0.2s forwards;
}

.preloader__bar {
    width: 180px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin: 1.5rem auto 0;
    overflow: hidden;
}

.preloader__progress {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

/* ===================== SCROLL PROGRESS ===================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #c4a87c);
    z-index: 100000;
    will-change: width;
    contain: layout style;
}

/* ===================== FILM GRAIN ===================== */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99990;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    contain: strict;
}

/* ===================== HERO TEXT SPLIT ===================== */
.hero__title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(-15deg);
    animation: wordReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__title .word:nth-child(1) { animation-delay: 0.6s; }
.hero__title .word:nth-child(2) { animation-delay: 0.72s; }
.hero__title .word:nth-child(3) { animation-delay: 0.84s; }
.hero__title .word:nth-child(4) { animation-delay: 0.96s; }
.hero__title .word:nth-child(5) { animation-delay: 1.08s; }
.hero__title .word:nth-child(6) { animation-delay: 1.2s; }
.hero__title .word:nth-child(7) { animation-delay: 1.32s; }

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.hero__subtitle {
    border-right: 2px solid rgba(255,255,255,0.6);
    animation: heroSubFade 0.6s 2.2s ease forwards, blinkCaret 0.7s 2.2s step-end infinite;
    opacity: 0;
    white-space: normal;
    min-height: 1.6em;
}

.hero__subtitle.typed {
    border-right-color: transparent;
    animation: none;
    opacity: 1;
}

@keyframes heroSubFade {
    to { opacity: 1; }
}

@keyframes blinkCaret {
    50% { border-color: transparent; }
}

/* ===================== 3D TILT ===================== */
.tilt-3d {
    transform-style: preserve-3d;
    perspective: 800px;
    transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
}

/* ===================== CLIP REVEAL ===================== */
.clip-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.clip-reveal.visible {
    clip-path: inset(0 0 0 0);
}

.gallery-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== MOUSE GLOW ===================== */
.mouse-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,115,85,0.12) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s;
}

.stats-section:hover .mouse-glow {
    opacity: 1;
}

/* ===================== HORIZONTAL SCROLL GALLERY ===================== */
.hscroll-gallery {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 4vw 2rem;
    cursor: grab;
}

.hscroll-gallery:active {
    cursor: grabbing;
}

.hscroll-gallery::-webkit-scrollbar {
    display: none;
}

.hscroll-gallery__track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    padding: 0.5rem 0;
}

.hscroll-gallery__item {
    position: relative;
    width: 420px;
    height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.hscroll-gallery__item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.hscroll-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.hscroll-gallery__item:hover img {
    transform: scale(1.1);
}

.hscroll-gallery__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.5rem 1.2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: white;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.hscroll-gallery__hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    padding-top: 1.5rem;
    color: var(--primary);
    opacity: 0.5;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 0.8; transform: translateX(5px); }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .marquee__track { animation: none; }
    .grain-overlay { display: none; }
    .cursor-dot, .cursor-ring { display: none !important; }
    .reveal { transition-duration: 0.01s; opacity: 1; transform: none; }
    .stagger-reveal > * { transition-duration: 0.01s; opacity: 1; transform: none; }
    .hero__title .word { animation: none; opacity: 1; transform: none; }
    .hero__subtitle { animation: none; opacity: 1; border-right: none; }
    .clip-reveal { clip-path: none; transition-duration: 0.01s; }
    .gallery-fade { opacity: 1; transform: none; transition-duration: 0.01s; }
    .preloader { display: none; }
    .hscroll-gallery__hint { animation: none; }
    .mouse-glow { display: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .specialties-icon-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .specialties-icon-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .spec-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pathologies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__logo img {
        height: 90px;
    }

    .hero {
        min-height: 100svh;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    .hero__content {
        padding: 0 5vw 6rem;
    }

    .section {
        padding: 3.5rem 5vw;
    }

    .section__title {
        font-size: 1.8rem;
    }

    .stats-section {
        padding: 3rem 5vw;
    }

    .stats__inner {
        flex-wrap: wrap;
        gap: 0;
        justify-content: center;
    }

    .stat {
        flex: 0 0 50%;
        padding: 1.2rem 0.5rem;
    }

    .stat__divider {
        display: none;
    }

    .stat__number {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .stat__label {
        font-size: 0.68rem;
        letter-spacing: 1px;
    }

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about__img {
        height: 300px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .benefit {
        padding: 2rem 1.2rem;
    }

    .benefit__title {
        font-size: 1.1rem;
    }

    .benefit__text {
        font-size: 0.8rem;
    }

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

    .specialties-icon-grid,
    .specialties-icon-grid--4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .spec-icon__title {
        font-size: 0.9rem;
    }

    .spec-card {
        aspect-ratio: 16/9;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .team-card__info {
        padding: 1rem;
    }

    .team-card__name {
        font-size: 1rem;
    }

    .team-card__role {
        font-size: 0.65rem;
    }

    .team-card__back {
        padding: 1.2rem;
    }

    .team-card__back h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .team-card__back p {
        font-size: 0.75rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }

    .team-card__back .btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .pathologies-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .doctor-profile {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .doctor-profile__img {
        height: 300px;
    }

    .hscroll-gallery__item {
        width: 280px;
        height: 210px;
    }

    .grain-overlay {
        display: none;
    }

    .reviews-container {
        padding: 2rem 1rem;
    }

    .review__label {
        font-size: 0.65rem;
        letter-spacing: 2px;
        margin-bottom: 1rem;
    }

    .review__text {
        font-size: 1.1rem;
    }

    .reviews__btn {
        width: 36px;
        height: 36px;
    }

    .reviews__btn::before {
        width: 10px;
        height: 10px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .btn {
        font-size: 0.85rem;
    }

    .hero-full {
        height: 70vh;
        min-height: 400px;
    }

    .hero-full__content {
        bottom: 3rem;
        left: 5vw;
    }

    .hero-full__title {
        font-size: 2rem;
    }

    .hero-full__media {
        height: 100%;
    }

    .subnav {
        top: 60px;
    }

    .subnav__inner {
        padding: 0 3vw;
        gap: 0;
    }

    .subnav__link {
        padding: 0.8rem 0.8rem;
        font-size: 0.75rem;
    }

    .cta-section {
        padding: 3rem 5vw;
    }

    .cta-section h3 {
        font-size: 1.5rem;
    }

    .mobile-menu__nav {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.8rem 5vw;
    }

    .slider__slide {
        height: 300px;
    }

    .slider__btn {
        width: 36px;
        height: 36px;
    }

    .slider__btn::before {
        width: 10px;
        height: 10px;
    }

    .faq__question {
        font-size: 1.1rem;
        padding: 1.4rem 0;
    }

    .faq__icon {
        font-size: 1.2rem;
    }

    .about__content h3 {
        font-size: 1.6rem;
    }

    .spec-card__content {
        padding: 1.5rem;
    }

    .spec-card__title {
        font-size: 1.3rem;
    }

    .doctor-profile__content h3 {
        font-size: 1.8rem;
    }

    .spec-logo__circle {
        width: 140px;
        height: 140px;
        padding: 28px;
        margin-bottom: 1.2rem;
    }

    .spec-logo__name {
        font-size: 1rem;
    }

    .spec-logo {
        padding: 1rem 0.5rem;
    }

    .footer__title {
        font-size: 1rem;
    }

    .mobile-menu__header {
        height: 90px;
    }

    .mobile-menu__logo img {
        height: 65px;
    }
}

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

    .hero {
        min-height: 100svh;
    }

    .hero__content {
        padding: 0 5vw 4rem;
    }

    .hero__subtitle {
        font-size: 0.85rem;
    }

    .hero__actions .btn {
        font-size: 0.78rem;
        padding: 11px 20px;
    }

    .section__title {
        font-size: 1.5rem;
    }

    .section__desc {
        font-size: 0.85rem;
    }

    .section__label {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .section__header {
        margin-bottom: 2.5rem;
    }

    .header__logo img {
        height: 80px;
    }

    .specialties-icon-grid,
    .specialties-icon-grid--4 {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .spec-logos {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        max-width: 100%;
    }

    .spec-logo {
        padding: 0.8rem 0.3rem;
    }

    .spec-logo__circle {
        width: 140px;
        height: 140px;
        padding: 28px;
        margin-bottom: 1rem;
    }

    .spec-logo__name {
        font-size: 0.95rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        border: none;
        gap: 0;
    }

    .benefit {
        padding: 1.5rem 1rem;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .benefit:first-child {
        border-top: 1px solid var(--border);
    }

    .spec-icon__icon {
        width: 48px;
        height: 48px;
    }

    .spec-icon {
        padding: 2rem 1rem;
    }

    .hero-full__content {
        bottom: 2rem;
        left: 5vw;
    }

    .hero-full__title {
        font-size: 1.6rem;
    }

    .hero-full__media {
        height: 100%;
    }

    .slider__slide {
        height: 220px;
    }

    .reviews-container {
        padding: 1.5rem 0.8rem;
    }

    .review__text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .review__cta {
        font-size: 0.75rem;
        padding: 0.5rem 1.2rem;
    }

    .reviews__dots {
        margin-top: 1.2rem;
    }

    .hscroll-gallery__item {
        width: 240px;
        height: 180px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .team-card__inner {
        aspect-ratio: 3/4;
        min-height: 180px;
    }

    .team-card__info {
        padding: 0.6rem;
    }

    .team-card__name {
        font-size: 0.8rem;
    }

    .team-card__role {
        font-size: 0.55rem;
    }

    .team-card__back {
        padding: 0.8rem;
    }

    .team-card__back h3 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .team-card__back p {
        font-size: 0.65rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .team-card__back .btn {
        font-size: 0.65rem;
        padding: 0.35rem 0.75rem;
    }

    .faq__question {
        font-size: 1rem;
    }

    .about__content h3 {
        font-size: 1.4rem;
    }

    .about__content p {
        font-size: 0.88rem;
    }

    .stats-section {
        padding: 2.5rem 4vw;
    }

    .stat {
        flex: 0 0 50%;
        padding: 1rem 0.3rem;
    }

    .stat__number {
        font-size: 1.6rem;
    }

    .stat__label {
        font-size: 0.6rem;
        letter-spacing: 0.8px;
    }

    .spec-logo__circle i {
        font-size: 3.5rem;
    }

    .cta-section {
        padding: 2.5rem 5vw;
    }

    .cta-section p {
        font-size: 0.85rem;
    }

    .doctor-profile__content h3 {
        font-size: 1.5rem;
    }

    .doctor-profile__img {
        height: 250px;
    }

    .mobile-menu__nav {
        padding: 2rem 6vw;
    }

    .mobile-menu__link {
        font-size: 1.2rem;
        padding: 1rem 0;
    }

    .mobile-menu__toggle {
        font-size: 1.2rem;
        padding: 1rem 0;
    }

    .mobile-menu__sublink {
        font-size: 0.85rem;
    }

    .mobile-menu__header {
        height: 80px;
    }

    .mobile-menu__logo img {
        height: 55px;
    }
}

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

    .hero__subtitle {
        font-size: 0.8rem;
    }

    .hero__content {
        padding: 0 4vw 3.5rem;
    }

    .section {
        padding: 2.5rem 4vw;
    }

    .section__title {
        font-size: 1.3rem;
    }

    .header__logo img {
        height: 70px;
    }

    .spec-logos {
        gap: 0.8rem;
    }

    .spec-logo__circle {
        width: 110px;
        height: 110px;
        padding: 22px;
    }

    .spec-logo__name {
        font-size: 0.85rem;
    }

    .slider__slide {
        height: 180px;
    }

    .review__text {
        font-size: 0.85rem;
    }

    .cta-section h3 {
        font-size: 1.3rem;
    }

    .benefit__title {
        font-size: 1rem;
    }

    .team-grid {
        gap: 0.5rem;
    }

    .team-card__inner {
        min-height: 150px;
    }

    .team-card__name {
        font-size: 0.7rem;
    }

    .team-card__role {
        font-size: 0.5rem;
    }

    .team-card__back h3 {
        font-size: 0.75rem;
    }

    .team-card__back p {
        font-size: 0.6rem;
        line-height: 1.3;
    }

    .stat {
        padding: 0.8rem 0.2rem;
    }

    .stat__number {
        font-size: 1.3rem;
    }

    .stat__label {
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }

    .spec-logo__circle i {
        font-size: 2.8rem;
    }

    .whatsapp-float {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        bottom: 1rem;
        left: 1rem;
    }

    .back-to-top {
        width: 38px;
        height: 38px;
        bottom: 4rem;
        left: 1rem;
    }

    .cookie-banner__text {
        font-size: 0.75rem;
    }

    .cookie-banner__btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 900;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}
@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===================== BACK TO TOP ===================== */
.back-to-top {

    position: fixed;
    bottom: 5.5rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary);
}

/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.97);
    backdrop-filter: blur(20px);
    color: rgba(255,255,255,0.85);
    padding: 1.5rem 4vw;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 100001;
    border-top: 1px solid rgba(255,255,255,0.06);
    animation: cookieSlideUp 0.5s ease-out;
}
.cookie-banner.active {
    display: flex;
}
@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
    font-size: 0.82rem;
    line-height: 1.6;
    flex: 1;
}
.cookie-banner__text a {
    color: var(--gold);
    text-decoration: underline;
}
.cookie-banner__actions {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}
.cookie-banner__btn {
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.cookie-banner__btn--accept {
    background: var(--primary);
    color: var(--white);
}
.cookie-banner__btn--accept:hover {
    background: var(--primary-dark);
}
.cookie-banner__btn--reject {
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.2);
}
.cookie-banner__btn--reject:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

/* ===================== LAZY LOAD ===================== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded {
    opacity: 1;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 5vw;
        gap: 1rem;
    }
    .whatsapp-float {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    .back-to-top {

        bottom: 5rem;
        left: 1rem;
        width: 42px;
        height: 42px;
    }
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox__img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    cursor: default;
}
.lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.8rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s;
}
.lightbox__close:hover { opacity: 1; }
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
}
.lang-switcher__btn {
    background: none;
    border: 1px solid transparent;
    color: inherit;
    font-size: 0.72rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 3px 5px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s, border-color 0.2s;
    text-transform: uppercase;
    line-height: 1;
}
.lang-switcher__btn:hover { opacity: 0.9; border-color: currentColor; }
.lang-switcher__btn.active { opacity: 1; border-color: currentColor; font-weight: 700; }
.lang-switcher__btn + .lang-switcher__btn::before { content: ''; }
.header--transparent .lang-switcher__btn { color: #fff; }
.header--scrolled .lang-switcher__btn { color: var(--dark); }
.header:not(.header--transparent) .lang-switcher__btn { color: var(--dark); }
.mobile-menu .lang-switcher {
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.mobile-menu .lang-switcher__btn { color: #fff; font-size: 0.8rem; padding: 4px 7px; }
@media (max-width: 768px) {
    .lang-switcher { gap: 1px; }
    .lang-switcher__btn { font-size: 0.68rem; padding: 2px 4px; }
}
.header__inner .lang-switcher {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
@media (max-width: 1024px) {
    .header__inner .lang-switcher {
        right: 55px;
    }
}
@media (max-width: 768px) {
    .header__inner .lang-switcher {
        display: none;
    }
}
