/* Tech Amplify — SEACAT-inspired dark redesign
   Palette & typography drawn from seacat.rossinavi.it:
   near-black canvas, deep-blue glows, orange accent, thin uppercase display type. */

:root {
    /* Backgrounds */
    --bg:        #03050b;
    --bg-2:      #060a14;
    --panel:     #0a1020;
    --panel-2:   #0c1426;
    --navy-glow: #0a2350;

    /* Blues */
    --blue:        #2b6fd6;
    --blue-bright: #4d9bff;
    --blue-soft:   #7fb2ff;

    /* Orange accent (SEACAT wordmark) */
    --accent:   #ff6a1a;
    --accent-2: #ff9143;

    /* Text */
    --text:  #eaf0fb;
    --muted: #8b97ad;
    --faint: #5d6679;

    /* Lines / surfaces */
    --line:       rgba(255, 255, 255, 0.08);
    --line-strong:rgba(255, 255, 255, 0.16);

    /* Signature gradients */
    --grad-accent: linear-gradient(135deg, #ff6a1a 0%, #ff9143 100%);
    --grad-blue:   linear-gradient(135deg, #4d9bff 0%, #2b6fd6 60%, #173a7a 100%);
    --grad-mix:    linear-gradient(120deg, #4d9bff 0%, #ff6a1a 100%);
}

* { scroll-behavior: smooth; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* Display typography — wide, uppercase, SEACAT-like */
.font-display,
h1, h2, h3, .display {
    font-family: 'Saira', 'Inter', sans-serif;
}

.eyebrow {
    font-family: 'Saira', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.42em;
    font-weight: 500;
    font-size: 0.72rem;
    color: var(--muted);
}

/* Gradient text helpers */
.text-accent-grad {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-blue-grad {
    background: var(--grad-blue);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Ambient background glows ===== */
.glow-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}
.glow-blue  { width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(45,111,214,0.55), transparent 70%); }
.glow-accent{ width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(255,106,26,0.30), transparent 70%); }
.glow-deep  { width: 70vw; height: 40vw; background: radial-gradient(circle, rgba(13,40,90,0.8), transparent 70%); }

/* Thin flowing accent lines (SEACAT plankton trails) */
.flow-lines { position: absolute; inset: 0; opacity: 0.45; pointer-events: none; }

/* ===== Navigation ===== */
#navbar {
    background: rgba(3, 5, 11, 0.55);
    border-bottom: 1px solid transparent;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: all 0.35s ease;
}
#navbar.scrolled {
    background: rgba(3, 5, 11, 0.92);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 40px -20px rgba(0,0,0,0.9);
}

.brand-mark {
    font-family: 'Saira', sans-serif;
    letter-spacing: 0.32em;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-link {
    position: relative;
    color: var(--muted);
    font-family: 'Saira', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    white-space: nowrap;
    transition: color 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--grad-accent);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

#mobile-menu.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* ===== Language selector ===== */
.lang-select { position: relative; }
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.7rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--muted);
    font-family: 'Saira', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.lang-toggle:hover,
.lang-select.open .lang-toggle {
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(45,111,214,0.06);
}
.lang-globe { width: 15px; height: 15px; opacity: 0.85; }
.lang-caret { width: 12px; height: 12px; transition: transform 0.3s ease; }
.lang-select.open .lang-caret { transform: rotate(180deg); }

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 184px;
    padding: 0.4rem;
    background: rgba(6, 10, 20, 0.97);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 50px -24px rgba(0,0,0,0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 60;
}
.lang-select.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    border-radius: 4px;
    color: var(--muted);
    font-family: 'Saira', sans-serif;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
    transition: color 0.2s ease, background 0.2s ease;
}
.lang-item:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.lang-item.active { color: var(--text); }
.lang-item.active .lang-code { background: var(--grad-accent); color: #1a0a02; border-color: transparent; }
.lang-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    padding: 0.12rem 0;
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--blue-soft);
}

/* Mobile language row */
.mobile-lang {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
}
.mobile-lang-item {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--muted);
    font-family: 'Saira', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.74rem;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.mobile-lang-item:hover { color: var(--text); border-color: var(--line-strong); }
.mobile-lang-item.active {
    color: #1a0a02;
    background: var(--grad-accent);
    border-color: transparent;
    font-weight: 600;
}

/* ===== Buttons / CTAs ===== */
.cta-button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--grad-accent);
    color: #1a0a02;
    font-family: 'Saira', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    border-radius: 2px;
    box-shadow: 0 10px 35px -10px rgba(255, 106, 26, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button::before {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}
.cta-button:hover::before { left: 120%; }
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 45px -10px rgba(255, 106, 26, 0.85);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 1px solid var(--line-strong);
    color: var(--text);
    background: rgba(255,255,255,0.02);
    font-family: 'Saira', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.secondary-button:hover {
    border-color: var(--blue-bright);
    color: var(--blue-soft);
    background: rgba(45,111,214,0.08);
}

.link-arrow {
    font-family: 'Saira', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    transition: gap 0.25s ease, color 0.25s ease;
}
.link-arrow:hover { gap: 0.9rem; }

/* ===== Cards ===== */
.surface {
    background: linear-gradient(160deg, var(--panel) 0%, var(--bg-2) 100%);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Cards establish their own stacking context so the gradient wash sits
   above the surface fill but below the text. */
.service-card, .feature-card {
    position: relative;
    overflow: hidden;
    z-index: 0;
}

/* Gradient hover wash — blue from one corner, orange from the other */
.service-card::before, .feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(130% 130% at 0% 0%,   rgba(77,155,255,0.20), transparent 48%),
        radial-gradient(130% 130% at 100% 100%, rgba(255,106,26,0.20), transparent 48%);
    opacity: 0;
    transition: opacity 0.45s ease;
}
.service-card:hover::before, .feature-card:hover::before { opacity: 1; }

/* Accent top-line that draws in on hover */
.service-card::after, .feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--grad-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover::after, .feature-card:hover::after { transform: scaleX(1); }

.service-card:hover, .feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(77,155,255,0.15);
}

/* Numbered card index + refined card titles */
.card-index {
    font-family: 'Saira', sans-serif;
    font-weight: 300;
    font-size: 2.25rem;
    line-height: 1;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.85;
}
.card-title {
    font-family: 'Saira', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fff;
}
.card-rule {
    width: 28px;
    height: 1px;
    background: var(--line-strong);
    transition: width 0.4s ease, background 0.4s ease;
}
.service-card:hover .card-rule,
.feature-card:hover .card-rule {
    width: 56px;
    background: var(--grad-accent);
}

/* ===== 3D mission scene ===== */
.scene-card {
    position: relative;
    padding: 0;
    min-height: 420px;
    display: flex;
    /* No border / no panel fill — the canvas blends straight into the page. */
    background: transparent;
}
.scene-card canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    /* Feather every edge into transparency so the animation dissolves
       into the dark background instead of sitting in a hard box. */
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 18%, rgba(0,0,0,0.35) 50%, transparent 78%);
            mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 18%, rgba(0,0,0,0.35) 50%, transparent 78%);
}
@media (max-width: 768px) {
    .scene-card { min-height: 340px; }
}

.icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 4px;
    background: rgba(77,155,255,0.08);
    border: 1px solid var(--line);
    color: var(--blue-soft);
}
.icon-chip.accent { background: rgba(255,106,26,0.10); color: var(--accent-2); border-color: rgba(255,106,26,0.25); }

/* ===== Stats / counters ===== */
.counter {
    font-family: 'Saira', sans-serif;
    font-weight: 700;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Forms ===== */
.field {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--text);
    transition: all 0.25s ease;
}
.field::placeholder { color: var(--faint); }
.field:focus {
    outline: none;
    border-color: var(--blue-bright);
    background: rgba(45,111,214,0.06);
    box-shadow: 0 0 0 3px rgba(77,155,255,0.12);
}
.field option { background: var(--panel); color: var(--text); }
.field-label {
    font-family: 'Saira', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: var(--muted);
}

/* ===== Scroll to top ===== */
#scroll-to-top {
    background: var(--grad-accent);
    color: #1a0a02;
    transition: all 0.3s ease;
}
#scroll-to-top.show { opacity: 1; visibility: visible; }
#scroll-to-top:hover { transform: translateY(-3px); box-shadow: 0 10px 30px -8px rgba(255,106,26,0.7); }

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(4%, -6%) scale(1.08); }
}
.fade-in-up    { animation: fadeInUp 1s ease-out; }
.fade-in-left  { animation: fadeInLeft 1s ease-out; }
.fade-in-right { animation: fadeInRight 1s ease-out; }
.glow-blue, .glow-accent, .glow-deep { animation: floatGlow 16s ease-in-out infinite; }
.glow-accent { animation-delay: -6s; }
.glow-deep   { animation-delay: -10s; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--blue), var(--accent));
    border-radius: 4px;
}

/* ===== Success / error messages ===== */
.success-message, .error-message {
    padding: 1rem;
    border-radius: 3px;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    font-family: 'Saira', sans-serif;
    letter-spacing: 0.04em;
}
.success-message { background: rgba(45,111,214,0.15); border: 1px solid var(--blue); color: var(--blue-soft); }
.error-message   { background: rgba(255,106,26,0.15); border: 1px solid var(--accent); color: var(--accent-2); }
.success-message.show, .error-message.show { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .service-card:hover, .feature-card:hover { transform: none; }
    .fade-in-left, .fade-in-right { animation: fadeInUp 1s ease-out; }

    /* ── Mobile performance ──────────────────────────────────────────
       The ambient glows are 40–70vw circles with a 90px blur. Animating
       their transform/scale forces the browser to re-rasterise those huge
       blurred layers every frame — the main cause of sluggish scrolling
       and slow first paint on phones. On mobile we keep the look but make
       them static and use a cheaper blur radius. */
    .glow-blue, .glow-accent, .glow-deep { animation: none; }
    .glow { filter: blur(60px); will-change: auto; }

    /* backdrop-filter on the fixed navbar repaints the blur on every scroll
       frame on mobile GPUs. Swap it for a near-opaque solid background. */
    #navbar {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(3, 5, 11, 0.92);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Language suggestion banner ===== */
.lang-banner {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translate(-50%, 160%);
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    max-width: calc(100vw - 32px);
    padding: 0.8rem 0.9rem 0.8rem 1.1rem;
    background: rgba(6, 10, 20, 0.97);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px -24px rgba(0,0,0,0.9);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.2,0.8,0.2,1), opacity 0.45s ease;
}
.lang-banner.show { transform: translate(-50%, 0); opacity: 1; }
.lang-banner-globe { width: 20px; height: 20px; color: var(--blue-soft); flex: none; }
.lang-banner-text { color: var(--text); font-size: 0.92rem; font-weight: 300; }
.lang-banner-accept,
.lang-banner-decline {
    font-family: 'Saira', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    white-space: nowrap;
    padding: 0.5rem 0.9rem;
    border-radius: 3px;
    cursor: pointer;
    transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.lang-banner-accept {
    background: var(--grad-accent);
    color: #1a0a02;
    border: none;
    font-weight: 600;
    box-shadow: 0 8px 24px -10px rgba(255,106,26,0.7);
}
.lang-banner-accept:hover { transform: translateY(-2px); }
.lang-banner-decline {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
}
.lang-banner-decline:hover { color: var(--text); border-color: var(--line-strong); }
.lang-banner-close {
    background: none; border: none; color: var(--faint);
    font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 0.2rem;
    transition: color 0.2s ease;
}
.lang-banner-close:hover { color: var(--text); }
@media (max-width: 640px) {
    .lang-banner { left: 16px; right: 16px; bottom: 16px; flex-wrap: wrap; transform: translateY(160%); }
    .lang-banner.show { transform: translateY(0); }
    .lang-banner-text { flex: 1 1 100%; }
}

/* ============================================================
   MOBILE AUDIT FIXES — 2026-06-13
   Appended block: later source order wins ties intentionally.
   Each rule is tagged with the finding number from
   docs/mobile-audit-2026-06-13.md.
   ============================================================ */

/* #15 — declare the page as dark so native controls (select, scrollbars,
   form widgets, URL bar) render in dark, not light. */
:root { color-scheme: dark; }

/* #18 — anchor deep-links (/en/#contacto) must clear the 64px fixed navbar. */
html { scroll-padding-top: 80px; }

/* #24 — smooth scroll must yield to reduced-motion (the CSS reduced-motion
   block above doesn't reset scroll-behavior). Also drop it off the universal
   selector (kept on html only via the rule above the audit block). */
@media (prefers-reduced-motion: reduce) {
    html, * { scroll-behavior: auto !important; }
}

/* #8 — gray-500 (#6b7280) fails WCAG AA (≈4.0–4.2:1) for the small text it's
   used on (footer legal, ©, case labels, delivery-time, testimonial roles).
   Lift to a token that clears 4.5:1 on every background used. */
.text-gray-500 { color: #828c9f; }   /* ≈5.6–6.0:1, still muted vs gray-400 body */

/* #12 — placeholder + banner-close used --faint (#5d6679 ≈ 3.5:1). */
.field::placeholder { color: #828c9f; opacity: 1; }
.lang-banner-close { color: #828c9f; }

/* #19 — labels/CTAs were under the 14px 2026 floor. */
.field-label, .eyebrow { font-size: 0.8rem; }      /* 11.52px -> 12.8px */
.link-arrow { font-size: 0.875rem; }               /* 13.12px -> 14px   */

/* #1, #3, #9, #10 — touch targets to >=44x44px.
   Apple HIG 44, Material 48; 44 is the floor we enforce everywhere. */
#mobile-menu-button {
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
}
/* Hamburger ↔ X icon swap, driven by the button's aria-expanded state. */
#mobile-menu-button .menu-icon-close { display: none; }
#mobile-menu-button[aria-expanded="true"] .menu-icon-open { display: none; }
#mobile-menu-button[aria-expanded="true"] .menu-icon-close { display: block; }
/* Mobile language controls — lift to the 12.8px label floor (audit #19). Mobile-only id/class, desktop untouched. */
#lang-toggle-m, .mobile-lang-item { font-size: 0.8rem; }
#scroll-to-top { min-width: 44px; min-height: 44px; }
/* hero scroll-indicator chevron (icon-only <a class="animate-bounce">) */
#inicio a.animate-bounce {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px;
}
.link-arrow { min-height: 44px; }
#mobile-menu .nav-link { min-height: 44px; display: flex; align-items: center; }
.mobile-lang-item {
    min-height: 44px;
    display: flex; align-items: center; justify-content: center;
}
footer a { display: inline-flex; align-items: center; min-height: 44px; }
footer .cta-button { min-height: 44px; }
/* short footer legal links (e.g. German "AGB") still need a 44px-wide hit area */
footer a.text-gray-500 { min-width: 44px; justify-content: center; }
/* language switcher controls — 44px targets (desktop dropdown + new mobile switcher) */
.lang-toggle { min-height: 44px; }
.lang-item { min-height: 44px; }
/* navbar logo link */
a:has(> .brand-mark) { display: inline-flex; align-items: center; min-height: 44px; }
/* language-suggestion banner controls */
.lang-banner-accept, .lang-banner-decline { min-height: 44px; }
.lang-banner-close {
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
}

/* #11 — hero used min-h-screen (100vh); on mobile that clips the scroll cue
   under the URL bar and jumps on bar hide. Use the small viewport unit. */
#inicio { min-height: 100svh; }

/* #20 — visible focus ring on every interactive element (only .field had one).
   :focus-visible so mouse users don't see rings, keyboard/AT users do. */
a:focus-visible,
button:focus-visible,
.cta-button:focus-visible,
.secondary-button:focus-visible,
.nav-link:focus-visible,
.link-arrow:focus-visible,
.lang-toggle:focus-visible,
.mobile-lang-item:focus-visible,
.lang-item:focus-visible,
.field:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 2px;
    border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* #21 — skip link (hidden until focused). */
.skip-link {
    position: fixed;
    left: 12px; top: -64px;
    z-index: 200;
    padding: 0.6rem 1rem;
    background: var(--panel-2);
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    font-family: 'Saira', sans-serif;
    letter-spacing: 0.08em;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* #16, #23 — language banner & scroll-to-top must respect the home indicator
   and must not collide in the bottom-right corner. */
@supports (padding: env(safe-area-inset-bottom)) {
    .lang-banner   { margin-bottom: env(safe-area-inset-bottom); }
    #scroll-to-top { margin-bottom: env(safe-area-inset-bottom); }
}
/* When the banner is on screen, lift the scroll-to-top button above it. */
body:has(.lang-banner.show) #scroll-to-top { bottom: 7rem; }

/* #23 (fluid type, conservative) — hero headline scales fluidly between the
   current mobile size (36px) and desktop size (72px) instead of snapping at
   the md breakpoint. Never smaller than today's 360px size, so no regression. */
#inicio h1 { font-size: clamp(2.25rem, 7vw, 4.5rem); }


/* ===== Header email ===== */
.nav-email, .nav-phone { display: none; align-items: center; gap: 0.5rem; color: var(--muted); font-family: 'Saira', sans-serif; letter-spacing: 0.02em; font-size: 0.8rem; transition: color 0.25s ease; white-space: nowrap; }
@media (min-width: 1400px) { .nav-email, .nav-phone { display: inline-flex; } }
.nav-email:hover, .nav-phone:hover { color: var(--text); }
.nav-email svg, .nav-phone svg { width: 16px; height: 16px; color: var(--accent-2); flex-shrink: 0; }
.nav-email-m, .nav-phone-m { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: #fff; transition: color 0.25s ease; }
.nav-email-m svg, .nav-phone-m svg { width: 22px; height: 22px; }
.nav-email-m:hover, .nav-phone-m:hover { color: var(--accent); }
.mobile-email, .mobile-phone { display: flex; align-items: center; gap: 0.6rem; color: var(--text); font-family: 'Saira', sans-serif; letter-spacing: 0.02em; font-size: 0.92rem; transition: color 0.25s ease; }
.mobile-email { padding: 0.65rem 0 0.2rem; margin-top: 0.35rem; border-top: 1px solid var(--line); }
.mobile-phone { padding: 0.2rem 0 0.4rem; }
.mobile-email svg, .mobile-phone svg { width: 18px; height: 18px; color: var(--accent-2); flex-shrink: 0; }
.mobile-email:hover, .mobile-phone:hover { color: var(--accent-2); }
.foot-contact { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 1.25rem; }
.foot-contact a { display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; opacity: 0.85; font-family: 'Saira', sans-serif; letter-spacing: 0.02em; font-size: 0.8rem; text-decoration: none; transition: opacity 0.25s ease; white-space: nowrap; }
.foot-contact a:hover { opacity: 1; }
.foot-contact svg { width: 14px; height: 14px; color: var(--accent-2); flex-shrink: 0; }

/* ─── FOOTER LAYOUT ───────────────────────────────────────────────
   Mobile: 2-column grid with the brand/intro spanning the full top row,
   then Services and Get Started sitting side by side underneath.
   Desktop (>=768px): restore the original spread flex row. */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
    align-items: start;
}
.footer-top > .footer-brand { grid-column: 1 / -1; }
@media (min-width: 768px) {
    .footer-top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 3rem;
    }
    .footer-top > .footer-brand { max-width: 28rem; }
    /* Desktop: set the contact block off from the CTA with a hairline rule
       so phone + email read as one tidy, deliberate group. */
    .footer-cta .foot-contact {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        border-top: 1px solid var(--line);
    }
}
