/* ============================================================
   One Point Diagnostic — Components
   header / buttons / cards / hero / stats / cta / footer / modal
   ============================================================ */

/* ---------- Motion vocabulary ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(24px, -18px) scale(1.08); }
    100% { transform: translate(-16px, 12px) scale(.96); }
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.7rem;
    border-radius: var(--r-full);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
    will-change: transform;
}

/* shine sweep across buttons on hover */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 45%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .4), transparent);
    transform: skewX(-20deg);
    transition: left .55s var(--ease);
    pointer-events: none;
}

.btn:hover::after { left: 130%; }

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(30, 58, 138, .5);
}

.btn--primary:hover { box-shadow: 0 16px 32px -8px rgba(30, 58, 138, .55); }

.btn--gold {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    color: var(--navy-950);
    box-shadow: 0 10px 24px -8px rgba(201, 162, 39, .55);
}

.btn--gold:hover { box-shadow: 0 16px 32px -8px rgba(201, 162, 39, .6); }

.btn--ghost {
    background: transparent;
    color: var(--navy-700);
    border: 2px solid var(--navy-100);
}

.btn--ghost:hover { border-color: var(--navy-500); background: var(--navy-50); }

.btn--whatsapp { background: var(--whatsapp); color: #fff; }

.btn--sm { padding: .55rem 1.05rem; font-size: .9rem; }

.btn .icon { width: 1.15em; height: 1.15em; }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: 0 50%;
    pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur), box-shadow var(--dur);
}

.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand img { height: 48px; width: auto; }

.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.12rem;
    line-height: 1.1;
    color: var(--navy-800);
}

.brand-name .brand-point { color: var(--emerald-600); }

.brand-tag { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

.nav-desktop { display: none; align-items: center; gap: 1.7rem; }

.nav-desktop a:not(.btn) {
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink-2);
    padding-block: .4rem;
    border-bottom: 2px solid transparent;
    transition: color var(--dur), border-color var(--dur);
}

.nav-desktop a:not(.btn):hover,
.nav-desktop a.is-active { color: var(--navy-700); border-color: var(--gold-500); }

.header-mobile-actions { display: flex; align-items: center; gap: .6rem; }

.theme-toggle {
    display: inline-flex;
    padding: .5rem;
    color: var(--navy-800);
    border-radius: var(--r-full);
    transition: transform var(--dur) var(--ease);
}

.theme-toggle:hover { transform: rotate(15deg) scale(1.1); }
.theme-toggle .icon-sun { display: none; }

.nav-toggle { display: inline-flex; padding: .5rem; color: var(--navy-800); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-mobile {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 1rem clamp(1rem, 4vw, 2rem) 1.4rem;
}

.nav-mobile.is-open { display: block; }

.nav-mobile > a { display: block; padding: .85rem .2rem; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line); }

.nav-mobile-cta { display: grid; gap: .7rem; margin-top: 1.1rem; }
.nav-mobile-cta .btn { width: 100%; }

@media (min-width: 1024px) {
    .nav-desktop { display: flex; }
    .header-mobile-actions { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(58% 70% at 82% 20%, var(--gold-50) 0%, transparent 60%),
        radial-gradient(50% 62% at 12% 82%, var(--navy-50) 0%, transparent 60%),
        var(--bg);
}

.hero .container {
    display: grid;
    gap: 3rem;
    align-items: center;
    padding-block: clamp(3.5rem, 9vw, 7rem);
}

@media (min-width: 900px) {
    .hero .container { grid-template-columns: 1.05fr .95fr; }
}

/* Staggered entrance on load */
.hero .eyebrow,
.hero h1,
.hero .lede,
.hero .hero-ctas,
.hero .hero-trust,
.hero .hero-visual {
    animation: fadeUp .8s var(--ease) backwards;
}

.hero h1 { animation-delay: .12s; }
.hero .lede { animation-delay: .24s; }
.hero .hero-ctas { animation-delay: .36s; }
.hero .hero-trust { animation-delay: .5s; }
.hero .hero-visual { animation-duration: 1s; animation-delay: .3s; }

.hero h1 { margin: 1.1rem 0 1.1rem; }
.hero h1 .accent { color: var(--gold-600); }
.hero .lede { font-size: 1.12rem; color: var(--ink-3); max-width: 34rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

.hero-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2rem; padding: 0; list-style: none; }

.hero-trust li { display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.hero-trust .icon { width: 18px; height: 18px; color: var(--gold-600); }

/* Hero visual: 3D canvas layered over a CSS fallback */
.hero-visual { position: relative; min-height: 340px; }

.hero-visual canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* decorative — never block touch scrolling */
}

/* Spline embed (used when a published viewer URL is configured) */
.hero-visual .spline-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    z-index: 1;
}

@media (max-width: 767px) {
    /* touch devices: page scroll wins over scene interaction */
    .hero-visual .spline-frame { pointer-events: none; }
}

.hero-art {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.hero-art .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .9;
}

.hero-art .orb--1 { width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, var(--navy-100), transparent 70%); top: 6%; left: 8%; animation: drift 14s ease-in-out infinite alternate; }
.hero-art .orb--2 { width: 300px; height: 300px; background: radial-gradient(circle at 60% 40%, var(--gold-100), transparent 70%); bottom: 0; right: 4%; animation: drift 18s ease-in-out infinite alternate-reverse; }

.hero-card {
    position: relative;
    z-index: 1;
    animation: floatY 7s ease-in-out infinite;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.4rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 330px;
}

.hero-card .icon { width: 40px; height: 40px; color: var(--gold-600); flex-shrink: 0; }
.hero-card strong { font-family: var(--font-display); color: var(--ink); display: block; }
.hero-card span { font-size: .88rem; color: var(--ink-3); }

/* ---------- Marquee ticker ---------- */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    padding-block: .95rem;
    border-block: 1px solid var(--line);
    background: var(--bg-soft);
}

.marquee-track {
    display: inline-flex;
    animation: marquee 32s linear infinite;
    will-change: transform;
}

.marquee-track > span {
    display: inline-flex;
    align-items: center;
    gap: 2.4rem;
    padding-right: 2.4rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.marquee-track .tick { color: var(--gold-500); font-style: normal; }

.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--4 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-100);
}

.card .card-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--navy-50), var(--gold-100));
    color: var(--navy-700);
    margin-bottom: 1.1rem;
    transition: transform .45s var(--ease);
}

.card:hover .card-icon { transform: translateY(-5px) rotate(-5deg) scale(1.06); }

.card .card-icon .icon { width: 30px; height: 30px; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .95rem; color: var(--ink-3); }

/* ---------- Stats band ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
    text-align: center;
    padding: 1.6rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}

.stat .stat-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    color: var(--navy-700);
}

.stat .stat-value .suffix { color: var(--gold-600); }
.stat .stat-label { font-size: .9rem; color: var(--ink-3); font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--navy-950), var(--navy-700) 60%, var(--navy-500));
    border: 1px solid rgba(201, 162, 39, .4);
    border-radius: var(--r-lg);
    color: #fff;
    padding: clamp(2.2rem, 6vw, 3.8rem);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: rgba(255, 255, 255, .82); max-width: 40rem; margin-inline: auto; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-950);
    color: #cbd5e6;
    padding: clamp(3rem, 7vw, 4.5rem) 0 1.5rem;
    margin-top: clamp(3rem, 8vw, 5rem);
}

.footer-grid { display: grid; gap: 2.2rem; margin-bottom: 2.5rem; }

@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }

.site-footer h3 {
    color: #fff;
    font-size: 1rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.site-footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #cbd5e6; transition: color var(--dur); }
.site-footer a:hover { color: var(--gold-400); }

.footer-brand p { font-size: .92rem; margin-top: .8rem; max-width: 30ch; }
.footer-brand .brand-name { color: #fff; }

.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--gold-400); margin-top: .25rem; flex-shrink: 0; }

.footer-social { display: flex; gap: .7rem; margin-top: 1.1rem; }

.footer-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, .08);
    transition: background var(--dur), transform var(--dur);
}

.footer-social a:hover { background: var(--gold-500); color: var(--navy-950); transform: translateY(-2px); }
.footer-social .icon { width: 18px; height: 18px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1.6rem;
    justify-content: space-between;
    font-size: .88rem;
    color: #94a3c4;
}

/* ---------- Booking modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(10, 21, 51, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.modal[hidden] { display: none; }

.modal-card {
    position: relative;
    width: min(430px, 100%);
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.2rem 1.9rem 1.9rem;
}

.modal-close {
    position: absolute;
    top: .9rem;
    right: .9rem;
    padding: .45rem;
    border-radius: var(--r-full);
    color: var(--ink-3);
    transition: color var(--dur), transform var(--dur);
}

.modal-close:hover { color: var(--ink); transform: rotate(90deg); }

.modal-card h2 { font-size: 1.4rem; text-align: center; }
.modal-card .modal-sub { text-align: center; color: var(--ink-3); font-size: .95rem; margin: .5rem 0 1.4rem; }

.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }

.field input {
    font: inherit;
    padding: .8rem 1rem;
    border: 2px solid var(--line);
    border-radius: var(--r-sm);
    transition: border-color var(--dur);
}

.field input:focus { outline: none; border-color: var(--gold-500); }

.modal-note { font-size: .8rem; color: var(--ink-3); text-align: center; margin-top: .9rem; }

/* ---------- Subpage hero ---------- */
.page-hero {
    background:
        radial-gradient(50% 90% at 88% 0%, var(--gold-50) 0%, transparent 60%),
        radial-gradient(55% 90% at 5% 100%, var(--navy-50) 0%, transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
    border-bottom: 1px solid var(--line);
    padding-block: clamp(2.6rem, 6vw, 4.5rem);
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    color: var(--navy-900);
    animation: fadeUp .7s var(--ease) backwards;
}

.page-hero p {
    color: var(--ink-3);
    max-width: 620px;
    margin: .8rem auto 0;
    font-size: 1.06rem;
    animation: fadeUp .7s var(--ease) .12s backwards;
}

.page-hero .eyebrow { margin-bottom: 1rem; animation: fadeUp .7s var(--ease) backwards; }

/* ---------- FAQ accordion ---------- */
.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-item + .faq-item { margin-top: .9rem; }

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    padding: 1.15rem 1.4rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    transition: color var(--dur);
}

.faq-q:hover { color: var(--navy-700); }

.faq-q .icon {
    flex-shrink: 0;
    color: var(--gold-600);
    transition: transform .35s var(--ease);
}

.faq-q[aria-expanded="true"] .icon { transform: rotate(45deg); }

.faq-a {
    padding: 0 1.4rem 1.25rem;
    color: var(--ink-3);
}

.faq-a[hidden] { display: none; }

/* ---------- Testimonials ---------- */
.testimonial {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.9rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.testimonial .stars { color: var(--gold-500); letter-spacing: .15em; }
.testimonial blockquote { margin: 0; font-size: 1.02rem; color: var(--ink-2); }

.testimonial .who { display: flex; align-items: center; gap: .8rem; }

.testimonial .who .avatar {
    width: 46px;
    height: 46px;
    border-radius: var(--r-full);
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
    color: var(--gold-400);
    font-family: var(--font-display);
    font-weight: 800;
}

.testimonial .who strong { color: var(--ink); font-family: var(--font-display); }
.testimonial .who span { display: block; font-size: .85rem; color: var(--ink-3); }

/* ---------- Tests catalog ---------- */
.tests-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-bottom: 1.6rem;
}

.tests-search {
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: var(--r-full);
    padding: .65rem 1.2rem;
    transition: border-color var(--dur);
}

.tests-search:focus-within { border-color: var(--gold-500); }
.tests-search .icon { color: var(--ink-3); flex-shrink: 0; }

.tests-search input {
    border: 0;
    outline: none;
    font: inherit;
    width: 100%;
    background: transparent;
}

.test-group h2 {
    font-size: 1.15rem;
    color: var(--navy-800);
    margin: 2.2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.test-group h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.test-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem 1.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: .9rem 1.2rem;
    margin-bottom: .6rem;
    transition: border-color var(--dur), box-shadow var(--dur);
}

.test-row:hover { border-color: var(--gold-100); box-shadow: var(--shadow-md); }

.test-row .t-name { font-weight: 600; color: var(--ink); flex: 1 1 220px; }
.test-row .t-meta { font-size: .85rem; color: var(--ink-3); flex: 2 1 240px; }

.test-row .t-cta {
    font-size: .85rem;
    font-weight: 700;
    color: var(--emerald-600);
    white-space: nowrap;
}

.test-row .t-cta:hover { text-decoration: underline; }

.tests-empty { text-align: center; color: var(--ink-3); padding: 2.5rem 0; }
.tests-empty[hidden] { display: none; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 1.6rem; }

@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }

.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.8rem;
}

.contact-card ul { list-style: none; padding: 0; display: grid; gap: 1.1rem; margin-top: 1.2rem; }
.contact-card li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-card .icon { color: var(--gold-600); flex-shrink: 0; margin-top: .2rem; }

.map-frame {
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.3rem; margin: 2.2rem 0 .8rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.3rem; }
.prose .updated { color: var(--ink-3); font-size: .9rem; }

/* ---------- Steps (home collection) ---------- */
.steps { display: grid; gap: 1.4rem; counter-reset: step; }

@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
    counter-increment: step;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.8rem 1.6rem;
    position: relative;
}

.step::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--gold-500);
    display: block;
    margin-bottom: .7rem;
}

/* ---------- Scroll-to-top ---------- */
.to-top {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 60;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: var(--r-full);
    background: var(--navy-700);
    color: #fff;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity var(--dur), transform var(--dur);
}

.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Social share bar (auto-injected on content pages by main.js) ---------- */
.share-bar {
    max-width: var(--container);
    margin: 2.6rem auto 0;
    padding: 1.2rem 1.25rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem 1rem;
    border-top: 1px solid var(--line);
}

.share-bar__label { font-family: var(--font-display); font-weight: 700; color: var(--navy-700); }
.share-bar__links { display: flex; gap: .55rem; flex-wrap: wrap; }

.share-bar a,
.share-bar button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--r-full);
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy-700);
    cursor: pointer;
    transition: transform var(--dur), background var(--dur), color var(--dur), border-color var(--dur), box-shadow var(--dur);
}

.share-bar a:hover,
.share-bar button:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.share-bar a[data-net="whatsapp"]:hover { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; }
.share-bar a[data-net="facebook"]:hover { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.share-bar a[data-net="x"]:hover { background: #0f1419; border-color: #0f1419; color: #fff; }
.share-bar button:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.share-bar .icon { width: 19px; height: 19px; }
.share-bar__copied { font-size: .82rem; color: var(--emerald-600); font-weight: 600; }
.share-bar__copied[hidden] { display: none; }

/* ---------- Instagram follow band ---------- */
.ig-follow {
    display: grid;
    gap: 1.3rem;
    align-items: center;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    border-radius: var(--r-lg);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.ig-follow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 120% at 100% 0%, rgba(220, 184, 74, .18), transparent 60%);
    pointer-events: none;
}

@media (min-width: 820px) { .ig-follow { grid-template-columns: auto 1fr auto; gap: 1.8rem; } }

.ig-follow__mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7);
    color: #fff;
    flex-shrink: 0;
}

.ig-follow__mark .icon { width: 34px; height: 34px; }
.ig-follow__body { position: relative; }
.ig-follow__body .eyebrow { color: var(--gold-400); }
.ig-follow__body h2 { color: #fff; font-size: 1.35rem; margin: .2rem 0 .4rem; }
.ig-follow__body p { color: #c7d2ec; margin: 0; max-width: 48ch; }

.ig-follow__actions { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; position: relative; }
@media (min-width: 820px) { .ig-follow__actions { align-items: flex-end; } }
.ig-follow__socials { display: flex; gap: .6rem; }

.ig-follow__socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    transition: background var(--dur), transform var(--dur);
}

.ig-follow__socials a:hover { background: var(--gold-500); color: var(--navy-950); transform: translateY(-2px); }
.ig-follow__socials .icon { width: 18px; height: 18px; }
