/* ═══════════════════════════════════════════════════════
   Plomeria Polanco — app.css
   Dark theme is default. Light theme overrides via html.light.
   Components reference var(--token); they never hardcode a theme.
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62.5..125,100..900&family=Google+Sans+Flex:opsz,wght@6..144,1..1000&family=Passion+One:wght@400;700;900&display=swap');

/* ── Design Tokens — DARK is the default theme ──────── */
:root {
    /* surfaces (dark) */
    --background: #131313;
    --surface: #131313;
    --surface-card: #1E1E1E;
    --surface-container-low: #1c1b1b;
    --surface-container-lowest: #0e0e0e;
    --surface-border: #2C2C2C;

    /* text */
    --on-background: #e5e2e1;
    --on-surface: #e5e2e1;
    --on-surface-variant: #c6c5d3;
    --text-dimmed: #B0BEC5;

    /* accents */
    --secondary: #82cfff;
    /* primary accent (was --sky) */
    --secondary-container: #00abec;
    --primary: #bbc3ff;
    --error: #ffb4ab;

    /* shape — industrial / sharp */
    --radius: 2px;
    --radius-lg: 4px;
    --radius-xl: 8px;

    /* spacing scale from the design */
    --gutter: 24px;
    --section-md: 80px;
    --section-lg: 120px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, .5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, .6);

    /* legacy aliases — keep old rules working until migrated */
    --navy: var(--surface-card);
    --sky: var(--secondary);
    --bg: var(--background);
    --white: var(--surface-card);
    --gray: var(--on-surface-variant);
    --light: var(--surface-container-low);
}

/* ── LIGHT theme — override only what differs ───────── */
html.light {
    --background: #F5F7FA;
    --surface: #F5F7FA;
    --surface-card: #FFFFFF;
    --surface-container-low: #ECEFF3;
    --surface-container-lowest: #FFFFFF;
    --surface-border: #E0E0E0;

    --on-background: #1A1A1A;
    --on-surface: #1A1A1A;
    --on-surface-variant: #546E7A;
    --text-dimmed: #78909C;

    --secondary: #0288c4;
    /* darker cyan — readable on white */
    --secondary-container: #00abec;
    --primary: #4c58a6;
    --error: #ba1a1a;

    --shadow-sm: 0 2px 8px rgba(13, 27, 107, .08);
    --shadow-md: 0 4px 24px rgba(13, 27, 107, .12);
    --shadow-lg: 0 8px 40px rgba(13, 27, 107, .18);
}

/* ── Lenis smooth scroll (required styles) ──────────── */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* ── Reset ──────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* fallback when Lenis is disabled (reduced-motion) */
body {
    font-family: 'Google Sans Flex', 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--on-background);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    transition: background .3s ease, color .3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Archivo', sans-serif;
    font-stretch: 125%;
}

/* Blazor <FocusOnNavigate Selector="h1"> moves focus to the heading on load,
   which paints a UA focus ring. Programmatic focus targets get tabindex="-1";
   hide the ring on those (non-interactive) — focus still moves for screen readers. */
[tabindex="-1"]:focus {
    outline: none;
}

/* ── MudBlazor overrides ────────────────────────────── */
.mud-appbar {
    box-shadow: 0 2px 16px rgba(0, 0, 0, .35) !important;
}

.mud-nav-link:hover {
    background: rgba(130, 207, 255, .12) !important;
}

.mud-nav-link.active {
    background: rgba(130, 207, 255, .18) !important;
    border-left: 3px solid var(--secondary);
}

.mud-card {
    border-radius: var(--radius-lg) !important;
    transition: all .25s ease;
}

.mud-expansion-panels .mud-expand-panel {
    border-radius: var(--radius) !important;
    margin-bottom: 8px !important;
    border: 1px solid var(--surface-border) !important;
}

/* ── Navbar buttons ─────────────────────────────────── */
.nav-btn {
    font-family: 'Google Sans Flex', sans-serif !important;
    font-weight: 500 !important;
    font-size: .88rem !important;
    border-radius: var(--radius) !important;
    padding: 6px 14px !important;
    transition: all .2s;
    color: var(--on-background) !important;
    opacity: .82;
}

.nav-btn:hover {
    opacity: 1;
    background: rgba(130, 207, 255, .1) !important;
}

.nav-btn.nav-active {
    opacity: 1;
    background: rgba(130, 207, 255, .16) !important;
    border-bottom: 2px solid var(--secondary);
    color: var(--secondary) !important;
}

.cta-nav-btn {
    background: var(--secondary-container) !important;
    color: #fff !important;
    border-radius: var(--radius) !important;
    font-family: 'Google Sans Flex', sans-serif !important;
    font-weight: 700 !important;
    margin-left: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 171, 236, .4) !important;
}

.cta-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 171, 236, .55) !important;
}

/* ── HERO (theme-independent dark dramatic zone) ────── */
.hero-section {
    position: relative;
    min-height: 90vh;
    background:
        linear-gradient(135deg, rgba(14, 14, 14, .96) 0%, rgba(19, 19, 19, .82) 50%, rgba(0, 171, 236, .22) 100%),
        #0e0e0e;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(130, 207, 255, .10) 0%, transparent 60%);
    pointer-events: none;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 3rem;
    padding-bottom: 6rem;
    text-align: center;
}

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(130, 207, 255, .16);
    border: 1px solid rgba(130, 207, 255, .4);
    color: var(--secondary);
    font-family: 'Google Sans Flex', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    animation: fadeUp .6s ease both;
}

/* Hero text (always on dark — keep light text both themes) */
.hero-title {
    font-size: clamp(2rem, 5vw, 3.8rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1.15 !important;
    margin-bottom: 20px !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .4);
    animation: fadeUp .7s .1s ease both;
}

.hero-accent {
    color: var(--secondary) !important;
}

.hero-subtitle {
    font-size: clamp(.95rem, 2vw, 1.2rem) !important;
    color: rgba(255, 255, 255, .82) !important;
    line-height: 1.7 !important;
    max-width: 600px;
    margin: 0 auto 2rem auto !important;
    animation: fadeUp .7s .2s ease both;
}

/* Hero stats */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 48px;
    padding: 20px 28px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(8px);
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp .7s .4s ease both;
}

.hero-stat {
    text-align: center;
    flex: 1 1 120px;
}

/* ── TRUST STRIP (accent band, both themes) ─────────── */
.trust-strip {
    background: var(--secondary-container);
    padding: 14px 0;
}

.trust-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 8px;
    align-items: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
}

/* ── SECTION HELPERS ────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    font-family: 'Google Sans Flex', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 3px;
    margin-bottom: 12px;
}

.section-title {
    color: var(--on-background) !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

.section-subtitle {
    color: var(--on-surface-variant) !important;
    line-height: 1.7 !important;
    max-width: 580px;
    margin: 0 auto !important;
}

/* ── SERVICE CARDS ──────────────────────────────────── */
.service-card {
    background: var(--surface-card) !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--surface-border) !important;
    transition: all .25s !important;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--secondary) !important;
}

.svc-icon {
    width: 58px;
    height: 58px;
    background: var(--surface-container-low);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all .25s;
}

.service-card:hover .svc-icon {
    background: var(--secondary);
}

.service-card:hover .svc-icon .mud-icon-root {
    color: var(--background) !important;
}

/* ── FEATURE CARDS (Why Us — dark-tile look both themes) */
.feature-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-left: 2px solid var(--secondary);
    border-radius: var(--radius);
    padding: 18px;
    transition: all .2s;
}

.feature-card:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(130, 207, 255, .14);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── TESTIMONIAL CARDS ──────────────────────────────── */
.testimonial-card {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-sm);
    transition: all .25s;
    height: 100%;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 12px;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    background: var(--secondary);
    color: var(--background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Google Sans Flex', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── TESTIMONIALS marquee (auto horizontal scroll + edge fade) ── */
.pp-testi-marquee {
    overflow: hidden;
    /* Fade en ambos bordes: transparente → opaco → opaco → transparente. */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
}

.pp-testi-track {
    display: flex;
    width: max-content;
    animation: pp-testi-scroll 45s linear infinite;
}

/* Pausa al pasar el cursor. */
.pp-testi-marquee:hover .pp-testi-track {
    animation-play-state: paused;
}

/* Ancho fijo + margen por tarjeta (incl. la última) → translateX(-50%) cierra exacto. */
.pp-testi-track .testimonial-card {
    flex: 0 0 360px;
    width: 360px;
    height: auto;
    margin-right: 24px;
}

@keyframes pp-testi-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

    /* exactamente un set (A) → el set B continúa sin salto */
}

@media (max-width: 640px) {
    .pp-testi-track .testimonial-card {
        flex-basis: 280px;
        width: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {

    /* Sin movimiento automático: scroll manual con snap. */
    .pp-testi-track {
        animation: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .pp-testi-track .testimonial-card {
        scroll-snap-align: start;
    }
}

/* ── CTA BANNER (theme-independent dark dramatic zone) ─ */
.cta-banner {
    background: linear-gradient(135deg, #0e0e0e 0%, #1a1a1a 50%, #0e0e0e 100%);
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(130, 207, 255, .08);
    border-radius: 50%;
    pointer-events: none;
}

/* ── PAGE HERO ──────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, #0e0e0e 0%, #1a1a1a 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--background);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

html.light .page-hero { background: linear-gradient(135deg, #F5F7FA 0%, #ECEFF3 100%); }

/* ── MVV / ABOUT ────────────────────────────────────── */
.mvv-card {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-sm);
    transition: all .25s;
    height: 100%;
}

.mvv-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.mvv-icon {
    width: 64px;
    height: 64px;
    background: var(--surface-container-low);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.about-accent-box {
    background: var(--secondary-container);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
}

.client-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    transition: all .25s;
}

.client-card:hover {
    background: rgba(130, 207, 255, .1);
    border-color: var(--secondary);
    transform: translateY(-4px);
}

/* ── SERVICES DETAIL ────────────────────────────────── */
.service-detail-card {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    border: 1px solid var(--surface-border) !important;
    transition: all .25s !important;
}

.service-detail-card:hover {
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--secondary) !important;
}

.process-step {
    text-align: center;
    padding: 28px 20px;
}

.process-number {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: var(--background);
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(130, 207, 255, .3);
}

/* ── PORTFOLIO ──────────────────────────────────────── */
.portfolio-card {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
}

.portfolio-image-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portfolio-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary-container);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius);
    backdrop-filter: blur(4px);
}

/* ── CONTACT ────────────────────────────────────────── */
.contact-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--surface-card);
    border-radius: var(--radius);
    padding: 14px;
    border: 1px solid var(--surface-border);
    border-left: 3px solid var(--secondary);
    margin-bottom: 14px;
    transition: all .2s;
}

.contact-info-item:hover {
    border-color: var(--secondary);
    transform: translateX(4px);
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: rgba(130, 207, 255, .12);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── FOOTER ─────────────────────────────────────────── */
.footer-link {
    transition: all .2s;
}

.footer-link:hover {
    color: var(--secondary) !important;
    padding-left: 4px;
}

/* ── UTILITIES ──────────────────────────────────────── */
.h-100 {
    height: 100%;
}

.text-center {
    text-align: center;
}

.overflow-x-auto {
    overflow-x: auto;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 16px;
}

.gap-4 {
    gap: 24px;
}

/* ── ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 960px) {
    .hero-section {
        min-height: 80vh;
    }

    .hero-content {
        padding-bottom: 4rem;
    }

    .hero-stats {
        max-width: 100%;
    }

    .cta-banner {
        padding: 60px 0;
    }
}

@media (max-width: 600px) {
    .hero-section {
        min-height: 100svh;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-subtitle {
        font-size: .95rem !important;
    }

    .trust-item {
        flex: 1 1 45%;
        justify-content: center;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .page-hero {
        padding: 60px 0 48px;
    }

    .testimonial-card {
        padding: 20px 16px;
    }

    .mvv-card {
        padding: 24px 20px;
    }

    .contact-info-item {
        padding: 10px 12px;
    }
}

/* ── ERROR UI ────────────────────────────────────────── */
#blazor-error-ui {
    background: #ba1a1a;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    display: none;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 9999;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: .75rem;
    top: .5rem;
}

/* ── Loading splash (Blazor WASM boot) ───────────────────────
   Driven by --blazor-load-percentage (set by the runtime on .loading-progress,
   inherits to children). Progress reflects the real resource load, no fake timer. */
.loading-progress {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    background: radial-gradient(circle at 50% 42%, #11161f, #050608 72%);
    font-family: 'Google Sans Flex', sans-serif;
}

.pp-loader__grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(130, 207, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130, 207, 255, .07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 28%, transparent 72%);
    mask-image: radial-gradient(circle at 50% 44%, #000 28%, transparent 72%);
}

.pp-loader__core { position: relative; width: 120px; height: 120px; }
.pp-loader__ring { width: 120px; height: 120px; transform: rotate(-90deg); }
.pp-loader__track { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 4; }
.pp-loader__bar {
    fill: none;
    stroke: #82CFFF;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 326.726px; /* 2π·52 */
    stroke-dashoffset: calc(326.726px * (1 - var(--blazor-load-percentage, 0%) / 100));
    transition: stroke-dashoffset .2s ease-out;
    filter: drop-shadow(0 0 6px rgba(130, 207, 255, .55));
}

.pp-loader__logo {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(130, 207, 255, .55);
    animation: pp-loader-pulse 2.4s ease-in-out infinite;
}
@keyframes pp-loader-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(130, 207, 255, 0); }
    50% { box-shadow: 0 0 26px 4px rgba(130, 207, 255, .22); }
}

.pp-loader__wordmark {
    position: relative;
    z-index: 1;
    font-weight: 700;
    letter-spacing: .22em;
    font-size: 1.05rem;
    text-transform: uppercase;
    color: #fff;
}
.pp-loader__wordmark span { color: #82CFFF; }

.pp-loader__track-line {
    position: relative;
    z-index: 1;
    width: 210px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .1);
    overflow: hidden;
}
.pp-loader__fill {
    display: block;
    height: 100%;
    width: var(--blazor-load-percentage, 0%);
    background: linear-gradient(90deg, #00AEEF, #82CFFF);
    box-shadow: 0 0 10px rgba(130, 207, 255, .6);
    transition: width .2s ease-out;
}

.pp-loader__label {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .68rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}
.pp-loader__label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #82CFFF;
    animation: pp-loader-blink 1.2s infinite;
}
@keyframes pp-loader-blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

/* ── Loading splash — LIGHT theme (html.light applied pre-paint) ──
   The toggle was removed and light is the only theme, so the boot
   splash follows: white canvas, dark text, blue accents. */
html.light .loading-progress {
    background: radial-gradient(circle at 50% 42%, #ffffff, #eef3f7 72%);
}
html.light .pp-loader__grid {
    background-image:
        linear-gradient(rgba(2, 136, 196, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2, 136, 196, .06) 1px, transparent 1px);
}
html.light .pp-loader__track { stroke: rgba(0, 0, 0, .10); }
html.light .pp-loader__bar {
    stroke: #0288c4;
    filter: drop-shadow(0 0 6px rgba(2, 136, 196, .45));
}
html.light .pp-loader__logo { border-color: rgba(2, 136, 196, .5); }
html.light .pp-loader__wordmark { color: #1A1A1A; }
html.light .pp-loader__wordmark span { color: #0288c4; }
html.light .pp-loader__track-line { background: rgba(0, 0, 0, .1); }
html.light .pp-loader__fill {
    background: linear-gradient(90deg, #0288c4, #00AEEF);
    box-shadow: 0 0 10px rgba(2, 136, 196, .45);
}
html.light .pp-loader__label { color: rgba(26, 26, 26, .55); }
html.light .pp-loader__label::before { background: #0288c4; }

/* scrollbar */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ════════════════════════════════════════════════════════
   LAYOUT — structural parity with the pasted design.
   Plain-HTML sections styled here; tokens drive theming.
   ════════════════════════════════════════════════════════ */
.pp-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.pp-section {
    padding: var(--section-md) 0;
}

.pp-eyebrow {
    display: inline-block;
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--secondary);
}

.pp-h2 {
    font-family: 'Archivo', sans-serif;
    font-stretch: 125%;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--on-background);
    margin: 8px 0 0;
}

@media (max-width:600px) {
    .pp-h2 {
        font-size: 30px;
    }
}

/* ── HERO ─────────────────────────────────────────────── */
.pp-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

/* taller than the hero + pulled up so the parallax translate never bares an edge */
.pp-hero__bg {
    position: absolute;
    left: 0;
    right: 0;
    top: -10%;
    height: 120%;
    z-index: 0;
    will-change: transform;
    /* Hero background image lives here (CSS) so swaps are live-reload, no recompile. */
    background-image: url('../images/hero-logo-wall.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.pp-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 14, 14, .96) 0%, rgba(19, 19, 19, .82) 40%, rgba(19, 19, 19, .45) 100%);
}

.pp-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 48px;
    align-items: center;
    padding: 48px var(--gutter); /* own gutter — overrides .pp-container's, keep horizontal */
    width: 100%;
}

@media (min-width:1024px) {
    .pp-hero__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pp-hero__title {
    font-family: 'Archivo', sans-serif;
    font-stretch: 125%;
    font-size: 56px;
    line-height: 1.18;
    letter-spacing: -.015em;
    font-weight: 800;
    color: #fff;
    max-width: 48rem;
    padding-bottom: .08em;
}

@media (max-width:600px) {
    .pp-hero__title {
        font-size: 34px;
        line-height: 1.2;
    }
}

.pp-hero__sub {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .82);
    max-width: 32rem;
}

.pp-hero__card {
    background: rgba(30, 30, 30, .82);
    backdrop-filter: blur(10px);
    border: 1px solid var(--surface-border);
    padding: 32px;
    box-shadow: var(--shadow-lg), 0 0 24px rgba(130, 207, 255, .12);
    max-width: 420px;
    margin-left: auto;
}

.pp-hero__card-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pp-hero__card-row+.pp-hero__card-row {
    margin-top: 24px;
}

.pp-hero__card-row h4 {
    margin: 0 0 2px;
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--on-surface);
}

.pp-hero__card-row p {
    margin: 0;
    font-size: 14px;
    color: var(--on-surface-variant);
}

/* ── Hero — LIGHT theme overrides ──────────────────────
   Dark stays as authored. In light: the overlay becomes a
   blue wash (deep #016a9b at left for white-text contrast,
   easing to #0288c4 and fading right so the photo shows),
   and the floating card turns white semi-glass. */
html.light .pp-hero__overlay {
    background: linear-gradient(90deg,
        rgba(2, 136, 196, .62) 0%,
        rgba(2, 136, 196, .42) 40%,
        rgba(2, 136, 196, .16) 100%);
}

html.light .pp-hero__card {
    background: rgba(255, 255, 255, .82);
}

/* eyebrow sits on the overlay: cyan accent in dark, white on the blue wash in light */
.pp-hero__eyebrow {
    color: var(--secondary);
}

html.light .pp-hero__eyebrow {
    color: #fff;
}

.pp-hide-lg-down {
    display: none;
}

@media (min-width:1024px) {
    .pp-hide-lg-down {
        display: block;
    }
}

/* ── TRUST BAR ────────────────────────────────────────── */
.pp-trust {
    background: var(--surface-container-low);
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
    padding: 24px 0;
    overflow: hidden;
}

/* Loop marquee: set duplicado + translateX 0→-50% = bucle infinito sin costura */
.pp-trust__viewport {
    overflow: hidden;
}

.pp-trust__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: pp-trust-scroll 40s linear infinite;
}

.pp-trust:hover .pp-trust__track {
    animation-play-state: paused;
}

.pp-trust__item {
    flex: 0 0 auto;
    white-space: nowrap;
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
}

.pp-trust__sep {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    margin: 0 36px;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes pp-trust-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-trust__track {
        animation: none;
    }
}

/* ═══ SERVICES — partido en 2 secciones con pin propio ═══ */

/* ── Sección 1 — Fase 1 (hero shader). Estático: 1 pantalla, sin pin ni scrub. ── */
.pp-svc-hero-pin {
    position: relative;
    height: 100vh;
    z-index: 2;   /* sobre la sección de slides → la gota "melt" gotea por encima */
}

.pp-svc-hero-holder {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Divisor "melted": gotas líquidas que cuelgan del fondo del hero y gotean hacia los slides.
   El gooey filter (SVG) funde las gotas; el gradiente cyan + glow las hace líquido luminoso. */
.pp-svc-melt {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    transform: translateY(45%);   /* gotea hacia abajo, cruzando el seam */
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 6px 16px rgba(0, 174, 239, 0.4));
}
.pp-svc-melt__svg { width: 100%; height: 100%; display: block; }
@media (max-width: 767px) { .pp-svc-melt { height: 110px; } }

/* ── Sección 2 — Fase 2 (slides) + Fase 3 (videos). ── */
/* Altura por defecto 800vh (6 servicios → (N+1)+1=8); initServicesReveal sobreescribe --pp-svc-vh */
.pp-svc-pin {
    position: relative;
    height: var(--pp-svc-vh, 800vh);
    z-index: 1;
}

.pp-svc-holder {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: grid;
    background: transparent;   /* el fondo lo da .pp-svc-zone (continuo bajo ambas secciones) */
}

.pp-svc-phase {
    grid-area: 1 / 1;
    height: 100vh;
}

/* las 3 fases en la misma celda */
.pp-svc-phase--image {
    z-index: 0;
}

.pp-svc-phase--slides {
    z-index: 1;
}

.pp-svc-phase--videos {
    z-index: 2;
    background: #060b24;   /* opaco: cubre los slides al entrar deslizando */
}

/* Fase 1 — imagen */
.pp-svc-visual {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 60vh;
    overflow: hidden;
}

.pp-svc-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform-origin: center center;
}

.pp-svc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #0a1b64 0%, transparent 100%);
    opacity: 0;
    visibility: hidden;
}

.pp-svc-heading {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--gutter);
    pointer-events: none;
    font-family: 'Archivo', sans-serif;
    font-stretch: 125%;
    font-weight: 400;
    font-size: clamp(40px, 7vw, 98px);
    line-height: 1.05;
    color: #fff;
    text-transform: uppercase;
}

/* Palabras clave: bold + azul con relleno tipo agua (sube por la letra).
   --fill 0..100 lo anima GSAP (initServicesReveal) sincronizado con la aparición.
   Default 100 → en móvil/reduced-motion (sin JS) salen sólidas azules. */
.pp-svc-heading strong {
    font-weight: 800;
    --fill: 100;
    background-image: linear-gradient(to top,
        var(--secondary) calc(var(--fill) * 1%),
        rgba(130, 207, 255, 0.28) calc(var(--fill) * 1% + 2%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Shader "gentle rain": canvas WebGL que dibuja SOLO la palabra focal distorsionada por
   lluvia, transparente en el resto → el diseño DOM (blobs, eyebrow, badges) se ve por debajo.
   pointer-events:none para no robar hover a los badges; el mouse lo escucha window. */
.pp-svc-rain {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

/* ── Fase 1 — diseño "líquido" (réplica del referente Stitch) ── */
.pp-svc-phase--image {
    position: relative;
    background: transparent;   /* el fondo + blobs los pone .pp-svc-zone, detrás de ambas secciones */
    overflow: hidden;
}

/* Zona que envuelve hero + slides: fondo near-black continuo + capa de blobs compartida,
   detrás de las dos secciones, para que los blobs crucen el seam sin cortarse. */
.pp-svc-zone {
    position: relative;
    background: #050608;
}

.pp-svc-zone-bg {
    position: absolute;
    inset: 0;                /* cubre toda la zona (hero + slides); solo clipa en los bordes externos */
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.pp-svc-blob {
    position: absolute;
    background: linear-gradient(45deg, #0070e0, #00AEEF);   /* azul → cyan (sin el navy morado) */
    filter: contrast(1.2);
    mix-blend-mode: screen;
    opacity: 0.15;
    animation: pp-blob-morph 15s ease-in-out infinite both alternate,
               pp-blob-drift 25s linear infinite;
    will-change: transform, border-radius;
}

/* top en vh (no % de la zona, que es muy alta) → se concentran en el hero y CRUZAN el seam (~100vh). */
.pp-svc-blob--1 { width: 800px; height: 800px; top: -18vh; left: -12%; animation-duration: 20s; }
.pp-svc-blob--2 { width: 640px; height: 640px; top: 66vh;  right: -8%; animation-duration: 25s; animation-delay: -5s; }
.pp-svc-blob--3 { width: 520px; height: 520px; top: 34vh;  left: 28%; animation-duration: 30s; opacity: 0.05; }

@keyframes pp-blob-morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%; }
    34%      { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67%      { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

@keyframes pp-blob-drift {
    from { transform: rotate(0deg) translateX(50px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
}

.pp-svc-f1 {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--gutter);
    pointer-events: none;
}

.pp-svc-f1__eyebrow {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.pp-svc-f1__eyebrow p {
    margin: 0;
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: clamp(14px, 2.2vw, 28px);
    opacity: 0.6;
    color: #fff;
}

.pp-svc-f1__rule {
    height: 3px;
    width: 96px;
    background: #00AEEF;
}

/* Palabra focal. El shader dibuja la versión con lluvia encima; este DOM es el fallback
   (en desktop se oculta vía JS para no duplicar). Default cyan glow para móvil/sin JS. */
.pp-svc-f1__focal {
    margin: 0;
    font-family: 'Public Sans', 'Archivo', sans-serif;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: clamp(3rem, 15vw, 12rem);
    line-height: 0.8;
    letter-spacing: -0.05em;
    color: #82CFFF;
    user-select: none;
}

/* Phones + tablets: drop the focal "Solución" / shader intro entirely (the
   WebGL is off there so it reads as a flat oversized word). Keep the empty
   #servicios section as the nav scroll anchor; services starts at the slides. */
@media (max-width: 1023px) {
    .pp-svc-hero-pin { height: auto !important; min-height: 0 !important; }
    .pp-svc-hero-holder { display: none !important; }
}

.pp-svc-f1__brand {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.pp-svc-f1__est {
    margin: 0;
    font-family: 'Google Sans Flex', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    font-size: clamp(10px, 1vw, 12px);
    font-weight: 700;
    color: rgba(130, 207, 255, 0.6);
}

.pp-svc-f1__badges {
    display: flex;
    gap: 3rem;
    pointer-events: auto;
}

.pp-svc-f1__badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: default;
}

.pp-svc-f1__badge-ic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(130, 207, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00AEEF;
    transition: all 0.3s;
}

.pp-svc-f1__badge:hover .pp-svc-f1__badge-ic {
    background: #00AEEF;
    border-color: #00AEEF;
    color: #0D1B6B;
}

.pp-svc-f1__badge-lb {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
}

/* Fase 2 — slides + timeline + CTA.
   Contenido SIEMPRE sobre imagen + overlay azul → colores claros fijos. */
/* Heading de la sección de slides: "Nuestros Servicios" (arriba, sobre el grid centrado). */
.pp-svc-slides-head {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
    pointer-events: none;
    padding: 0 var(--gutter);
}
.pp-svc-slides-head__eyebrow {
    display: block;
    font-family: 'Google Sans Flex', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 12px;
    font-weight: 700;
    color: #00AEEF;
    margin-bottom: 6px;
}
.pp-svc-slides-head__title {
    margin: 0;
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(24px, 3vw, 40px);
    color: #fff;
}

.pp-svc-grid {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: stretch;
    padding: 96px var(--gutter);
    max-width: 1440px;
    margin: 0 auto;
}

.pp-svc-col-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    min-width: 0;
}

.pp-svc-swiper {
    position: relative;
    display: grid;
    min-height: 360px;
}

.pp-svc-slide {
    grid-area: 1 / 1;
    position: relative;
    max-width: 720px;
    padding-top: 88px;
}

/* Watermark del número, detrás del contenido */
.pp-svc-slide__num {
    position: absolute;
    top: -10px;
    left: -6px;
    z-index: 0;
    font-family: 'Archivo', sans-serif;
    font-stretch: 125%;
    font-size: 200px;
    line-height: .8;
    font-weight: 800;
    color: var(--secondary);
    opacity: .13;
    pointer-events: none;
    user-select: none;
}

.pp-svc-slide__eyebrow {
    position: relative;
    z-index: 1;
    font-family: 'Google Sans Flex', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 18px;
}

.pp-svc-slide__title {
    position: relative;
    z-index: 1;
    font-family: 'Archivo', sans-serif;
    font-stretch: 125%;
    font-size: 44px;
    line-height: 1.1;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.pp-svc-slide__desc {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, .85);
    line-height: 1.7;
    font-size: 20px;
    max-width: 620px;
}

.pp-svc-slide__list {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
}

/* Phones: service feature bullets stack to 1 column (2-col is too tight). */
@media (max-width: 600px) {
    .pp-svc-slide__list { grid-template-columns: 1fr; gap: 10px; }
}

.pp-svc-slide__list li {
    position: relative;
    padding-left: 28px;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    line-height: 1.4;
}

.pp-svc-slide__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(130, 207, 255, .6);
}

.pp-svc-arrows {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.pp-svc-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background .25s, border-color .25s;
}

.pp-svc-arrow:hover {
    border-color: var(--secondary);
    background: rgba(130, 207, 255, .18);
}

/* Timeline horizontal con círculos sobre la línea */
.pp-svc-timeline {
    position: relative;
}

.pp-svc-bullets {
    position: relative;
    display: flex;
    justify-content: space-between;
}

.pp-svc-line {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, .18);
    z-index: 0;
}

.pp-svc-line__fill {
    position: absolute;
    inset: 0;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: left center;
    box-shadow: 0 0 8px rgba(130, 207, 255, .7);
}

.pp-svc-bullet {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Google Sans Flex', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .05em;
    color: rgba(255, 255, 255, .55);
    transition: color .25s;
}

.pp-svc-bullet::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    transition: background .25s, transform .25s, box-shadow .25s;
}

.pp-svc-bullet:hover {
    color: #fff;
}

.pp-svc-bullet.is-active {
    color: #fff;
}

.pp-svc-bullet.is-active::before {
    background: var(--secondary);
    transform: scale(1.25);
    box-shadow: 0 0 0 5px rgba(130, 207, 255, .22), 0 0 16px rgba(130, 207, 255, .6);
}

/* CTA glass panel (columna derecha) */
.pp-svc-col-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.pp-svc-cta {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: rgba(13, 27, 107, .45);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 4px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .pp-svc-cta {
        background: rgba(13, 27, 107, .85);
    }
}

.pp-svc-cta__icon {
    color: var(--secondary) !important;
    font-size: 2.5rem !important;
    margin-bottom: 20px;
}

.pp-svc-cta__title {
    font-family: 'Archivo', sans-serif;
    font-stretch: 125%;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.pp-svc-cta__sub {
    color: rgba(255, 255, 255, .8);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 28px;
}

.pp-svc-cta__divider {
    height: 1px;
    background: rgba(255, 255, 255, .18);
    margin: 28px 0 20px;
}

.pp-svc-cta__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}

.pp-svc-cta__trust span {
    position: relative;
}

.pp-svc-cta__trust span:not(:last-child)::after {
    content: '·';
    position: absolute;
    right: -13px;
    color: var(--secondary);
}

/* Fase 3 — videos */
.pp-svc-videos-inner {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--gutter);
    background: var(--surface-card);
}

.pp-svc-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.pp-svc-video {
    text-decoration: none;
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    overflow: hidden;
    display: block;
}

.pp-svc-video__thumb {
    aspect-ratio: 16/9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-svc-video__title {
    padding: 16px;
    margin: 0;
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--on-background);
}

/* Fallback: <768px o reduced-motion → stacked, sin pin */
@media (max-width: 767px) {
    .pp-svc-pin,
    .pp-svc-hero-pin {
        height: auto !important;
    }

    .pp-svc-holder,
    .pp-svc-hero-holder {
        position: static;
        height: auto;
        overflow-x: clip;      /* clip leftover horizontal track; keep vertical flow */
        overflow-y: visible;
        display: block;
    }

    .pp-svc-phase {
        height: auto;
    }

    /* Fase 1 nueva (sin pin): el contenido fluye y el hero mantiene 1 pantalla. */
    .pp-svc-phase--image {
        min-height: 100vh;
        height: auto;
        display: flex;
        align-items: center;
    }

    .pp-svc-f1 {
        position: static;
        width: 100%;
        padding: 80px 24px;
    }

    .pp-svc-rain {
        display: none;   /* sin WebGL en móvil; el focal DOM queda visible */
    }

    .pp-svc-visual {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        width: 100%;
        height: 40vh;
        margin-bottom: 24px;
    }

    .pp-svc-overlay {
        display: none;
    }

    .pp-svc-heading {
        position: static;
        color: var(--on-surface);
        font-size: clamp(28px, 8vw, 44px);
        padding: 24px var(--gutter);
    }

    .pp-svc-slides-head {
        position: static;
        padding: 32px var(--gutter) 0;
    }

    .pp-svc-grid {
        grid-template-columns: 1fr;
        height: auto;
        padding: 32px var(--gutter);
        gap: 32px;
    }

    .pp-svc-swiper {
        min-height: 0;
        display: block;
    }

    .pp-svc-slide {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-bottom: 32px;
    }

    /* todos visibles en stacked */
    .pp-svc-arrows,
    .pp-svc-timeline {
        display: none;
    }

    .pp-svc-slide {
        padding-top: 56px;
    }

    .pp-svc-slide__num {
        font-size: 120px;
        top: -4px;
    }

    .pp-svc-col-right {
        justify-content: flex-start;
    }

    .pp-svc-cta {
        max-width: none;
        padding: 28px;
    }

    .pp-svc-phase--videos {
        transform: none !important;
    }

    .pp-svc-videos-inner {
        height: auto;
        padding: 32px var(--gutter);
    }

    .pp-svc-videos-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-svc-pin {
        height: auto !important;
    }

    .pp-svc-holder {
        position: static;
        height: auto;
        overflow: visible;
        display: block;
    }

    .pp-svc-phase {
        height: auto;
    }

    .pp-svc-visual {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        width: 100%;
        height: 50vh;
    }

    .pp-svc-overlay {
        display: none;
    }

    .pp-svc-heading {
        position: static;
        color: var(--on-surface);
    }

    .pp-svc-grid {
        height: auto;
    }

    .pp-svc-slide {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .pp-svc-phase--videos {
        transform: none !important;
    }

    .pp-svc-videos-inner {
        height: auto;
    }
}

/* ═══ SERVICIOS — LIGHT theme overrides ═══════════════════
   Dark stays as authored (immersive near-black water scene).
   In light the whole zone goes bright: near-black → white,
   navy panels → white glass, white text → dark, cyan accents
   (#00AEEF / #82CFFF) → light blue #0288c4, glows softened.
   The WebGL rain focal is recolored in services-rain.js. */

/* master canvas + panels */
html.light .pp-svc-zone { background: #ffffff; }
html.light .pp-svc-phase--videos { background: #ffffff; }
html.light .pp-svc-overlay { background: linear-gradient(to bottom, rgba(2, 136, 196, .06) 0%, transparent 100%); }
html.light .pp-svc-video__thumb { background: #e9eef3; }

/* ambient blobs: screen-blend vanishes on white → multiply tints it faintly blue */
html.light .pp-svc-blob { mix-blend-mode: multiply; opacity: 0.10; }
html.light .pp-svc-blob--3 { opacity: 0.05; }

/* headings + body text → dark */
html.light .pp-svc-heading { color: #1A1A1A; }
html.light .pp-svc-f1__eyebrow p { color: #1A1A1A; }
html.light .pp-svc-f1__badge-lb { color: rgba(26, 26, 26, .55); }
html.light .pp-svc-slides-head__title { color: #1A1A1A; }
html.light .pp-svc-slide__title { color: #1A1A1A; }
html.light .pp-svc-slide__desc { color: rgba(26, 26, 26, .8); }
html.light .pp-svc-slide__list li { color: rgba(26, 26, 26, .78); }
html.light .pp-svc-cta__title { color: #1A1A1A; }
html.light .pp-svc-cta__sub { color: rgba(26, 26, 26, .75); }
html.light .pp-svc-cta__trust { color: rgba(26, 26, 26, .65); }

/* cyan accents → light secondary blue */
html.light .pp-svc-f1__rule { background: #0288c4; }
html.light .pp-svc-f1__focal { color: #0288c4; }
html.light .pp-svc-f1__est { color: rgba(2, 136, 196, .7); }
html.light .pp-svc-f1__badge-ic { color: #0288c4; border-color: rgba(2, 136, 196, .35); }
html.light .pp-svc-f1__badge:hover .pp-svc-f1__badge-ic { background: #0288c4; border-color: #0288c4; color: #fff; }
html.light .pp-svc-slides-head__eyebrow { color: #0288c4; }

/* lines, arrows, bullets → dark neutrals on light */
html.light .pp-svc-arrow { border-color: rgba(0, 0, 0, .25); background: rgba(0, 0, 0, .04); color: #1A1A1A; }
html.light .pp-svc-arrow:hover { background: rgba(2, 136, 196, .12); }
html.light .pp-svc-line { background: rgba(0, 0, 0, .15); }
html.light .pp-svc-line__fill { box-shadow: 0 0 8px rgba(2, 136, 196, .4); }
html.light .pp-svc-bullet { color: rgba(26, 26, 26, .55); }
html.light .pp-svc-bullet:hover { color: #1A1A1A; }
html.light .pp-svc-bullet.is-active { color: #1A1A1A; }
html.light .pp-svc-bullet::before { background: rgba(0, 0, 0, .3); }
html.light .pp-svc-bullet.is-active::before { box-shadow: 0 0 0 5px rgba(2, 136, 196, .18), 0 0 16px rgba(2, 136, 196, .45); }
html.light .pp-svc-slide__list li::before { text-shadow: 0 0 8px rgba(2, 136, 196, .3); }

/* CTA glass panel → white glass */
html.light .pp-svc-cta { background: rgba(255, 255, 255, .6); border-color: rgba(0, 0, 0, .1); box-shadow: 0 24px 60px rgba(13, 27, 107, .12); }
html.light .pp-svc-cta__divider { background: rgba(0, 0, 0, .12); }
/* CTA button keeps var(--secondary) bg (auto-flips); only its label color is theme-driven */
.pp-svc-cta-btn { color: #0D1B6B !important; }
html.light .pp-svc-cta-btn { color: #fff !important; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    html.light .pp-svc-cta { background: rgba(255, 255, 255, .92); }
}

/* ── PROCESS (GSAP sticky-scroll reveal) ───────────────── */
/* height defaults to 500vh (4 cards) but initProcessReveal overrides --pp-process-vh
   from the live card count = (cardCount+1)x100vh. Set via the var, not height directly,
   so the mobile / reduced-motion media queries below still win and reset it to auto. */
.pp-process-outer {
    position: relative;
    height: var(--pp-process-vh, 500vh);
    background: #0e0e0e;
}

.pp-process-wrap {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.pp-process-rightbg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100vh;
    background: #fff;
    z-index: 0;
}

.pp-process-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 50vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    background: #000;
}

.pp-process-visual-img {
    display: none;
}

.pp-process-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.pp-process-grid {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 0 var(--gutter);
    max-width: 1440px;
    margin: 0 auto;
}

.pp-process-col1 {
    align-self: center;
}

.pp-process-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
}

.pp-process-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, .45);
    transition: color .25s;
}

.pp-process-nav-item.is-active {
    color: #fff;
}

.pp-process-nav-arrow {
    color: var(--secondary);
    opacity: 0;
    transition: opacity .25s;
}

.pp-process-nav-item.is-active .pp-process-nav-arrow {
    opacity: 1;
}

.pp-process-col2 {
    height: 100vh;
    overflow: clip;
    display: flex;
    align-items: flex-start;
}

.pp-process-cards {
    width: 100%;
}

/* slot: 1 viewport de alto, centra la card visible */
.pp-card {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* card visible — estado inicial: fondo blanco, texto gris-verde, borde invisible.
   GSAP anima bg→transparent, color→#fff, borderColor→#fff cuando la imagen se expande. */
.pp-card__inner {
    width: 480px;
    max-width: 100%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    background: #ffffff;
    color: rgb(86, 91, 86);
    border: 1px solid rgba(255, 255, 255, 0);
}

.pp-card__header {
    display: flex;
    flex-direction: column;
}

.pp-card__step {
    color: var(--secondary);
    font-family: 'Google Sans Flex', sans-serif;
    font-weight: 700;
    font-size: 20px;
}

.pp-card__divider {
    height: 1px;
    background: currentColor;
    opacity: .25;
    margin: 16px 0;
}

.pp-card__title {
    font-family: 'Archivo', sans-serif;
    font-stretch: 125%;
    font-weight: 500;
    font-size: 34px;
    margin: 0 0 12px;
    color: inherit;
}

.pp-card__subtitle {
    font-size: 16.8px;
    line-height: 1.6;
    margin: 0;
    color: inherit;
}

.pp-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pp-card__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    line-height: 1.5;
}

.pp-card__icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    background: rgba(130, 207, 255, .13);
    border: 1px solid rgba(130, 207, 255, .30);
}

/* section title + CTA — moved off inline styles so they can flip with the theme.
   Defaults reproduce the dark look (white title, white button w/ dark text). */
.pp-process-title { color: #fff; }
.pp-process-cta { background: #fff !important; color: #131313 !important; }
/* hover → blue accent (same vivid blue in both themes) */
.pp-process-cta:hover { background: var(--secondary-container) !important; color: #fff !important; }

/* ── OUR PROCESS — LIGHT theme overrides ───────────────
   Same expand animation, backgrounds inverted: the white parts
   (right backdrop + initial card) go dark, and the dark panel
   that expands goes white. Card END colors are animated in JS
   (theme-aware in initProcessReveal); these cover the rest. */
html.light .pp-process-outer  { background: #ffffff; }
html.light .pp-process-visual  { background: #ffffff; }
html.light .pp-process-overlay { background: #ffffff; }
html.light .pp-process-rightbg { background: #131313; }
html.light .pp-process-nav-item { color: rgba(19, 19, 19, .45); }
html.light .pp-process-nav-item.is-active { color: #131313; }
html.light .pp-card__inner {
    background: #131313;
    color: rgba(255, 255, 255, .82);
}
html.light .pp-process-title { color: #131313; }
html.light .pp-process-cta { background: #131313 !important; color: #fff !important; }
/* "+" circles: deeper blue tint/border on the light card */
html.light .pp-card__icon {
    background: rgba(2, 136, 196, .13);
    border-color: rgba(2, 136, 196, .30);
}

/* Fallback: no pin/animation on phones AND tablets (<1024). The pinned
   2-col + 50vw layout only fits desktop; below that it stacks. */
@media (max-width:1023px) {
    .pp-process-outer {
        height: auto;
    }

    .pp-process-wrap {
        position: static;
        height: auto;
        overflow: visible;
    }

    .pp-process-visual {
        display: none;
    }

    .pp-process-overlay {
        display: none;
    }

    .pp-process-rightbg {
        display: none;
    }

    .pp-process-grid {
        grid-template-columns: 1fr;
        height: auto;
        padding: 48px var(--gutter);
        gap: 32px;
    }

    /* min-width:0 lets the 1fr track shrink below content; otherwise the
       fixed 480px card forces the whole page to ~504px (horizontal overflow). */
    .pp-process-grid, .pp-process-col1, .pp-process-col2 { min-width: 0; }

    .pp-process-col2 {
        height: auto;
        overflow: visible;
    }

    .pp-card {
        height: auto;
        color: #fff;
        margin-bottom: 48px;
    }

    .pp-card__inner { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .pp-process-outer {
        height: auto;
    }

    .pp-process-wrap {
        position: static;
        height: auto;
        overflow: visible;
    }

    .pp-process-visual {
        position: relative;
        width: 100%;
        height: 50vh;
    }

    .pp-process-overlay {
        display: none;
    }

    .pp-process-rightbg {
        display: none;
    }

    .pp-process-grid {
        height: auto;
        padding: 48px var(--gutter);
    }

    .pp-process-col2 {
        height: auto;
        overflow: visible;
    }

    .pp-card {
        height: auto;
        color: #fff;
        margin-bottom: 48px;
    }
}

/* ── WHY US ───────────────────────────────────────────── */
.pp-why__grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width:1024px) {
    .pp-why__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pp-why__features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

@media (min-width:640px) {
    .pp-why__features {
        grid-template-columns: 1fr 1fr;
    }
}

/* Why — pinned scrub. height overridden by initWhyReveal (--pp-why-vh). */
.pp-why-outer {
    position: relative;
    height: var(--pp-why-vh, 700vh);
}

.pp-why-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 48px 0;
    overflow: hidden;
}

.pp-why__grid {
    width: 100%;
}

@media (min-width:1024px) {
    .pp-why__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card__fill {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(120deg, #5bbfde 0%, #7fd0e8 100%);
}

.feature-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.feature-card__icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: #192330;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.feature-card__title {
    margin: 0;
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.feature-card__text {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--on-surface-variant);
}

.pp-why-media {
    position: relative;
    height: clamp(440px, 72vh, 660px);
    border-radius: 10px;
    overflow: hidden;
}

.pp-why-media__panel {
    position: absolute;
    inset: 0;
}

.pp-why-media__panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pp-why-media__grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.15) 0%, rgba(13, 17, 23, 0.35) 55%, rgba(13, 17, 23, 0.92) 100%);
}

.pp-why-media__caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
}

.pp-why-media__count {
    display: inline-block;
    color: var(--secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pp-why-media__title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.pp-why-media__sub {
    margin: 0;
    color: #c4cedd;
    font-size: 13px;
    line-height: 1.5;
    max-width: 340px;
}

@media (max-width:767px) {
    .pp-why-outer {
        height: auto;
    }

    .pp-why-pin {
        position: static;
        height: auto;
        display: block;
        padding: 64px 0;
        overflow: visible;
    }

    .pp-why-media {
        margin-top: 32px;
    }
}

.pp-feature-span2 {
    grid-column: 1 / -1;
}

/* ── QUIÉNES SOMOS (stats + text) ─────────────────────── */
/* ═══ QUIÉNES SOMOS — blueprint técnico ═══ */
.pp-about-tech {
    position: relative;
    background: #000;
    color: #fff;
    overflow: hidden;
    padding: 120px 0;
    font-family: 'Public Sans', sans-serif;
}

.pp-about-tech__blueprint {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(130, 207, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130, 207, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.pp-about-tech__techline {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(130, 207, 255, 0.2);
    z-index: 0;
    pointer-events: none;
}
.pp-about-tech__techline--l1 { left: 25%; }
.pp-about-tech__techline--l2 { left: 75%; }
@media (max-width: 1023px) { .pp-about-tech__techline { display: none; } }

.pp-about-tech__wrap {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 768px) { .pp-about-tech__wrap { padding: 0 48px; } }

.pp-about-tech__mono {
    font-family: ui-monospace, 'SFMono-Regular', 'Roboto Mono', Menlo, monospace;
}

.pp-glass-panel {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Intro */
.pp-about-tech__intro { margin-bottom: 128px; }
.pp-about-tech__intro-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.pp-about-tech__intro-ic { color: #82CFFF; font-size: 2.25rem !important; }
.pp-about-tech__docref { color: #82CFFF; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 8px; }
.pp-about-tech__title {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1;
    margin: 0;
}
.pp-about-tech__intro-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 1024px) {
    .pp-about-tech__intro-grid { grid-template-columns: repeat(12, 1fr); }
    .pp-about-tech__lede { grid-column: 2 / 7; }
    .pp-about-tech__coords { grid-column: 8 / 12; }
}
.pp-about-tech__lede { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 300; line-height: 1.6; color: rgba(255, 255, 255, 0.9); margin: 0; }
.pp-about-tech__coords { padding: 24px; justify-self: start; }
.pp-about-tech__coords-lbl { color: #82CFFF; font-size: 0.8rem; margin: 0 0 8px; }
.pp-about-tech__coords-main { font-weight: 700; font-size: 1.125rem; margin: 0; }
.pp-about-tech__coords-sub { color: rgba(255, 255, 255, 0.6); font-size: 0.7rem; margin: 4px 0 0; }

/* Stat sections */
.pp-about-tech__stat {
    position: relative;
    min-height: 614px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(130, 207, 255, 0.2);
    padding: 96px 0;
}
.pp-about-tech__huge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: clamp(8rem, 20vw, 24rem);
    line-height: 0.8;
    letter-spacing: -0.05em;
    color: rgba(255, 255, 255, 0.03);
    -webkit-text-stroke: 1px rgba(130, 207, 255, 0.1);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.pp-about-tech__stat-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
@media (min-width: 1024px) {
    .pp-about-tech__stat-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.pp-about-tech__stat-img { position: relative; }
.pp-about-tech__stat-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    filter: grayscale(1);
    transition: filter 0.7s;
}
.pp-about-tech__stat-img:hover img { filter: grayscale(0); }
.pp-about-tech__stat-img::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    z-index: 0;
    background: rgba(130, 207, 255, 0.1);
    transition: transform 0.4s;
}
.pp-about-tech__stat-img--l::before { transform: translate(16px, 16px); }
.pp-about-tech__stat-img--l:hover::before { transform: translate(24px, 24px); }
.pp-about-tech__stat-img--r::before { transform: translate(-16px, 16px); }
.pp-about-tech__stat-img--r:hover::before { transform: translate(-24px, 24px); }
@media (max-width: 1023px) {
    .pp-about-tech__stat-img--l { order: 2; }            /* stat 1: texto arriba, imagen abajo */
    .pp-about-tech__stat-txt--order1 { order: 1; }
    .pp-about-tech__stat-img--order2 { order: 2; }
}

.pp-about-tech__tag { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.pp-about-tech__tag-line { width: 48px; height: 4px; background: #82CFFF; }
.pp-about-tech__tag .pp-about-tech__mono { color: #82CFFF; font-size: 0.8rem; letter-spacing: 0.2em; }
.pp-about-tech__h3 { font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 0 0 24px; }
.pp-about-tech__h3--glow { text-shadow: 0 0 20px rgba(130, 207, 255, 0.3); }
.pp-about-tech__body { font-size: 1.05rem; line-height: 1.7; color: rgba(255, 255, 255, 0.7); max-width: 28rem; margin: 0; }
.pp-about-tech__badges { display: flex; align-items: center; gap: 24px; margin-top: 48px; }
.pp-about-tech__badge { display: flex; flex-direction: column; gap: 8px; }
.pp-about-tech__badge-ic { color: #82CFFF; font-size: 1.75rem !important; }
.pp-about-tech__badge .pp-about-tech__mono { font-size: 0.7rem; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.pp-about-tech__badge-div { width: 1px; height: 48px; background: rgba(255, 255, 255, 0.2); }

/* Philosophy timeline */
.pp-about-tech__phil { margin-top: 128px; padding-top: 96px; border-top: 1px solid rgba(130, 207, 255, 0.3); }
.pp-about-tech__phil-head { text-align: center; margin-bottom: 96px; }
.pp-about-tech__phil-title { font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.875rem; color: #82CFFF; margin: 0 0 16px; }
.pp-about-tech__phil-sub { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; margin: 0; }

.pp-about-tech__timeline { position: relative; max-width: 56rem; margin: 0 auto; }
.pp-about-tech__tl-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(130, 207, 255, 0.3);
    box-shadow: 0 0 10px rgba(130, 207, 255, 0.5);
}
.pp-about-tech__tl-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 96px;
}
.pp-about-tech__tl-item:last-child { margin-bottom: 0; }
.pp-about-tech__tl-side { width: 45%; }
.pp-about-tech__tl-side--text { text-align: right; padding-right: 48px; }
.pp-about-tech__tl-item--rev .pp-about-tech__tl-side--text { text-align: left; padding-right: 0; padding-left: 48px; }
.pp-about-tech__tl-side--num { padding-left: 48px; }
.pp-about-tech__tl-item--rev .pp-about-tech__tl-side--num { padding-left: 0; padding-right: 48px; text-align: right; }
.pp-about-tech__tl-side--num span { font-size: 3.75rem; font-weight: 900; color: #82CFFF; opacity: 0.2; }
.pp-about-tech__tl-title { font-weight: 700; font-size: 1.5rem; margin: 0 0 8px; }
.pp-about-tech__tl-body { color: rgba(255, 255, 255, 0.6); font-size: 0.875rem; margin: 0; line-height: 1.6; }
.pp-about-tech__tl-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0D1B6B;
    border: 2px solid #82CFFF;
    box-shadow: 0 0 15px rgba(130, 207, 255, 0.8);
    z-index: 2;
    transition: transform 0.3s;
}
.pp-about-tech__tl-item:hover .pp-about-tech__tl-dot { transform: translateX(-50%) scale(1.5); }

@media (max-width: 767px) {
    .pp-about-tech { padding: 80px 0; }
    .pp-about-tech__intro { margin-bottom: 64px; }
    .pp-about-tech__phil { margin-top: 64px; }
    .pp-about-tech__stat { min-height: 0; padding: 64px 0; }
    .pp-about-tech__stat-img img { height: 320px; }
    .pp-about-tech__tl-line { left: 8px; }
    .pp-about-tech__tl-item, .pp-about-tech__tl-item--rev { flex-direction: column; align-items: flex-start; padding-left: 32px; }
    .pp-about-tech__tl-side { width: 100%; }
    .pp-about-tech__tl-side--text, .pp-about-tech__tl-item--rev .pp-about-tech__tl-side--text { text-align: left; padding: 0; }
    .pp-about-tech__tl-side--num, .pp-about-tech__tl-item--rev .pp-about-tech__tl-side--num { padding: 0; text-align: left; order: -1; margin-bottom: 8px; }
    .pp-about-tech__tl-dot { left: 8px; }
}

/* ── QUIÉNES SOMOS (blueprint) — LIGHT theme overrides ──
   Same philosophy as the hero: the dark blueprint stays as
   authored. In light it inverts to a white canvas with dark
   text, blue grid/accents (cyan #82CFFF → #0288c4), and the
   coords panel becomes white semi-glass. */
html.light .pp-about-tech {
    background: #ffffff;
    color: #1A1A1A;
}

html.light .pp-about-tech__blueprint {
    background-image:
        linear-gradient(rgba(2, 136, 196, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2, 136, 196, 0.06) 1px, transparent 1px);
}

html.light .pp-about-tech__techline {
    background: rgba(2, 136, 196, 0.15);
}

html.light .pp-glass-panel {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* cyan accents → light secondary blue */
html.light .pp-about-tech__intro-ic,
html.light .pp-about-tech__docref,
html.light .pp-about-tech__coords-lbl,
html.light .pp-about-tech__tag .pp-about-tech__mono,
html.light .pp-about-tech__badge-ic,
html.light .pp-about-tech__phil-title {
    color: var(--secondary);
}

html.light .pp-about-tech__tag-line { background: var(--secondary); }
html.light .pp-about-tech__tl-side--num span { color: var(--secondary); }

/* white-opacity text → dark-opacity */
html.light .pp-about-tech__lede { color: rgba(26, 26, 26, 0.9); }
html.light .pp-about-tech__body { color: rgba(26, 26, 26, 0.75); }
html.light .pp-about-tech__coords-sub,
html.light .pp-about-tech__phil-sub,
html.light .pp-about-tech__tl-body { color: rgba(26, 26, 26, 0.6); }
html.light .pp-about-tech__badge .pp-about-tech__mono { color: rgba(26, 26, 26, 0.55); }
html.light .pp-about-tech__badge-div { background: rgba(0, 0, 0, 0.15); }

/* watermark, borders, timeline + glow */
html.light .pp-about-tech__huge {
    color: rgba(0, 0, 0, 0.035);
    -webkit-text-stroke: 1px rgba(2, 136, 196, 0.12);
}
html.light .pp-about-tech__stat { border-top-color: rgba(2, 136, 196, 0.2); }
html.light .pp-about-tech__phil { border-top-color: rgba(2, 136, 196, 0.25); }
html.light .pp-about-tech__stat-img::before { background: rgba(2, 136, 196, 0.12); }
html.light .pp-about-tech__h3--glow { text-shadow: none; }
html.light .pp-about-tech__tl-line {
    background: rgba(2, 136, 196, 0.3);
    box-shadow: 0 0 10px rgba(2, 136, 196, 0.35);
}
html.light .pp-about-tech__tl-dot {
    background: #ffffff;
    border-color: var(--secondary);
    box-shadow: 0 0 12px rgba(2, 136, 196, 0.5);
}

.pp-about__grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width:1024px) {
    .pp-about__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pp-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pp-stat-box {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.pp-stat-box--accent {
    background: var(--secondary-container);
    border: none;
}

.pp-stat-box--wide {
    grid-column: 1 / -1;
}

.pp-stat-box__num {
    font-family: 'Archivo', sans-serif;
    font-stretch: 125%;
    font-weight: 800;
    font-size: 56px;
    line-height: 1;
    color: var(--secondary);
}

.pp-stat-box__num--md {
    font-size: 32px;
}

.pp-stat-box--accent .pp-stat-box__num {
    color: #fff;
}

.pp-stat-box__lbl {
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 12px;
    letter-spacing: .05em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dimmed);
}

.pp-stat-box--accent .pp-stat-box__lbl {
    color: rgba(255, 255, 255, .85);
}

/* ── GRID-3 (works / videos / testimonials) ───────────── */
.pp-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width:640px) {
    .pp-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width:768px) {
    .pp-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pp-work {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    overflow: hidden;
}

.pp-work__img {
    height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-work__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--secondary-container);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
}

.pp-work__body {
    padding: 24px;
}

.pp-work__body h4 {
    margin: 0 0 8px;
    font-family: 'Google Sans Flex', sans-serif;
    font-weight: 700;
    color: var(--on-background);
}

.pp-work__body p {
    margin: 0 0 12px;
    color: var(--on-surface-variant);
    font-size: 14px;
    line-height: 1.6;
}

.pp-work__loc {
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-dimmed);
}

/* ── FAQ (native details) ─────────────────────────────── */
.pp-faq-group {
    margin-bottom: 40px;
}

.pp-faq-group__title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--secondary);
    font-family: 'Google Sans Flex', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .05em;
    font-size: 14px;
    margin-bottom: 20px;
}

.pp-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 48px;
    border-bottom: 1px solid var(--surface-border);
}

.pp-faq {
    background: none;
    border: none;
    border-top: 1px solid var(--surface-border);
    margin: 0;
}

.pp-faq>summary {
    list-style: none;
    cursor: pointer;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--on-background);
    line-height: 1.4;
}

.pp-faq>summary::-webkit-details-marker {
    display: none;
}

.pp-faq__chevron {
    color: var(--on-background);
    flex: 0 0 auto;
    transition: transform .2s;
}

.pp-faq[open] .pp-faq__chevron {
    transform: rotate(180deg);
}

/* Apertura animada: grid-template-rows 0fr→1fr (suave, sin alturas mágicas).
   display:grid también anula el display:none que el UA pone al <details> cerrado,
   para que la transición exista en ambos sentidos. */
.pp-faq__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s ease;
}

.pp-faq[open] .pp-faq__body {
    grid-template-rows: 1fr;
}

.pp-faq__body-inner {
    overflow: hidden;
    min-height: 0;
    padding: 0 0 24px;
    color: var(--on-surface-variant);
    line-height: 1.7;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .3s ease .05s, transform .3s ease .05s;
}

.pp-faq[open] .pp-faq__body-inner {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .pp-faq__body {
        transition: none;
    }

    .pp-faq__body-inner {
        transition: none;
    }
}

@media (max-width:900px) {
    .pp-faq-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}

.pp-faq__body p {
    margin: 0 0 12px;
}

.pp-faq__body p:last-child {
    margin-bottom: 0;
}

.pp-faq__body a {
    color: var(--secondary);
    text-decoration: underline;
}

.pp-faq__body ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.pp-faq__body li {
    margin-bottom: 6px;
}

/* ── CONTACT ──────────────────────────────────────────── */
.pp-contact__grid {
    display: grid;
    gap: 48px;
}

@media (min-width:1024px) {
    .pp-contact__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── FOOTER ───────────────────────────────────────────── */
.pp-footer {
    background: var(--surface-container-lowest);
    border-top: 1px solid var(--surface-border);
    padding: 64px 0 32px;
}

.pp-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (min-width:768px) {
    .pp-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width:1024px) {
    .pp-footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pp-footer h4 {
    font-family: 'Google Sans Flex', sans-serif;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    color: var(--on-surface);
    margin: 0 0 20px;
}

.pp-footer a {
    color: var(--on-surface-variant);
    text-decoration: none;
    transition: color .2s;
}

.pp-footer a:hover {
    color: var(--secondary);
}

.pp-footer__bottom {
    border-top: 1px solid var(--surface-border);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-dimmed);
}

@media (min-width:768px) {
    .pp-footer__bottom {
        flex-direction: row;
    }
}

/* ═══ MVV — tall scroll-driven + water ripple ═══ */
.pp-mvv-outer {
    position: relative;
    height: 250vh;
    background: #05070b;
}

/* GSAP ScrollTrigger pins this 100vh layer; outer height = scroll distance for the reveal */
.pp-mvv-pin {
    position: relative;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.pp-mvv-ripple {
    position: absolute;
    inset: 0;
}

.pp-mvv-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.55) 100%);
}

.pp-mvv-block {
    position: absolute;
    width: min(520px, 86vw);
    display: flex;
    flex-direction: column;
    z-index: 4;
}

.pp-mvv-block--a {
    left: 8%;
    top: 8%;
    align-items: flex-start;
    text-align: left;
}

.pp-mvv-block--b {
    right: 8%;
    top: 32%;
    align-items: flex-end;
    text-align: right;
}

/* center via negative margin (NOT transform — GSAP owns transform via the y tween) */
.pp-mvv-block--c {
    left: 50%;
    top: 56%;
    margin-left: calc(min(520px, 86vw) / -2);
    align-items: center;
    text-align: center;
}

.pp-mvv-block__icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(91, 191, 222, 0.12);
    border: 1px solid rgba(91, 191, 222, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.pp-mvv-block__title {
    margin: 0 0 18px;
    color: #fff;
    font-family: 'Archivo', sans-serif;
    font-stretch: 125%;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pp-mvv-block__text {
    margin: 0;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.55;
    max-width: 100%;
    /* wrap only at spaces — never mid-word; hyphenate only as last resort if a word overflows */
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.mvv-word {
    color: #313b4b;
}

/* ── MVV — LIGHT theme overrides ───────────────────────
   Ripple base/grid + word-reveal colors live in mvv-reveal.js
   (theme-aware there). These cover the CSS-owned pieces: the
   section canvas, vignette, title and icon chip. */
html.light .pp-mvv-outer { background: #ffffff; }
html.light .mvv-word { color: #1a1a1a; }
html.light .pp-mvv-vignette {
    background: radial-gradient(ellipse at center, transparent 45%, rgba(2, 136, 196, 0.06) 100%);
}
html.light .pp-mvv-block__title { color: #1A1A1A; }
html.light .pp-mvv-block__icon {
    background: rgba(2, 136, 196, 0.10);
    border-color: rgba(2, 136, 196, 0.30);
}

/* Stack on phones AND tablets (<1024): the 250vh pin scroll only makes sense
   on desktop; below that it left a huge empty gap at the end of the section. */
@media (max-width:1023px) {
    .pp-mvv-outer {
        height: auto;
    }

    .pp-mvv-pin {
        position: relative;
        height: auto;
        overflow: visible;
    }

    .pp-mvv-block {
        position: relative;
        width: auto;
        left: auto;
        right: auto;
        top: auto;
        margin-left: 0;
        align-items: flex-start;
        text-align: left;
        padding: 40px 24px;
    }

    .pp-mvv-block__title {
        font-size: 30px;
    }

    .pp-mvv-block__text {
        font-size: 18px;
    }
}

/* ═══ Portfolio (Trabajos) — technical bento grid (Stitch reference) ═══
   Black scene with glass cards + animated gear placeholders. Renders inside
   MainLayout. Fonts: Google Sans Flex (headlines) + Archivo (technical text)
   — the site's two families, no monospace import. */
.pp-port {
    --port-sky: #82CFFF;
    position: relative;
    overflow: hidden;
    background: #000;
    color: #fff;
}
/* "Technical readout" text: Archivo with mono-ish tracking (no new font). */
.pp-port__tech {
    font-family: 'Google Sans Flex', sans-serif;
    text-transform: uppercase;
    letter-spacing: .18em;
}
/* small serial labels on cards (DIAG-04, PROY-99) */
.pp-port__serial { font-size: .7rem; color: rgba(255, 255, 255, .35); }

/* Ambient background layers (contained, not fixed → no bleed over shell). */
.pp-port__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pp-port__bg-grid {
    position: absolute; inset: 0; opacity: .6;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .09) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 40px 40px;
}
.pp-port__bg-dots {
    position: absolute; inset: 0; opacity: .18;
    background-image: radial-gradient(var(--port-sky) 1px, transparent 1px);
    background-size: 24px 24px;
}
.pp-port__bg-ring { position: absolute; border-radius: 9999px; border: 1px solid rgba(130, 207, 255, .18); }
.pp-port__bg-ring--1 { top: -10%; right: -5%; width: 60vw; height: 60vw; }
.pp-port__bg-ring--2 { bottom: -10%; left: -5%; width: 50vw; height: 50vw; }
.pp-port__bg-glow {
    position: absolute; border-radius: 9999px; filter: blur(120px);
    animation: pp-port-pulse 8s infinite alternate ease-in-out;
}
.pp-port__bg-glow--1 { top: -20%; left: -10%; width: 50vw; height: 50vw; background: rgba(26, 41, 128, .45); }
.pp-port__bg-glow--2 { bottom: -20%; right: -10%; width: 40vw; height: 40vw; background: rgba(130, 207, 255, .22); animation-delay: -4s; }
@keyframes pp-port-pulse { 0%, 100% { opacity: .5; } 50% { opacity: .85; } }

.pp-port__main { position: relative; z-index: 10; }

/* ── Hero ── */
.pp-port__hero {
    position: relative;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.pp-port__badge {
    display: inline-flex; align-items: center; gap: .5rem;
    align-self: flex-start;
    padding: .25rem .75rem; margin-bottom: 1.5rem;
    background: rgba(130, 207, 255, .10);
    border: 1px solid rgba(130, 207, 255, .30);
    color: var(--port-sky);
    font-size: .75rem;
}
.pp-port__badge-dot { width: .5rem; height: .5rem; border-radius: 9999px; background: var(--port-sky); animation: pp-port-blink 1.5s infinite; }
@keyframes pp-port-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.pp-port__title {
    font-family: 'Archivo', sans-serif;
    font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
    font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.0;
    margin: 0 0 1rem;
}
.pp-port__title .grad {
    background: linear-gradient(to right, var(--port-sky), #fff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pp-port__lead {
    max-width: 36rem; color: rgba(255, 255, 255, .60);
    font-family: 'Google Sans Flex', sans-serif; font-size: .9rem; line-height: 1.6;
    border-left: 2px solid var(--port-sky); padding-left: 1rem;
}

/* ── Filters ── */
.pp-port__section { padding: 4rem 2rem; }
.pp-port__filters {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: .75rem; margin-bottom: 3rem; padding: 0;
    background: transparent; border: none;
}
.pp-port__filter {
    padding: .5rem 1.5rem; font-size: .75rem; cursor: pointer;
    background: transparent; color: rgba(255, 255, 255, .60);
    border: 1px solid transparent; border-radius: 2px;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.pp-port__filter:hover { color: var(--port-sky); background: rgba(255, 255, 255, .05); border-color: rgba(130, 207, 255, .30); }
.pp-port__filter.is-active { background: var(--port-sky); color: #000; font-weight: 700; border-color: var(--port-sky); }

/* ── Bento grid ── */
.pp-port__bento { display: grid; grid-template-columns: 1fr; gap: 1.5rem; grid-auto-flow: dense; }
.pp-port__card {
    position: relative; overflow: hidden;
    background: linear-gradient(155deg, rgba(22, 26, 38, .92), rgba(2, 4, 10, .82));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .14); border-radius: 4px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
    display: flex; flex-direction: column;
    min-height: 250px;
    transition: border-color .4s ease, box-shadow .4s ease, transform .4s ease;
}
.pp-port__card:hover {
    border-color: rgba(130, 207, 255, .55);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .6), 0 0 0 1px rgba(130, 207, 255, .20), 0 0 34px rgba(130, 207, 255, .14);
    transform: translateY(-3px);
}
.pp-port__card.pp-port-hide { display: none; }

/* Image placeholder zone — reads as a dedicated media slot: tinted panel,
   dashed frame, "SIN IMAGEN" label, plus rotating gear motif (stand-in). */
.pp-port__gears {
    position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(130, 207, 255, .12), transparent 62%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 9px),
        linear-gradient(160deg, #0c1424, #03060e);
}
.pp-port__gears::before {
    content: ''; position: absolute; inset: .85rem;
    border: 1px dashed rgba(130, 207, 255, .28); border-radius: 3px;
}
.pp-port__gears::after {
    content: 'SIN IMAGEN';
    position: absolute; top: .85rem; left: .85rem;
    font-family: 'Google Sans Flex', sans-serif; font-size: .58rem; letter-spacing: .2em;
    color: rgba(130, 207, 255, .55);
    background: rgba(0, 0, 0, .5); padding: .15rem .4rem; border: 1px solid rgba(130, 207, 255, .2);
}
.pp-port__gear { position: absolute; border-radius: 9999px; }
.pp-port__gear--out { width: 9rem; height: 9rem; border: 1px dashed rgba(130, 207, 255, .5); animation: pp-port-spin 20s linear infinite; }
.pp-port__gear--mid { width: 6.5rem; height: 6.5rem; border: 1px solid rgba(130, 207, 255, .42); animation: pp-port-spin 15s linear infinite reverse; }
.pp-port__gear--in  { width: 4rem; height: 4rem; border: 1px dashed rgba(130, 207, 255, .55); animation: pp-port-spin 10s linear infinite; }
@keyframes pp-port-spin { to { transform: rotate(360deg); } }
.pp-port__card:hover .pp-port__gear--out { border-color: var(--port-sky); }

.pp-port__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, #000, rgba(0, 0, 0, .6) 50%, transparent); pointer-events: none; }

.pp-port__body { position: relative; z-index: 2; padding: 1.5rem; margin-top: auto; width: 100%; }
.pp-port__rowtop { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.pp-port__ref {
    font-family: 'Google Sans Flex', sans-serif; text-transform: uppercase; letter-spacing: .15em;
    font-size: .7rem; color: var(--port-sky);
    background: #000; border: 1px solid rgba(130, 207, 255, .30); padding: .25rem .6rem;
}
.pp-port__chip {
    display: inline-block; font-family: 'Google Sans Flex', sans-serif; text-transform: uppercase; letter-spacing: .15em;
    font-size: .62rem; color: var(--port-sky);
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10);
    padding: .25rem .5rem; margin-bottom: .75rem;
}
.pp-port__card h3, .pp-port__card h4 {
    font-family: 'Archivo', sans-serif; font-weight: 700; text-transform: uppercase; color: #fff; margin: 0 0 .5rem;
}
.pp-port__card h3 { font-size: 1.75rem; }
.pp-port__card h4 { font-size: 1.1rem; }
.pp-port__desc { font-family: 'Google Sans Flex', sans-serif; font-size: .82rem; color: rgba(255, 255, 255, .65); line-height: 1.6; margin: 0; }
.pp-port__icon-corner { position: absolute; top: 1rem; right: 1rem; z-index: 1; opacity: .12; }
.pp-port__icon-corner .mud-icon-root { font-size: 4rem; color: var(--port-sky); }

/* Feature card stats row */
.pp-port__stats-row { display: flex; gap: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .10); padding-top: 1rem; margin-top: 1rem; }
.pp-port__stat-k { display: block; font-family: 'Google Sans Flex', sans-serif; text-transform: uppercase; letter-spacing: .15em; font-size: .62rem; color: rgba(255, 255, 255, .40); }
.pp-port__stat-v { font-family: 'Google Sans Flex', sans-serif; font-weight: 700; color: #fff; }
.pp-port__stat-v.sky { color: var(--port-sky); }

/* Vertical card link */
.pp-port__link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.25rem; color: var(--port-sky); font-family: 'Google Sans Flex', sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; text-decoration: none; transition: gap .3s ease, color .2s ease; }
.pp-port__link:hover { color: #fff; gap: .7rem; }

/* Split card (image-left / text-right) */
.pp-port__split { flex-direction: column; }
.pp-port__split-media { position: relative; min-height: 160px; border-bottom: 1px solid rgba(255, 255, 255, .10); }
.pp-port__split-body { padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; }

/* Desktop bento spans (Tailwind md = 768px). */
@media (min-width: 768px) {
    .pp-port__hero { padding: 4rem; min-height: 409px; }
    .pp-port__section { padding: 4rem; }
    .pp-port__bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 250px; }
    .pp-port__c--feature  { grid-column: span 8; grid-row: span 2; }
    .pp-port__c--std      { grid-column: span 4; grid-row: span 1; }
    .pp-port__c--vertical { grid-column: span 4; grid-row: span 2; }
    .pp-port__c--wide     { grid-column: span 8; grid-row: span 1; }
    .pp-port__split { flex-direction: row; }
    .pp-port__split-media { width: 33%; min-height: 0; border-bottom: none; border-right: 1px solid rgba(255, 255, 255, .10); }
    .pp-port__split-body { width: 67%; }
}

/* ── Stats band ── */
.pp-port__band { border: none; background: transparent; padding: 3rem 2rem; }
.pp-port__band-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; text-align: center; }
.pp-port__band-grid > div { position: relative; padding: 0 1rem; }
.pp-port__band-v { font-family: 'Google Sans Flex', sans-serif; font-weight: 900; font-size: clamp(2rem, 5vw, 3rem); color: var(--port-sky); display: block; margin-bottom: .5rem; line-height: 1; }
.pp-port__band-v--sm { font-size: clamp(1.05rem, 2.4vw, 1.45rem); line-height: 1.15; text-wrap: balance; }
.pp-port__band-l { font-family: 'Google Sans Flex', sans-serif; text-transform: uppercase; letter-spacing: .15em; font-size: .7rem; color: rgba(255, 255, 255, .60); }
@media (min-width: 768px) {
    .pp-port__band-grid { grid-template-columns: repeat(4, 1fr); }
    .pp-port__band { padding: 3rem 4rem; }
    /* hairline separators between columns — structure without a filled box */
    .pp-port__band-grid > div + div::before {
        content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
        width: 1px; height: 2.5rem; background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .18), transparent);
    }
}

/* ── Instagram CTA ── */
.pp-port__cta { position: relative; overflow: hidden; padding: 6rem 2rem; text-align: center; border-top: 1px solid rgba(255, 255, 255, .10); }
.pp-port__cta-grid { position: absolute; inset: 0; opacity: .10; pointer-events: none; background-image: linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 40px 40px; }
.pp-port__cta-inner { position: relative; z-index: 10; max-width: 42rem; margin: 0 auto; }
.pp-port__cta h2 { font-family: 'Archivo', sans-serif; font-weight: 900; text-transform: uppercase; font-size: clamp(1.75rem, 4vw, 2.5rem); color: #fff; margin: 1.5rem 0 1rem; }
.pp-port__cta p { font-family: 'Google Sans Flex', sans-serif; color: rgba(255, 255, 255, .60); font-size: .9rem; margin: 0 0 2.5rem; }
.pp-port__socials { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
.pp-port__social {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .85rem 1.9rem; border-radius: 9999px; text-decoration: none;
    font-family: 'Google Sans Flex', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: #fff;
    transition: transform .3s ease, filter .3s ease, box-shadow .3s ease;
}
.pp-port__social .mud-icon-root { font-size: 1.2rem; }
.pp-port__social:hover { transform: translateY(-3px) scale(1.04); filter: brightness(1.08); }
.pp-port__social--ig { background: linear-gradient(to right, #9333ea, #ec4899); box-shadow: 0 0 20px rgba(219, 39, 119, .3); }
.pp-port__social--fb { background: #1877f2; box-shadow: 0 0 20px rgba(24, 119, 242, .3); }
.pp-port__social--yt { background: #ff0000; box-shadow: 0 0 20px rgba(255, 0, 0, .28); }

/* ── Portfolio LIGHT theme overrides (html.light) ── */
html.light .pp-port { --port-sky: #0288c4; background: #F5F7FA; color: #1A1A1A; }

/* ambient background */
html.light .pp-port__bg-grid {
    background-image:
        linear-gradient(to right, rgba(13, 27, 107, .06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(13, 27, 107, .06) 1px, transparent 1px);
}
html.light .pp-port__bg-dots { opacity: .12; }
html.light .pp-port__bg-ring { border-color: rgba(2, 136, 196, .20); }
html.light .pp-port__bg-glow--1 { background: rgba(2, 136, 196, .14); }
html.light .pp-port__bg-glow--2 { background: rgba(2, 136, 196, .10); }

/* hero */
html.light .pp-port__hero { border-bottom-color: rgba(0, 0, 0, .10); }
html.light .pp-port__badge { background: rgba(2, 136, 196, .08); border-color: rgba(2, 136, 196, .35); }
html.light .pp-port__title .grad { background: linear-gradient(to right, #0288c4, #1A1A1A); -webkit-background-clip: text; background-clip: text; }
html.light .pp-port__lead { color: rgba(26, 26, 26, .70); }

/* filters */
html.light .pp-port__filter { color: rgba(26, 26, 26, .60); }
html.light .pp-port__filter:hover { color: #0288c4; background: rgba(2, 136, 196, .08); border-color: rgba(2, 136, 196, .35); }
html.light .pp-port__filter.is-active { color: #fff; }

/* bento cards */
html.light .pp-port__card {
    background: linear-gradient(155deg, rgba(255, 255, 255, .92), rgba(244, 247, 251, .85));
    border-color: rgba(0, 0, 0, .10);
    box-shadow: 0 10px 34px rgba(13, 27, 107, .10), inset 0 1px 0 rgba(255, 255, 255, .8);
}
html.light .pp-port__card:hover {
    border-color: rgba(2, 136, 196, .55);
    box-shadow: 0 16px 44px rgba(13, 27, 107, .14), 0 0 0 1px rgba(2, 136, 196, .20), 0 0 34px rgba(2, 136, 196, .12);
}
html.light .pp-port__gears {
    background:
        radial-gradient(circle at 50% 42%, rgba(2, 136, 196, .10), transparent 62%),
        repeating-linear-gradient(45deg, rgba(13, 27, 107, .03) 0 2px, transparent 2px 9px),
        linear-gradient(160deg, #eef3f8, #f9fbfd);
}
html.light .pp-port__gears::before { border-color: rgba(2, 136, 196, .35); }
html.light .pp-port__gears::after { color: rgba(2, 136, 196, .8); background: rgba(255, 255, 255, .7); border-color: rgba(2, 136, 196, .25); }
html.light .pp-port__gear--out { border-color: rgba(2, 136, 196, .45); }
html.light .pp-port__gear--mid { border-color: rgba(2, 136, 196, .38); }
html.light .pp-port__gear--in { border-color: rgba(2, 136, 196, .50); }
html.light .pp-port__overlay { background: linear-gradient(to top, #ffffff, rgba(255, 255, 255, .65) 50%, transparent); }
html.light .pp-port__ref { background: #fff; border-color: rgba(2, 136, 196, .35); }
html.light .pp-port__chip { background: rgba(2, 136, 196, .06); border-color: rgba(0, 0, 0, .10); }
html.light .pp-port__card h3, html.light .pp-port__card h4 { color: #1A1A1A; }
html.light .pp-port__desc { color: rgba(26, 26, 26, .75); }
html.light .pp-port__serial { color: rgba(26, 26, 26, .40); }
html.light .pp-port__stats-row { border-top-color: rgba(0, 0, 0, .10); }
html.light .pp-port__stat-k { color: rgba(26, 26, 26, .55); }
html.light .pp-port__stat-v { color: #1A1A1A; }
html.light .pp-port__link:hover { color: #1A1A1A; }
html.light .pp-port__split-media { border-color: rgba(0, 0, 0, .10); }

/* stats band */
html.light .pp-port__band-l { color: rgba(26, 26, 26, .65); }
@media (min-width: 768px) {
    html.light .pp-port__band-grid > div + div::before { background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .15), transparent); }
}

/* Instagram CTA */
html.light .pp-port__cta { border-top-color: rgba(0, 0, 0, .10); }
html.light .pp-port__cta-grid { background-image: linear-gradient(to right, rgba(13, 27, 107, .06) 1px, transparent 1px), linear-gradient(to bottom, rgba(13, 27, 107, .06) 1px, transparent 1px); }
html.light .pp-port__cta h2 { color: #1A1A1A; }
html.light .pp-port__cta p { color: rgba(26, 26, 26, .70); }

/* ═══ Privacy page — hydraulic timeline (1:1 with Stitch reference) ═══
   Self-contained navy/glassmorphism scene; renders inside MainLayout. */
.pp-priv {
    --priv-navy: #0D1B6B;
    --priv-accent: #82CFFF;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background-color: #000;
    color: #fff;
    font-family: 'Public Sans', sans-serif;
}

/* Decorative background: dot grid, geometric circles, technical lines. */
.pp-priv__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: .10;
}
.pp-priv__grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--priv-accent) 1px, transparent 1px);
    background-size: 40px 40px;
}
.pp-priv__circle {
    position: absolute;
    border: 1px solid var(--priv-accent);
    border-radius: 9999px;
}
.pp-priv__circle--1 { top: -6rem; left: -6rem; width: 24rem; height: 24rem; opacity: .20; }
.pp-priv__circle--2 { top: 50%; right: -12rem; width: 600px; height: 600px; opacity: .10; }
.pp-priv__circle--3 { bottom: 25%; left: 25%; width: 16rem; height: 16rem; border-width: 2px; opacity: .05; }
.pp-priv__vline {
    position: absolute;
    top: 0; left: 33%;
    width: 1px; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--priv-accent), transparent);
    opacity: .20;
}
.pp-priv__hline {
    position: absolute;
    top: 25%; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(to right, transparent, var(--priv-accent), transparent);
    opacity: .20;
}

.pp-priv__main {
    position: relative;
    z-index: 10;
    max-width: 64rem;
    margin: 0 auto;
    padding: 4rem 1rem 6rem;
}

/* Header */
.pp-priv__head { text-align: center; margin-bottom: 5rem; }
.pp-priv__title {
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 900;
    font-size: clamp(1.6rem, 5.2vw, 3.25rem);
    line-height: 1.05;
    white-space: nowrap;
    margin: 0 0 1.5rem;
    text-shadow: 0 6px 24px rgba(0, 0, 0, .4);
}
.pp-priv__title .accent { color: var(--priv-accent); }
.pp-priv__lead {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, .70);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* Timeline */
.pp-priv__timeline { position: relative; margin-top: 4rem; }
.pp-priv__line {
    position: absolute;
    top: 0; bottom: 0;
    left: 1rem;
    width: 2px;
    margin-left: -1px;
    z-index: 0;
    background: linear-gradient(to bottom, transparent, var(--priv-accent), var(--priv-accent), transparent);
    box-shadow: 0 0 15px rgba(130, 207, 255, .5);
}
.pp-priv__nodes {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.pp-priv__row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pp-priv__panel-wrap {
    width: 100%;
    padding-left: 3rem;
}
.pp-priv__node {
    position: absolute;
    left: 1rem;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #000;
    border: 2px solid var(--priv-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(130, 207, 255, .4);
    z-index: 20;
}
.pp-priv__node .mud-icon-root { color: var(--priv-accent); font-size: 1.25rem; }
.pp-priv__spacer { display: none; }

.pp-priv__panel {
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 4px;
    padding: 2rem;
    transition: transform .3s ease;
}
.pp-priv__row:hover .pp-priv__panel { transform: translateY(-4px); }
.pp-priv__panel h3 {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--priv-accent);
    margin: 0 0 .75rem;
    letter-spacing: .025em;
}
.pp-priv__panel p {
    color: rgba(255, 255, 255, .80);
    font-size: .875rem;
    line-height: 1.7;
    margin: 0;
}

/* Meta / actions */
.pp-priv__meta {
    margin-top: 6rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .10);
    padding-top: 3rem;
}
.pp-priv__meta-label {
    color: rgba(255, 255, 255, .50);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0 0 1.5rem;
}
.pp-priv__pdf {
    background: transparent;
    border: 1px solid var(--priv-accent);
    color: var(--priv-accent);
    text-transform: uppercase;
    font-weight: 700;
    padding: .75rem 2rem;
    font-size: .875rem;
    letter-spacing: .05em;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.pp-priv__pdf:hover {
    background: var(--priv-accent);
    color: var(--priv-navy);
    transform: scale(1.05);
}

/* Desktop: alternating two-column timeline (Tailwind md = 768px). */
@media (min-width: 768px) {
    .pp-priv__main { padding-left: 2rem; padding-right: 2rem; }
    .pp-priv__line { left: 50%; }
    .pp-priv__nodes { gap: 6rem; }
    .pp-priv__node { left: 50%; }
    .pp-priv__spacer { display: block; width: 45%; }
    .pp-priv__panel-wrap { width: 45%; padding-left: 0; }
    /* left-side clause: panel on the left, right-aligned text */
    .pp-priv__row--left .pp-priv__panel-wrap { text-align: right; order: 1; }
    .pp-priv__row--left .pp-priv__spacer { order: 3; }
    /* right-side clause: panel on the right */
    .pp-priv__row--right .pp-priv__spacer { order: 1; }
    .pp-priv__row--right .pp-priv__panel-wrap { order: 3; }
}

/* ── Privacy page — LIGHT theme overrides (html.light) ── */
html.light .pp-priv {
    --priv-accent: #0288c4;
    --priv-navy: #ffffff;
    background-color: var(--background);
    color: var(--on-background);
}
html.light .pp-priv__bg { opacity: .14; }
html.light .pp-priv__title { text-shadow: 0 6px 24px rgba(13, 27, 107, .12); }
html.light .pp-priv__lead { color: rgba(26, 26, 26, .70); }
html.light .pp-priv__line { box-shadow: 0 0 15px rgba(2, 136, 196, .25); }
html.light .pp-priv__node { background: var(--surface-card); box-shadow: 0 0 20px rgba(2, 136, 196, .25); }
html.light .pp-priv__panel { background: rgba(255, 255, 255, .70); border-color: rgba(0, 0, 0, .10); }
html.light .pp-priv__panel p { color: rgba(26, 26, 26, .80); }
html.light .pp-priv__meta { border-top-color: rgba(0, 0, 0, .10); }
html.light .pp-priv__meta-label { color: rgba(26, 26, 26, .50); }

/* ── CTA button system (reusable) ────────────────────────────
   Owns background/color/border + hover so it can be applied to MudButtons
   via Class=. Loads after MudBlazor.min.css → wins specificity ties.
   Buttons keep their own padding/radius/text-transform inline. */
.pp-btn { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease, filter .2s ease; }

/* .mud-button-root compound beats MudBlazor's own .mud-button-filled rules. */
.pp-btn--primary,
.mud-button-root.pp-btn--primary {
    background: var(--secondary-container);
    color: #fff;
}
.pp-btn--primary:hover,
.mud-button-root.pp-btn--primary:hover {
    background: var(--secondary);
    color: #06222e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 171, 236, .35);
}

/* Lift-only: keeps the button's own (inline) background — for buttons whose
   color is intentional (brand gradient, white, light-blue). Adds feedback
   via elevation + brightness, which inline backgrounds can't suppress. */
.pp-btn--lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.06);
}

/* Outline on dark/photo backgrounds (hero, CTA banners). */
.pp-btn--outline-light,
.mud-button-root.pp-btn--outline-light {
    border: 2px solid rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .05);
    color: #fff;
}
.pp-btn--outline-light:hover,
.mud-button-root.pp-btn--outline-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .16);
    transform: translateY(-2px);
}

/* ── Video cards (VideosSection) ─────────────────────────────── */
.pp-video-card {
    text-decoration: none;
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    overflow: hidden;
    display: block;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.pp-video-card:hover {
    border-color: var(--secondary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.pp-video-card .mud-icon-root { transition: transform .25s ease, color .25s ease; }
.pp-video-card:hover .mud-icon-root { transform: scale(1.12); color: var(--secondary); }

/* ── Arrow link ("Ver Portafolio") ──────────────────────────── */
.pp-link-arrow { transition: color .2s ease, gap .2s ease, border-color .2s ease; }
.pp-link-arrow:hover { color: #fff; border-color: #fff; gap: 14px; }
.pp-link-arrow:hover .mud-icon-root { color: #fff; }

/* ── FAQ summary hover ──────────────────────────────────────── */
.pp-faq > summary:hover { color: var(--secondary); }
.pp-faq > summary:hover .pp-faq__chevron { color: var(--secondary); }

/* ── Social icon buttons (Contact) ──────────────────────────── */
.pp-social-btn { transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease; }
.pp-social-btn:hover {
    color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    background: rgba(0, 171, 236, .12) !important;
    transform: translateY(-2px);
}

/* ── Pipe cursor ─────────────────────────────────────────────
   Custom plumbing-pipe cursor (js/pipe-cursor.js). Desktop mouse only. */
#pp-cursor {
    position: fixed;
    top: 0;
    left: 0;
    margin: -24px 0 0 -24px; /* center the 48px icon on the pointer */
    width: 48px;
    height: 48px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    will-change: transform;
    transition: opacity .2s ease;
}

#pp-cursor.is-on {
    opacity: 1;
}

#pp-cursor .pp-cursor-ico {
    display: block;
    width: 48px;
    height: 48px;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform .18s ease, filter .18s ease;
}

#pp-cursor.is-hover .pp-cursor-ico {
    transform: scale(1.6);
    filter: drop-shadow(0 0 8px var(--secondary));
}

/* Hide native cursor only on real mouse devices. */
@media (hover: hover) and (pointer: fine) {
    /* Force native cursor off everywhere — beats element-level cursor:pointer
       (MudBlazor, links, buttons) that would otherwise show alongside the wrench. */
    *, *::before, *::after { cursor: none !important; }
}
/* ═══ Mobile menu — full-screen overlay, top-to-bottom flow ═══════════
   Mobile only (hidden ≥768px). Toggled by the appbar hamburger (_open). */
.pp-menu {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 50% 0%, #11161f, #050608 80%);
    padding: 1.25rem 24px 2rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.pp-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

@media (min-width: 768px) { .pp-menu { display: none !important; } }

.pp-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-right: 64px; /* clear the absolute close button */
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.pp-menu__top > div:first-child { min-width: 0; }
.pp-menu__logo { height: 44px; width: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--secondary); }
.pp-menu__brand { font-family: 'Google Sans Flex', sans-serif; font-weight: 700; letter-spacing: .1em; color: #fff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-menu__brand b { color: var(--secondary); }
.pp-menu__close {
    position: absolute; top: 1.25rem; right: 24px; z-index: 2;
    background: rgba(130, 207, 255, .12); border: 1px solid var(--secondary); border-radius: 50%;
    width: 48px; height: 48px; color: var(--secondary); display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex: 0 0 auto; transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.pp-menu__close:hover, .pp-menu__close:active { border-color: var(--secondary); color: var(--secondary); transform: rotate(90deg); }
/* MudIcon inside a plain <button> renders 0x0 without MudIconButton's sizing — force it. */
.pp-menu__close .mud-svg-icon, .pp-menu__theme .mud-svg-icon { width: 24px; height: 24px; }

/* Nav — large numbered links, vertically centered, top-to-bottom stagger */
.pp-menu__nav { display: flex; flex-direction: column; justify-content: flex-start; gap: .15rem; padding: 1.25rem 0 .75rem; }
.pp-menu__link {
    display: flex; align-items: baseline; justify-content: flex-start; gap: .8rem;
    background: none; border: none; width: 100%; text-align: left; text-decoration: none; cursor: pointer;
    font-family: 'Archivo', sans-serif; text-transform: uppercase; font-weight: 800; letter-spacing: -.01em;
    font-size: clamp(1.5rem, 7vw, 2.25rem); line-height: 1.16; color: #fff;
    padding: .28rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06);
    opacity: 0; transform: translateY(-16px);
    transition: opacity .4s ease, transform .4s ease, color .2s ease;
}
.pp-menu__num { font-family: 'Google Sans Flex', sans-serif; font-size: .7rem; font-weight: 700; color: var(--secondary); letter-spacing: .12em; }
.pp-menu__link.is-active, .pp-menu__link:active { color: var(--secondary); }
.pp-menu.is-open .pp-menu__link { opacity: 1; transform: translateY(0); }
.pp-menu.is-open .pp-menu__link:nth-child(1) { transition-delay: .08s; }
.pp-menu.is-open .pp-menu__link:nth-child(2) { transition-delay: .13s; }
.pp-menu.is-open .pp-menu__link:nth-child(3) { transition-delay: .18s; }
.pp-menu.is-open .pp-menu__link:nth-child(4) { transition-delay: .23s; }
.pp-menu.is-open .pp-menu__link:nth-child(5) { transition-delay: .28s; }
.pp-menu.is-open .pp-menu__link:nth-child(6) { transition-delay: .33s; }

/* Footer — CTA + contact + theme toggle */
.pp-menu__foot { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 1rem; }
.pp-menu__cta {
    display: block; text-align: center; text-decoration: none;
    background: var(--secondary-container); color: #fff;
    font-family: 'Google Sans Flex', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    padding: 1rem; border-radius: 4px;
    transition: background-color .2s ease, transform .2s ease;
}
.pp-menu__cta:hover, .pp-menu__cta:active { background: var(--secondary); color: #06222e; transform: translateY(-2px); }
.pp-menu__foot-row { display: flex; align-items: center; justify-content: space-between; }
.pp-menu__contact { display: flex; gap: .6rem; align-items: center; font-family: 'Google Sans Flex', sans-serif; font-size: .9rem; color: rgba(255, 255, 255, .5); }
.pp-menu__contact a { color: var(--secondary); text-decoration: none; }
.pp-menu__theme {
    background: none; border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%;
    width: 44px; height: 44px; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}
.pp-menu__theme:hover, .pp-menu__theme:active { border-color: var(--secondary); color: var(--secondary); }

/* ── Mobile menu — LIGHT theme overrides (html.light) ── */
html.light .pp-menu { background: radial-gradient(circle at 50% 0%, #ffffff, #eceff3 85%); }
html.light .pp-menu__top { border-bottom-color: rgba(0, 0, 0, .10); }
html.light .pp-menu__brand { color: #1A1A1A; }
html.light .pp-menu__close { background: rgba(2, 136, 196, .10); }
html.light .pp-menu__link { color: #1A1A1A; border-bottom-color: rgba(0, 0, 0, .07); }
html.light .pp-menu__foot { border-top-color: rgba(0, 0, 0, .10); }
html.light .pp-menu__contact { color: rgba(26, 26, 26, .55); }
html.light .pp-menu__theme { border-color: rgba(0, 0, 0, .15); color: #1A1A1A; }
