/* ==========================================================================
   Viomar SAIC — main stylesheet
   No framework. Mobile-first. Custom properties drive the whole theme.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    /* Brand */
    --navy-950: #030a24;
    --navy-900: #050f33;
    --navy-800: #081d59;   /* brand primary (logo) */
    --navy-700: #0d2a7a;
    --navy-600: #1a3ca3;
    --blue-500: #2f5bea;
    --blue-100: #e6ecfd;
    --blue-50:  #f3f6fe;
    --red-600:  #d0142a;   /* logo banner */
    --red-500:  #e11d2e;
    --wa:       #25d366;

    /* Neutrals */
    --ink-900: #0b1220;
    --ink-700: #2b3445;
    --ink-500: #5b6475;
    --ink-300: #a3abba;
    --line:    #e3e7ef;
    --surface: #f5f7fb;
    --white:   #ffffff;

    /* Semantic */
    --text:        var(--ink-900);
    --text-muted:  var(--ink-500);
    --primary:     var(--navy-800);
    --accent:      var(--red-500);
    --focus:       #3b82f6;
    --success:     #11804b;
    --success-bg:  #e8f7ef;
    --danger:      #b4202e;
    --danger-bg:   #fdecee;

    /* Type */
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Plus Jakarta Sans", var(--font-sans);

    /* Layout */
    --container: 1240px;
    --gutter: clamp(1.25rem, 4vw, 2rem);
    --header-h: 76px;
    --section-y: clamp(4rem, 9vw, 7.5rem);

    /* Shape & depth */
    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(8, 29, 89, .06), 0 1px 3px rgba(8, 29, 89, .08);
    --shadow:    0 10px 30px -12px rgba(8, 29, 89, .22);
    --shadow-lg: 0 30px 60px -20px rgba(8, 29, 89, .35);

    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.12;
    letter-spacing: -.022em;
    color: var(--ink-900);
    text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.4rem + 4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 1.25rem + 2.2vw, 2.9rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); font-weight: 700; letter-spacing: -.012em; }
p  { text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--text-muted); line-height: 1.6; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--navy-600);
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 3px;
    background: var(--accent);
}
.eyebrow--light { color: #c9d4ff; }

/* ---------- Utilities ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 1.25em; height: 1.25em; flex: none; }
.text-center { text-align: center; }

.skip-link {
    position: fixed; top: .75rem; left: .75rem; z-index: 1000;
    padding: .75rem 1.1rem; border-radius: var(--radius-sm);
    background: var(--navy-800); color: var(--white); font-weight: 600;
    transform: translateY(-200%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--navy-800);
    --btn-fg: var(--white);
    --btn-bd: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 50px;
    padding: .8rem 1.5rem;
    border: 1.5px solid var(--btn-bd);
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon--move { transform: translateX(3px); }
.btn--primary:hover { --btn-bg: var(--navy-700); }
.btn--accent { --btn-bg: var(--red-500); }
.btn--accent:hover { --btn-bg: var(--red-600); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--navy-800); }
.btn--ghost-light { --btn-bg: rgba(255,255,255,.08); --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { --btn-bg: rgba(255,255,255,.16); --btn-bd: rgba(255,255,255,.6); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy-800); --btn-bd: var(--line); }
.btn--outline:hover { --btn-bd: var(--navy-800); box-shadow: none; }
.btn--wa { --btn-bg: var(--wa); --btn-fg: #06361b; }
.btn--sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .92rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 600; color: var(--navy-700);
}
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(8, 29, 89, .5); }
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; mix-blend-mode: multiply; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.nav__link {
    position: relative;
    display: inline-block;
    padding: .55rem .85rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: .97rem;
    color: var(--ink-700);
    transition: color .2s, background-color .2s;
}
.nav__link:hover { color: var(--navy-800); background: var(--blue-50); }
.nav__link[aria-current="page"] { color: var(--navy-800); font-weight: 600; }
.nav__link[aria-current="page"]::after {
    content: ""; position: absolute; left: 50%; bottom: 2px;
    width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: var(--accent);
}

.nav-toggle {
    display: none;
    align-items: center; justify-content: center;
    width: 46px; height: 46px;
    border: 1px solid var(--line); border-radius: 12px;
    background: var(--white); color: var(--navy-800);
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon--close { display: none; }
.site-header.is-open .nav-toggle .icon--open { display: none; }
.site-header.is-open .nav-toggle .icon--close { display: block; }

@media (max-width: 959px) {
    .nav-toggle { display: inline-flex; }
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.25rem var(--gutter) 2rem;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
    }
    .site-header.is-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
    .nav__link { display: block; padding: .9rem 1rem; border-radius: 12px; font-size: 1.08rem; }
    .nav__link[aria-current="page"] { background: var(--blue-50); }
    .nav__link[aria-current="page"]::after { left: auto; right: 1rem; top: 50%; bottom: auto; margin: -1.5px 0 0; }
    .nav .btn { width: 100%; }
    body.nav-open { overflow: hidden; }
}

/* ---------- Hero (home) ---------- */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: min(88svh, 820px);
    padding-block: clamp(5rem, 12vw, 8rem) clamp(7rem, 14vw, 10rem);
    color: var(--white);
    overflow: hidden;
    background: var(--navy-900);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: hero-zoom 18s var(--ease) both; }
.hero::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(3, 10, 36, .94) 0%, rgba(5, 15, 51, .82) 38%, rgba(8, 29, 89, .35) 75%, rgba(8, 29, 89, .15) 100%),
        linear-gradient(0deg, rgba(3, 10, 36, .6) 0%, transparent 40%);
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__content { max-width: 720px; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: #9fb4ff; }
.hero__lead { max-width: 580px; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: rgba(255, 255, 255, .82); margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero__badge {
    display: inline-flex; align-items: center; gap: .55rem;
    margin-bottom: 1.5rem; padding: .4rem .9rem .4rem .45rem;
    border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
    background: rgba(255,255,255,.07);
    font-size: .86rem; font-weight: 500; color: rgba(255,255,255,.9);
    backdrop-filter: blur(6px);
}
.hero__badge span {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .15rem .55rem; border-radius: 999px;
    background: var(--accent); color: var(--white); font-weight: 700; font-size: .75rem; letter-spacing: .04em;
    white-space: nowrap;
}

/* ---------- Stats (overlaps hero) ---------- */
.stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: calc(clamp(4.5rem, 9vw, 6rem) * -1);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.stat { padding: clamp(1.4rem, 3vw, 2.2rem); border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat__value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--navy-800);
    font-variant-numeric: tabular-nums;
}
.stat__value small { font-size: .55em; font-weight: 700; margin-left: .1em; color: var(--navy-600); }
.stat__label { display: block; margin-top: .5rem; color: var(--text-muted); font-size: .95rem; line-height: 1.4; }
@media (min-width: 860px) {
    .stats { grid-template-columns: repeat(4, 1fr); }
    .stat { border-bottom: 0; border-right: 1px solid var(--line); }
    .stat:last-child { border-right: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--alt { background: var(--surface); }
.section--dark { background: var(--navy-900); color: rgba(255,255,255,.82); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head.text-center { margin-inline: auto; }
.section-head h2 + p { margin-top: 1rem; }
.section-head--split { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; max-width: none; }
.section-head--split > div { max-width: 640px; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 900px) {
    .split { grid-template-columns: 1.05fr 1fr; }
    .split--reverse .split__media { order: 2; }
}
.split__body > * + * { margin-top: 1.25rem; }
.split__body .btn { margin-top: 2rem; }

.media-stack { position: relative; padding: 0 0 2.5rem 2.5rem; }
.media-stack__main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3.4;
}
.media-stack__main img { width: 100%; height: 100%; object-fit: cover; }
.media-stack__float {
    position: absolute; left: 0; bottom: 0;
    width: 44%;
    aspect-ratio: 1;
    border: 6px solid var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.media-stack__float img { width: 100%; height: 100%; object-fit: cover; }
.media-stack__tag {
    position: absolute; right: 1.25rem; top: 1.25rem;
    display: grid; gap: .1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    background: var(--navy-800); color: var(--white);
    box-shadow: var(--shadow);
    line-height: 1.2;
}
.media-stack__tag strong { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.media-stack__tag span { font-size: .85rem; color: rgba(255,255,255,.75); }

.checklist { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: .85rem; align-items: flex-start; font-weight: 500; color: var(--ink-700); }
.checklist .icon {
    width: 26px; height: 26px; padding: 5px; margin-top: .05rem;
    border-radius: 50%; background: var(--blue-100); color: var(--navy-700);
}

/* ---------- Process cards ---------- */
.process-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }
.process-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 460px;
    padding: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--white);
    background: var(--navy-900);
}
.process-card img {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s var(--ease);
}
.process-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(3,10,36,0) 25%, rgba(3,10,36,.55) 55%, rgba(3,10,36,.95) 100%);
}
.process-card:hover img { transform: scale(1.06); }
.process-card__num {
    position: absolute; top: 1.5rem; left: 1.75rem;
    font-family: var(--font-display); font-weight: 800; font-size: .9rem; letter-spacing: .12em;
    padding: .35rem .7rem; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
}
.process-card h3 { color: var(--white); font-size: 1.6rem; margin-bottom: .6rem; }
.process-card p { color: rgba(255,255,255,.8); font-size: .98rem; }

/* ---------- Products ---------- */
.product-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.product {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.product:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.product__icon {
    display: grid; place-items: center; flex: none;
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--blue-100); color: var(--navy-700);
}
.product__icon .icon { width: 24px; height: 24px; }
.product h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.product p { font-size: .93rem; color: var(--text-muted); line-height: 1.55; }

/* ---------- Features (dark) ---------- */
.feature-grid { display: grid; gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
.feature { padding: 2rem; background: var(--navy-900); transition: background-color .25s; }
.feature:hover { background: #07164a; }
.feature__icon {
    display: grid; place-items: center;
    width: 52px; height: 52px; margin-bottom: 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue-500), var(--navy-600));
    color: var(--white);
    box-shadow: 0 10px 24px -10px rgba(47, 91, 234, .8);
}
.feature__icon .icon { width: 24px; height: 24px; }
.feature h3 { margin-bottom: .45rem; }
.feature p { font-size: .96rem; color: rgba(255,255,255,.68); }

.dark-split { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .dark-split { grid-template-columns: .9fr 1.1fr; } }
.dark-split__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.dark-split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 999px) { .dark-split__media { aspect-ratio: 16/10; } }

/* ---------- Logo strip ---------- */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.25rem, 4vw, 3.5rem); }
/* Client logos are pre-processed to transparent, single-tone PNGs */
.logos img { height: 52px; width: auto; opacity: .75; transition: opacity .2s; }
.logos img:hover { opacity: 1; }
.logos-caption { margin-bottom: 2rem; text-align: center; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-300); }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 2rem;
    align-items: center;
    padding: clamp(2.5rem, 6vw, 4.5rem);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--white);
    background: var(--navy-800);
}
.cta-band::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(47, 91, 234, .55), transparent 70%),
        radial-gradient(500px 260px at 0% 100%, rgba(225, 29, 46, .28), transparent 70%);
}
.cta-band h2 { color: var(--white); margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(4.5rem, 11vw, 8rem) clamp(3.5rem, 8vw, 6rem);
    color: var(--white);
    background: var(--navy-900);
    overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, rgba(3,10,36,.93) 0%, rgba(5,15,51,.8) 45%, rgba(8,29,89,.4) 100%);
}
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); max-width: 820px; }
.page-hero p { max-width: 620px; margin-top: 1rem; color: rgba(255,255,255,.8); font-size: clamp(1.02rem, 1rem + .3vw, 1.18rem); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: .9rem; color: rgba(255,255,255,.65); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: rgba(255,255,255,.35); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--white); font-weight: 500; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--navy-600), var(--line)); }
.timeline li { position: relative; padding-left: 3.75rem; }
.timeline li::before {
    content: ""; position: absolute; left: 10px; top: .35rem;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--white); border: 5px solid var(--navy-700);
    box-shadow: 0 0 0 5px var(--blue-50);
}
.timeline__year { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--navy-800); letter-spacing: -.02em; }
.timeline p { margin-top: .3rem; color: var(--ink-700); }

/* ---------- Cards (mission/vision/values) ---------- */
.card-grid { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
    display: flex; flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s var(--ease);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card__media { aspect-ratio: 16/10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.75rem; }
.card__body h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.card__body p { color: var(--text-muted); }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.pill-list li { padding: .4rem .9rem; border-radius: 999px; background: var(--blue-50); color: var(--navy-700); font-weight: 600; font-size: .92rem; }

/* ---------- Certifications ---------- */
.cert-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.cert {
    position: relative;
    display: flex; gap: 1.1rem; align-items: flex-start;
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: box-shadow .2s, border-color .2s;
}
.cert:hover { border-color: transparent; box-shadow: var(--shadow); }
.cert__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--navy-800); color: var(--white); }
.cert__icon .icon { width: 24px; height: 24px; }
.cert__org { display: inline-block; margin-bottom: .3rem; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red-600); }
.cert h3 { font-size: 1.05rem; line-height: 1.35; }
.cert p { margin-top: .35rem; font-size: .92rem; color: var(--text-muted); }
.cert--featured { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); border-color: transparent; color: var(--white); }
.cert--featured h3 { color: var(--white); }
.cert--featured p { color: rgba(255,255,255,.75); }
.cert--featured .cert__org { color: #ffb3bb; }
.cert--featured .cert__icon { background: rgba(255,255,255,.14); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .6rem 1.1rem;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--white); color: var(--ink-700);
    font-weight: 600; font-size: .93rem;
    transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--navy-800); color: var(--navy-800); }
.chip[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.chip__count { font-size: .78rem; padding: .05rem .45rem; border-radius: 999px; background: rgba(8,29,89,.08); }
.chip[aria-pressed="true"] .chip__count { background: rgba(255,255,255,.2); }

.gallery { columns: 3 300px; column-gap: 1rem; }
.gallery__item { break-inside: avoid; margin-bottom: 1rem; }
.gallery__item[hidden] { display: none; }
.gallery__btn {
    position: relative;
    display: block; width: 100%;
    padding: 0; border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}
.gallery__btn img { width: 100%; transition: transform .6s var(--ease), filter .3s; }
.gallery__btn::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(3,10,36,.65));
    opacity: 0; transition: opacity .3s;
}
.gallery__btn:hover img { transform: scale(1.04); }
.gallery__btn:hover::after, .gallery__btn:focus-visible::after { opacity: 1; }
.gallery__zoom {
    position: absolute; right: .9rem; bottom: .9rem; z-index: 1;
    display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 50%; background: var(--white); color: var(--navy-800);
    opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.gallery__btn:hover .gallery__zoom, .gallery__btn:focus-visible .gallery__zoom { opacity: 1; transform: none; }
.gallery__tag {
    position: absolute; left: .9rem; bottom: .9rem; z-index: 1;
    padding: .25rem .65rem; border-radius: 999px;
    background: rgba(255,255,255,.92); color: var(--navy-800);
    font-size: .78rem; font-weight: 700;
    opacity: 0; transition: opacity .3s;
}
.gallery__btn:hover .gallery__tag, .gallery__btn:focus-visible .gallery__tag { opacity: 1; }

/* Lightbox (native <dialog>) */
.lightbox {
    width: 100vw; height: 100dvh; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0;
    background: transparent; color: var(--white);
}
.lightbox::backdrop { background: rgba(3, 8, 26, .94); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade-in .2s ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem clamp(1rem, 3vw, 2rem); font-size: .92rem; color: rgba(255,255,255,.7); }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(.5rem, 6vw, 5.5rem); }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__caption { padding: 1rem 1.5rem 1.5rem; text-align: center; font-size: .95rem; color: rgba(255,255,255,.8); }
.lightbox__btn {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
    background: rgba(255,255,255,.08); color: var(--white);
    transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(255,255,255,.2); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lightbox__nav--next { right: clamp(.5rem, 2vw, 1.5rem); }
@media (max-width: 640px) {
    .lightbox__nav { top: auto; bottom: -3.5rem; transform: none; }
    .lightbox__caption { padding-top: 4.5rem; }
}

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: 1.35fr 1fr; } }

.form-card {
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
}
.form-card h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.form-card > p { margin-top: .6rem; color: var(--text-muted); }

.form { display: grid; gap: 1.25rem; margin-top: 2rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .45rem; }
.field label, .field legend { font-weight: 600; font-size: .93rem; color: var(--ink-700); }
.field .optional { font-weight: 400; color: var(--ink-300); }
.field input, .field textarea, .field select {
    width: 100%;
    min-height: 52px;
    padding: .8rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    font-size: 1rem;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-300); }
.field input:hover, .field textarea:hover { border-color: #c9d0dd; }
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--navy-600);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(47, 91, 234, .15);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); background: var(--danger-bg); }
.field__error { display: none; align-items: center; gap: .35rem; font-size: .86rem; font-weight: 500; color: var(--danger); }
.field.is-invalid .field__error { display: flex; }
.field__hint { font-size: .84rem; color: var(--ink-500); }

fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.field legend { margin-bottom: .45rem; padding: 0; }
.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; }
.segmented label {
    position: relative;
    display: flex; align-items: center; gap: .75rem;
    padding: .9rem 1rem;
    border: 1.5px solid var(--line); border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    font-weight: 600; color: var(--ink-700);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.segmented label:hover { border-color: #c9d0dd; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented .icon { width: 22px; height: 22px; color: var(--ink-500); }
.segmented small { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-500); }
.segmented label.is-checked,
.segmented label:has(input:checked) { border-color: var(--navy-700); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(47,91,234,.12); }
.segmented label.is-checked .icon,
.segmented label:has(input:checked) .icon { color: var(--navy-700); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.form__note { font-size: .85rem; color: var(--ink-500); max-width: 360px; }

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
.btn[aria-busy="true"] .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
    display: none;
    gap: .85rem; align-items: flex-start;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    font-weight: 500;
    line-height: 1.5;
}
.form-status .icon { width: 22px; height: 22px; margin-top: .1rem; }
.form-status.is-success { display: flex; background: var(--success-bg); color: var(--success); }
.form-status.is-error   { display: flex; background: var(--danger-bg); color: var(--danger); }
.form-status a { text-decoration: underline; font-weight: 600; }

.contact-aside { display: grid; gap: 1rem; }
.info-card {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}
.info-card__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-100); color: var(--navy-700); }
.info-card__icon .icon { width: 22px; height: 22px; }
.info-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.info-card p, .info-card a { color: var(--text-muted); font-size: .97rem; }
.info-card a:hover { color: var(--navy-800); text-decoration: underline; }
.info-card--wa { background: #effcf4; border-color: #c7f0d6; }
.info-card--wa .info-card__icon { background: var(--wa); color: var(--white); }
.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--surface); }
.map-card iframe { width: 100%; height: 100%; border: 0; }

/* ---------- 404 ---------- */
.notfound { display: grid; place-items: center; min-height: calc(80svh - var(--header-h)); padding-block: 4rem; text-align: center; }
.notfound__code {
    font-family: var(--font-display); font-weight: 800; letter-spacing: -.05em; line-height: 1;
    font-size: clamp(6rem, 4rem + 12vw, 12rem);
    background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); margin: 1rem 0 .75rem; }
.notfound p { color: var(--text-muted); max-width: 460px; margin: 0 auto 2rem; }
.notfound .hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.66); font-size: .96rem; }
.site-footer__top { display: grid; gap: 2.5rem; padding-block: clamp(3.5rem, 7vw, 5rem); }
@media (min-width: 720px) { .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1040px) { .site-footer__top { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; } }
.site-footer img.footer-logo { height: 52px; width: auto; margin-bottom: 1.25rem; }
.site-footer h2 { font-family: var(--font-display); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 1.1rem; }
.site-footer ul { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: .2rem; color: #8fa5ff; }
.social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.social a {
    display: grid; place-items: center; width: 42px; height: 42px;
    border: 1px solid rgba(255,255,255,.15); border-radius: 50%;
    transition: background-color .2s, border-color .2s, color .2s;
}
.social a:hover { background: var(--white); border-color: var(--white); color: var(--navy-800); }
.social .icon { width: 18px; height: 18px; }
.site-footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
    padding-block: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.09);
    font-size: .87rem; color: rgba(255,255,255,.5);
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
    position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 90;
    display: grid; place-items: center;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--wa); color: var(--white);
    box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
    transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: var(--wa); z-index: -1;
    animation: wa-pulse 2.6s ease-out infinite;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float .icon { width: 30px; height: 30px; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; }
    .hero__media img { animation: none; }
    .wa-float::before { animation: none; }
}

/* ---------- Print ---------- */
@media print {
    .site-header, .wa-float, .site-footer, .hero__actions, .cta-band { display: none !important; }
    .hero, .page-hero { color: #000; background: none; min-height: 0; padding: 1rem 0; }
    .hero::before, .page-hero::before, .hero__media, .page-hero__media { display: none; }
    .hero h1, .page-hero h1 { color: #000; }
}
