﻿@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600&display=swap');
@import url('variables.css');

/* Fuentes autohospedadas (variables) — mantenidas como fallback */
@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Inter-VariableFont_opsz,wght.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Inter-Italic-VariableFont_opsz,wght.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/SpaceGrotesk-VariableFont_wght.woff2') format('woff2-variations');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    background:
        radial-gradient(circle at top left, rgba(184, 93, 119, 0.04), transparent 18%),
        linear-gradient(180deg, #fbfcfd 0%, #f6f9fb 100%);
    color: var(--dark-gray);
    line-height: 1.6;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.003em;
    overflow-x: hidden;
    width: 100%;
}

img,
video,
svg,
canvas {
    max-width: 100%;
}

/* --- Selección de texto con colores de marca --- */
::selection {
    background: rgba(184, 93, 119, 0.18);
    color: var(--primary-dark);
}

/* --- Scrollbar slim de marca --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-pink), var(--brand-cyan));
    border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-pink); }

/* --- Focus accesible con colores de marca --- */
:focus-visible {
    outline: 2px solid rgba(184, 93, 119, 0.85);
    outline-offset: 4px;
    border-radius: 14px;
    box-shadow: 0 0 0 6px rgba(184, 93, 119, 0.08);
}

/* NAVEGACIÓN HORIZONTAL INNOVADORA */
.sidebar-nav {
    background: linear-gradient(90deg, var(--primary-dark) 0%, #243d4e 50%, var(--background-dark) 100%);
    padding: 0.75rem 1.4rem;
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
}

.sidebar-nav::after {
    content: '';
    position: absolute;
    left: 1.4rem;
    right: 1.4rem;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(184, 93, 119, 0), rgba(184, 93, 119, 0.9), rgba(212, 168, 92, 0.8), rgba(91, 159, 177, 0.7), rgba(91, 159, 177, 0));
    opacity: 0.85;
}

.logo-vertical {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(184, 93, 119, 0.25), rgba(91, 159, 177, 0.25));
    border: 2px solid var(--brand-pink);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    animation: logo-breathe 8s ease-in-out infinite;
}

.logo-vertical img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-vertical:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 24px rgba(184, 93, 119, 0.25);
    border-color: var(--brand-yellow);
}

.logo-vertical:active {
    animation: logo-click 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes logo-spin {
    0% {
        transform: translateY(-2px) scale(1.03) rotate(0deg);
    }
    100% {
        transform: translateY(-2px) scale(1.03) rotate(15deg);
    }
}

@keyframes logo-breathe {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.nav-vertical {
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    align-items: center;
    flex: 1;
    position: relative;
    justify-content: space-evenly;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(212, 168, 92, 0.5);
}

.sidebar-nav.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.sidebar-nav.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.sidebar-nav.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-vertical a {
    font-family: var(--font-heading);
    writing-mode: horizontal-tb;
    text-orientation: initial;
    transform: none;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    transition: color 0.28s ease, background-color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
    padding: 0.9rem 1.1rem;
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.nav-vertical a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-vertical a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow));
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-vertical a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.nav-vertical a:hover::before {
    width: 100%;
}

.nav-vertical a:hover::after,
.nav-vertical a.active::after {
    opacity: 1;
}

.seo-related {
    position: relative;
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.045) 1px, transparent 1px),
        radial-gradient(ellipse 80% 60% at 0% 50%, rgba(184,93,119,0.10), transparent 50%),
        radial-gradient(ellipse 60% 70% at 100% 30%, rgba(91,159,177,0.08), transparent 50%),
        #0d1a24;
    background-size: 28px 28px, auto, auto, auto;
    color: white;
    border-top: none;
    clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%);
    padding-top: calc(5rem + 3.5vw);
}

.seo-related h2 {
    font-size: var(--font-size-h2);
    color: white;
    margin-bottom: 1.5rem;
}

.seo-related h2::after { display: none; }

.seo-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.seo-related-grid a {
    min-height: 72px;
    display: flex;
    align-items: center;
    padding: 1rem 1.1rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    font-weight: 700;
    line-height: 1.35;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.seo-related-grid a:hover,
.seo-related-grid a:focus-visible {
    color: white;
    background: rgba(255,255,255,0.09);
    border-color: rgba(184, 93, 119, 0.45);
    box-shadow: 0 0 20px rgba(184,93,119,0.1), 0 14px 30px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* Link activo en la navegación */
.nav-vertical a.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-vertical a.active::before {
    width: 100%;
}

/* Glassmorphism al hacer scroll (requiere clase JS) */
.sidebar-nav.scrolled {
    background: rgba(27, 58, 75, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

@keyframes brand-shimmer {
    0% { 
        background-position: 0% 50%;
        color: var(--brand-pink);
    }
    25% { 
        background-position: 33% 50%;
        color: var(--brand-yellow);
    }
    50% { 
        background-position: 66% 50%;
        color: var(--brand-cyan);
    }
    75% { 
        background-position: 100% 50%;
        color: var(--brand-yellow);
    }
    100% { 
        background-position: 0% 50%;
        color: var(--brand-pink);
    }
}

/* CONTENIDO PRINCIPAL */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-brand);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
}

h1 {
    font-size: var(--font-size-h1);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

h2 {
    font-size: var(--font-size-h2);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

h3 {
    font-size: var(--font-size-h3);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h4 {
    font-size: 1.05rem;
}

p {
    font-size: var(--font-size-body);
    margin-bottom: var(--spacing-md);
    line-height: 1.85;
    color: var(--medium-gray);
}

/* ── Contexto oscuro: colores de texto en secciones navy ── */
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4,
.seo-related h1, .seo-related h2, .seo-related h3,
.portfolio-section h1, .portfolio-section h2, .portfolio-section h3,
.about-tech-principles h1, .about-tech-principles h2, .about-tech-principles h3,
.method-audience h1, .method-audience h2, .method-audience h3 {
    color: white;
}

.section-dark p, .seo-related p, .portfolio-section p,
.about-tech-principles p, .method-audience p {
    color: rgba(255, 255, 255, 0.65);
}

.header {
    background: var(--white);
    padding: calc(var(--spacing-lg) + 0.2rem) calc(var(--spacing-xl) + 0.2rem);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(27, 58, 75, 0.08);
    overflow: hidden;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
}

.header-lab {
    background:
        radial-gradient(circle at top left, rgba(91, 159, 177, 0.12), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(184, 93, 119, 0.08), transparent 22%),
        linear-gradient(180deg, #f7fafb 0%, #eef4f7 100%);
}

.header-lab::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 22%, rgba(184, 93, 119, 0.14), transparent 32%),
        radial-gradient(circle at 82% 10%, rgba(212, 168, 92, 0.12), transparent 30%),
        radial-gradient(circle at 56% 0%, rgba(116, 82, 139, 0.1), transparent 34%);
    filter: blur(2px);
    pointer-events: none;
}

.header-lab-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.95fr);
    gap: 2rem;
    align-items: end;
    position: relative;
    z-index: 1;
}

.header-home {
    padding-top: 4rem;
    padding-bottom: 3.6rem;
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 1px),
        radial-gradient(circle at 0% 0%, rgba(91,159,177,0.16), transparent 24%),
        radial-gradient(circle at 88% 10%, rgba(184,93,119,0.13), transparent 24%),
        radial-gradient(circle at 58% 0%, rgba(116,82,139,0.10), transparent 28%),
        linear-gradient(135deg, #173241 0%, #21485d 56%, #1b3543 100%);
    background-size: 28px 28px, auto, auto, auto, auto;
    min-height: 460px;
    display: flex;
    align-items: center;
}

.header-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 24%, rgba(184, 93, 119, 0.18), transparent 30%),
        radial-gradient(circle at 78% 18%, rgba(212, 168, 92, 0.14), transparent 32%),
        radial-gradient(circle at 50% 0%, rgba(116, 82, 139, 0.14), transparent 34%),
        linear-gradient(100deg, rgba(255, 255, 255, 0.04), transparent 36%, rgba(255, 255, 255, 0.02));
    filter: blur(1px);
    opacity: 0.9;
    pointer-events: none;
}

.header-home::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    right: 1.2rem;
    bottom: 1.5rem;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(184, 93, 119, 0.82), rgba(116, 82, 139, 0.64), rgba(212, 168, 92, 0.82));
    box-shadow: 0 0 18px rgba(184, 93, 119, 0.18), 0 0 28px rgba(212, 168, 92, 0.12);
    pointer-events: none;
}

.header-home-grid {
    display: block;
    position: relative;
    z-index: 2;
    width: 100%;
}

.header-home .brand-chip {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: none;
    margin-bottom: 0.9rem;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.brand-lockup-lab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    cursor: default;
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(27, 58, 75, 0.14);
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 10px 28px rgba(27, 58, 75, 0.08);
}

.brand-title {
    font-family: var(--font-brand);
    font-size: clamp(4.2rem, 7vw, 7.4rem);
    letter-spacing: -0.025em;
    text-transform: uppercase;
    color: var(--primary-dark);
    position: relative;
    font-weight: 700;
    line-height: 0.86;
    text-shadow: 0 10px 40px rgba(27, 58, 75, 0.08);
    display: inline-block;
}

.header-home .brand-title {
    color: white;
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    font-size: clamp(4.8rem, 8vw, 8.3rem);
    margin-bottom: 1.2rem;
}

.brand-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -16px;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
    border-radius: 999px;
    box-shadow: 0 0 24px rgba(184,93,119,0.6), 0 0 48px rgba(212,168,92,0.35);
}

.brand-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.16rem, 2vw, 1.7rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #365567;
    text-transform: none;
    line-height: 1.5;
    max-width: 760px;
}

.header-home .brand-tagline {
    color: rgba(255, 255, 255, 0.95);
    max-width: 920px;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.brand-intro {
    max-width: 860px;
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.9;
    color: var(--medium-gray);
}

.header-home .brand-intro {
    color: rgba(255, 255, 255, 0.78);
    max-width: 900px;
    font-size: 1.2rem;
    line-height: 1.95;
}

.brand-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.6rem;
}

.brand-signals span {
    position: relative;
    padding-left: 1rem;
    color: var(--medium-gray);
    font-size: 0.95rem;
    font-weight: 600;
}

.header-home .brand-signals span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
}

.brand-signals span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.48rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-yellow));
    box-shadow: 0 0 0 4px rgba(91, 159, 177, 0.12);
}

.header-home .brand-signals span::before {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.header-lab-panel {
    padding: 1.4rem;
    border-radius: 24px;
    background: rgba(10, 28, 37, 0.92);
    color: white;
    box-shadow: 0 24px 60px rgba(14, 29, 38, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.header-lab-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(91, 159, 177, 0.6), rgba(212, 168, 92, 0.45), rgba(184, 93, 119, 0.35));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.lab-panel-label {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
}

.lab-panel-title {
    font-family: var(--font-brand);
    font-size: 1.45rem;
    line-height: 1.35;
    color: #f6fbfc;
    margin-bottom: 0.85rem;
}

.lab-panel-copy {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
    margin-bottom: 1.35rem;
}

.lab-panel-metrics {
    display: grid;
    gap: 0.8rem;
}

.lab-panel-metrics div {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0.85rem;
    align-items: center;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.lab-panel-metrics strong {
    font-family: var(--font-brand);
    font-size: 1.6rem;
    color: var(--brand-yellow);
}

.lab-panel-metrics span {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.4;
}

.page-hero {
    padding: 0;
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 1px),
        radial-gradient(circle at 0% 0%, rgba(91,159,177,0.16), transparent 24%),
        radial-gradient(circle at 88% 10%, rgba(184,93,119,0.13), transparent 24%),
        radial-gradient(circle at 58% 0%, rgba(116,82,139,0.10), transparent 28%),
        linear-gradient(135deg, #173241 0%, #21485d 56%, #1b3543 100%);
    background-size: 28px 28px, auto, auto, auto, auto;
    color: white;
    min-height: 540px;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.page-hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.page-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.36;
    transform: scale(1.06);
    filter: saturate(0.84) contrast(1.04) brightness(0.62);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 80% at -5% 60%, rgba(184, 93, 119, 0.38) 0%, transparent 55%),
        radial-gradient(ellipse 50% 70% at 110% 40%, rgba(91, 159, 177, 0.30) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 50% 110%, rgba(212, 168, 92, 0.22) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(184, 93, 119, 0.80) 15%,
        rgba(212, 168, 92, 0.90) 50%,
        rgba(91, 159, 177, 0.80) 85%,
        transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.page-hero-content {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 4.8rem calc(var(--spacing-xl) + 0.2rem);
}

.page-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.9rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-hero-kicker::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--brand-yellow);
    box-shadow: 0 0 0 4px rgba(212, 168, 92, 0.18);
}

.page-hero-title,
.lab-hero .lab-title {
    margin: 0;
    color: white;
    font-family: var(--font-brand);
    font-size: clamp(4.5rem, 8vw, 8.5rem);
    line-height: 0.86;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
}

.page-hero-title::after,
.lab-hero .lab-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -16px;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
    box-shadow: 0 0 24px rgba(184, 93, 119, 0.6), 0 0 48px rgba(212, 168, 92, 0.35);
}

.page-hero-subtitle {
    max-width: 660px;
    margin: 2.6rem 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 1.12rem;
    line-height: 2;
}

.page-hero--immersive {
    position: relative;
    overflow: hidden;
}

.page-hero--immersive .page-hero-media {
    z-index: 0;
}

.page-hero--immersive .page-hero-video {
    opacity: 0.46;
    transform: scale(1.08);
    object-position: center center;
    filter: saturate(1.55) contrast(1.02) brightness(0.5) hue-rotate(-8deg);
}

.page-hero--immersive::before {
    background:
        linear-gradient(135deg, rgba(8, 20, 28, 0.46), rgba(17, 36, 48, 0.38)),
        radial-gradient(ellipse 46% 58% at 18% 26%, rgba(184, 93, 119, 0.34) 0%, transparent 70%),
        radial-gradient(ellipse 44% 54% at 82% 18%, rgba(212, 168, 92, 0.14) 0%, transparent 72%),
        radial-gradient(ellipse 52% 58% at 74% 74%, rgba(184, 93, 119, 0.18) 0%, transparent 72%);
}

.page-hero--lab {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.055) 1px, transparent 1px),
        radial-gradient(circle at 12% 0%, rgba(184, 93, 119, 0.18), transparent 26%),
        radial-gradient(circle at 88% 10%, rgba(91, 159, 177, 0.12), transparent 24%),
        linear-gradient(135deg, #162a37 0%, #203847 56%, #122430 100%);
    background-size: 28px 28px, auto, auto, auto;
}

.page-intro {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.45fr);
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
}

.page-intro-title h1,
.page-intro-title h2 {
    margin-bottom: 0;
}

.page-intro-card {
    position: relative;
    padding: 2rem 2.2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(27, 58, 75, 0.08);
    box-shadow: 0 22px 48px rgba(27, 58, 75, 0.08);
    overflow: hidden;
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.page-intro-card::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    top: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
}

.page-intro-card p {
    margin: 0;
    color: var(--primary-dark);
    font-family: var(--font-brand);
    font-size: 1.12rem;
    line-height: 1.7;
}

.page-intro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 58px rgba(27, 58, 75, 0.12);
}

/* --- Texto Móvil de Fondo para Page Hero --- */
.page-hero-moving-text {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0.25;
    pointer-events: none;
}

.moving-text-row {
    position: absolute;
    display: flex;
    white-space: nowrap;
    font-family: var(--font-brand);
    font-size: clamp(0.95rem, 1.9vw, 1.45rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--brand-pink);
    animation: scroll-left 70s linear infinite;
}

.moving-text-row-2 {
    top: 50%;
    animation: scroll-right 78s linear infinite;
    color: rgba(184, 93, 119, 0.6);
}

.moving-text-row span {
    margin: 0 3rem;
    display: inline-block;
    filter: saturate(1.6) brightness(1.1);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes scroll-right {
    0% { transform: translateX(100%); }
    100% { transform: translateX(0); }
}

.section-lead {
    max-width: 880px;
    margin: 0 auto 2.2rem;
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--medium-gray);
    text-align: center;
}

.meta-note {
    display: table;
    margin: 0 auto 2rem;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(91, 159, 177, 0.2);
    background: rgba(255, 255, 255, 0.86);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 14px 28px rgba(27, 58, 75, 0.06);
}

.statement-block {
    max-width: 900px;
    margin: 2rem auto 0;
}

.pillar-grid {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.pillar-card {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
    padding: 1.4rem 1.5rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(27, 58, 75, 0.08);
    box-shadow: 0 20px 44px rgba(27, 58, 75, 0.08);
    overflow: hidden;
    transition: transform 0.34s ease, box-shadow 0.34s ease, border-color 0.34s ease;
}

.pillar-card::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
}

.pillar-index {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-brand);
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
}

.pillar-card h3 {
    margin-bottom: 0.45rem;
}

.pillar-card p {
    margin: 0;
    color: var(--medium-gray);
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(27, 58, 75, 0.12);
}

.editorial-quote {
    margin-top: 2rem;
    padding: 1.3rem 1.5rem;
    border-left: 4px solid var(--brand-pink);
    border-radius: 0 14px 14px 0;
    background: rgba(184, 93, 119, 0.06);
    color: var(--medium-gray);
    font-style: italic;
    line-height: 1.85;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

.contact-panel,
.contact-form-card,
.network-panel,
.team-profile-card {
    position: relative;
    padding: 2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(27, 58, 75, 0.08);
    box-shadow: 0 22px 48px rgba(27, 58, 75, 0.08);
    overflow: hidden;
}

.contact-panel::before,
.contact-form-card::before,
.network-panel::before,
.team-profile-card::before {
    content: '';
    position: absolute;
    left: 1.7rem;
    right: 1.7rem;
    top: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
}

.contact-panel h2,
.network-panel h2 {
    margin-bottom: 1rem;
}

.contact-points {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.contact-point {
    padding: 1rem 1.05rem;
    border-left: 3px solid var(--brand-pink);
    border-radius: 0 14px 14px 0;
    background: rgba(247, 250, 251, 0.9);
}

.contact-point strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--primary-dark);
}

.contact-point span {
    color: var(--medium-gray);
    line-height: 1.65;
}

.contact-form-card form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
    width: 100%;
}

.team-profile-shell {
    max-width: 1060px;
    margin: 0 auto;
}

.team-profile-card {
    position: relative;
}

.team-profile-top {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.team-photo-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    align-self: start;
}

.team-photo-frame {
    position: relative;
    width: 180px;
    height: 220px;
    border: 0;
    border-radius: 22px;
    padding: 3px;
    background: linear-gradient(145deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
    box-shadow:
        0 24px 54px rgba(27, 58, 75, 0.18),
        0 10px 24px rgba(184, 93, 119, 0.12);
    cursor: pointer;
    transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.team-photo-frame:hover {
    transform: translateY(-4px);
    box-shadow:
        0 30px 64px rgba(27, 58, 75, 0.22),
        0 14px 30px rgba(184, 93, 119, 0.16);
}

.team-photo-frame:focus-visible {
    outline: 3px solid var(--brand-cyan);
    outline-offset: 4px;
}

.team-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.team-meta {
    display: grid;
    gap: 0.85rem;
    padding-top: 0.45rem;
    max-width: 760px;
    justify-self: center;
    align-content: start;
    text-align: center;
}

.team-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0;
    color: var(--brand-cyan);
    font-weight: 700;
    text-decoration: none;
    justify-content: center;
}

.team-detail-block {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.team-detail-label {
    margin-bottom: 0.9rem;
    color: var(--brand-pink);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.team-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.team-detail-list li {
    position: relative;
    padding-left: 1rem;
    color: var(--primary-dark);
    line-height: 1.7;
}

.team-detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-cyan));
}

.network-panel {
    max-width: 940px;
    margin: 0 auto;
    text-align: center;
}

.network-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    background: rgba(247, 250, 251, 0.9);
    border: 1px solid rgba(91, 159, 177, 0.18);
    color: var(--brand-pink);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.network-status::before {
    content: '';
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--brand-yellow);
    box-shadow: 0 0 0 6px rgba(212, 168, 92, 0.14);
}

.network-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.8rem;
}

.service-editorial {
    display: grid;
    gap: 2.2rem;
}

.container.service-editorial {
    max-width: 1480px;
}

.service-lead-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 2rem;
    align-items: end;
    padding: 2rem 2.2rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at 8% 18%, rgba(184, 93, 119, 0.08), transparent 24%),
        linear-gradient(135deg, rgba(23, 50, 65, 0.96), rgba(33, 72, 93, 0.94));
    box-shadow: 0 28px 60px rgba(20, 45, 58, 0.14);
}

.service-lead-card h3,
.service-lead-card p,
.service-lead-label {
    color: white;
}

.service-lead-card h3 {
    max-width: 760px;
    margin: 0;
}

.service-lead-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

.service-lead-label {
    display: inline-block;
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
}

.service-deck-shell {
    position: relative;
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: clamp(1.5rem, 2.2vw, 2.4rem);
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(184, 93, 119, 0.08), transparent 22%),
        radial-gradient(circle at 92% 12%, rgba(91, 159, 177, 0.12), transparent 26%),
        linear-gradient(145deg, rgba(23, 50, 65, 0.96), rgba(31, 68, 88, 0.94));
    box-shadow: 0 28px 60px rgba(20, 45, 58, 0.16);
    overflow: hidden;
}

.service-deck-shell::before {
    content: '';
    position: absolute;
    left: 1.6rem;
    right: 1.6rem;
    top: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
}

.service-deck-header {
    display: block;
    margin-bottom: 1.15rem;
}

.service-deck-header .home-kicker {
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    margin-bottom: 0.75rem;
}

.service-deck-header h2,
.service-deck-header p {
    color: var(--white);
}

.service-deck-header h2 {
    margin: 0;
    max-width: 760px;
    font-size: var(--font-size-h1);
    line-height: 1.05;
}

.service-deck-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.2rem;
}

.service-deck-progress {
    display: grid;
    gap: 0.5rem;
    min-width: min(300px, 70%);
}

.service-deck-progress-text {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.service-deck-progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.service-deck-progress-fill {
    display: block;
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
    transition: width 0.4s ease;
}

.service-deck-button {
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-family: var(--font-button);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.service-deck-button:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 93, 119, 0.38);
    background: rgba(184, 93, 119, 0.14);
    box-shadow: 0 10px 25px rgba(184, 93, 119, 0.25);
}

.service-deck-track {
    display: block;
    height: clamp(25rem, 34vw, 30rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.25rem 0.2rem 0.8rem;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.service-deck-track::-webkit-scrollbar {
    display: none;
}

.service-flash-card {
    scroll-snap-align: start;
    position: relative;
    min-height: calc(clamp(25rem, 34vw, 30rem) - 1.05rem);
    margin-bottom: 0.95rem;
    padding: clamp(1.6rem, 2.6vw, 2.35rem);
    display: grid;
    align-content: start;
    border-radius: 22px;
    border: 1px solid rgba(27, 58, 75, 0.1);
    background:
        radial-gradient(circle at 90% 8%, rgba(91, 159, 177, 0.09), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 249, 251, 0.93));
    box-shadow: 0 24px 50px rgba(14, 35, 46, 0.18);
    transform: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-flash-card:nth-child(even) {
    transform: none;
}

.service-flash-card.is-active,
.service-flash-card:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 93, 119, 0.18);
    box-shadow: 0 32px 64px rgba(14, 35, 46, 0.22);
}

.service-flash-card::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    top: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
}

.service-flash-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(184, 93, 119, 0.94), rgba(91, 159, 177, 0.94));
    color: var(--white);
    font-family: var(--font-brand);
    font-size: 0.92rem;
    letter-spacing: 0.14em;
}

.service-flash-card h3 {
    margin: 0 0 1rem;
    max-width: 24ch;
    color: var(--primary-dark);
    font-size: var(--font-size-h2);
    line-height: 1.1;
}

.service-flash-description {
    margin: 0;
    color: var(--medium-gray);
    max-width: 74ch;
    font-size: clamp(1rem, 1.18vw, 1.12rem);
    line-height: 1.75;
    border-left: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    display: block;
}

.service-deck-closing {
    margin: 1rem 0 0;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--brand-pink);
    border-radius: 4px 14px 14px 4px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
}

.method-outcomes,
.method-audience {
    padding: clamp(1.5rem, 2.4vw, 2rem);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 250, 0.98)),
        radial-gradient(circle at 12% 0%, rgba(184, 93, 119, 0.08), transparent 24%),
        radial-gradient(circle at 88% 12%, rgba(91, 159, 177, 0.09), transparent 26%);
    border: 1px solid rgba(27, 58, 75, 0.08);
    box-shadow: 0 24px 60px rgba(24, 49, 66, 0.08);
    color: var(--text-strong);
}

.method-outcomes-grid .conversion-card {
    min-height: 230px;
}

.method-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.method-audience-grid article {
    position: relative;
    padding: 1.25rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(27, 58, 75, 0.09);
    box-shadow: 0 14px 34px rgba(24, 49, 66, 0.08);
    overflow: hidden;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.method-audience-grid article::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
}

.method-audience-grid article:hover {
    transform: translateY(-4px);
    border-color: rgba(91, 159, 177, 0.26);
    box-shadow: 0 20px 48px rgba(24, 49, 66, 0.12);
}

.method-audience-grid strong {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.method-audience-grid p {
    margin: 0;
    color: var(--medium-gray);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* Textos del encabezado de sección dentro de bloques oscuros */
.method-outcomes .conversion-section-head h2,
.method-audience .conversion-section-head h2 {
    color: white;
}
.method-outcomes .conversion-section-head p,
.method-audience .conversion-section-head p {
    color: rgba(255, 255, 255, 0.76);
}
.method-outcomes .home-kicker,
.method-audience .home-kicker {
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(27, 58, 75, 0.12);
}

.method-outcomes .conversion-card span,
.method-audience .conversion-card span {
    color: #3a8496;
}

.service-flash-answer {
    display: grid;
    gap: 0.8rem;
    margin-top: auto;
    padding: 1.25rem 1.3rem;
    border-left: 4px solid var(--brand-pink);
    border-radius: 4px 14px 14px 4px;
    background: rgba(247, 250, 251, 0.98);
}

.service-flash-answer span {
    color: var(--primary-blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.service-flash-answer p {
    margin: 0;
    color: var(--medium-gray);
    font-size: 1rem;
    line-height: 1.82;
}

.service-grid {
    counter-reset: serviceIndex;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 1.4rem;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.service-card {
    counter-increment: serviceIndex;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: stretch;
    grid-column: span 1;
    height: 100%;
    min-height: 22rem;
}

.service-card h3 {
    position: relative;
    padding-top: 2rem;
    margin-bottom: 0.55rem;
}

.service-card p {
    margin-top: 0;
}

.service-card h3::before {
    content: counter(serviceIndex, decimal-leading-zero);
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-brand);
    font-size: 0.95rem;
    letter-spacing: 0.16em;
    color: rgba(27, 58, 75, 0.26);
}

.service-card--wide {
    grid-column: span 1;
}

.service-card--tall {
    grid-row: auto;
}

.about-editorial {
    display: grid;
    gap: 2.2rem;
}

.container.about-editorial {
    max-width: min(1680px, calc(100vw - 5rem));
}

.about-editorial .page-intro {
    grid-template-columns: minmax(320px, 0.75fr) minmax(520px, 1.25fr);
}

.about-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
    gap: 2rem;
    align-items: start;
}

.about-editorial .statement-block {
    max-width: none;
    width: 100%;
}

.about-editorial .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-tech-principles {
    margin: 3rem 0 3.8rem;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    border-radius: 28px;
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 1px),
        radial-gradient(circle at 8% 12%, rgba(184, 93, 119, 0.18), transparent 28%),
        radial-gradient(circle at 88% 0%, rgba(212, 168, 92, 0.14), transparent 30%),
        radial-gradient(circle at 52% 0%, rgba(116, 82, 139, 0.16), transparent 34%),
        linear-gradient(135deg, #0d1a24 0%, #1b3a4b 58%, #102733 100%);
    background-size: 28px 28px, auto, auto, auto, auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 70px rgba(16, 39, 51, 0.22);
    color: white;
    isolation: isolate;
    position: relative;
    overflow: hidden;
}

.about-tech-principles::after {
    content: '';
    position: absolute;
    left: clamp(1.6rem, 3vw, 2.4rem);
    right: clamp(1.6rem, 3vw, 2.4rem);
    bottom: 0;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, rgba(184, 93, 119, 0.86), rgba(116, 82, 139, 0.68), rgba(212, 168, 92, 0.84));
    box-shadow: 0 0 24px rgba(212, 168, 92, 0.14);
}

.about-tech-principles .home-kicker {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.about-tech-principles .pillar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1.2rem 0 0;
}

.about-tech-principles .pillar-card {
    min-height: 100%;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.about-tech-principles .pillar-card::before {
    left: 1.2rem;
    right: 1.2rem;
    background: linear-gradient(90deg, rgba(184, 93, 119, 0.88), rgba(116, 82, 139, 0.66), rgba(212, 168, 92, 0.86));
}

.about-tech-principles .pillar-index {
    background: linear-gradient(135deg, rgba(184, 93, 119, 0.96), rgba(116, 82, 139, 0.82), rgba(212, 168, 92, 0.88));
    box-shadow: 0 0 22px rgba(184, 93, 119, 0.18);
}

.about-tech-principles h3 {
    color: white;
}

.about-tech-principles .pillar-card p {
    color: rgba(255, 255, 255, 0.78);
}

.about-manifesto {
    position: relative;
    padding: 2rem 2.2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(27, 58, 75, 0.08);
    box-shadow: 0 22px 48px rgba(27, 58, 75, 0.08);
    overflow: hidden;
}

.about-manifesto::before {
    content: '';
    position: absolute;
    left: 1.6rem;
    right: 1.6rem;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
}

.about-manifesto .about-highlight {
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    line-height: 1.55;
    color: var(--primary-dark);
    margin-bottom: 1.4rem;
}

.about-metrics {
    display: grid;
    gap: 1rem;
}

.about-metrics div {
    padding: 1.3rem 1.35rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(27, 58, 75, 0.08);
    box-shadow: 0 18px 38px rgba(27, 58, 75, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.about-metrics div::before {
    content: '';
    position: absolute;
    left: 1.3rem;
    right: 1.3rem;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
}

.about-metrics strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--primary-dark);
}

.about-metrics span {
    color: var(--medium-gray);
    line-height: 1.7;
}

.about-metrics div:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(27, 58, 75, 0.12);
}

.team-editorial {
    display: grid;
    gap: 2.2rem;
}

.team-editorial-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
    gap: 1.6rem;
    align-items: start;
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(184, 93, 119, 0.18);
}

.team-side-note {
    padding: 1.4rem 1.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(23, 50, 65, 0.95), rgba(33, 72, 93, 0.92));
    box-shadow: 0 22px 44px rgba(20, 45, 58, 0.12);
}

.team-side-note .team-detail-label,
.team-side-note p {
    color: white;
}

.team-side-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.team-photo-column {
    min-width: 180px;
}

.team-link {
    min-width: 180px;
    padding: 0.95rem 1.1rem;
    border-radius: 999px;
    background: rgba(247, 250, 251, 0.92);
    border: 1px solid rgba(91, 159, 177, 0.18);
    box-shadow: 0 16px 30px rgba(27, 58, 75, 0.08);
}

.team-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px rgba(27, 58, 75, 0.12);
}

/* ── Servicios: cian/teal dominante — consultoría digital ──────── */
.page-hero--services {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.055) 1px, transparent 1px),
        radial-gradient(circle at 0% 0%, rgba(91, 159, 177, 0.22), transparent 28%),
        radial-gradient(circle at 100% 0%, rgba(212, 168, 92, 0.12), transparent 24%),
        radial-gradient(circle at 54% 0%, rgba(116, 82, 139, 0.1), transparent 30%),
        linear-gradient(135deg, #162e3e 0%, #1d4a60 55%, #162e3e 100%);
    background-size: 28px 28px, auto, auto, auto, auto;
}
.page-hero--services::before {
    background:
        radial-gradient(ellipse 55% 80% at -5% 60%, rgba(91, 159, 177, 0.42) 0%, transparent 55%),
        radial-gradient(ellipse 50% 70% at 110% 40%, rgba(184, 93, 119, 0.26) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 50% 110%, rgba(212, 168, 92, 0.20) 0%, transparent 50%),
        linear-gradient(135deg, rgba(16, 40, 54, 0.55), rgba(29, 53, 66, 0.40));
    background-size: auto;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 100%);
}

/* ── Nosotros: rosa cálido dominante — identidad y personas ─────── */
.page-hero--about {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.055) 1px, transparent 1px),
        radial-gradient(circle at 0% 0%, rgba(184, 93, 119, 0.22), transparent 28%),
        radial-gradient(circle at 100% 0%, rgba(212, 168, 92, 0.14), transparent 24%),
        radial-gradient(circle at 54% 0%, rgba(116, 82, 139, 0.12), transparent 30%),
        linear-gradient(135deg, #1e3040 0%, #2a4558 55%, #1e3040 100%);
    background-size: 28px 28px, auto, auto, auto, auto;
    position: relative;
    overflow: hidden;
}

.page-hero--about .page-hero-video {
    opacity: 0.3;
    filter: saturate(0.45) contrast(0.92) brightness(0.62);
}

/* About necesita overflow para el video */
.page-hero--about {
    position: relative;
    overflow: hidden;
}

.page-hero--services .page-hero-moving-text {
    opacity: 0.34;
}

.page-hero--services .moving-text-row {
    color: rgba(184, 93, 119, 0.92);
}

.page-hero--services .moving-text-row span {
    filter: saturate(2) brightness(1.08);
}

.page-hero--services .moving-text-row-2 {
    color: rgba(184, 93, 119, 0.64);
}

/* Services mantiene su overlay para el texto animado del fondo */
.page-hero--services::before {
    background:
        radial-gradient(ellipse 55% 80% at -5% 60%, rgba(184, 93, 119, 0.38) 0%, transparent 55%),
        radial-gradient(ellipse 50% 70% at 110% 40%, rgba(91, 159, 177, 0.30) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 50% 110%, rgba(212, 168, 92, 0.22) 0%, transparent 50%),
        linear-gradient(135deg, rgba(16, 40, 54, 0.55), rgba(29, 53, 66, 0.40));
    background-size: auto;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 100%);
}

.page-hero--services,
.page-hero--about {
    background: inherit;
}

.page-hero--services::before,
.page-hero--about::before {
    background:
        radial-gradient(ellipse 38% 24% at 14% 0%, rgba(184, 93, 119, 0.28) 0%, transparent 72%),
        radial-gradient(ellipse 34% 20% at 52% 0%, rgba(212, 168, 92, 0.24) 0%, transparent 74%),
        radial-gradient(ellipse 36% 22% at 86% 0%, rgba(91, 159, 177, 0.26) 0%, transparent 72%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 34%);
    mask-image: none;
}

.page-hero--about .page-hero-video {
    opacity: 0.44;
    filter: saturate(1.5) contrast(1.02) brightness(0.48) hue-rotate(-8deg);
}

.scroll-indicator {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 100;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    border: 2px solid rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition: transform 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.scroll-dot:hover,
.scroll-dot.active {
    background: var(--brand-pink);
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(184, 93, 119, 0.12), 0 10px 18px rgba(0, 0, 0, 0.16);
}

.red-deleica {
    background: linear-gradient(135deg, rgba(27, 58, 75, 0.92), rgba(27, 58, 75, 0.96)), url('../assets/images/logo.svg') no-repeat center/180px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.red-deleica::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(184, 93, 119, 0.18), transparent 35%),
                radial-gradient(circle at 80% 30%, rgba(91, 159, 177, 0.18), transparent 32%),
                radial-gradient(circle at 50% 80%, rgba(212, 168, 92, 0.18), transparent 30%);
    pointer-events: none;
}

.red-deleica-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 1rem;
}

.red-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.red-title {
    font-size: var(--font-size-h1);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--brand-yellow);
    margin: 0;
    display: inline-block;
    position: relative;
}

.red-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
}

.red-subtitle {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin: 0;
}

.red-coming {
    background:
        radial-gradient(circle at top left, rgba(184, 93, 119, 0.08), transparent 22%),
        radial-gradient(circle at 85% 18%, rgba(91, 159, 177, 0.1), transparent 26%),
        linear-gradient(180deg, #f6fafb 0%, #eef4f7 100%);
    color: var(--primary-dark);
    min-height: calc(100vh - 140px);
    position: relative;
    overflow: hidden;
}

.red-coming::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 52%;
    width: min(1100px, 86vw);
    height: 220px;
    background: linear-gradient(90deg, rgba(184, 93, 119, 0.96) 0%, rgba(91, 159, 177, 0.94) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.52);
    border-bottom: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 36px;
    box-shadow:
        0 34px 80px rgba(27, 58, 75, 0.2),
        0 14px 34px rgba(184, 93, 119, 0.14);
    transform: translate(-50%, -50%);
    opacity: 0.98;
    z-index: 5;
    pointer-events: none;
}

.red-coming::after {
    content: 'PRÓXIMAMENTE';
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    z-index: 6;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 4vw, 4rem);
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    pointer-events: none;
    text-shadow: 0 10px 28px rgba(27, 58, 75, 0.26);
}

.red-layout {
    display: grid;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.red-intro {
    display: grid;
    gap: 0.8rem;
    justify-items: center;
    text-align: center;
    min-height: calc(100vh - 220px);
    align-content: center;
    position: relative;
    z-index: 4;
}

.red-intro .network-status {
    display: none;
}

.red-coming .red-title {
    margin: 0;
    font-size: var(--font-size-h1);
    line-height: 1.02;
    letter-spacing: -0.025em;
    text-transform: none;
    color: var(--primary-dark);
}

.red-coming .red-subtitle {
    display: none;
}

.red-tabs {
    display: grid;
    gap: 1.5rem;
    margin-top: -6rem;
    opacity: 0.34;
    filter: saturate(0.88) blur(0.4px);
}

.red-tab-list {
    display: inline-flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding: 0.55rem;
    border-radius: 999px;
    background: rgba(23, 50, 65, 0.08);
    border: 1px solid rgba(27, 58, 75, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.red-tab-button {
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.3rem;
    background: transparent;
    color: var(--primary-dark);
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.red-tab-button:hover,
.red-tab-button:focus-visible {
    background: rgba(255, 255, 255, 0.72);
    outline: none;
}

.red-tab-button.active {
    color: white;
    background: linear-gradient(135deg, #173241, #21485d);
    box-shadow: 0 16px 34px rgba(23, 50, 65, 0.22);
}

.red-tabs[data-active-theme="people"] .red-tab-list {
    background: rgba(184, 93, 119, 0.1);
    border-color: rgba(184, 93, 119, 0.16);
}

.red-tabs[data-active-theme="people"] .red-tab-button.active {
    background: linear-gradient(135deg, #8e3156, #be6688);
    box-shadow: 0 16px 34px rgba(184, 93, 119, 0.24);
}

.red-tab-panel[hidden] {
    display: none;
}

.red-panel-shell {
    position: relative;
    display: grid;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(27, 58, 75, 0.08);
    box-shadow: 0 28px 58px rgba(27, 58, 75, 0.1);
    overflow: hidden;
}

.red-panel-shell::before {
    content: '';
    position: absolute;
    left: 1.6rem;
    right: 1.6rem;
    top: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
}

.red-panel-shell--people {
    background:
        radial-gradient(circle at top right, rgba(184, 93, 119, 0.14), transparent 26%),
        linear-gradient(180deg, rgba(255, 248, 251, 0.98), rgba(255, 255, 255, 0.92));
}

.red-panel-shell--companies {
    background:
        radial-gradient(circle at top right, rgba(91, 159, 177, 0.1), transparent 26%),
        linear-gradient(180deg, rgba(248, 251, 252, 0.98), rgba(255, 255, 255, 0.92));
}

.red-page[hidden] {
    display: none;
}

.red-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.red-card {
    position: relative;
    min-height: 190px;
    padding: 1.15rem;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    align-content: end;
    border: 1px solid rgba(27, 58, 75, 0.08);
    box-shadow: 0 18px 38px rgba(27, 58, 75, 0.08);
}

.red-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.45;
}

.red-card--people {
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.3), transparent 24%),
        linear-gradient(180deg, rgba(184, 93, 119, 0.9), rgba(227, 159, 183, 0.9));
}

.red-card--company {
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.24), transparent 24%),
        linear-gradient(180deg, rgba(23, 50, 65, 0.95), rgba(91, 159, 177, 0.88));
}

.red-card-tag,
.red-card strong,
.red-card p,
.red-card em {
    position: relative;
    z-index: 1;
}

.red-card-tag {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.red-card strong {
    display: block;
    margin-bottom: 0;
    color: white;
    font-size: 1.3rem;
    line-height: 1.15;
}

.red-card p {
    display: none;
}

.red-card em {
    display: none;
}

.red-pagination {
    display: flex;
    gap: 0.7rem;
    justify-content: center;
}

.red-page-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(27, 58, 75, 0.12);
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary-dark);
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.red-page-button:hover,
.red-page-button:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.red-page-button.active {
    color: white;
    background: linear-gradient(135deg, #173241, #21485d);
    box-shadow: 0 14px 28px rgba(23, 50, 65, 0.18);
}

.red-tabs[data-active-theme="people"] .red-page-button.active {
    background: linear-gradient(135deg, #8e3156, #be6688);
    box-shadow: 0 14px 28px rgba(184, 93, 119, 0.2);
}

.brand-lockup.brand-clicked {
    animation: logo-click 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-lg) + 0.1rem);
}

.section {
    padding: calc(var(--spacing-xl) + 0.3rem) calc(var(--spacing-xl) + 0.2rem);
    margin: 0;
    background:
        radial-gradient(circle at top center, rgba(184, 93, 119, 0.05), transparent 18%),
        linear-gradient(180deg, rgba(247, 250, 251, 0.96), rgba(241, 246, 248, 0.98));
    position: relative;
    z-index: 1;
}

.section:nth-child(odd) {
    background:
        radial-gradient(circle at 10% 10%, rgba(91, 159, 177, 0.04), transparent 18%),
        linear-gradient(180deg, #f4f8f9 0%, #eef4f7 100%);
}

.section h2 {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    display: inline-block;
    position: relative;
}

/* Underline con gradiente de marca (pink → yellow) */
.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
    border-radius: var(--radius-pill);
}

.hero {
    padding: 5.8rem calc(var(--spacing-xl) + 0.2rem);
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Orbes decorativos al estilo Stripe/Linear - CSS puro, sin JS */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 600px at 10% 20%, rgba(184, 93, 119, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 600px 500px at 85% 15%, rgba(91, 159, 177, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 700px 500px at 50% 110%, rgba(212, 168, 92, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto 8% 0 8%;
    height: 1px;
    background: linear-gradient(90deg, rgba(184, 93, 119, 0), rgba(184, 93, 119, 0.4), rgba(91, 159, 177, 0.35), rgba(184, 93, 119, 0));
    pointer-events: none;
}

.hero h1 {
    color: var(--background-dark);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.hero-lab {
    padding-top: 4rem;
    background:
        linear-gradient(180deg, #f4f8f9 0%, #ffffff 42%, #f7fafb 100%);
    overflow: hidden;
}

.hero-lab .container {
    position: relative;
    z-index: 2;
}

.hero-home-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-home-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(244, 248, 249, 0.36) 0%, rgba(247, 250, 251, 0.16) 34%, rgba(247, 250, 251, 0.62) 100%),
        radial-gradient(circle at 15% 18%, rgba(184, 93, 119, 0.1), transparent 22%),
        radial-gradient(circle at 78% 16%, rgba(184, 93, 119, 0.08), transparent 24%),
        radial-gradient(circle at 82% 14%, rgba(91, 159, 177, 0.06), transparent 24%);
    z-index: 1;
}

.hero-home-video-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 0.72;
    filter: saturate(1.12) contrast(1.02) brightness(0.82) hue-rotate(-4deg);
}

.hero-lab-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    margin-bottom: 1.4rem;
    border: 1px solid rgba(91, 159, 177, 0.24);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-blue);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(74, 124, 158, 0.08);
}

.hero-lab-badge::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-pink));
    box-shadow: 0 0 0 5px rgba(91, 159, 177, 0.12);
}

.hero-lab h1 {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    font-size: clamp(3.2rem, 5.4vw, 5.9rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--brand-pink);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.hero-lab .hero-subtitle {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #44697d;
    font-size: clamp(1.2rem, 2vw, 1.58rem);
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: var(--spacing-lg) auto;
    color: var(--medium-gray);
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

.hero-lab .hero-description {
    max-width: 920px;
    font-size: 1.16rem;
}

/* ── Sistema unificado de hero: mismo fondo azul, mismo halo superior y misma escala ── */
.header-home,
.page-hero,
.hero-lab {
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 24%),
        linear-gradient(135deg, #173241 0%, #21485d 56%, #1b3543 100%);
    background-size: 28px 28px, auto, auto;
    min-height: 540px;
    position: relative;
    overflow: hidden;
}

.header-home::before,
.page-hero::before,
.hero-lab::before {
    background:
        radial-gradient(ellipse 38% 24% at 14% 0%, rgba(184, 93, 119, 0.28) 0%, transparent 72%),
        radial-gradient(ellipse 34% 20% at 52% 0%, rgba(212, 168, 92, 0.24) 0%, transparent 74%),
        radial-gradient(ellipse 36% 22% at 86% 0%, rgba(91, 159, 177, 0.26) 0%, transparent 72%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 34%);
}

.header-home::after,
.page-hero::after,
.hero-lab::after {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(184, 93, 119, 0.80) 15%,
        rgba(212, 168, 92, 0.90) 50%,
        rgba(91, 159, 177, 0.80) 85%,
        transparent 100%);
    border-radius: 0;
}

.header-home .header-content,
.hero-lab .container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding-top: 4.8rem;
    padding-bottom: 4.8rem;
}

.page-hero-title,
.lab-hero .lab-title,
.hero-lab h1,
.header-home .brand-title {
    font-size: clamp(4.5rem, 8vw, 8.5rem);
    line-height: 0.86;
    letter-spacing: -0.025em;
    color: white;
}

.page-hero-title::after,
.lab-hero .lab-title::after,
.hero-lab h1::after,
.header-home .brand-title::after {
    bottom: -16px;
    width: 100%;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
    box-shadow: 0 0 24px rgba(184,93,119,0.6), 0 0 48px rgba(212,168,92,0.35);
}

.page-hero-subtitle,
.hero-lab .hero-subtitle,
.header-home .brand-tagline {
    max-width: 660px;
    margin-top: 2.6rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.12rem;
    line-height: 2;
}

.hero-lab h1,
.hero-lab .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.header-home .brand-intro {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.02rem;
    line-height: 1.9;
}

.hero-home-media::before {
    background: linear-gradient(180deg, rgba(14, 35, 46, 0.58) 0%, rgba(19, 45, 58, 0.72) 45%, rgba(16, 39, 51, 0.9) 100%);
}

.hero-home-video-frame {
    opacity: 0.16;
    filter: saturate(0.8) contrast(1.02) brightness(0.42) hue-rotate(-6deg);
}

.hero-lab-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-lab-strip {
    margin-top: 3.3rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    text-align: left;
}

.hero-lab-strip article {
    padding: 1.45rem 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(27, 58, 75, 0.08);
    box-shadow: 0 18px 40px rgba(27, 58, 75, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.hero-lab-strip article::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
    opacity: 0.9;
}

.hero-lab-strip span {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-lab-strip p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
}

.home-intro-band {
    position: relative;
    overflow: hidden;
    min-height: clamp(640px, 82vh, 860px);
    padding: clamp(4.5rem, 8vw, 6.4rem) var(--section-padding-x);
    background:
        linear-gradient(180deg, rgba(250, 251, 252, 0.96) 0%, rgba(245, 248, 250, 0.98) 100%),
        radial-gradient(circle at top left, rgba(184, 93, 119, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(91, 159, 177, 0.08), transparent 30%);
}

.home-intro-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(250, 251, 252, 0.12) 0%, rgba(246, 249, 251, 0.34) 52%, rgba(244, 248, 250, 0.66) 100%),
        radial-gradient(circle at 15% 18%, rgba(184, 93, 119, 0.12), transparent 22%),
        radial-gradient(circle at 82% 14%, rgba(91, 159, 177, 0.12), transparent 24%);
    z-index: 1;
    pointer-events: none;
}

.home-intro-band .hero-home-media::before {
    background:
        linear-gradient(180deg, rgba(249, 251, 252, 0.44) 0%, rgba(246, 249, 250, 0.28) 36%, rgba(244, 247, 249, 0.72) 100%),
        radial-gradient(circle at 15% 18%, rgba(184, 93, 119, 0.12), transparent 22%),
        radial-gradient(circle at 78% 16%, rgba(184, 93, 119, 0.08), transparent 24%),
        radial-gradient(circle at 82% 14%, rgba(91, 159, 177, 0.08), transparent 24%);
}

.home-intro-band .hero-home-video-frame {
    opacity: 0.26;
    filter: saturate(0.9) contrast(1) brightness(0.92) hue-rotate(-4deg);
}

.home-intro-band .container {
    position: relative;
    z-index: 2;
    padding-top: clamp(1rem, 2vw, 1.8rem);
    padding-bottom: clamp(1rem, 2vw, 1.8rem);
}

.home-intro-band h1 {
    max-width: 15ch;
    margin: 0 0 1.2rem;
    color: var(--primary-dark);
    font-family: var(--font-brand);
    font-size: clamp(3.2rem, 6vw, 5.2rem);
    line-height: 0.96;
    letter-spacing: -0.035em;
    text-transform: none;
}

.home-intro-band .hero-subtitle {
    max-width: 62ch;
    margin: 0;
    color: rgba(23, 50, 65, 0.82);
    font-size: clamp(1.04rem, 1.4vw, 1.18rem);
    line-height: 1.9;
    font-weight: 500;
}

.home-intro-band .hero-lab-actions {
    justify-content: flex-start;
    margin-top: 2rem;
}

.home-intro-band .hero-lab-strip {
    margin-top: 2.8rem;
}

.home-intro-band .hero-lab-strip article {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 24px 54px rgba(29, 54, 67, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.home-intro-band .hero-lab-strip span {
    color: var(--primary-dark);
}

.home-intro-band .hero-lab-strip p {
    color: rgba(44, 73, 88, 0.84);
}

.home-storytelling {
    padding-top: 4.2rem;
}

.home-storytelling .container {
    max-width: 100%;
}

.home-storytelling-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(420px, 0.95fr);
    gap: 1.8rem;
    align-items: start;
}

.home-story-block,
.home-lab-preview {
    position: relative;
    padding: 2rem;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(27, 58, 75, 0.08);
    box-shadow: 0 22px 48px rgba(27, 58, 75, 0.08);
    overflow: hidden;
}

.home-story-block::before,
.home-lab-preview::before {
    content: '';
    position: absolute;
    left: 1.55rem;
    right: 1.55rem;
    top: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
}

.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.42rem 0.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(91, 159, 177, 0.24);
    background: rgba(247, 250, 251, 0.94);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-kicker::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--brand-yellow);
    box-shadow: 0 0 0 4px rgba(212, 168, 92, 0.14);
}

.home-story-block h2 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

.home-story-block p {
    margin-bottom: 0.95rem;
    color: var(--medium-gray);
}

.home-story-block p:last-child {
    margin-bottom: 0;
}

.home-lab-preview {
    background:
        radial-gradient(circle at 8% 16%, rgba(184, 93, 119, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 252, 0.95));
}

.home-lab-preview h3 {
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.home-lab-preview > p {
    margin-bottom: 1rem;
}

.home-lab-rotator {
    position: relative;
    min-height: 410px;
    margin-bottom: 1.2rem;
}

.home-lab-slide {
    position: absolute;
    inset: 0;
    display: grid;
    gap: 1rem;
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    filter: blur(3px);
    pointer-events: none;
    transition:
        opacity 1100ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 1100ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-lab-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    pointer-events: auto;
}

.home-lab-slide-media {
    min-height: 210px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #173241, #21485d);
    border: 1px solid rgba(27, 58, 75, 0.08);
    box-shadow: 0 20px 44px rgba(27, 58, 75, 0.12);
}

.home-lab-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 1100ms cubic-bezier(0.22, 1, 0.36, 1), opacity 1100ms ease;
}

.home-lab-slide.active .home-lab-slide-media img {
    transform: scale(1);
}

.home-lab-placeholder {
    width: 100%;
    height: 100%;
    min-height: 210px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        radial-gradient(circle at 16% 18%, rgba(184, 93, 119, 0.2), transparent 24%),
        radial-gradient(circle at 84% 18%, rgba(212, 168, 92, 0.18), transparent 26%),
        linear-gradient(135deg, #173241 0%, #21485d 56%, #163040 100%);
    color: white;
}

.home-lab-placeholder-kicker {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 0.8rem;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-lab-placeholder strong {
    display: block;
    margin-bottom: 0.45rem;
    font-family: var(--font-heading);
    font-size: 1.18rem;
    line-height: 1.35;
}

.home-lab-placeholder p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

.home-lab-slide-copy {
    padding: 0.2rem 0.15rem 0;
}

.home-lab-slide-label {
    display: inline-flex;
    margin-bottom: 0.75rem;
    color: var(--brand-pink);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-lab-slide-copy strong {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.35;
}

.home-lab-slide-copy p {
    margin-bottom: 0;
    line-height: 1.75;
}

.home-lab-rotator-dots {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.home-lab-dot {
    width: 0.8rem;
    height: 0.8rem;
    border: 0;
    border-radius: 50%;
    background: rgba(27, 58, 75, 0.18);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.home-lab-dot.active {
    background: var(--brand-pink);
    box-shadow: 0 0 0 5px rgba(184, 93, 119, 0.14);
}

.home-lab-preview .button {
    width: 100%;
    text-align: center;
}

.home-contact-mini {
    padding-top: 2.2rem;
    padding-bottom: 4.2rem;
}

.home-contact-mini .container {
    max-width: 100%;
}

.home-contact-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
    align-items: stretch;
    width: 100%;
}

.home-contact-copy,
.home-contact-form-wrap {
    position: relative;
    padding: 2rem;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(184, 93, 119, 0.08), transparent 24%),
        radial-gradient(circle at 88% 12%, rgba(91, 159, 177, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 252, 0.94));
    border: 1px solid rgba(27, 58, 75, 0.08);
    box-shadow: 0 28px 58px rgba(27, 58, 75, 0.1);
    overflow: hidden;
    height: 100%;
}

.home-contact-copy::before,
.home-contact-form-wrap::before {
    content: '';
    position: absolute;
    left: 1.7rem;
    right: 1.7rem;
    top: 0;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
}

.home-contact-copy .home-kicker {
    margin-bottom: 0.9rem;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(91, 159, 177, 0.16);
    box-shadow: 0 10px 22px rgba(27, 58, 75, 0.06);
}

.home-contact-strap {
    margin-bottom: 1.25rem;
    color: var(--primary-blue);
    font-family: var(--font-brand);
    font-size: var(--font-size-h2);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    max-width: 20ch;
}

.home-contact-copy .contact-points {
    margin-top: 0.4rem;
}

.home-contact-copy .contact-point {
    position: relative;
    padding: 1.25rem 1.3rem;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 250, 0.92));
    border: 1px solid rgba(27, 58, 75, 0.08);
    box-shadow: 0 18px 38px rgba(27, 58, 75, 0.07);
}

.home-contact-copy .contact-point::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand-pink), var(--brand-cyan));
}

.home-contact-copy .contact-point strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 1.35;
}

.home-contact-copy .contact-point span {
    display: block;
    color: var(--medium-gray);
    font-size: 0.96rem;
    line-height: 1.75;
    max-width: 52ch;
}

.home-contact-form-wrap {
    display: flex;
    align-items: center;
}

.home-contact-form {
    width: 100%;
    display: grid;
    gap: 1rem;
}

.home-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.home-contact-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.home-contact-actions .button {
    flex: 1 1 180px;
    text-align: center;
}

.home-partners {
    padding-top: 2.8rem;
    padding-bottom: 4rem;
    overflow: hidden;
}

.home-partners-header {
    max-width: 880px;
    margin: 0 auto 1.6rem;
    text-align: center;
}

.home-partners-header h2 {
    margin-bottom: 1rem;
}

.home-partners-header p {
    margin-bottom: 0;
}

.partners-marquee {
    display: flex;
    gap: 1rem;
    overflow: hidden;
    position: relative;
    padding: 0.4rem 0;
    margin-top: 1.8rem;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.partners-track {
    flex-shrink: 0;
    display: flex;
    gap: 1rem;
    min-width: max-content;
    animation: partners-scroll 24s linear infinite;
}

.partner-logo-card {
    width: min(260px, 42vw);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(27, 58, 75, 0.1);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 34px rgba(27, 58, 75, 0.08);
}

.partner-logo-card img {
    width: auto;
    max-width: 100%;
    height: 70px;
    object-fit: contain;
    filter: saturate(0.94) contrast(1.03);
}

.partner-logo-card span {
    margin-top: 0.7rem;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.partner-logo-card--active {
    background:
        radial-gradient(circle at top right, rgba(212, 168, 92, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 252, 0.92));
}

.partner-logo-card--placeholder {
    border-style: dashed;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(244, 248, 250, 0.82));
    box-shadow: none;
}

.partner-logo-card--placeholder span {
    color: rgba(27, 58, 75, 0.52);
}

@keyframes partners-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - 1rem));
    }
}

.button {
    font-family: var(--font-button);
    background: linear-gradient(135deg, var(--brand-pink) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 1.05rem 2.2rem;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.26s ease, box-shadow 0.26s ease, background-color 0.26s ease, color 0.26s ease, border-color 0.26s ease;
    font-size: 1.02rem;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 28px rgba(184, 93, 119, 0.16);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(184, 93, 119, 0.24);
}

.button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 35%, transparent 65%, rgba(255, 255, 255, 0.12));
    opacity: 0.8;
    pointer-events: none;
}

.button:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 4px 12px rgba(184, 93, 119, 0.20);
    transition: all 0.1s ease;
}

.button-secondary {
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, rgba(184, 93, 119, 0.35), rgba(212, 168, 92, 0.26), rgba(47, 120, 255, 0.34)) border-box;
    border: 1px solid transparent;
    color: #102c68;
    box-shadow: 0 18px 38px rgba(47, 120, 255, 0.14), 0 0 26px rgba(184, 93, 119, 0.1);
}

.button-secondary:hover {
    background:
        linear-gradient(rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98)) padding-box,
        linear-gradient(135deg, rgba(184, 93, 119, 0.48), rgba(212, 168, 92, 0.34), rgba(47, 120, 255, 0.46)) border-box;
    color: #102c68;
    box-shadow: 0 22px 44px rgba(47, 120, 255, 0.16), 0 0 30px rgba(184, 93, 119, 0.12);
}

.button-accent {
    background: var(--contrast-accent);
    color: var(--primary-dark);
}

.button-accent:hover {
    background: #B8945F;
    color: var(--primary-dark);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-lg) - 0.2rem);
    margin-top: var(--spacing-lg);
}

.card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    padding: calc(var(--spacing-lg) - 0.2rem);
    box-shadow: 0 22px 48px rgba(27, 58, 75, 0.08);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s ease, border-color 0.32s ease, background-color 0.32s ease;
    border: 1px solid rgba(27, 58, 75, 0.08);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    right: 1.5rem;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
    opacity: 0.85;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(27, 58, 75, 0.12);
    border-color: rgba(91, 159, 177, 0.14);
}

.section-dark {
    position: relative;
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 1px),
        radial-gradient(ellipse 80% 60% at 0% 50%, rgba(184,93,119,0.12), transparent 50%),
        radial-gradient(ellipse 60% 70% at 100% 30%, rgba(91,159,177,0.10), transparent 50%),
        #0d1a24 !important;
    background-size: 28px 28px, auto, auto, auto !important;
    color: white;
}

/* Variante con transiciones diagonales entre secciones */
.section-dark--diag {
    clip-path: polygon(0 0, 100% 3.5vw, 100% 100%, 0 calc(100% - 3.5vw));
    padding-top: calc(var(--spacing-xl) + 3.5vw) !important;
    padding-bottom: calc(var(--spacing-xl) + 3.5vw) !important;
}

.section-dark .card:hover {
    border-left-color: var(--brand-pink);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.40);
}

.section-dark h2 {
    color: white;
}

.section-dark h2::after {
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
}

.section-dark h3,
.section-dark h4 {
    color: white;
}

.section-dark p {
    color: rgba(255, 255, 255, 0.72);
}

.section-dark .card {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--brand-yellow);
}

.section-dark .card h3 {
    color: var(--brand-yellow);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.team-member {
    text-align: center;
}

.team-avatar {
    width: 200px;
    height: 200px;
    background: linear-gradient(120deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan), var(--brand-pink));
    background-size: 200% 200%;
    border-radius: 4px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    border: 3px solid var(--brand-yellow);
    cursor: pointer;
    overflow: hidden;
    animation: borderColorCycle 10s ease-in-out infinite;
}

.team-avatar img {
    image-rendering: auto;
}

/* Modal para foto en grande */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background: transparent;
    padding: 2rem;
    border-radius: 0;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zoomIn 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes zoomIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes borderGradient {
    0% { 
        border-image: linear-gradient(120deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan)) 1;
    }
    33% { 
        border-image: linear-gradient(240deg, var(--brand-yellow), var(--brand-cyan), var(--brand-pink)) 1;
    }
    66% { 
        border-image: linear-gradient(360deg, var(--brand-cyan), var(--brand-pink), var(--brand-yellow)) 1;
    }
    100% { 
        border-image: linear-gradient(120deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan)) 1;
    }
}

@keyframes borderColorShift {
    0% { 
        border-right-color: var(--brand-pink);
    }
    50% { 
        border-right-color: var(--brand-cyan);
    }
    100% { 
        border-right-color: var(--brand-pink);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes borderColorCycle {
    0% { 
        border-color: var(--brand-pink);
    }
    33% { 
        border-color: var(--brand-yellow);
    }
    66% { 
        border-color: var(--brand-cyan);
    }
    100% { 
        border-color: var(--brand-pink);
    }
}

.modal-content img {
    max-width: 85vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 4px;
    border: 3px solid var(--brand-pink);
    box-shadow: 0 8px 24px rgba(184, 93, 119, 0.15);
    animation: borderColorCycle 10s ease-in-out infinite;
    object-fit: contain;
}

.close-modal {
    position: fixed;
    right: 2rem;
    top: 2rem;
    font-size: 3rem;
    cursor: pointer;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    font-weight: 300;
    z-index: 10000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.team-role {
    color: var(--brand-pink);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer {
    background:
        radial-gradient(circle at 12% 8%, rgba(184, 93, 119, 0.16), transparent 26%),
        radial-gradient(circle at 82% 0%, rgba(212, 168, 92, 0.11), transparent 28%),
        linear-gradient(135deg, #132d3a 0%, var(--background-dark) 54%, #102733 100%);
    color: white;
    padding: var(--spacing-xl) var(--spacing-xl) calc(var(--spacing-lg) - 0.4rem);
    text-align: left;
    margin-top: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

/* Franja de marca tricolor en la parte superior del footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(180px, 0.7fr));
    gap: clamp(1.6rem, 3vw, var(--spacing-lg));
    text-align: left;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.footer-section h2,
.footer-section h4 {
    color: var(--brand-yellow);
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: var(--spacing-xs);
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--brand-yellow);
    transform: translateX(2px);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 0.8rem;
}

.footer-brand-note {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.72) !important;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.15rem;
    margin-bottom: 1.35rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-socials a {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 999px;
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-socials + p {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.5);
}

.footer-socials a:hover {
    color: white;
    background: linear-gradient(135deg, rgba(184, 93, 119, 0.82), rgba(212, 168, 92, 0.72));
    transform: translateY(-2px);
}

.footer-socials svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.25rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 0;
}

/* INPUTS & FORMS */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    min-height: 56px;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(27, 58, 75, 0.12);
    border-radius: 16px;
    font-size: 1rem;
    line-height: 1.45;
    font-family: var(--font-primary);
    color: var(--dark-gray);
    background: rgba(247, 250, 251, 0.92);
    box-sizing: border-box;
    transition: border-color 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, transform 0.28s ease;
}

input[type="tel"] {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
    margin-bottom: 0;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.1rem;
}

.form-field--span-2 {
    grid-column: 1 / -1;
}

.form-field label {
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--primary-dark);
}

.form-help {
    font-size: 0.84rem;
    line-height: 1.5;
    color: rgba(27, 58, 75, 0.68);
}

.contact-form-head {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 0.25rem;
}

.contact-form-head h3 {
    font-family: var(--font-brand);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.1;
    color: var(--primary-dark);
}

.contact-form-head p {
    max-width: 58ch;
    color: rgba(27, 58, 75, 0.74);
    line-height: 1.7;
}

.contact-form-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(184, 93, 119, 0.08);
    color: var(--brand-pink);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-form-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.contact-form-signals span {
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(27, 58, 75, 0.08);
    color: rgba(27, 58, 75, 0.8);
    font-size: 0.8rem;
    font-weight: 700;
}

.contact-form-head--compact {
    margin-bottom: 1rem;
}

.contact-form-head--compact h3 {
    font-size: clamp(1.18rem, 1.8vw, 1.45rem);
    max-width: 28ch;
}

.contact-form-note {
    margin-bottom: 1.5rem;
}

.contact-submit {
    width: 100%;
    min-height: 56px;
    padding: 1rem 1.25rem;
    justify-content: center;
}

.form-status {
    min-height: 1.35rem;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--medium-gray);
}

.form-status--success {
    color: #245f43;
}

.form-status--error {
    color: #991b1b;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(91, 159, 177, 0.42);
    box-shadow: 0 0 0 4px rgba(91, 159, 177, 0.12);
    background: white;
    transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
    color: #999;
}

select {
    appearance: none;
    padding-right: 2.8rem;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--primary-dark) 50%),
        linear-gradient(135deg, var(--primary-dark) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    color: var(--primary-dark);
}

/* ================================================================
   CAPTACION, PORTFOLIO Y CONVERSION
   ================================================================ */

.page-hero-actions,
.section-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 2.5rem;
}

.page-hero-actions .button-secondary {
    color: #102c68;
    border-color: transparent;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, rgba(184, 93, 119, 0.35), rgba(212, 168, 92, 0.26), rgba(47, 120, 255, 0.34)) border-box;
}

.conversion-services,
.trust-section {
    background:
        radial-gradient(circle at 8% 10%, rgba(91, 159, 177, 0.11), transparent 24%),
        linear-gradient(180deg, #f7fafb 0%, #eef4f7 100%);
}

.portfolio-section {
    background-color: #132d3a;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 1px),
        radial-gradient(circle at 90% 8%, rgba(184, 93, 119, 0.12), transparent 24%),
        radial-gradient(circle at 12% 0%, rgba(91, 159, 177, 0.12), transparent 28%),
        linear-gradient(135deg, #132d3a 0%, #1b3a4b 58%, #102733 100%) !important;
    background-size: 28px 28px, auto, auto, auto !important;
    color: white;
    padding-top: clamp(4rem, 7vw, 6rem);
    padding-bottom: clamp(4rem, 7vw, 6rem);
    isolation: isolate;
    overflow: hidden;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.portfolio-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 27, 37, 0.92), rgba(8, 23, 31, 0.96)),
        radial-gradient(circle at 82% 10%, rgba(184, 93, 119, 0.2), transparent 26%),
        radial-gradient(circle at 14% 0%, rgba(212, 168, 92, 0.13), transparent 28%);
    z-index: -1;
    pointer-events: none;
}

.portfolio-section .conversion-section-head {
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.portfolio-section .home-kicker {
    color: #123142;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.portfolio-section h2,
.portfolio-section h3,
.portfolio-section p,
.portfolio-section .conversion-section-head p {
    color: white;
}

.portfolio-section .conversion-section-head h2 {
    color: rgba(255, 255, 255, 0.98);
}

.portfolio-section .conversion-section-head p {
    color: rgba(255, 255, 255, 0.86);
}

.conversion-section-head {
    max-width: 860px;
    margin-bottom: 2rem;
}

.conversion-section-head .home-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.9rem;
}

.conversion-section-head h2 {
    display: block;
    width: fit-content;
    margin-bottom: 0.9rem;
}

.conversion-section-head p {
    color: var(--medium-gray);
    margin-bottom: 0;
}

.conversion-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.conversion-card {
    position: relative;
    min-height: 260px;
    padding: 1.45rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(27, 58, 75, 0.1);
    box-shadow: 0 18px 45px rgba(24, 49, 66, 0.1);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.conversion-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
}

.conversion-card:hover,
.conversion-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(91, 159, 177, 0.34);
    box-shadow: 0 24px 58px rgba(24, 49, 66, 0.16);
}

.conversion-card span {
    display: inline-flex;
    margin-bottom: 1.1rem;
    color: #3a8496; /* más oscuro que --brand-cyan para contraste en fondo blanco */
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.12em;
}

/* En secciones oscuras el azul más vivo es legible */
.portfolio-section .conversion-card span,
.section-dark .conversion-card span,
.method-audience .conversion-card span {
    color: #7ecfe0;
}

.conversion-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.conversion-card p {
    margin-bottom: 1rem;
}

.conversion-card a,
.portfolio-card a {
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.conversion-card a:hover,
.conversion-card a:focus-visible {
    color: var(--brand-pink);
}

.services-offer-grid {
    margin-bottom: 1.5rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
}

.portfolio-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 168, 92, 0.42);
}

.portfolio-media {
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(91, 159, 177, 0.12)),
        #102733;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 1.25rem;
}

.portfolio-media img,
.portfolio-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-media--brand img {
    object-fit: contain;
    padding: clamp(1rem, 3vw, 2rem);
    background: white;
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.portfolio-media--site {
    padding: 0.9rem;
}

.portfolio-media--site img {
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.portfolio-dashboard-mockup {
    width: min(560px, 100%);
    min-height: 210px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(246, 250, 252, 0.98);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
}

.portfolio-mockup-sidebar {
    display: grid;
    align-content: start;
    gap: 0.7rem;
    padding: 1rem;
    background: linear-gradient(180deg, #102733, #173241);
}

.portfolio-mockup-sidebar span {
    width: 100%;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.portfolio-mockup-sidebar span:first-child {
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-cyan));
}

.portfolio-mockup-screen {
    padding: 1.05rem;
    color: var(--primary-dark);
}

.portfolio-mockup-top small {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--brand-cyan);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portfolio-mockup-top strong {
    display: block;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    margin-bottom: 1rem;
}

.portfolio-mockup-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.portfolio-mockup-kpis div {
    min-height: 70px;
    padding: 0.7rem;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(91, 159, 177, 0.22), rgba(184, 93, 119, 0.16)),
        white;
    border: 1px solid rgba(27, 58, 75, 0.08);
}

.portfolio-mockup-kpis div strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1.15rem;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.portfolio-mockup-kpis div span {
    display: block;
    color: rgba(24, 49, 66, 0.66);
    font-size: 0.72rem;
    line-height: 1.25;
}

.portfolio-mockup-table {
    display: grid;
    gap: 0.45rem;
}

.portfolio-mockup-table span {
    height: 12px;
    border-radius: 999px;
    background: rgba(24, 49, 66, 0.12);
}

.portfolio-mockup-table span:nth-child(3n + 1) {
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
    opacity: 0.64;
}

.portfolio-copy {
    padding: 1.35rem;
    background: linear-gradient(180deg, rgba(247, 250, 252, 0.96), rgba(238, 245, 248, 0.98));
}

.portfolio-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 0.7rem;
    padding: 0.38rem 0.68rem;
    border: 1px solid rgba(27, 58, 75, 0.12);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.78);
    color: #123142;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portfolio-copy h3 {
    color: var(--primary-dark);
}

.portfolio-section .portfolio-copy h3 {
    color: var(--primary-dark);
}

.portfolio-copy p {
    color: rgba(24, 49, 66, 0.84);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.portfolio-section .portfolio-copy p {
    color: rgba(24, 49, 66, 0.84);
}

.portfolio-copy strong {
    color: var(--primary-dark);
}

.portfolio-section .portfolio-copy strong {
    color: var(--primary-dark);
}

.portfolio-tags,
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.portfolio-tags {
    margin: 1rem 0;
}

.portfolio-tags span,
.tech-stack span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.48rem 0.78rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
}

.portfolio-tags span {
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(91, 159, 177, 0.18);
    box-shadow: 0 10px 22px rgba(24, 49, 66, 0.06);
}

.portfolio-section .portfolio-tags span {
    color: var(--primary-dark);
}

.portfolio-result {
    color: var(--primary-dark) !important;
    font-weight: 700;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.process-grid article {
    padding: 1.2rem;
    border-radius: 8px;
    background: white;
    border: 1px solid rgba(27, 58, 75, 0.1);
    box-shadow: 0 16px 36px rgba(24, 49, 66, 0.09);
}

.process-grid strong {
    display: inline-flex;
    color: var(--brand-pink);
    margin-bottom: 0.85rem;
    font-family: var(--font-heading);
}

.process-grid h3 {
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.process-grid p {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.tech-stack span {
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(91, 159, 177, 0.18);
    box-shadow: 0 10px 24px rgba(24, 49, 66, 0.07);
}

.contact-float {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 1200;
    display: grid;
    justify-items: end;
    padding-top: 4.6rem;
}

.contact-float-socials {
    position: absolute;
    right: 0.55rem;
    bottom: calc(100% - 4rem);
    display: grid;
    gap: 0.55rem;
    pointer-events: none;
}

.contact-float-socials::after {
    content: '';
    position: absolute;
    left: -0.7rem;
    right: -0.7rem;
    top: -0.55rem;
    bottom: -1rem;
    z-index: -1;
}

.contact-social-bubble {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    text-decoration: none;
    opacity: 0;
    transform: translateY(12px) scale(0.84);
    box-shadow: 0 16px 34px rgba(14, 35, 46, 0.2);
    transition: opacity 0.28s ease 0.22s, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) 0.22s, box-shadow 0.22s ease;
}

.contact-social-bubble svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.contact-social-linkedin {
    background: #0a66c2;
}

.contact-social-instagram {
    background: radial-gradient(circle at 32% 100%, #fed373 0 10%, #f15245 32%, #d92e7f 58%, #9b36b7 78%, #515ecf 100%);
}

.contact-social-gmail {
    background: linear-gradient(135deg, #ea4335, #fbbc04 38%, #34a853 68%, #4285f4);
}

.contact-float:hover .contact-float-socials,
.contact-float:focus-within .contact-float-socials {
    pointer-events: auto;
}

.contact-float:hover .contact-social-bubble,
.contact-float:focus-within .contact-social-bubble {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
}

.contact-float:hover .contact-social-bubble:nth-child(2),
.contact-float:focus-within .contact-social-bubble:nth-child(2) {
    transition-delay: 0.04s, 0.04s, 0s;
}

.contact-float:hover .contact-social-bubble:nth-child(3),
.contact-float:focus-within .contact-social-bubble:nth-child(3) {
    transition-delay: 0.08s, 0.08s, 0s;
}

.contact-social-bubble:hover,
.contact-social-bubble:focus-visible {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 20px 42px rgba(14, 35, 46, 0.28);
}

.whatsapp-float {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 54px;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, #1fa463, #128c7e);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 18px 42px rgba(18, 140, 126, 0.34);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.whatsapp-float-icon {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    fill: currentColor;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(18, 140, 126, 0.42);
}

.whatsapp-float span {
    white-space: nowrap;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .sidebar-nav {
        padding: 0.6rem 1.1rem;
        gap: 1rem;
    }

    .logo-vertical {
        width: 70px;
        height: 70px;
    }

    .logo-vertical img {
        width: 50px;
        height: 50px;
    }

    .nav-vertical a {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .brand-title {
        font-size: clamp(3.6rem, 9vw, 5.8rem);
    }

    .header-home {
        min-height: 400px;
    }

    .header-home::after,
    .page-hero::after {
        width: 3px;
    }

    .brand-tagline {
        font-size: 1.1rem;
    }

    .brand-intro {
        font-size: 1rem;
    }

    .hero-lab-strip {
        grid-template-columns: 1fr;
    }

    .scroll-indicator {
        right: 1rem;
    }

    .page-hero-content {
        padding-right: 3rem;
    }

    .service-lead-card,
    .service-deck-header,
    .about-story-grid,
    .team-editorial-grid,
    .red-audience-grid {
        grid-template-columns: 1fr;
    }

    .service-deck-track {
        height: 28rem;
    }

    .service-deck-controls {
        justify-content: space-between;
    }

    .service-flash-card h3 {
        max-width: 24ch;
    }

    .red-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-storytelling-layout {
        grid-template-columns: 1fr;
    }

    .home-contact-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar-nav {
        flex-wrap: wrap;
        padding: 0.6rem 1rem;
        gap: 1rem;
    }

    .logo-vertical {
        width: 60px;
        height: 60px;
    }

    .logo-vertical img {
        width: 48px;
        height: 48px;
    }

    .nav-vertical {
        width: 100%;
        justify-content: space-between;
        gap: 0.4rem;
    }

    .nav-vertical a {
        padding: 0.55rem 0.75rem;
        font-size: 0.8rem;
        border-bottom: 3px solid transparent;
    }

    .section {
        padding: calc(var(--spacing-lg) - 0.2rem) var(--spacing-md);
    }

    .header {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .page-hero {
        padding: 3.1rem var(--spacing-md);
    }

    .header-home {
        min-height: 0;
        padding-top: 3.4rem;
        padding-bottom: 3rem;
    }

    .scroll-indicator {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 1.5rem;
    }

    .page-hero-content {
        padding-right: 0;
    }

    .service-deck-shell {
        padding: 1.4rem;
    }

    .service-deck-track {
        height: 28rem;
    }

    .service-deck-progress {
        min-width: 0;
        width: 100%;
    }

    .service-flash-card {
        min-height: calc(28rem - 1.15rem);
        padding: 1.5rem;
        transform: rotate(0deg);
    }

    .service-flash-card:nth-child(even) {
        transform: rotate(0deg);
    }

    .service-flash-card h3 {
        font-size: clamp(1.45rem, 7vw, 1.9rem);
    }

    .service-flash-description {
        font-size: 1rem;
        line-height: 1.65;
    }

    .page-intro,
    .contact-layout,
    .team-profile-top {
        grid-template-columns: 1fr;
    }

    .contact-form-grid,
    .home-contact-grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .form-field--span-2 {
        grid-column: auto;
    }

    .page-intro-card,
    .contact-panel,
    .contact-form-card,
    .network-panel,
    .team-profile-card,
    .red-panel-shell {
        padding: 1.5rem;
    }

    .red-tab-list {
        display: grid;
        border-radius: 24px;
    }

    .red-tab-button {
        width: 100%;
    }

    .red-card-grid {
        grid-template-columns: 1fr;
    }

    .team-photo-frame {
        width: 160px;
        height: 200px;
    }

    .hero {
        padding: 3.6rem var(--spacing-md);
    }

    h1 {
        font-size: 2rem;
    }

    .brand-title {
        font-size: clamp(2.8rem, 15vw, 4rem);
    }

    .header-home .brand-title {
        font-size: clamp(3.2rem, 15vw, 5rem);
    }

    .brand-title::after {
        bottom: -10px;
    }

    .brand-tagline {
        font-size: 1rem;
    }

    .brand-signals {
        gap: 0.65rem 1rem;
    }

    .page-hero-subtitle {
        font-size: 1.08rem;
        line-height: 1.8;
    }

    .header-home::after,
    .page-hero::after {
        right: 0.75rem;
    }

    .lab-panel-metrics div {
        grid-template-columns: 44px 1fr;
    }

    .hero-lab-actions {
        flex-direction: column;
    }

    .hero-lab-actions .button {
        width: 100%;
    }

    .home-story-block,
    .home-lab-preview,
    .home-contact-copy,
    .home-contact-form-wrap {
        padding: 1.5rem;
    }

    .home-contact-grid {
        grid-template-columns: 1fr;
    }

    .home-lab-rotator {
        min-height: 0;
        margin-bottom: 1.25rem;
    }

    .home-lab-slide {
        position: static;
        display: none;
        transform: none;
    }

    .home-lab-slide.active {
        display: grid;
    }

    .home-lab-rotator-dots {
        position: static;
        justify-content: flex-end;
        margin-top: 0.85rem;
    }

    .home-lab-preview .button {
        margin-top: 0.35rem;
    }

    .partner-logo-card {
        min-height: 104px;
    }

    .partner-logo-card img {
        height: 58px;
    }

    .partners-track {
        animation-duration: 20s;
    }

    .red-title {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sidebar-nav {
        padding: 0.6rem 0.9rem;
        gap: 0.9rem;
    }

    .logo-vertical {
        width: 58px;
        height: 58px;
    }

    .logo-vertical img {
        width: 46px;
        height: 46px;
    }

    .nav-vertical a {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
        letter-spacing: 0.8px;
    }

    h1 {
        font-size: 1.7rem;
    }

    p {
        font-size: 0.95rem;
    }

    .button {
        width: 100%;
        padding: 0.95rem 1.5rem;
    }

    .brand-title {
        font-size: 2.5rem;
    }

    .brand-tagline {
        font-size: 0.95rem;
    }

    .brand-chip,
    .hero-lab-badge {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }

    .page-hero-kicker {
        font-size: 0.7rem;
    }

    .header-lab-panel {
        padding: 1.1rem;
        border-radius: 18px;
    }

    .hero-lab-strip article {
        padding: 1rem;
        border-radius: 16px;
    }

    .home-kicker {
        font-size: 0.7rem;
    }

    .home-lab-steps article {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .partner-logo-card img {
        height: 50px;
    }

    .red-title {
        font-size: 2rem;
    }

    .red-card {
        min-height: 190px;
    }
}

@media (max-width: 900px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .page-hero-content {
        padding-left: 1.5rem;
        padding-right: 2rem;
    }

    .seo-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar-nav {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.85rem;
        padding: 0.65rem 1rem;
    }

    .sidebar-nav::after {
        left: 1rem;
        right: 1rem;
    }

    .logo-vertical {
        width: 54px;
        height: 54px;
    }

    .logo-vertical img {
        width: 42px;
        height: 42px;
    }

    .nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .nav-vertical {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: calc(100% + 0.55rem);
        width: auto;
        max-width: none;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.35rem;
        padding: 0.8rem;
        border-radius: 18px;
        background: rgba(18, 44, 58, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 24px 54px rgba(10, 24, 32, 0.28);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    .sidebar-nav.nav-open .nav-vertical {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-vertical a {
        width: 100%;
        padding: 0.9rem 1rem;
        border-radius: 12px;
        font-size: 0.86rem;
        letter-spacing: 0.08em;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: left;
    }

    .nav-vertical a.active,
    .nav-vertical a:hover {
        border-radius: 12px;
    }

    .header,
    .header-home {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .page-hero {
        padding: 0;
        min-height: 340px;
    }

    .page-hero-content {
        padding: 3.4rem 2rem 3.4rem 1.25rem;
    }

    .page-hero-title,
    .lab-hero .lab-title {
        max-width: 100%;
        font-size: clamp(2.45rem, 12vw, 4.4rem);
        line-height: 1;
        letter-spacing: 0.015em;
        overflow-wrap: anywhere;
    }

    .page-hero-subtitle {
        max-width: 100%;
        font-size: clamp(1rem, 3.5vw, 1.12rem);
        line-height: 1.75;
    }

    .hero {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-home-video-frame,
    .page-hero-video {
        transform: none;
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 3rem);
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    .brand-title,
    .header-home .brand-title {
        max-width: 100%;
        font-size: clamp(2.65rem, 14vw, 4.6rem);
        line-height: 1;
        letter-spacing: 0.05em;
        overflow-wrap: anywhere;
    }

    .brand-intro {
        max-width: 100%;
    }

    .home-storytelling-layout,
    .home-contact-card,
    .contact-layout,
    .page-intro,
    .about-editorial .page-intro,
    .team-profile-top,
    .team-editorial-grid,
    .service-lead-card {
        grid-template-columns: 1fr;
    }

    .home-story-block,
    .home-lab-preview,
    .home-contact-copy,
    .home-contact-form-wrap,
    .contact-panel,
    .contact-form-card,
    .network-panel,
    .team-profile-card,
    .page-intro-card,
    .service-deck-shell,
    .service-lead-card,
    .card {
        width: 100%;
        min-width: 0;
    }

    .service-deck-controls {
        align-items: stretch;
    }

    .service-deck-track {
        height: min(30rem, 78vh);
    }

    .service-flash-card {
        min-height: calc(min(30rem, 78vh) - 1.15rem);
    }

    .service-flash-description {
        display: block;
        font-size: clamp(1rem, 3.8vw, 1.12rem);
        line-height: 1.8;
    }

    .seo-related-grid,
    .hero-lab-strip,
    .about-editorial .pillar-grid,
    .about-tech-principles .pillar-grid,
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container,
    .section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .page-hero-content {
        padding: 3rem 1.5rem 3rem 1.25rem;
    }

    .header-home::after,
    .page-hero::after {
        right: 0.45rem;
    }

    .page-hero-title,
    .lab-hero .lab-title {
        font-size: clamp(2.15rem, 11.5vw, 3.4rem);
    }

    .page-hero-kicker,
    .home-kicker,
    .service-lead-label,
    .lab-inline-label {
        max-width: 100%;
        white-space: normal;
        line-height: 1.4;
    }

    .home-story-block,
    .home-lab-preview,
    .home-contact-copy,
    .home-contact-form-wrap,
    .contact-panel,
    .contact-form-card,
    .network-panel,
    .team-profile-card,
    .page-intro-card,
    .service-deck-shell,
    .service-lead-card,
    .card {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .team-profile-top {
        justify-items: center;
        text-align: center;
    }

    .team-photo-frame {
        width: min(160px, 72vw);
        height: 200px;
    }

    .service-deck-track {
        height: auto;
        max-height: none;
        overflow: visible;
        scroll-snap-type: none;
    }

    .service-flash-card {
        min-height: 0;
        padding: 1.25rem;
    }

    .service-flash-card h3 {
        max-width: 100%;
        font-size: clamp(1.35rem, 7vw, 1.7rem);
    }

    .home-contact-strap {
        max-width: 100%;
    }

    .partner-logo-card {
        width: min(220px, 72vw);
    }

    .partners-marquee {
        max-width: 100%;
        contain: paint;
    }

    .seo-related-grid a {
        min-height: 0;
        padding: 0.95rem;
    }

    .footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .footer-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-section,
    .footer-section h2,
    .footer-section h4,
    .footer-section p,
    .footer-section a {
        max-width: 100%;
    }
}

@media (max-width: 360px) {
    .container,
    .section,
    .header,
    .header-home,
    .hero {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page-hero-content {
        padding-left: 1rem;
        padding-right: 1.35rem;
    }

    .nav-vertical {
        left: 0.75rem;
        right: 0.75rem;
    }

    .button {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .brand-title,
    .header-home .brand-title {
        font-size: clamp(2.25rem, 13vw, 3rem);
    }
}

/* ================================================================
   UTILIDADES DE MARCA - Clases reutilizables en cualquier página
   ================================================================ */

/* --- Texto con gradiente tricolor --- */
.text-gradient {
    background: linear-gradient(120deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Badges / Chips --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.badge-brand {
    background: linear-gradient(135deg, rgba(184, 93, 119, 0.12), rgba(91, 159, 177, 0.10));
    color: var(--brand-pink);
    border: 1px solid rgba(184, 93, 119, 0.25);
}

.badge-accent {
    background: rgba(212, 168, 92, 0.12);
    color: var(--brand-yellow);
    border: 1px solid rgba(212, 168, 92, 0.30);
}

.badge-dark {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    letter-spacing: 1px;
}

/* --- Separador decorativo de marca --- */
.divider-brand {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-pink) 20%, var(--brand-yellow) 50%, var(--brand-cyan) 80%, transparent);
    border: none;
    margin: var(--spacing-xl) 0;
}

/* --- Caja de callout / highlight --- */
.highlight-box {
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(184, 93, 119, 0.06), rgba(91, 159, 177, 0.04));
    border-left: 4px solid var(--brand-pink);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* --- Card con icono de feature (estilo Linear) --- */
.card-feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(184, 93, 119, 0.10), rgba(91, 159, 177, 0.10));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(184, 93, 119, 0.20);
    margin-bottom: var(--spacing-sm);
}

.card-feature-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--brand-pink);
}

.card-feature-number {
    font-family: var(--font-brand);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(120deg, var(--brand-pink), var(--brand-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.35;
    user-select: none;
}

/* ================================================================
   ANIMACIONES DE ENTRADA
   ================================================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Entradas escalonadas del hero */
.hero h1 { animation: heroFadeIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero .hero-subtitle { animation: heroFadeIn 0.85s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero .hero-description { animation: heroFadeIn 0.85s 0.24s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero .button { animation: heroFadeIn 0.85s 0.36s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* Entrada escalonada de tarjetas en grid */
.grid .card { animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both; }
.grid .card:nth-child(1) { animation-delay: 0.04s; }
.grid .card:nth-child(2) { animation-delay: 0.10s; }
.grid .card:nth-child(3) { animation-delay: 0.16s; }
.grid .card:nth-child(4) { animation-delay: 0.22s; }
.grid .card:nth-child(5) { animation-delay: 0.28s; }
.grid .card:nth-child(6) { animation-delay: 0.34s; }

/* --- Respeta preferencias de movimiento reducido --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }

    .partners-track {
        animation: none !important;
    }

    .whatsapp-float,
    .contact-social-bubble {
        transition: none !important;
    }
}

@media (max-width: 1024px) {
    .conversion-card-grid,
    .portfolio-grid,
    .method-audience-grid,
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .page-hero-actions,
    .section-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .page-hero-actions .button,
    .section-cta .button {
        width: 100%;
    }

    .conversion-card-grid,
    .portfolio-grid,
    .method-audience-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .conversion-card {
        min-height: 0;
    }

    .portfolio-dashboard-mockup {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .portfolio-mockup-kpis {
        grid-template-columns: 1fr;
    }

    .contact-float {
        right: 0.85rem;
        bottom: 0.85rem;
    }

    .whatsapp-float {
        min-height: 52px;
        padding: 0.75rem 0.9rem;
    }

    .contact-social-bubble {
        width: 44px;
        height: 44px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .whatsapp-float span {
        max-width: 7.6rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .portfolio-copy,
    .conversion-card,
    .method-outcomes,
    .method-audience,
    .method-audience-grid article,
    .process-grid article {
        padding: 1.15rem;
    }
}


/* Premium unified system */
body {
    background: var(--section-wash);
    color: var(--text-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-strong);
}

p,
li,
.section-lead,
.conversion-section-head p,
.page-intro-card p,
.contact-point span,
.footer-section p {
    color: var(--text-body);
}

.container {
    max-width: 1320px;
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
}

.section {
    padding: var(--section-padding-y) var(--section-padding-x);
    background: var(--section-wash);
}

.section:nth-child(odd) {
    background: var(--section-wash-alt);
}

.section h2,
.conversion-section-head h2,
.page-intro-title h2,
.page-intro-title h1,
.home-story-block h2,
.contact-panel h2,
.network-panel h2,
.red-coming-content h2 {
    margin-bottom: 1rem;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.sidebar-nav {
    background: linear-gradient(90deg, rgba(15, 37, 49, 0.92) 0%, rgba(27, 58, 75, 0.92) 45%, rgba(16, 39, 51, 0.92) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 48px rgba(8, 22, 30, 0.18);
    backdrop-filter: blur(20px) saturate(1.25);
    -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

.sidebar-nav::after {
    left: 1.25rem;
    right: 1.25rem;
    opacity: 0.65;
}

.logo-vertical {
    border-radius: 20px;
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
    box-shadow: 0 14px 32px rgba(8, 22, 30, 0.2);
}

.logo-vertical:hover {
    border-color: rgba(212, 168, 92, 0.48);
    box-shadow: 0 22px 42px rgba(8, 22, 30, 0.28);
}

.nav-vertical {
    justify-content: flex-end;
    gap: 0.35rem;
}

.nav-vertical a {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.84rem;
    letter-spacing: 0.11em;
    padding: 0.92rem 1rem;
    border: 1px solid transparent;
    border-radius: 999px;
}

.nav-vertical a:hover,
.nav-vertical a.active {
    color: white;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 24px rgba(8, 22, 30, 0.16);
    transform: translateY(-1px);
}

.brand-chip,
.home-kicker,
.page-hero-kicker,
.red-panel-kicker,
.service-lead-label,
.lab-inline-label {
    border-radius: var(--radius-pill);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page-hero-content,
.header-home .header-content,
.hero-lab .container {
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
}

.page-hero-actions,
.section-cta,
.hero-lab-actions,
.home-contact-actions,
.red-coming-actions {
    gap: 0.95rem;
}

.button {
    min-height: 54px;
    padding: 0.98rem 1.65rem;
    border-radius: 999px;
    background: var(--gradient-button);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 34px rgba(184, 93, 119, 0.18), 0 8px 18px rgba(18, 41, 55, 0.12);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.button::after {
    background: linear-gradient(120deg, rgba(255,255,255,0.24), transparent 32%, transparent 68%, rgba(255,255,255,0.12));
    opacity: 0.95;
}

.button:hover,
.button:focus-visible {
    background: var(--gradient-button-hover);
    transform: translateY(-3px);
    box-shadow: 0 24px 44px rgba(184, 93, 119, 0.24), 0 12px 22px rgba(18, 41, 55, 0.14);
}

.button-secondary {
    color: #102c68;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, rgba(184, 93, 119, 0.35), rgba(212, 168, 92, 0.26), rgba(47, 120, 255, 0.34)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 18px 38px rgba(47, 120, 255, 0.14), 0 0 26px rgba(184, 93, 119, 0.1);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    color: #102c68;
    background:
        linear-gradient(rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98)) padding-box,
        linear-gradient(135deg, rgba(184, 93, 119, 0.48), rgba(212, 168, 92, 0.34), rgba(47, 120, 255, 0.46)) border-box;
}

.section .button-secondary,
.home-contact-form-wrap .button-secondary,
.contact-form-card .button-secondary,
.conversion-card .button-secondary,
.page-intro-card .button-secondary {
    color: #102c68;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, rgba(184, 93, 119, 0.35), rgba(212, 168, 92, 0.26), rgba(47, 120, 255, 0.34)) border-box;
    border-color: transparent;
}

.section .button-secondary:hover,
.home-contact-form-wrap .button-secondary:hover,
.contact-form-card .button-secondary:hover,
.conversion-card .button-secondary:hover,
.page-intro-card .button-secondary:hover {
    color: #102c68;
    background:
        linear-gradient(rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98)) padding-box,
        linear-gradient(135deg, rgba(184, 93, 119, 0.48), rgba(212, 168, 92, 0.34), rgba(47, 120, 255, 0.46)) border-box;
}

.card,
.page-intro-card,
.contact-panel,
.contact-form-card,
.network-panel,
.team-profile-card,
.home-story-block,
.home-lab-preview,
.home-contact-copy,
.home-contact-form-wrap,
.conversion-card,
.service-deck-shell,
.service-lead-card,
.red-panel-shell,
.portfolio-card,
.process-grid article,
.method-audience-grid article,
.partner-logo-card,
.red-coming-preview article {
    background: var(--gradient-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-surface);
    overflow: hidden;
}

.card:hover,
.page-intro-card:hover,
.contact-panel:hover,
.contact-form-card:hover,
.network-panel:hover,
.team-profile-card:hover,
.home-story-block:hover,
.home-lab-preview:hover,
.home-contact-copy:hover,
.home-contact-form-wrap:hover,
.conversion-card:hover,
.service-deck-shell:hover,
.red-panel-shell:hover,
.portfolio-card:hover,
.process-grid article:hover,
.method-audience-grid article:hover,
.partner-logo-card:hover,
.red-coming-preview article:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-float);
    border-color: rgba(91, 159, 177, 0.2);
}

.card::before,
.page-intro-card::before,
.contact-panel::before,
.contact-form-card::before,
.network-panel::before,
.team-profile-card::before,
.home-story-block::before,
.home-lab-preview::before,
.home-contact-copy::before,
.home-contact-form-wrap::before,
.conversion-card::before,
.red-panel-shell::before,
.red-coming-preview article::before,
.process-grid article::before {
    left: 1.35rem;
    right: 1.35rem;
    height: 4px;
    opacity: 1;
}

.conversion-card,
.process-grid article,
.method-audience-grid article {
    min-height: 100%;
}

.conversion-card span,
.portfolio-label,
.home-lab-slide-label,
.process-grid strong,
.red-coming-preview span,
.partner-logo-card span {
    letter-spacing: 0.14em;
}

.contact-point,
.home-contact-copy .contact-point {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 248, 250, 0.92));
    border: 1px solid rgba(27, 58, 75, 0.08);
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(18, 41, 55, 0.06);
}

.contact-point strong,
.home-contact-copy .contact-point strong {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea,
.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea,
.home-contact-form input,
.home-contact-form select,
.home-contact-form textarea {
    min-height: 56px;
    padding: 0.95rem 1rem;
    line-height: 1.45;
    border-radius: 18px;
    border: 1px solid rgba(27, 58, 75, 0.12);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}

input[type="tel"],
.contact-form-card input[type="tel"],
.home-contact-form input[type="tel"] {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

textarea,
.contact-form-card textarea,
.home-contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus,
.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus,
.home-contact-form input:focus,
.home-contact-form select:focus,
.home-contact-form textarea:focus {
    border-color: rgba(91, 159, 177, 0.34);
    box-shadow: 0 0 0 4px rgba(91, 159, 177, 0.10), 0 12px 30px rgba(18, 41, 55, 0.06);
    transform: translateY(-1px);
}

.form-field label,
.contact-form-card label,
.home-contact-form label {
    color: var(--text-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-form-card select,
.home-contact-form select {
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(27, 58, 75, 0.12);
    background-color: rgba(255, 255, 255, 0.9);
}

.footer {
    margin-top: 0;
    padding: var(--spacing-2xl) var(--section-padding-x) 2rem;
    background:
        radial-gradient(circle at 14% 0%, rgba(184, 93, 119, 0.18), transparent 26%),
        radial-gradient(circle at 84% 0%, rgba(91, 159, 177, 0.14), transparent 26%),
        linear-gradient(135deg, #102733 0%, #173241 52%, #122d3a 100%);
}

.footer::before {
    height: 4px;
}

.footer-content,
.footer-bottom {
    max-width: 1320px;
}

.footer-section h2,
.footer-section h4 {
    color: rgba(255, 255, 255, 0.94);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    letter-spacing: 0.14em;
}

.footer-section a,
.footer-section p,
.footer-bottom,
.footer-socials + p {
    color: rgba(255, 255, 255, 0.72);
}

.footer-section a:hover {
    color: white;
}

.footer-socials {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.footer-socials a {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.footer-socials a:hover {
    background: linear-gradient(135deg, rgba(184, 93, 119, 0.92), rgba(91, 159, 177, 0.78));
}

.section-dark,
.portfolio-section,
.about-tech-principles,
.method-audience,
.red-catalog-shell,
.auth-dialog,
.lab-shell {
    box-shadow: 0 30px 90px rgba(7, 15, 22, 0.18);
}

@media (max-width: 1024px) {
    .section {
        padding-top: clamp(4rem, 7vw, 5.4rem);
        padding-bottom: clamp(4rem, 7vw, 5.4rem);
    }

    .nav-vertical {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .page-hero-title,
    .lab-hero .lab-title,
    .hero-lab h1,
    .header-home .brand-title {
        max-width: 100%;
        font-size: clamp(2.45rem, 12vw, 4.4rem);
        line-height: 1;
        letter-spacing: -0.02em;
        overflow-wrap: anywhere;
    }

    .page-hero-subtitle,
    .hero-lab .hero-subtitle,
    .header-home .brand-tagline {
        max-width: 100%;
        font-size: clamp(1rem, 3.5vw, 1.12rem);
        line-height: 1.75;
    }

    .brand-title,
    .header-home .brand-title {
        letter-spacing: -0.02em;
    }

    .section,
    .container,
    .header,
    .header-home,
    .hero,
    .page-hero-content,
    .hero-lab .container,
    .header-home .header-content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .section {
        padding-top: 3.8rem;
        padding-bottom: 3.8rem;
    }

    .nav-vertical a {
        width: 100%;
        justify-content: flex-start;
    }

    .button,
    .page-hero-actions .button,
    .section-cta .button,
    .hero-lab-actions .button,
    .home-contact-actions .button,
    .red-coming-actions .button {
        width: 100%;
    }

    .card,
    .page-intro-card,
    .contact-panel,
    .contact-form-card,
    .network-panel,
    .team-profile-card,
    .home-story-block,
    .home-lab-preview,
    .home-contact-copy,
    .home-contact-form-wrap,
    .conversion-card,
    .service-deck-shell,
    .red-panel-shell,
    .portfolio-card,
    .process-grid article,
    .method-audience-grid article,
    .partner-logo-card,
    .red-coming-preview article {
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    .page-hero-title,
    .lab-hero .lab-title,
    .hero-lab h1,
    .header-home .brand-title {
        font-size: clamp(2.15rem, 11.5vw, 3.4rem);
    }

    .button {
        min-height: 52px;
        padding: 0.92rem 1.2rem;
        font-size: 0.88rem;
    }

    .section {
        padding-top: 3.4rem;
        padding-bottom: 3.4rem;
    }
}

/* Social innovation direction */
body {
    background:
        radial-gradient(circle at 12% 0%, rgba(184, 93, 119, 0.07), transparent 22%),
        radial-gradient(circle at 86% 8%, rgba(91, 159, 177, 0.08), transparent 24%),
        linear-gradient(180deg, #fcfdfd 0%, #f3f8fa 48%, #eef5f8 100%);
}

.section {
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(184, 93, 119, 0.04), transparent 18%),
        radial-gradient(circle at 85% 10%, rgba(91, 159, 177, 0.05), transparent 18%);
    pointer-events: none;
    z-index: 0;
}

.section > * {
    position: relative;
    z-index: 1;
}

.page-hero,
.header-home,
.hero-lab {
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 30%),
        linear-gradient(135deg, #183243 0%, #234a5f 52%, #163140 100%);
    background-size: 28px 28px, auto, auto;
}

.page-hero::before,
.header-home::before,
.hero-lab::before,
.page-hero--red::before {
    background:
        radial-gradient(ellipse 44% 26% at 14% 0%, rgba(184, 93, 119, 0.30) 0%, transparent 74%),
        radial-gradient(ellipse 30% 18% at 48% 0%, rgba(212, 168, 92, 0.22) 0%, transparent 76%),
        radial-gradient(ellipse 38% 20% at 84% 0%, rgba(91, 159, 177, 0.28) 0%, transparent 74%),
        linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 34%);
}

.page-hero-title,
.hero-lab h1,
.section h2,
.conversion-section-head h2,
.page-intro-title h2,
.page-intro-title h1,
.contact-panel h2,
.network-panel h2,
.red-coming-content h2,
.service-deck-header h2,
.home-contact-strap {
    text-transform: none;
    letter-spacing: -0.035em;
}

.page-hero-title,
.hero-lab h1,
.header-home .brand-title,
.lab-display,
.red-coming-content h2,
.red-title {
    max-width: 13ch;
    font-size: clamp(3.4rem, 6.6vw, 6.3rem);
    line-height: 0.94;
}

.page-hero-title::after,
.hero-lab h1::after,
.header-home .brand-title::after,
.lab-display::after,
.red-coming-content h2::after,
.red-title::after {
    width: 100%;
    height: 3px;
    bottom: -14px;
}

.page-hero-subtitle,
.hero-lab .hero-subtitle,
.header-home .brand-tagline {
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(1.02rem, 1.35vw, 1.16rem);
    line-height: 1.9;
    font-weight: 500;
}

.header-home .brand-title {
    max-width: none;
    font-family: var(--font-brand);
    font-size: clamp(4.2rem, 7vw, 7.4rem);
    line-height: 0.86;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.header-home .brand-intro {
    max-width: 66ch;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.04rem;
}

.brand-signals {
    gap: 0.7rem 1rem;
}

.brand-signals span,
.header-home .brand-signals span {
    font-size: 0.92rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
}

.sidebar-nav {
    background: linear-gradient(90deg, rgba(17, 39, 51, 0.88) 0%, rgba(25, 57, 73, 0.88) 50%, rgba(15, 36, 47, 0.9) 100%);
    box-shadow: 0 20px 54px rgba(8, 22, 30, 0.14);
}

.nav-vertical a {
    font-size: 0.8rem;
    letter-spacing: 0.13em;
}

.button {
    background: linear-gradient(135deg, #b85d77 0%, #c88a66 42%, #5b9fb1 100%);
    box-shadow: 0 18px 36px rgba(184, 93, 119, 0.16), 0 10px 22px rgba(24, 50, 66, 0.12);
}

.button:hover,
.button:focus-visible {
    background: linear-gradient(135deg, #c96b87 0%, #d1996d 42%, #69adc0 100%);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.26);
}

.card,
.page-intro-card,
.contact-panel,
.contact-form-card,
.network-panel,
.team-profile-card,
.home-story-block,
.home-lab-preview,
.home-contact-copy,
.home-contact-form-wrap,
.conversion-card,
.service-deck-shell,
.service-lead-card,
.red-panel-shell,
.portfolio-card,
.process-grid article,
.method-audience-grid article,
.partner-logo-card,
.red-coming-preview article {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.92)),
        radial-gradient(circle at top right, rgba(91, 159, 177, 0.06), transparent 28%);
    border: 1px solid rgba(27, 58, 75, 0.09);
    box-shadow: 0 22px 54px rgba(20, 47, 63, 0.09);
}

.card::after,
.page-intro-card::after,
.contact-panel::after,
.contact-form-card::after,
.network-panel::after,
.team-profile-card::after,
.home-story-block::after,
.home-lab-preview::after,
.home-contact-copy::after,
.home-contact-form-wrap::after,
.conversion-card::after,
.service-deck-shell::after,
.red-panel-shell::after,
.portfolio-card::after,
.process-grid article::after,
.method-audience-grid article::after,
.partner-logo-card::after,
.red-coming-preview article::after {
    content: '';
    position: absolute;
    inset: auto -8% -38% auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 159, 177, 0.10), transparent 68%);
    pointer-events: none;
}

.conversion-card h3,
.process-grid h3,
.portfolio-copy strong,
.home-lab-slide-copy strong,
.red-coming-preview strong,
.team-detail-value,
.service-flash-card h3 {
    color: #173241;
    letter-spacing: -0.02em;
}

.contact-panel,
.contact-form-card,
.home-contact-copy,
.home-contact-form-wrap {
    background:
        radial-gradient(circle at top left, rgba(184, 93, 119, 0.07), transparent 24%),
        radial-gradient(circle at 88% 12%, rgba(91, 159, 177, 0.07), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 252, 0.94));
}

.contact-point,
.home-contact-copy .contact-point {
    border-left: 0;
    padding: 1.1rem 1.15rem;
}

.contact-point::before,
.home-contact-copy .contact-point::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand-pink), var(--brand-cyan));
}

.section-dark,
.portfolio-section,
.about-tech-principles,
.method-audience,
.red-catalog-shell {
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.045) 1px, transparent 1px),
        radial-gradient(circle at 12% 0%, rgba(184, 93, 119, 0.12), transparent 24%),
        radial-gradient(circle at 84% 10%, rgba(91, 159, 177, 0.12), transparent 26%),
        linear-gradient(135deg, #132c3a 0%, #173241 52%, #102733 100%) !important;
    background-size: 28px 28px, auto, auto, auto !important;
}

.red-page-shell,
.lab-main {
    background: var(--section-wash);
}

.red-catalog-shell,
.lab-method-frame,
.lab-hero-panel,
.lab-principle-card,
.lab-panel-matrix div {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.92)),
        radial-gradient(circle at top right, rgba(91, 159, 177, 0.06), transparent 28%);
    border: 1px solid rgba(27, 58, 75, 0.09);
    box-shadow: 0 22px 54px rgba(20, 47, 63, 0.09);
}

.red-catalog-shell::before,
.lab-method-frame::before {
    inset: auto 1.35rem 0 1.35rem;
    top: 0;
    height: 4px;
    padding: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
    -webkit-mask: none;
    mask: none;
}

.red-coming-content h2,
.lab-display,
.red-coming-preview strong,
.lab-principle-card h3,
.lab-capability-card h3,
.lab-section-heading h2 {
    color: var(--text-strong);
    text-transform: none;
    letter-spacing: -0.03em;
}

.red-coming-content p,
.red-coming-preview p,
.lab-lead,
.lab-panel-note,
.lab-principle-card p,
.lab-section-heading p,
.lab-panel-matrix span,
.lab-method-copy {
    color: var(--text-body);
}

.red-coming-preview article,
.lab-principle-card,
.lab-capability-card,
.lab-panel-matrix div {
    background: var(--gradient-card);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-surface);
}

.red-coming-preview article:hover,
.lab-principle-card:hover,
.lab-capability-card:hover,
.lab-panel-matrix div:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-float);
    border-color: rgba(91, 159, 177, 0.2);
}

.footer {
    background:
        radial-gradient(circle at 16% 0%, rgba(184, 93, 119, 0.20), transparent 24%),
        radial-gradient(circle at 82% 0%, rgba(91, 159, 177, 0.16), transparent 26%),
        linear-gradient(135deg, #102733 0%, #183243 54%, #112a37 100%);
}

.footer-section a,
.footer-section p,
.footer-bottom {
    color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 768px) {
    .page-hero-title,
    .hero-lab h1,
    .header-home .brand-title,
    .lab-display,
    .red-coming-content h2,
    .red-title {
        max-width: 100%;
        font-size: clamp(2.5rem, 11vw, 4.2rem);
        line-height: 1;
    }

    .header-home .brand-title {
        font-size: clamp(3rem, 12vw, 4.8rem);
        line-height: 0.92;
        letter-spacing: -0.02em;
    }

    .page-hero-title::after,
    .hero-lab h1::after,
    .header-home .brand-title::after {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-hero-title,
    .hero-lab h1,
    .header-home .brand-title,
    .lab-display,
    .red-coming-content h2,
    .red-title {
        font-size: clamp(2.15rem, 10.5vw, 3.2rem);
    }

    .header-home .brand-title {
        font-size: clamp(2.55rem, 12vw, 3.6rem);
        line-height: 0.94;
    }
}

/* Home premium coherence layer */
.header-home {
    min-height: clamp(520px, 72vh, 760px);
    padding: clamp(4.8rem, 7vw, 7rem) var(--section-padding-x);
    background:
        radial-gradient(circle at 12% 0%, rgba(184, 93, 119, 0.22), transparent 30%),
        radial-gradient(circle at 48% 0%, rgba(212, 168, 92, 0.16), transparent 34%),
        radial-gradient(circle at 92% 12%, rgba(91, 159, 177, 0.2), transparent 32%),
        linear-gradient(135deg, #102733 0%, #183243 50%, #102b38 100%);
    isolation: isolate;
}

.header-home::before {
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.055), transparent 34%, rgba(255, 255, 255, 0.025)),
        radial-gradient(circle at 18% 18%, rgba(184, 93, 119, 0.18), transparent 30%),
        radial-gradient(circle at 78% 18%, rgba(212, 168, 92, 0.14), transparent 34%);
    opacity: 0.9;
}

.header-home .header-content {
    padding-top: 0;
    padding-bottom: 0;
}

.header-home-grid {
    display: grid;
    align-items: center;
    min-height: inherit;
}

.brand-lockup-lab {
    max-width: 920px;
}

.header-home .brand-title {
    font-size: clamp(4.4rem, 8vw, 8.8rem);
    text-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

.header-home .brand-tagline {
    max-width: 720px;
    margin-top: 2.85rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.12rem, 1.55vw, 1.36rem);
    line-height: 1.75;
}

.header-home .brand-intro {
    max-width: 760px;
    margin-top: 1.1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(1rem, 1.18vw, 1.12rem);
    line-height: 1.85;
}

.header-home .brand-signals {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.72rem;
}

.header-home .brand-signals span {
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.085);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 14px 34px rgba(8, 22, 30, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.header-home .brand-signals span:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 168, 92, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.home-intro-band {
    min-height: auto;
    padding: clamp(5rem, 8vw, 7rem) var(--section-padding-x);
    background:
        radial-gradient(circle at 12% 4%, rgba(184, 93, 119, 0.09), transparent 26%),
        radial-gradient(circle at 88% 0%, rgba(91, 159, 177, 0.1), transparent 28%),
        linear-gradient(180deg, #f8fbfc 0%, #eef5f8 100%);
}

.home-intro-band::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
        radial-gradient(circle at 18% 16%, rgba(184, 93, 119, 0.08), transparent 24%),
        radial-gradient(circle at 84% 10%, rgba(91, 159, 177, 0.08), transparent 24%);
}

.home-intro-band .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.home-intro-band h1 {
    max-width: 16ch;
    color: #142f3d;
    font-size: clamp(3.25rem, 6.4vw, 6.2rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.home-intro-band h1::after {
    content: '';
    display: block;
    width: min(420px, 100%);
    height: 4px;
    margin-top: 1.35rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
    box-shadow: 0 0 24px rgba(184, 93, 119, 0.14);
}

.home-intro-band .hero-subtitle {
    max-width: 68ch;
    margin-top: 1.35rem;
    color: rgba(27, 58, 75, 0.78);
    font-size: clamp(1.08rem, 1.45vw, 1.26rem);
    line-height: 1.85;
}

.home-intro-band .hero-lab-strip {
    gap: clamp(1rem, 2vw, 1.4rem);
}

.home-intro-band .hero-lab-strip article,
.conversion-card,
.home-story-block,
.home-lab-preview,
.home-contact-copy,
.home-contact-form-wrap,
.partner-logo-card {
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 0%, rgba(184, 93, 119, 0.06), transparent 32%),
        radial-gradient(circle at 88% 10%, rgba(91, 159, 177, 0.06), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 252, 0.91));
    border: 1px solid rgba(27, 58, 75, 0.09);
    box-shadow:
        0 24px 58px rgba(20, 47, 63, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.home-intro-band .hero-lab-strip article:hover,
.conversion-card:hover,
.home-story-block:hover,
.home-lab-preview:hover,
.home-contact-copy:hover,
.home-contact-form-wrap:hover,
.partner-logo-card:hover {
    transform: translateY(-5px);
    border-color: rgba(91, 159, 177, 0.22);
    box-shadow:
        0 34px 76px rgba(20, 47, 63, 0.14),
        0 0 34px rgba(91, 159, 177, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.conversion-services,
.trust-section,
.home-storytelling,
.home-contact-mini,
.home-partners {
    background:
        radial-gradient(circle at 10% 0%, rgba(184, 93, 119, 0.05), transparent 24%),
        radial-gradient(circle at 90% 8%, rgba(91, 159, 177, 0.06), transparent 26%),
        linear-gradient(180deg, #f8fbfc 0%, #f2f7f9 100%);
}

.problem-section {
    background:
        radial-gradient(circle at 12% 0%, rgba(212, 168, 92, 0.07), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f5f9fb 100%);
}

.conversion-section-head {
    max-width: 900px;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.conversion-section-head h2 {
    max-width: 820px;
    margin-bottom: 0.9rem;
    color: #142f3d;
    font-size: clamp(2.1rem, 3.5vw, 3.45rem);
    line-height: 1.05;
}

.conversion-section-head p {
    max-width: 760px;
    color: rgba(44, 73, 88, 0.76);
    font-size: 1.05rem;
    line-height: 1.8;
}

.conversion-card {
    min-height: 250px;
    padding: clamp(1.35rem, 2vw, 1.75rem);
    overflow: hidden;
}

.conversion-card::before,
.home-story-block::before,
.home-lab-preview::before,
.home-contact-copy::before,
.home-contact-form-wrap::before {
    height: 3px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
    box-shadow: 0 0 18px rgba(184, 93, 119, 0.12);
}

.conversion-card span {
    width: fit-content;
    min-width: 0;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(23, 50, 65, 0.06);
    color: rgba(23, 50, 65, 0.7);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
}

.conversion-card h3 {
    margin-top: 1.1rem;
    margin-bottom: 0.7rem;
    font-size: clamp(1.25rem, 1.7vw, 1.55rem);
}

.conversion-card a {
    margin-top: auto;
    color: #173241;
}

.portfolio-section {
    padding-top: clamp(5rem, 8vw, 7rem);
    padding-bottom: clamp(5rem, 8vw, 7rem);
}

.portfolio-grid {
    gap: clamp(1.2rem, 2.2vw, 1.8rem);
}

.portfolio-card {
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 0%, rgba(184, 93, 119, 0.1), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.portfolio-media {
    padding: 1rem;
}

.portfolio-media--site img,
.home-lab-slide-media img {
    object-position: top center;
}

.home-storytelling-layout,
.home-contact-card {
    gap: clamp(1.2rem, 2.4vw, 2rem);
}

.home-story-block,
.home-lab-preview,
.home-contact-copy,
.home-contact-form-wrap {
    padding: clamp(1.6rem, 2.6vw, 2.25rem);
}

.home-lab-slide-media {
    border-radius: 18px;
    background:
        radial-gradient(circle at 10% 0%, rgba(184, 93, 119, 0.16), transparent 34%),
        linear-gradient(135deg, #102733, #21485d);
}

.home-contact-card {
    align-items: stretch;
}

.home-contact-form input,
.home-contact-form textarea {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(27, 58, 75, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.home-contact-form input:focus,
.home-contact-form textarea:focus {
    border-color: rgba(91, 159, 177, 0.52);
    box-shadow:
        0 0 0 4px rgba(91, 159, 177, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px) {
    .header-home {
        min-height: auto;
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    .header-home .brand-title {
        font-size: clamp(3.2rem, 13vw, 5.8rem);
    }

    .home-intro-band {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .home-intro-band h1 {
        max-width: 100%;
        font-size: clamp(2.6rem, 10vw, 4.5rem);
    }

    .conversion-section-head h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

@media (max-width: 600px) {
    .header-home .brand-signals span {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .home-intro-band .hero-lab-strip article,
    .conversion-card,
    .home-story-block,
    .home-lab-preview,
    .home-contact-copy,
    .home-contact-form-wrap {
        border-radius: 18px;
    }
}

/* Global premium social-tech visual system */
:root {
    --ui-blue-900: #0f2b3a;
    --ui-blue-800: #17384a;
    --ui-blue-700: #255c78;
    --ui-blue-100: #eaf5fb;
    --ui-blue-050: #f5fbff;
    --ui-card: rgba(255, 255, 255, 0.82);
    --ui-card-strong: rgba(255, 255, 255, 0.94);
    --ui-border: rgba(37, 92, 120, 0.12);
    --ui-glow-blue: rgba(91, 159, 177, 0.18);
    --ui-glow-pink: rgba(184, 93, 119, 0.13);
    --ui-glow-gold: rgba(212, 168, 92, 0.14);
}

body {
    color: var(--ui-blue-900);
    background:
        radial-gradient(circle at 8% 0%, rgba(184, 93, 119, 0.06), transparent 24%),
        radial-gradient(circle at 88% 4%, rgba(91, 159, 177, 0.09), transparent 28%),
        linear-gradient(180deg, #fbfdff 0%, #f2f8fc 46%, #eaf4f8 100%);
}

.sidebar-nav {
    min-height: 92px;
    padding: 0.8rem clamp(1.2rem, 3vw, 2.2rem);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(37, 92, 120, 0.12);
    box-shadow: 0 18px 60px rgba(15, 43, 58, 0.11);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.sidebar-nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 54px rgba(15, 43, 58, 0.13);
}

.nav-vertical {
    gap: clamp(0.5rem, 1.2vw, 1rem);
}

.nav-vertical a {
    color: rgba(15, 43, 58, 0.78);
    font-size: clamp(0.78rem, 0.9vw, 0.92rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.72rem 0.9rem;
}

.nav-vertical a:hover,
.nav-vertical a.active {
    color: var(--ui-blue-900);
    background: rgba(37, 92, 120, 0.08);
    box-shadow: inset 0 0 0 1px rgba(37, 92, 120, 0.1), 0 12px 28px rgba(15, 43, 58, 0.08);
}

.nav-vertical a::before {
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), var(--brand-cyan));
}

.header-home {
    min-height: clamp(680px, 86vh, 900px);
    padding-top: clamp(6rem, 9vw, 8rem);
    padding-bottom: clamp(4.5rem, 7vw, 6.5rem);
    background:
        radial-gradient(circle at 74% 42%, rgba(69, 142, 255, 0.18), transparent 28%),
        radial-gradient(circle at 86% 14%, rgba(91, 159, 177, 0.28), transparent 28%),
        radial-gradient(circle at 12% 20%, rgba(184, 93, 119, 0.08), transparent 24%),
        radial-gradient(circle at 44% 84%, rgba(212, 168, 92, 0.12), transparent 30%),
        linear-gradient(135deg, #fbfdff 0%, #eff8ff 48%, #dcecff 100%);
    color: var(--ui-blue-900);
}

.header-home::before {
    background:
        linear-gradient(125deg, transparent 0 55%, rgba(65, 132, 220, 0.2) 56%, transparent 78%),
        radial-gradient(circle at 72% 48%, rgba(255, 255, 255, 0.8), transparent 18%),
        repeating-radial-gradient(circle at 72% 48%, rgba(74, 124, 158, 0.18) 0 1px, transparent 1px 44px);
    opacity: 0.78;
    filter: none;
}

.header-home::after {
    content: '';
    position: absolute;
    inset: 9rem clamp(1rem, 4vw, 4rem) 4rem auto;
    width: min(44vw, 600px);
    height: min(44vw, 600px);
    border-radius: 42% 58% 52% 48% / 46% 36% 64% 54%;
    background:
        radial-gradient(circle at 34% 34%, rgba(255, 255, 255, 0.86), transparent 16%),
        radial-gradient(circle at 48% 46%, rgba(184, 93, 119, 0.28), transparent 10%),
        radial-gradient(circle at 63% 62%, rgba(212, 168, 92, 0.22), transparent 14%),
        linear-gradient(135deg, rgba(80, 142, 255, 0.38), rgba(91, 159, 177, 0.28) 48%, rgba(255, 255, 255, 0.06));
    box-shadow: 0 42px 110px rgba(74, 124, 158, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.54);
    filter: blur(0.2px);
    opacity: 0.92;
    pointer-events: none;
    animation: hero-orbit-float 12s ease-in-out infinite;
}

.header-home .header-content {
    max-width: 1360px;
}

.header-home .brand-title {
    color: #071f52;
    font-size: clamp(4rem, 8.5vw, 8.5rem);
    line-height: 0.88;
    text-shadow: 0 26px 72px rgba(74, 124, 158, 0.14);
}

.header-home .brand-title::after {
    height: 4px;
    background: linear-gradient(90deg, #ff4fa2, #d4a85c 48%, #2f78ff 100%);
    box-shadow: 0 0 22px rgba(47, 120, 255, 0.28), 0 0 28px rgba(255, 79, 162, 0.16);
}

.header-home .brand-tagline {
    color: #102c68;
    font-size: clamp(1.18rem, 1.6vw, 1.45rem);
    font-weight: 750;
    line-height: 1.62;
}

.header-home .brand-intro {
    color: rgba(16, 44, 104, 0.72);
    font-size: clamp(1rem, 1.18vw, 1.14rem);
}

.header-home .brand-signals span {
    color: #102c68;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(74, 124, 158, 0.12);
    box-shadow: 0 18px 42px rgba(74, 124, 158, 0.12);
}

.header-home .brand-signals span:hover {
    border-color: rgba(47, 120, 255, 0.24);
    box-shadow: 0 24px 54px rgba(74, 124, 158, 0.16), 0 0 24px rgba(184, 93, 119, 0.08);
}

.home-intro-band .hero-home-video-frame,
.hero-home-video-frame,
.page-hero-video {
    display: none;
}

.hero-home-media {
    background:
        radial-gradient(circle at 20% 18%, rgba(184, 93, 119, 0.08), transparent 24%),
        radial-gradient(circle at 78% 18%, rgba(91, 159, 177, 0.12), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(234, 245, 251, 0.22));
}

.home-intro-band,
.section,
.conversion-services,
.trust-section,
.home-storytelling,
.home-contact-mini,
.home-partners,
.red-page-shell,
.lab-main {
    background:
        radial-gradient(circle at 10% 0%, rgba(184, 93, 119, 0.045), transparent 22%),
        radial-gradient(circle at 90% 8%, rgba(91, 159, 177, 0.065), transparent 24%),
        linear-gradient(180deg, #fbfdff 0%, #f3f9fc 100%);
}

.section:nth-child(odd),
.problem-section {
    background:
        radial-gradient(circle at 12% 4%, rgba(212, 168, 92, 0.06), transparent 22%),
        radial-gradient(circle at 88% 8%, rgba(91, 159, 177, 0.055), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f4f9fc 100%);
}

.page-hero,
.hero-lab,
.section-dark,
.portfolio-section,
.about-tech-principles,
.method-audience,
.seo-related,
.footer {
    color: white;
    background:
        radial-gradient(circle at 12% 0%, rgba(184, 93, 119, 0.16), transparent 26%),
        radial-gradient(circle at 84% 4%, rgba(91, 159, 177, 0.18), transparent 28%),
        linear-gradient(135deg, #102733 0%, #183a4b 52%, #102b38 100%) !important;
}

.page-hero h1,
.page-hero h2,
.page-hero h3,
.hero-lab h1,
.hero-lab h2,
.hero-lab h3,
.section-dark h1,
.section-dark h2,
.section-dark h3,
.portfolio-section h1,
.portfolio-section h2,
.portfolio-section h3,
.about-tech-principles h1,
.about-tech-principles h2,
.about-tech-principles h3,
.method-audience h1,
.method-audience h2,
.method-audience h3,
.seo-related h1,
.seo-related h2,
.seo-related h3,
.footer h1,
.footer h2,
.footer h3 {
    color: white;
}

.page-hero p,
.hero-lab p,
.section-dark p,
.portfolio-section p,
.about-tech-principles p,
.method-audience p,
.seo-related p,
.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.76);
}

.section:not(.section-dark):not(.portfolio-section):not(.about-tech-principles):not(.method-audience):not(.seo-related) h1,
.section:not(.section-dark):not(.portfolio-section):not(.about-tech-principles):not(.method-audience):not(.seo-related) h2,
.section:not(.section-dark):not(.portfolio-section):not(.about-tech-principles):not(.method-audience):not(.seo-related) h3,
.home-intro-band h1,
.home-intro-band h2,
.home-intro-band h3,
.conversion-section-head h2,
.home-contact-strap {
    color: var(--ui-blue-900);
}

.section:not(.section-dark):not(.portfolio-section):not(.about-tech-principles):not(.method-audience):not(.seo-related) p,
.home-intro-band p,
.conversion-section-head p {
    color: rgba(15, 43, 58, 0.72);
}

.method-audience .conversion-section-head h2 {
    color: white !important;
}

.method-audience .conversion-section-head p {
    color: rgba(255, 255, 255, 0.76) !important;
}

.about-tech-principles .pillar-card h3 {
    color: white !important;
}

.about-tech-principles .pillar-card p {
    color: rgba(255, 255, 255, 0.78) !important;
}

.team-side-note p {
    color: rgba(255, 255, 255, 0.78) !important;
}

.red-coming-content h2 {
    color: white !important;
    font-size: clamp(1.9rem, 3.1vw, 3rem);
    overflow-wrap: anywhere;
}

.red-coming-content p {
    color: rgba(255, 255, 255, 0.78) !important;
}

.card,
.page-intro-card,
.contact-panel,
.contact-form-card,
.network-panel,
.team-profile-card,
.home-story-block,
.home-lab-preview,
.home-contact-copy,
.home-contact-form-wrap,
.conversion-card,
.service-deck-shell,
.service-lead-card,
.red-panel-shell,
.process-grid article,
.method-audience-grid article,
.partner-logo-card,
.red-coming-preview article,
.portfolio-card {
    border-radius: 24px;
    background:
        radial-gradient(circle at 10% 0%, rgba(184, 93, 119, 0.05), transparent 30%),
        radial-gradient(circle at 92% 8%, rgba(91, 159, 177, 0.06), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 253, 0.88));
    border: 1px solid var(--ui-border);
    box-shadow: 0 24px 60px rgba(15, 43, 58, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card:hover,
.page-intro-card:hover,
.contact-panel:hover,
.contact-form-card:hover,
.network-panel:hover,
.team-profile-card:hover,
.home-story-block:hover,
.home-lab-preview:hover,
.home-contact-copy:hover,
.home-contact-form-wrap:hover,
.conversion-card:hover,
.service-deck-shell:hover,
.service-lead-card:hover,
.red-panel-shell:hover,
.process-grid article:hover,
.method-audience-grid article:hover,
.partner-logo-card:hover,
.red-coming-preview article:hover,
.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: rgba(47, 120, 255, 0.18);
    box-shadow: 0 34px 78px rgba(15, 43, 58, 0.14), 0 0 34px rgba(91, 159, 177, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.button,
.button-secondary {
    border-radius: 18px;
    min-height: 54px;
    padding: 0 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Trebuchet MS', 'Segoe UI', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    color: #102c68;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, rgba(184, 93, 119, 0.35), rgba(212, 168, 92, 0.26), rgba(47, 120, 255, 0.34)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 18px 38px rgba(47, 120, 255, 0.14), 0 0 26px rgba(184, 93, 119, 0.1);
}

.button:hover,
.button:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible {
    color: #102c68;
    background:
        linear-gradient(rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98)) padding-box,
        linear-gradient(135deg, rgba(184, 93, 119, 0.48), rgba(212, 168, 92, 0.34), rgba(47, 120, 255, 0.46)) border-box;
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(47, 120, 255, 0.16), 0 0 30px rgba(184, 93, 119, 0.12);
}

.page-hero .button,
.page-hero .button-secondary,
.hero-lab .button,
.hero-lab .button-secondary,
.section-dark .button,
.section-dark .button-secondary,
.portfolio-section .button,
.portfolio-section .button-secondary,
.footer .button,
.footer .button-secondary {
    color: #102c68;
}

@keyframes hero-orbit-float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(-10px, 14px, 0) rotate(2deg); }
}

@media (max-width: 980px) {
    .header-home::after {
        inset: auto 1rem 2rem auto;
        width: min(72vw, 420px);
        height: min(72vw, 420px);
        opacity: 0.38;
    }

    .header-home .brand-title {
        font-size: clamp(3.3rem, 13vw, 6rem);
    }
}

@media (max-width: 620px) {
    .sidebar-nav {
        min-height: 76px;
    }

    .nav-vertical a {
        font-size: 0.72rem;
        padding: 0.62rem 0.7rem;
    }

    .header-home {
        min-height: auto;
        padding-top: 5rem;
    }

    .header-home::after {
        opacity: 0.22;
    }
}

/* Final header/nav direction: dark-blue hero + centered icon navigation */
.sidebar-nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2rem);
    min-height: 108px;
    padding: 0.95rem clamp(1rem, 3vw, 2.4rem);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(37, 92, 120, 0.12);
    box-shadow: 0 22px 70px rgba(15, 43, 58, 0.12);
}

.logo-vertical {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    padding: 6px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)) padding-box,
        linear-gradient(135deg, var(--brand-pink), var(--brand-yellow), #8b5cf6, var(--brand-cyan)) border-box;
    border: 2px solid transparent;
    box-shadow: 0 18px 42px rgba(15, 43, 58, 0.13), 0 0 28px rgba(184, 93, 119, 0.08);
    animation: logo-frame-shift 8s ease-in-out infinite;
}

.logo-vertical img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
    display: block;
}

.nav-vertical {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(0.7rem, 1.5vw, 1.4rem);
    position: relative;
}

.nav-vertical a.nav-cta {
    min-width: 190px;
    min-height: 54px;
    margin-left: clamp(0.05rem, 0.45vw, 0.35rem);
    padding: 0 1.25rem;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #102c68;
    font-weight: 850;
    font-size: 1rem;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, rgba(184, 93, 119, 0.35), rgba(212, 168, 92, 0.26), rgba(47, 120, 255, 0.34)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 18px 38px rgba(47, 120, 255, 0.14), 0 0 26px rgba(184, 93, 119, 0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    gap: 0;
}

.nav-vertical a.nav-cta:hover {
    box-shadow: 0 22px 44px rgba(47, 120, 255, 0.22), 0 0 32px rgba(184, 93, 119, 0.18);
    transform: translateY(-1px);
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, rgba(184, 93, 119, 0.35), rgba(212, 168, 92, 0.26), rgba(47, 120, 255, 0.34)) border-box;
    color: #102c68;
}

.nav-vertical a.nav-cta::before,
.nav-vertical a.nav-cta::after {
    display: none !important;
}

.nav-vertical a:not(.nav-cta) {
    min-width: clamp(74px, 7vw, 108px);
    min-height: 70px;
    padding: 0.62rem 0.7rem 0.55rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    color: #102c68;
    font-size: clamp(0.78rem, 0.9vw, 0.94rem);
    letter-spacing: 0;
    text-transform: none;
    border-radius: 18px;
    background: transparent;
}

.nav-vertical a:not(.nav-cta)::before {
    content: '';
    position: static;
    width: 24px;
    height: 24px;
    display: block;
    background-color: #4f7fc1;
    background-image: none;
    mask: var(--nav-icon) center / contain no-repeat;
    -webkit-mask: var(--nav-icon) center / contain no-repeat;
    transition: transform 220ms ease, background-color 220ms ease;
}

.nav-vertical a:not(.nav-cta)::after {
    left: 50%;
    right: auto;
    bottom: 0.35rem;
    width: 34px;
    height: 3px;
    transform: translateX(-50%) scaleX(0);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow), #2f78ff);
    opacity: 1;
    transition: transform 220ms ease;
}

.nav-vertical a:not(.nav-cta):hover,
.nav-vertical a:not(.nav-cta).active {
    color: #071f52;
    background: rgba(238, 246, 255, 0.88);
    box-shadow: 0 16px 34px rgba(47, 120, 255, 0.1);
    transform: translateY(-2px);
}

.nav-vertical a:not(.nav-cta):hover::before,
.nav-vertical a:not(.nav-cta).active::before {
    background-color: #2f78ff;
    transform: translateY(-1px);
}

.nav-vertical a:not(.nav-cta):hover::after,
.nav-vertical a:not(.nav-cta).active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-vertical a:nth-child(1) { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E"); }
.nav-vertical a:nth-child(2) { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M3 12h18'/%3E%3C/svg%3E"); }
.nav-vertical a:nth-child(3) { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6'/%3E%3Cpath d='M10 3v5l-5 8a4 4 0 0 0 3.4 6h7.2A4 4 0 0 0 19 16l-5-8V3'/%3E%3Cpath d='M8 14h8'/%3E%3C/svg%3E"); }
.nav-vertical a:nth-child(4) { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-8 0v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.nav-vertical a:nth-child(5) { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M7 4h10v4a5 5 0 0 1-10 0V4Z'/%3E%3Cpath d='M17 6h3a3 3 0 0 1-3 3'/%3E%3Cpath d='M7 6H4a3 3 0 0 0 3 3'/%3E%3C/svg%3E"); }
.nav-vertical a:nth-child(6) { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='18' cy='6' r='3'/%3E%3Ccircle cx='12' cy='18' r='3'/%3E%3Cpath d='m8.5 8 2.5 7'/%3E%3Cpath d='m15.5 8-2.5 7'/%3E%3C/svg%3E"); }
.nav-vertical a:nth-child(7) { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }

.header-home {
    background:
        radial-gradient(circle at 72% 42%, rgba(91, 159, 177, 0.28), transparent 28%),
        radial-gradient(circle at 88% 14%, rgba(184, 93, 119, 0.16), transparent 24%),
        radial-gradient(circle at 44% 0%, rgba(212, 168, 92, 0.14), transparent 26%),
        linear-gradient(135deg, #102733 0%, #183a4b 50%, #102b38 100%);
    color: white;
}

.header-home .brand-title,
.header-home .brand-tagline,
.header-home .brand-intro {
    color: white;
}

.header-home .brand-tagline {
    color: rgba(255, 255, 255, 0.9);
}

.header-home .brand-intro {
    color: rgba(255, 255, 255, 0.74);
}

.header-home::before {
    background:
        linear-gradient(115deg, transparent 0 58%, rgba(91, 159, 177, 0.08) 59%, transparent 78%),
        repeating-radial-gradient(circle at 74% 46%, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 58px),
        repeating-radial-gradient(circle at 74% 46%, rgba(184, 93, 119, 0.065) 0 1px, transparent 1px 116px),
        radial-gradient(circle at 74% 46%, rgba(255, 255, 255, 0.05), transparent 20%);
}

.header-home::after {
    background:
        radial-gradient(circle at 42% 42%, rgba(139, 92, 246, 0.18), transparent 16%),
        radial-gradient(circle at 58% 58%, rgba(212, 168, 92, 0.12), transparent 18%),
        radial-gradient(circle at 33% 35%, rgba(184, 93, 119, 0.16), transparent 18%),
        linear-gradient(135deg, rgba(91, 159, 177, 0.22), rgba(47, 120, 255, 0.1) 52%, rgba(255, 255, 255, 0.025));
    box-shadow: 0 42px 110px rgba(8, 22, 30, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    opacity: 0.72;
}

.header-home .brand-signals {
    gap: clamp(0.8rem, 1.4vw, 1.05rem);
}

.header-home .brand-signals span {
    min-width: clamp(250px, 17vw, 318px);
    min-height: 98px;
    padding: 1.05rem 1.2rem;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    column-gap: 0.95rem;
    color: #102c68;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 20px 46px rgba(8, 22, 30, 0.14);
    text-align: left;
    line-height: 1.35;
    white-space: normal;
}

.header-home .brand-signals span::before {
    content: '';
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)) padding-box,
        linear-gradient(135deg, var(--signal-a, #ff4fa2), var(--signal-b, #2f78ff)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(15, 43, 58, 0.1);
    mask: none;
    -webkit-mask: none;
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    position: relative;
}

.header-home .brand-signals span::after {
    content: '';
    width: 24px;
    height: 24px;
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    background: linear-gradient(135deg, var(--signal-a, #ff4fa2), var(--signal-b, #2f78ff));
    mask: var(--signal-icon) center / contain no-repeat;
    -webkit-mask: var(--signal-icon) center / contain no-repeat;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.header-home .brand-signals span:nth-child(1) {
    --signal-a: #ff4fa2;
    --signal-b: #b85d77;
    --signal-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 16.5 9 15l7.5-7.5 2 2L11 17l-4.5 1.5 1.5-4.5Z'/%3E%3Cpath d='m14.5 7.5 2 2'/%3E%3C/svg%3E");
}

.header-home .brand-signals span:nth-child(2) {
    --signal-a: #d4a85c;
    --signal-b: #ff9f1c;
    --signal-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 18h16'/%3E%3Ccircle cx='8' cy='6' r='2'/%3E%3Ccircle cx='16' cy='12' r='2'/%3E%3Ccircle cx='10' cy='18' r='2'/%3E%3C/svg%3E");
}

.header-home .brand-signals span:nth-child(3) {
    --signal-a: #2f78ff;
    --signal-b: #5b9fb1;
    --signal-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17h4l4-7 4 4 4-8'/%3E%3Cpath d='M20 6v6h-6'/%3E%3C/svg%3E");
}

.header-home .brand-signals span:nth-child(4) {
    --signal-a: #9b5cff;
    --signal-b: #ff4fa2;
    --signal-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M8.5 15a6 6 0 1 1 7 0c-.9.7-1.5 1.6-1.5 3h-4c0-1.4-.6-2.3-1.5-3Z'/%3E%3C/svg%3E");
}

@media (max-width: 980px) {
    .sidebar-nav {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: auto;
    }

    .nav-vertical {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .nav-vertical::after {
        flex: 0 0 auto;
    }

    .nav-vertical a {
        flex: 0 0 auto;
    }

    .header-home .brand-signals span {
        min-width: min(220px, 100%);
    }
}

@media (max-width: 620px) {
    .logo-vertical {
        width: 62px;
        height: 62px;
    }

    .nav-vertical a {
        min-width: 76px;
        min-height: 64px;
        font-size: 0.74rem;
    }

    .nav-vertical a::before {
        width: 22px;
        height: 22px;
    }

    .nav-vertical::after {
        min-width: 170px;
        min-height: 48px;
    }
}

@keyframes logo-frame-shift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(24deg); }
}

/* Final micro-adjustments: logo proximity + signal blocks without inner icons */
.sidebar-nav {
    gap: clamp(1rem, 2.4vw, 2rem);
}

.nav-vertical {
    justify-content: center;
    gap: clamp(0.9rem, 1.8vw, 1.55rem);
}

.header-home .brand-signals {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: clamp(0.85rem, 1.35vw, 1.05rem);
    max-width: 1120px;
}

.header-home .brand-signals span {
    min-width: 0;
    min-height: 86px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 1rem 1.05rem;
}

.header-home .brand-signals span::before {
    width: 42px;
    height: 42px;
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    mask: none;
    -webkit-mask: none;
}

.header-home .brand-signals span::after {
    display: none;
}

@media (max-width: 1180px) {
    .header-home .brand-signals {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        max-width: 720px;
    }
}

@media (max-width: 620px) {
    .header-home .brand-signals {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

/* Rounded heading typography + nav icon corrections */
h1, h2, h3, h4, h5, h6,
.brand-title,
.page-hero-title,
.lab-display,
.home-contact-strap,
.conversion-section-head h2 {
    font-family: "Aptos Rounded", ui-rounded, "Nunito Sans", "Inter", "Segoe UI", sans-serif;
}

.nav-vertical a {
    font-family: "Inter", "Segoe UI", sans-serif;
}

.nav-vertical a:nth-child(4) {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M4 4.5A2.5 2.5 0 0 1 6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15Z'/%3E%3Cpath d='M8 7h8'/%3E%3Cpath d='M8 11h6'/%3E%3C/svg%3E");
}

.nav-vertical a:nth-child(5) {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-8 0v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.header-home .brand-signals span {
    grid-template-columns: 1fr;
    min-height: 78px;
    padding: 1.15rem 1.25rem;
}

.header-home .brand-signals span::before,
.header-home .brand-signals span::after {
    display: none;
}

/* pills bar oculta en todos los tamaños */
.home-pages-nav {
    display: none !important;
}

/* ─────────────────────────────────────────────────────────────
   DELEICA — MOBILE PREMIUM REDESIGN  (≤ 768px)
   Estilo: Apple · Linear · Stripe · Vercel  –  2025
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* ── 1. NAVBAR: flex blanco, logo izquierda, toggle derecha ── */
    .sidebar-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 64px;
        min-height: 64px;
        padding: 0 1.1rem;
        background: rgba(255, 255, 255, 0.97) !important;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(11, 27, 43, 0.1);
        box-shadow: 0 2px 16px rgba(11, 27, 43, 0.08);
        color: #0b1b2b !important;
        position: sticky;
        top: 0;
        z-index: 1000;
        overflow: visible; /* el dropdown desborda hacia abajo */
    }

    .sidebar-nav::after {
        display: none;
    }

    .logo-vertical {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
        border-radius: 11px;
        padding: 4px;
        margin-top: 4px; /* baja el logo ligeramente */
        animation: logo-breathe 8s ease-in-out infinite;
        border: 1.5px solid rgba(184, 93, 119, 0.45);
        background: rgba(184, 93, 119, 0.06);
        box-shadow: 0 0 0 4px rgba(184, 93, 119, 0.06);
    }

    .logo-vertical img {
        width: 100%;
        height: 100%;
    }

    .nav-toggle {
        display: inline-flex;
        width: 42px;
        height: 42px;
        flex-shrink: 0;
        border-radius: 11px;
        border: 1px solid rgba(11, 27, 43, 0.15) !important;
        background: transparent;
        color: #0b1b2b !important;
        transition: background 0.2s ease, border-color 0.2s ease;
    }

    .nav-toggle:hover,
    .nav-toggle:focus-visible {
        background: rgba(11, 27, 43, 0.05);
        border-color: rgba(184, 93, 119, 0.4);
    }

    .nav-toggle span {
        width: 18px;
        height: 1.8px;
        background: #0b1b2b !important;
    }

    /* Dropdown: position absolute para superponerse al hero sin hueco */
    .nav-vertical {
        position: absolute;
        top: 100%; /* justo debajo del navbar */
        left: 0;
        right: 0;
        z-index: 999;
        display: block;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.36s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
        background: rgba(255, 255, 255, 0.98) !important;
        border-top: 1px solid rgba(11, 27, 43, 0.08);
        box-shadow: 0 16px 32px rgba(11, 27, 43, 0.12);
    }

    .sidebar-nav.nav-open .nav-vertical {
        max-height: 480px;
        opacity: 1;
        pointer-events: auto;
        padding: 0.5rem 0 0.75rem;
    }

    .nav-vertical::after {
        display: none;
    }

    .nav-vertical a {
        flex: none;
        min-width: 0;
        min-height: 0;
        padding: 0.95rem 1.4rem;
        border-radius: 0;
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        color: #0b1b2b !important;
        background: transparent;
        border: none;
        box-shadow: none;
        scroll-snap-align: none;
        position: relative;
        transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
    }

    .nav-vertical a::before {
        display: none;
    }

    .nav-vertical a::after {
        left: 1.4rem;
        right: auto;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) scaleX(0);
        width: 3px;
        height: 18px;
        border-radius: 999px;
        background: linear-gradient(180deg, #b85d77, #2f78ff);
        opacity: 1;
    }

    .nav-vertical a:hover,
    .nav-vertical a.active {
        color: #b85d77 !important;
        padding-left: 2rem;
        background: rgba(184, 93, 119, 0.05);
        transform: none;
        box-shadow: none;
    }

    .nav-vertical a:hover::after,
    .nav-vertical a.active::after {
        transform: translateY(-50%) scaleX(1);
    }

    /* ── 2. BARRA DE PAGES: oculta en mobile ── */
    .home-pages-nav {
        display: none !important;
    }

    /* ── 3. HERO: compacto, continúa el bloque oscuro del nav ── */
    .header-home {
        min-height: auto;
        padding: 1.6rem 1.25rem 2.4rem; /* menos padding-top: el nav ya ocupa espacio */
        background:
            radial-gradient(ellipse 120% 60% at 10% 20%, rgba(184, 93, 119, 0.22), transparent 55%),
            radial-gradient(ellipse 100% 50% at 90% 80%, rgba(47, 120, 255, 0.18), transparent 55%),
            radial-gradient(ellipse 80% 40% at 50% 0%, rgba(91, 159, 177, 0.12), transparent 50%),
            linear-gradient(160deg, #0d1f2d 0%, #142535 42%, #0f1e2a 100%);
    }

    .header-home::after {
        display: none;
    }

    .brand-lockup {
        max-width: 100%;
    }

    .header-home .brand-title {
        font-size: clamp(3rem, 16vw, 4.5rem);
        letter-spacing: -0.06em;
        line-height: 0.9;
        background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.88) 45%, rgba(91,159,177,0.95) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .brand-tagline {
        font-size: 1rem;
        line-height: 1.58;
        color: rgba(255, 255, 255, 0.7);
        margin-top: 1.1rem;
        max-width: 100%;
        font-weight: 400;
        padding-bottom: 0;
    }

    .brand-intro {
        display: none;
    }

    /* brand-signals ocultos en mobile: el hero es más impactante solo con título + tagline */
    .brand-signals,
    .header-home .brand-signals {
        display: none !important;
    }

    /* #inicio (home-intro-band) y hero forzados a blanco con texto oscuro */
    #inicio,
    .home-intro-band {
        background: #ffffff !important;
        color: #0b1b2b !important;
    }

    #inicio::before,
    #inicio::after,
    .home-intro-band::before,
    .home-intro-band::after {
        background: transparent !important;
        opacity: 0 !important;
    }

    .home-intro-band .container {
        padding-top: 0;
        padding-bottom: 0;
    }

    .home-intro-band h1 {
        max-width: 100%;
        font-size: clamp(2.2rem, 11vw, 3.2rem);
        line-height: 1.02;
        letter-spacing: -0.04em;
        color: #0d1f2d;
    }

    .home-intro-band .hero-subtitle {
        max-width: 100%;
        font-size: 0.98rem;
        line-height: 1.72;
        color: rgba(15, 40, 58, 0.74);
        margin-top: 1rem;
    }

    /* ── 5. BOTONES: grandes, táctiles, premium ── */
    .home-intro-band .hero-lab-actions,
    .section-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-top: 1.8rem;
    }

    .home-intro-band .hero-lab-actions .button,
    .home-intro-band .hero-lab-actions .button-secondary,
    .section-cta .button,
    .section-cta .button-secondary {
        width: 100%;
        min-height: 52px;
        justify-content: center;
        text-align: center;
        border-radius: 14px;
        font-size: 0.95rem;
        font-weight: 800;
        letter-spacing: 0.01em;
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.5) inset,
            0 14px 32px rgba(47, 120, 255, 0.16);
    }

    /* ── 6. STRIP DE CAPACIDADES ── */
    .home-intro-band .hero-lab-strip {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.7rem;
        margin-top: 2rem;
    }

    .home-intro-band .hero-lab-strip article {
        padding: 1.1rem 1.15rem;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.82);
        border: 1px solid rgba(47, 120, 255, 0.08);
        box-shadow:
            0 2px 0 rgba(255, 255, 255, 0.9) inset,
            0 8px 24px rgba(15, 43, 58, 0.06);
        backdrop-filter: blur(4px);
    }

    /* ── 7. GRIDS A 1 COLUMNA ── */
    .conversion-card-grid,
    .portfolio-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .conversion-card,
    .portfolio-card,
    .process-grid article {
        min-height: 0;
        padding: 1.2rem;
        border-radius: 20px;
        box-shadow:
            0 2px 0 rgba(255, 255, 255, 0.85) inset,
            0 12px 32px rgba(15, 43, 58, 0.07);
    }

    .portfolio-copy,
    .page-intro-card,
    .contact-panel,
    .contact-form-card,
    .home-story-block,
    .home-contact-copy,
    .home-contact-form-wrap {
        padding: 1.2rem;
    }

    .contact-form-card form,
    .home-contact-form {
        gap: 1.25rem;
    }

    /* ── 8. WHATSAPP FLOAT: integrado y premium ── */
    .contact-float {
        right: 1rem;
        bottom: 1.1rem;
        transform: none;
        transform-origin: bottom right;
    }

    .whatsapp-float {
        min-height: 52px;
        padding: 0 1.2rem;
        border-radius: 14px;
        font-size: 0.9rem;
        font-weight: 800;
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.25) inset,
            0 18px 40px rgba(37, 170, 86, 0.36),
            0 4px 12px rgba(0, 0, 0, 0.14);
    }

    /* ── 9. SECCIONES: espaciado compacto ── */
    .section {
        padding-top: clamp(2.8rem, 8vw, 4rem);
        padding-bottom: clamp(2.8rem, 8vw, 4rem);
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .container {
        padding-left: 0;
        padding-right: 0;
    }

    .conversion-section-head h2 {
        font-size: clamp(1.85rem, 8.5vw, 2.6rem);
        letter-spacing: -0.03em;
    }

    .home-kicker,
    .portfolio-label,
    .home-lab-slide-label {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }
}

/* ─────────────────────────────────────────────────────────────
   MOBILE S  (≤ 480px)  — ajuste fino
───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .sidebar-nav {
        padding: 0 0.9rem;
        min-height: 58px;
    }

    .logo-vertical {
        width: 36px;
        height: 36px;
    }

    .nav-toggle {
        width: 36px;
        height: 36px;
    }

    .home-pages-nav {
        top: 58px;
        padding: 0.5rem 0.9rem 0.45rem;
        gap: 0.38rem;
    }

    .home-pages-nav a {
        min-height: 32px;
        padding: 0.38rem 0.78rem;
        font-size: 0.74rem;
    }

    .header-home {
        padding: 2.4rem 1rem 2rem;
    }

    .header-home .brand-title {
        font-size: clamp(2.6rem, 15vw, 3.8rem);
    }

    .home-intro-band {
        padding: 2.4rem 1rem 2rem;
    }

    .home-intro-band h1 {
        font-size: clamp(1.95rem, 11vw, 2.8rem);
    }

    .home-intro-band .hero-lab-actions .button,
    .home-intro-band .hero-lab-actions .button-secondary,
    .section-cta .button,
    .section-cta .button-secondary {
        min-height: 50px;
        border-radius: 13px;
        font-size: 0.9rem;
    }

    .home-intro-band .hero-lab-strip article,
    .conversion-card,
    .portfolio-card,
    .process-grid article {
        padding: 1rem;
        border-radius: 16px;
    }

    .portfolio-copy,
    .page-intro-card,
    .contact-panel,
    .contact-form-card,
    .home-story-block,
    .home-contact-copy,
    .home-contact-form-wrap {
        padding: 1rem;
    }

    .contact-float {
        right: 0.8rem;
        bottom: 0.9rem;
    }

    .whatsapp-float {
        min-height: 48px;
        padding: 0 1.05rem;
        font-size: 0.86rem;
    }
}

/* ─────────────────────────────────────────────────────────────
   MICRO-INTERACCIONES MOBILE PREMIUM
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    @keyframes slide-in-up {
        from { opacity: 0; transform: translateY(18px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    @keyframes fade-in-scale {
        from { opacity: 0; transform: scale(0.97); }
        to   { opacity: 1; transform: scale(1); }
    }

    .header-home .brand-title,
    .home-intro-band h1 {
        animation: slide-in-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .header-home .brand-tagline,
    .home-intro-band .hero-subtitle {
        animation: slide-in-up 0.55s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .header-home .brand-signals,
    .home-intro-band .hero-lab-actions {
        animation: slide-in-up 0.55s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .home-intro-band .hero-lab-strip article,
    .conversion-card,
    .portfolio-card,
    .process-grid article {
        transition: box-shadow 0.22s ease, transform 0.22s ease;
    }

    .home-intro-band .hero-lab-strip article:active,
    .conversion-card:active,
    .portfolio-card:active,
    .process-grid article:active {
        transform: scale(0.985);
        box-shadow: 0 4px 14px rgba(15, 43, 58, 0.08);
    }

    .button,
    .button-secondary {
        transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.18s ease;
    }

    .button:active,
    .button-secondary:active {
        transform: scale(0.96);
    }

    .home-pages-nav a {
        transition: all 0.18s ease;
    }

    .home-pages-nav a:active {
        transform: scale(0.94);
    }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE FIX v4 — Cascade winner (≤768px ONLY)
   Gana sobre todos los bloques anteriores.  Desktop: intacto.
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── 1. NAVBAR: altura fija, sin flex-wrap, overflow visible ── */
    .sidebar-nav {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;   /* nunca crece al abrir menú */
        padding: 0 1.1rem !important;
        overflow: visible !important;  /* el dropdown desborda sin empujar el hero */
        background: rgba(255, 255, 255, 0.97) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(11, 27, 43, 0.09) !important;
        box-shadow: 0 1px 0 rgba(11, 27, 43, 0.06),
                    0 4px 20px rgba(11, 27, 43, 0.07) !important;
        gap: 0 !important;
    }

    .sidebar-nav::before,
    .sidebar-nav::after {
        display: none !important;
    }

    /* ── 2. LOGO: centrado, margen cero ── */
    .logo-vertical {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        flex-shrink: 0 !important;
        align-self: center !important;
        margin: 0 !important;
        border-radius: 10px !important;
        padding: 4px !important;
        background: rgba(184, 93, 119, 0.06) !important;
        border: 1.5px solid rgba(184, 93, 119, 0.4) !important;
        box-shadow: 0 0 0 3px rgba(184, 93, 119, 0.06) !important;
        animation: logo-breathe 8s ease-in-out infinite !important;
    }

    .logo-vertical img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    /* ── 3. TOGGLE: centrado, oscuro sobre blanco ── */
    .nav-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 4px !important;
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0 !important;
        align-self: center !important;
        border-radius: 10px !important;
        background: transparent !important;
        border: 1px solid rgba(11, 27, 43, 0.12) !important;
        color: #0b1b2b !important;
        cursor: pointer !important;
        flex: 0 0 auto !important;
    }

    .nav-toggle span {
        width: 18px !important;
        height: 1.5px !important;
        background: #0b1b2b !important;
        border-radius: 2px !important;
        display: block !important;
    }

    /* ── 4. DROPDOWN: absoluto, NUNCA empuja el hero ── */
    .nav-vertical {
        position: absolute !important;
        top: 64px !important;           /* = altura exacta del navbar */
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;
        /* estado cerrado */
        display: block !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        visibility: hidden !important;  /* anula visibility:hidden de reglas previas */
        pointer-events: none !important;
        transform: none !important;     /* cancela translateY(-8px) de reglas previas */
        padding: 0 !important;
        /* visual */
        background: rgba(255, 255, 255, 0.98) !important;
        border-top: 1px solid rgba(11, 27, 43, 0.07) !important;
        box-shadow: 0 20px 48px rgba(11, 27, 43, 0.11) !important;
        border-radius: 0 0 16px 16px !important;
        /* transición suave */
        transition:
            max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.24s ease,
            visibility 0s linear 0.24s !important;
    }

    /* ── Dropdown abierto ── */
    .sidebar-nav.nav-open .nav-vertical {
        max-height: calc(100dvh - 64px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        padding: 0.4rem 0 calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
        transform: none !important;
        -webkit-overflow-scrolling: touch !important;
        transition:
            max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.24s ease,
            visibility 0s linear 0s !important;
    }

    .nav-vertical::before,
    .nav-vertical::after {
        display: none !important;
    }

    /* Links del dropdown */
    .nav-vertical a {
        display: block !important;
        width: 100% !important;
        min-height: 48px !important;
        padding: 0.88rem 1.4rem !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.02em !important;
        color: #0b1b2b !important;
        text-decoration: none !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        transform: none !important;
        transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease !important;
    }

    .nav-vertical a:hover,
    .nav-vertical a.active {
        color: #b85d77 !important;
        background: rgba(184, 93, 119, 0.05) !important;
        padding-left: 1.9rem !important;
        transform: none !important;
    }

    /* ── 5. HERO: pegado al navbar, DELEICA sin cortar ── */
    .header-home {
        margin-top: 0 !important;
        padding: 2.2rem 1.3rem 2.6rem !important;
        overflow: visible !important;
        min-height: auto !important;
    }

    /* DELEICA: sin ghost, line-height ≥ 1, gradient text consolidado */
    .header-home .brand-title {
        font-size: clamp(2.8rem, 13.5vw, 4.2rem) !important;
        line-height: 1.0 !important;
        letter-spacing: -0.055em !important;
        overflow: visible !important;
        display: block !important;
        padding-top: 0.06em !important;
        padding-bottom: 0.06em !important;
        /* ── Elimina el fantasma: text-shadow visible a través del fill transparente ── */
        text-shadow: none !important;
        /* ── Gradient text consolidado con !important ── */
        background: linear-gradient(
            135deg,
            #ffffff 0%,
            rgba(255, 255, 255, 0.9) 45%,
            rgba(91, 159, 177, 0.95) 100%
        ) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        color: transparent !important;
    }

    /* Barra de pages: siempre oculta en mobile */
    .home-pages-nav {
        display: none !important;
    }
}

/* ── Mobile S (≤480px): proporcional ── */
@media (max-width: 480px) {

    .sidebar-nav {
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        padding: 0 0.9rem !important;
    }

    .nav-vertical {
        top: 58px !important;
        max-height: calc(100dvh - 58px) !important;
        border-radius: 0 0 14px 14px !important;
    }

    .logo-vertical {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }

    .nav-toggle {
        width: 36px !important;
        height: 36px !important;
    }

    .header-home {
        padding: 2rem 1.1rem 2.2rem !important;
    }

    .header-home .brand-title {
        font-size: clamp(2.5rem, 14vw, 3.6rem) !important;
    }
}

/* Mobile scroll safety: keep the index page reachable to the final tap targets. */
@media (max-width: 768px) {
    html,
    body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    body {
        min-height: 100dvh !important;
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
        overscroll-behavior-y: auto;
    }

    main,
    #contenido {
        display: block;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .header-home,
    .section,
    .home-contact-mini,
    .seo-related,
    .footer {
        height: auto !important;
        overflow: visible !important;
    }

    .header-home {
        min-height: auto !important;
    }

    .footer {
        padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    .footer a,
    .seo-related-grid a,
    .home-contact-form input,
    .home-contact-form select,
    .home-contact-form textarea,
    .home-contact-actions .button {
        min-height: 44px;
    }

    .contact-float {
        pointer-events: none;
        z-index: 900;
    }

    .contact-float a,
    .contact-float button {
        pointer-events: auto;
    }
}

@media (max-width: 430px) {
    body {
        padding-bottom: calc(6.25rem + env(safe-area-inset-bottom, 0px));
    }

    .footer {
        padding-bottom: calc(7.75rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    .contact-float {
        right: 0.75rem !important;
        bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
        max-width: calc(100vw - 1.5rem);
    }

    .whatsapp-float {
        max-width: calc(100vw - 1.5rem);
    }
}

/* Visual repair: method deck contrast and final index readability. */
.service-deck-shell {
    color: white !important;
    background:
        radial-gradient(circle at top left, rgba(184, 93, 119, 0.16), transparent 24%),
        radial-gradient(circle at 92% 12%, rgba(91, 159, 177, 0.18), transparent 28%),
        linear-gradient(145deg, rgba(16, 39, 51, 0.98), rgba(24, 58, 75, 0.96)) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 30px 70px rgba(8, 22, 30, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.service-deck-shell:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

.service-deck-header .home-kicker,
.service-deck-progress-text {
    width: fit-content;
    color: #123142 !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.62) !important;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.service-deck-progress-text {
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.68rem;
}

.service-deck-header h2,
.service-deck-closing {
    color: white !important;
}

.service-deck-closing {
    color: rgba(255, 255, 255, 0.78) !important;
}

.service-flash-card {
    background: rgba(255, 255, 255, 0.94) !important;
}

.service-flash-index {
    color: #123142 !important;
    background: rgba(234, 245, 251, 0.94);
    border: 1px solid rgba(37, 92, 120, 0.16);
}

.seo-related[aria-labelledby="seo-related-title"] h2 {
    display: block;
}

/* Final mobile nav fix: show every menu item and allow internal scrolling. */
@media (max-width: 768px) {
    .sidebar-nav.nav-open .nav-vertical {
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: auto !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 0.6rem 0 calc(2rem + env(safe-area-inset-bottom, 0px)) !important;
        background: rgba(255, 255, 255, 0.99) !important;
        border-radius: 0 !important;
        z-index: 2000 !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
    }

    .sidebar-nav.nav-open .nav-vertical a {
        flex: 0 0 auto !important;
        min-height: 52px !important;
        display: flex !important;
        align-items: center !important;
        padding: 0.95rem 1.4rem !important;
        white-space: normal !important;
    }

    body:has(.sidebar-nav.nav-open) {
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .sidebar-nav.nav-open .nav-vertical {
        top: 58px !important;
    }
}

/* Mobile nav sizing: readable logo, toggle and menu items. */
@media (max-width: 768px) {
    .sidebar-nav {
        height: 74px !important;
        min-height: 74px !important;
        max-height: 74px !important;
        padding: 0 1rem !important;
    }

    .logo-vertical {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        padding: 5px !important;
        border-radius: 12px !important;
    }

    .nav-toggle {
        width: 50px !important;
        height: 50px !important;
        border-radius: 12px !important;
    }

    .nav-toggle span {
        width: 24px !important;
        height: 2px !important;
    }

    .sidebar-nav.nav-open .nav-vertical {
        top: 74px !important;
        padding: 0.75rem 0 calc(2.25rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    .sidebar-nav.nav-open .nav-vertical a {
        min-height: 58px !important;
        padding: 1rem 1.35rem !important;
        font-size: 1rem !important;
        line-height: 1.3 !important;
        font-weight: 800 !important;
    }
}

@media (max-width: 430px) {
    .sidebar-nav {
        height: 68px !important;
        min-height: 68px !important;
        max-height: 68px !important;
        padding: 0 0.9rem !important;
    }

    .logo-vertical,
    .nav-toggle {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
    }

    .sidebar-nav.nav-open .nav-vertical {
        top: 68px !important;
    }

    .sidebar-nav.nav-open .nav-vertical a {
        min-height: 56px !important;
        font-size: 0.96rem !important;
    }
}

/* Mobile index hero panel: give the DELEICA intro room to breathe. */
@media (max-width: 768px) {
    .header-home {
        min-height: 560px !important;
        padding: 4.5rem 1.45rem 4rem !important;
        display: flex !important;
        align-items: center !important;
    }

    .header-home .header-content,
    .header-home-grid {
        width: 100% !important;
        min-height: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .brand-lockup,
    .brand-lockup-lab {
        width: 100% !important;
        max-width: 100% !important;
        gap: 1.35rem !important;
    }

    .header-home .brand-title {
        font-size: clamp(4.15rem, 18vw, 5.8rem) !important;
        line-height: 0.92 !important;
        padding-bottom: 0.14em !important;
    }

    .header-home .brand-title::after {
        height: 5px !important;
        bottom: -0.42rem !important;
    }

    .header-home .brand-tagline {
        max-width: 18rem !important;
        margin-top: 2rem !important;
        font-size: 1.28rem !important;
        line-height: 1.55 !important;
    }
}

@media (max-width: 430px) {
    .header-home {
        min-height: 520px !important;
        padding: 4rem 1.35rem 3.6rem !important;
    }

    .header-home .brand-title {
        font-size: clamp(3.95rem, 19vw, 5.2rem) !important;
    }

    .header-home .brand-tagline {
        max-width: 17rem !important;
        font-size: 1.18rem !important;
    }
}

/* Mobile index top nav: show several page links instead of one centered item. */
@media (max-width: 768px) {
    .sidebar-nav.nav-open .nav-vertical {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-content: start !important;
        gap: 0.55rem !important;
        min-height: calc(78dvh - 74px) !important;
        padding: 0.85rem 0.85rem calc(2rem + env(safe-area-inset-bottom, 0px)) !important;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(247, 251, 253, 0.995)) !important;
    }

    .sidebar-nav.nav-open .nav-vertical a {
        min-height: 68px !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0.8rem 0.7rem !important;
        border-radius: 14px !important;
        background: rgba(15, 43, 58, 0.045) !important;
        border: 1px solid rgba(15, 43, 58, 0.08) !important;
        font-size: 0.88rem !important;
        line-height: 1.15 !important;
    }

    .sidebar-nav.nav-open .nav-vertical a.active,
    .sidebar-nav.nav-open .nav-vertical a:hover {
        color: #102733 !important;
        padding-left: 0.7rem !important;
        background: rgba(184, 93, 119, 0.09) !important;
        border-color: rgba(184, 93, 119, 0.18) !important;
    }

    .sidebar-nav.nav-open .nav-vertical a.nav-cta {
        grid-column: 1 / -1 !important;
        min-height: 72px !important;
        color: white !important;
        background: linear-gradient(135deg, #b85d77, #255c78) !important;
        border-color: transparent !important;
    }
}

@media (max-width: 360px) {
    .sidebar-nav.nav-open .nav-vertical {
        grid-template-columns: 1fr !important;
    }
}
