/* ==========================================================================
   IDS — Integraciones de Sistemas
   Design system: light corporate theme, geometric accents (diamonds/ribbon)
   ========================================================================== */

:root {
    --navy: #152c6b;
    --navy-dark: #0d1c47;
    --blue: #1e6fd9;
    --cyan: #28b4e6;
    --purple: #6c2f92;
    --green: #7bc143;

    --ink: #16213e;
    --muted: #5c6578;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --border: #e6e9f2;

    --gradient-brand: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%);

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(21, 44, 107, 0.06);
    --shadow-md: 0 12px 30px rgba(21, 44, 107, 0.10);
    --shadow-lg: 0 24px 60px rgba(21, 44, 107, 0.16);

    --header-h: 84px;
    --container: 1220px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
section, aside { position: relative; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 {
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.7rem, 1.4rem + 1.3vw, 2.5rem); }
h3 { font-size: 1.15rem; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    background: rgba(30, 111, 217, 0.09);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 88px 0;
}
.section-head {
    max-width: 640px;
    margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

.bg-surface { background: var(--surface); }
.bg-alt { background: #eef1f9; }

/* reveal-on-scroll */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--navy);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-ghost-light {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ==========================================================================
   Decorative motifs — diamond cluster / corner ribbon / accent line
   ========================================================================== */
.deco-diamonds {
    position: absolute;
    width: 220px;
    height: 200px;
    pointer-events: none;
    z-index: 0;
}
.deco-diamonds .d {
    position: absolute;
    border-radius: 10px;
    transform: rotate(45deg);
    box-shadow: var(--shadow-sm);
}
.deco-diamonds .d1 { width: 78px; height: 78px; left: 14px;  top: 66px;  background: var(--navy); }
.deco-diamonds .d2 { width: 70px; height: 70px; left: 78px;  top: 96px;  background: var(--blue); }
.deco-diamonds .d3 { width: 42px; height: 42px; left: 58px;  top: 18px;  background: var(--purple); }
.deco-diamonds .d4 { width: 34px; height: 34px; left: 0;     top: 116px; background: var(--cyan); }
.deco-diamonds .d5 { width: 48px; height: 48px; left: 122px; top: 168px; background: var(--green); }
.deco-diamonds .d6 { width: 26px; height: 26px; left: 90px;  top: 190px; background: var(--cyan); }

.deco-dots {
    position: absolute;
    width: 130px;
    height: 130px;
    background-image: radial-gradient(rgba(21,44,107,0.18) 1.6px, transparent 1.6px);
    background-size: 14px 14px;
    pointer-events: none;
    z-index: 0;
}

.deco-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 180px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.deco-ribbon::before,
.deco-ribbon::after {
    content: "";
    position: absolute;
}
.deco-ribbon::before {
    top: -70px;
    right: -90px;
    width: 320px;
    height: 110px;
    background: var(--gradient-brand);
    transform: rotate(-30deg);
    border-radius: 0 0 0 6px;
}
.deco-ribbon::after {
    top: -18px;
    right: -60px;
    width: 260px;
    height: 10px;
    background: var(--cyan);
    opacity: .55;
    transform: rotate(-30deg);
}

.deco-line {
    position: relative;
    height: 2px;
    margin-top: 56px;
    background: linear-gradient(90deg, transparent, var(--border) 12%, var(--blue) 92%);
}
.deco-line span {
    position: absolute;
    top: -6px;
    display: block;
    width: 16px;
    height: 12px;
    transform: skewX(-24deg);
}
.deco-line span:nth-child(1) { right: 34px; background: var(--navy); }
.deco-line span:nth-child(2) { right: 18px; background: var(--blue); }
.deco-line span:nth-child(3) { right: 2px;  background: var(--cyan); }

@media (max-width: 768px) {
    .deco-ribbon { width: 200px; height: 130px; }
    .deco-ribbon::before { width: 220px; height: 80px; }
    .deco-diamonds { transform: scale(0.72); transform-origin: bottom left; }
    .deco-dots { display: none; }
}
@media (max-width: 520px) {
    .deco-diamonds { transform: scale(0.5); transform-origin: bottom left; }
}

/* ==========================================================================
   Header
   ========================================================================== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(245, 247, 251, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
#site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}
#site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand img { width: 40px; height: 40px; }
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    padding-left: 12px;
    border-left: 2px solid var(--border);
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    color: var(--navy);
    text-transform: uppercase;
}
.brand-text span:last-child { color: var(--blue); }

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 34px;
}
.main-nav a {
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--ink);
    position: relative;
    padding: 6px 0;
    transition: color .2s ease;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width .25s ease;
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--blue); }
.main-nav a:hover::after,
.main-nav a.is-active::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--navy);
    transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 992px) {
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
    }
    .main-nav.is-open { max-height: 480px; }
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 24px 20px;
    }
    .main-nav li { width: 100%; }
    .main-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--border); }
    .main-nav a::after { display: none; }
    .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
    .brand-text { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    padding-top: calc(var(--header-h) + 64px);
    padding-bottom: 60px;
    overflow: hidden;
    background:
        radial-gradient(700px 420px at 88% -10%, rgba(30,111,217,0.10), transparent),
        var(--bg);
}
.hero .container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
}
.hero-copy h1 {
    font-size: clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem);
    line-height: 1.08;
}
.hero-copy .tagline {
    margin-top: 10px;
    font-size: clamp(0.95rem, 0.86rem + 0.4vw, 1.1rem);
    font-weight: 600;
    font-style: italic;
    color: var(--blue);
    letter-spacing: 0.01em;
}
.hero-copy .lede {
    margin-top: 20px;
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 46ch;
}
.hero-copy .cta-row {
    display: flex;
    gap: 16px;
    margin-top: 34px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 52px;
    flex-wrap: wrap;
}
.hero-stats div strong {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--navy);
}
.hero-stats div span {
    font-size: 0.85rem;
    color: var(--muted);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}
.hero-visual .deco-dots { right: -10px; bottom: 20px; }
.hero-visual .plate {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    border-radius: 32px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 46px;
    z-index: 1;
}
.hero-visual .plate::before {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: 40px;
    border: 1.5px dashed rgba(30, 111, 217, 0.25);
    z-index: -1;
}
.hero-visual .plate img { width: 100%; }

@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-copy .lede { margin-left: auto; margin-right: auto; }
    .hero-copy .cta-row { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; min-height: 300px; }
}
@media (max-width: 560px) {
    .hero { padding-top: calc(var(--header-h) + 36px); }
    .hero-stats { gap: 24px; }
}

/* ==========================================================================
   Feature / service cards
   ========================================================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 28px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.feature-card .icon-chip {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform .3s ease, border-radius .3s ease;
}
.feature-card .icon-chip i { font-size: 24px; color: #fff; }
.feature-card:hover .icon-chip { transform: rotate(-6deg) scale(1.08); border-radius: 18px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 0.96rem; }

.feature-card:nth-child(6n+1) .icon-chip { background: var(--navy); }
.feature-card:nth-child(6n+2) .icon-chip { background: var(--blue); }
.feature-card:nth-child(6n+3) .icon-chip { background: var(--purple); }
.feature-card:nth-child(6n+4) .icon-chip { background: var(--cyan); }
.feature-card:nth-child(6n+5) .icon-chip { background: var(--green); }
.feature-card:nth-child(6n+6) .icon-chip { background: var(--navy); }

@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Team / socios
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 340px));
    justify-content: center;
    gap: 32px;
    max-width: 760px;
    margin: 0 auto;
}
.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 30px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.team-photo {
    width: 128px;
    height: 128px;
    margin: 0 auto 22px;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-brand);
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--surface);
}
.team-card h3 { margin-bottom: 4px; }
.team-role {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}
.team-card p { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 640px) {
    .team-grid { grid-template-columns: minmax(0, 340px); }
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
    background: var(--gradient-brand);
    color: #fff;
    padding: 56px 0;
    overflow: hidden;
}
.cta-band .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.cta-band p { color: rgba(255,255,255,0.82); margin-top: 10px; max-width: 52ch; }

/* ==========================================================================
   Split (image / text) sections
   ========================================================================== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }
.split-copy p { color: var(--muted); margin-top: 16px; }
.split-copy p + p { margin-top: 12px; }
.split-copy ul { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.split-copy ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.98rem;
    color: var(--ink);
}
.split-copy ul li i {
    color: var(--green);
    margin-top: 4px;
}
.split-media {
    position: relative;
    display: flex;
    justify-content: center;
}
.split-media .frame {
    position: relative;
    width: 100%;
    max-width: 460px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    padding: 20px;
    z-index: 1;
}
.split-media .frame img { border-radius: 8px; width: 100%; }
.split-media .browser-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.split-media .browser-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.split-media .browser-dots span:nth-child(1) { background: #ef5b5b; }
.split-media .browser-dots span:nth-child(2) { background: #f4bd3f; }
.split-media .browser-dots span:nth-child(3) { background: #3fc270; }
.split-media .badge-pop {
    position: absolute;
    bottom: -18px;
    left: -18px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}
.split-media .badge-pop::before {
    content: "";
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
}

@media (max-width: 900px) {
    .split, .split.reverse { grid-template-columns: 1fr; text-align: center; }
    .split.reverse .split-media,
    .split.reverse .split-copy,
    .split .split-media,
    .split .split-copy { order: initial; }
    .split-media { order: -1; margin-bottom: 8px; }
    .split-copy ul li { text-align: left; }
}

/* ==========================================================================
   Partners marquee
   ========================================================================== */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 64px;
    width: max-content;
    animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
    height: 42px;
    width: auto;
    filter: grayscale(1) opacity(0.55);
    transition: filter .25s ease;
}
.marquee-track img:hover { filter: grayscale(0) opacity(1); }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.contact-panel .deco-diamonds { right: -30px; bottom: -60px; left: auto; opacity: .35; transform: scale(0.85); }
.contact-panel-copy { max-width: 460px; position: relative; z-index: 1; }
.contact-panel-copy p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.mail-card {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 16px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--navy);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.mail-card i {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.mail-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #fff; }

/* ==========================================================================
   Trabajá con nosotros (job application form)
   ========================================================================== */
.job-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 56px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.job-panel .deco-diamonds { right: -30px; bottom: -60px; left: auto; opacity: .35; transform: scale(0.85); }
.job-panel-copy { max-width: 640px; position: relative; z-index: 1; }
.job-panel-copy p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }
.job-panel-copy .btn { margin-top: 24px; }
.job-form-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s ease;
}
.job-form-wrapper.is-open { grid-template-rows: 1fr; }
.job-form-wrapper > .job-form { overflow: hidden; min-height: 0; }
.job-form { display: flex; flex-direction: column; gap: 20px; padding-top: 32px; }
.job-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.field input,
.field textarea {
    font: inherit;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.15);
}
.field textarea { resize: vertical; min-height: 90px; }
.field input[type="file"] { padding: 9px 12px; }
.job-form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-note { font-size: 0.92rem; font-weight: 600; }
.form-note.is-success { color: var(--green); }
.form-note.is-error { color: #d94f4f; }

@media (max-width: 640px) {
    .job-panel { padding: 36px 24px; }
    .job-form-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
#site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 28px;
    margin-top: 20px;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand img { width: 42px; height: 42px; }
.footer-brand .brand-text { color: #fff; border-color: rgba(255,255,255,0.25); }
.footer-brand .brand-text span:last-child { color: var(--cyan); }
.footer-brand p { margin-top: 18px; max-width: 34ch; font-size: 0.94rem; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }

.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.94rem; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}
.footer-bottom a:hover { color: #fff; }

@media (max-width: 800px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Back to top
   ========================================================================== */
#back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 900;
    border: none;
}
#back-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ==========================================================================
   Utility responsive section scroll offset
   ========================================================================== */
section[id], aside[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

@media (max-width: 768px) {
    .section { padding: 64px 0; }
}
