/* ===== RESET & VARIABLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ===== PALETTE: Deep Tech ===== */
    --primary: #0a1c2e;        /* deep navy base (main bg) */
    --primary-light: #12304a;  /* raised navy surface (cards) */
    --secondary: #6c7cff;      /* indigo (second accent / glows) */
    --accent: #34d6c8;         /* electric teal (buttons, highlights) */
    --text: #0a1c2e;           /* navy (text on light bg) */
    --text-muted: #8aa0b5;     /* cool blue-gray (secondary text) */
    --light-bg: #eef2f7;       /* cool light gray (light sections) */
    --white: #ffffff;
    --border: #9fb1c2;         /* cool border */
    --blue-steel: #6c7cff;     /* aligned with secondary */
    /* Extra accents to break the monochrome — warm + violet for variety */
    --accent-warm: #f6a96b;    /* amber / peach (warm contrast) */
    --accent-coral: #ff7e6b;   /* coral (highlights, glows) */
    --accent-violet: #8b5cf6;  /* violet (glows, depth) */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-pill: 0 4px 30px rgba(8, 44, 66, 0.15);
    --radius: 12px;
    --radius-pill: 100px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LOADING SCREEN ===== */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-domino {
    width: 80px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
    animation: dominoSpin 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.loader-half {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 12px);
    grid-template-rows: repeat(3, 12px);
    gap: 3px;
    place-content: center;
    place-items: center;
}

.loader-half .domino-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.loader-divider {
    width: 70%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

@keyframes dominoSpin {
    0%   { transform: rotateY(0deg) rotateX(0deg); }
    25%  { transform: rotateY(180deg) rotateX(0deg); }
    50%  { transform: rotateY(180deg) rotateX(180deg); }
    75%  { transform: rotateY(360deg) rotateX(180deg); }
    100% { transform: rotateY(360deg) rotateX(360deg); }
}

/* ===== BASE TYPOGRAPHY ===== */
html {
    scroll-behavior: smooth;
}

html {
    overflow-x: clip;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--white);
    background-color: var(--primary);
    /* Ambient multicolor glow — breaks the monochrome navy */
    background-image:
        radial-gradient(48vw 48vw at 84% -10%, rgba(52, 214, 200, 0.16), transparent 60%),
        radial-gradient(42vw 42vw at 8% 12%, rgba(108, 124, 255, 0.15), transparent 60%),
        radial-gradient(40vw 40vw at 100% 58%, rgba(246, 169, 107, 0.12), transparent 60%),
        radial-gradient(46vw 46vw at 26% 108%, rgba(139, 92, 246, 0.14), transparent 62%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Film-grain texture over everything (subtle, non-interactive) */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== PILL NAVBAR ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 24px;
}

.navbar-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    background: rgba(8, 44, 66, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    box-shadow: var(--shadow-pill);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.nav-logo {
    position: relative;
    height: 36px;
    width: 100px;
    flex-shrink: 0;
    overflow: hidden;
}

.nav-logo .logo-desktop {
    height: 150px;
    width: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    mix-blend-mode: lighten;
}

.nav-logo .logo-mobile {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    display: block;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.nav-profile {
    position: relative;
    height: 36px;
    width: 36px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
}

.nav-profile img {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: none;
    position: static;
    transform: none;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 180px 0 120px;
    background:
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(59, 192, 199, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(107, 144, 202, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(59, 192, 199, 0.1) 0%, transparent 70%),
        linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 50%, #0a3a55 100%);
    background-size: 200% 200%, 200% 200%, 300% 300%, 100% 100%;
    animation: gradientWave 10s ease-in-out infinite;
    color: var(--white);
    position: relative;
    overflow: clip;
}

@keyframes gradientWave {
    0%   { background-position: 0% 80%, 100% 20%, 0% 50%, 0% 0%; }
    25%  { background-position: 40% 40%, 60% 60%, 50% 30%, 0% 0%; }
    50%  { background-position: 100% 20%, 0% 80%, 100% 50%, 0% 0%; }
    75%  { background-position: 60% 60%, 40% 40%, 50% 70%, 0% 0%; }
    100% { background-position: 0% 80%, 100% 20%, 0% 50%, 0% 0%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 192, 199, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBlob 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 144, 202, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBlob 10s ease-in-out infinite reverse;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -25px) scale(1.08); }
    66%      { transform: translate(-25px, 20px) scale(0.95); }
}

/* ===== FLOATING DOMINOES IN HERO ===== */
.dominos-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.domino {
    position: absolute;
    width: 70px;
    height: 130px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    cursor: grab;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 8px 6px;
    user-select: none;
    touch-action: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.domino:hover {
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(59, 192, 199, 0.35);
}

.domino.dragging-domino {
    cursor: grabbing;
    border-color: var(--accent);
    box-shadow: 0 0 36px rgba(59, 192, 199, 0.5);
    z-index: 100;
    animation: none !important;
}

/* Double domino — rotated sideways */
.domino.domino-horizontal {
    width: 130px;
    height: 70px;
    flex-direction: row;
    padding: 6px 8px;
}

.domino.domino-horizontal .domino-divider {
    width: 1px;
    height: 70%;
}

.domino.connected {
    border-color: rgba(59, 192, 199, 0.5);
    background: rgba(59, 192, 199, 0.1);
}

.domino.connected .domino-dot {
    background: var(--accent);
}

/* Domino Half */
.domino-half {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 10px);
    grid-template-rows: repeat(3, 10px);
    gap: 3px;
    place-content: center;
    place-items: center;
}

.domino-divider {
    width: 70%;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

/* Domino Dots */
.domino-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    grid-column: 2;
    grid-row: 2;
}

/* Dot positions */
.dot-tl { grid-column: 1; grid-row: 1; }
.dot-tc { grid-column: 2; grid-row: 1; }
.dot-tr { grid-column: 3; grid-row: 1; }
.dot-ml { grid-column: 1; grid-row: 2; }
.dot-mc { grid-column: 2; grid-row: 2; }
.dot-mr { grid-column: 3; grid-row: 2; }
.dot-bl { grid-column: 1; grid-row: 3; }
.dot-bc { grid-column: 2; grid-row: 3; }
.dot-br { grid-column: 3; grid-row: 3; }

/* Snap flash */
@keyframes snapFlash {
    0% { box-shadow: 0 0 0 rgba(59, 192, 199, 0); }
    50% { box-shadow: 0 0 40px rgba(59, 192, 199, 0.6); }
    100% { box-shadow: 0 0 20px rgba(59, 192, 199, 0.2); }
}

.domino.snap-flash {
    animation: snapFlash 0.5s ease forwards;
}

/* ===== HERO 3D DOMINO (scroll-driven, breaks apart) ===== */
.hero-domino {
    position: absolute;
    top: 50%;
    right: 22%;
    width: 160px;
    height: 300px;
    transform: translateY(-50%);
    z-index: 2;
    perspective: 1200px;
    pointer-events: none;
}

.hero-domino__glow {
    position: absolute;
    inset: -50% -45%;
    background: radial-gradient(circle at 50% 50%, rgba(52, 214, 200, 0.32), rgba(108, 124, 255, 0.16) 45%, transparent 70%);
    filter: blur(14px);
    animation: hdGlow 6s ease-in-out infinite;
}

@keyframes hdGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.12); }
}

.hd-spin {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    /* scale = bigger; rotateZ = diagonal lean; rotateX = tilt; rotateY = scroll spin */
    transform: scale(1.5) rotateZ(-20deg) rotateX(-20deg) rotateY(var(--spin, -32deg));
    will-change: transform;
}

/* The two halves — separate + tumble as --break goes 0 -> 1 */
.hd-piece {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 160px;
    height: 150px;
    margin: -75px 0 0 -80px;
    transform-style: preserve-3d;
    transition: transform 0.08s linear;
}

.hd-piece--top {
    transform:
        translateY(calc(-75px - var(--break, 0) * 135px))
        translateZ(calc(var(--break, 0) * 60px))
        rotateZ(calc(var(--break, 0) * -22deg))
        rotateX(calc(var(--break, 0) * 32deg));
}

.hd-piece--bottom {
    transform:
        translateY(calc(75px + var(--break, 0) * 135px))
        translateZ(calc(var(--break, 0) * 55px))
        rotateZ(calc(var(--break, 0) * 19deg))
        rotateX(calc(var(--break, 0) * -30deg));
}

.hd-face {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(155deg, #1e4060 0%, #102a40 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    overflow: hidden;
    backface-visibility: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
}

.hd-front { transform: translateZ(12px); }
.hd-back  { transform: rotateY(180deg) translateZ(12px); }

.hd-half {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    place-items: center;
    padding: 16% 18%;
}

.hd-pip {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #f2ffff, #34d6c8 55%, #198f96);
    box-shadow: 0 0 9px rgba(52, 214, 200, 0.6);
}

.hd-edge {
    position: absolute;
    left: 50%;
    top: 50%;
    background: linear-gradient(#10324a, #0a2032);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.hd-edge-l { width: 24px; height: 150px; margin: -75px 0 0 -12px; transform: rotateY(-90deg) translateZ(80px); }
.hd-edge-r { width: 24px; height: 150px; margin: -75px 0 0 -12px; transform: rotateY(90deg) translateZ(80px); }
.hd-edge-t { width: 160px; height: 24px; margin: -12px 0 0 -80px; transform: rotateX(90deg) translateZ(75px); }
.hd-edge-b { width: 160px; height: 24px; margin: -12px 0 0 -80px; transform: rotateX(-90deg) translateZ(75px); }

/* Shard particles — invisible at rest, scatter as it breaks */
.hd-particle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--pc, var(--accent));
    box-shadow: 0 0 10px var(--pc, var(--accent));
    opacity: calc(var(--break, 0));
    transform:
        translate3d(
            calc(var(--px, 0) * var(--break, 0) * 1px),
            calc(var(--py, 0) * var(--break, 0) * 1px),
            calc(var(--pz, 0) * var(--break, 0) * 1px)
        )
        scale(calc(0.4 + var(--break, 0) * 0.7));
}

/* Tablet / iPad: centered behind the text (text stays on top, readable) */
@media (max-width: 900px) {
    .hero-domino {
        width: 130px;
        height: 244px;
        right: 50%;
        top: 50%;
        transform: translate(50%, -50%) scale(0.95);
        opacity: 0.55;
    }
}

/* Phone: centered + a bit lower, more subtle */
@media (max-width: 600px) {
    .hero-domino {
        top: 260px;
        right: 50%;
        width: 120px;
        height: 225px;
        transform: translateX(50%) scale(0.9);
        opacity: 0.4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-domino__glow { animation: none; }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    pointer-events: none;
}

.hero-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--accent);
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    pointer-events: none;
    position: relative;
    z-index: 10;
}

.hero-actions a {
    pointer-events: auto;
}

/* ===== HERO WORD-BY-WORD ENTRANCE ===== */
@property --hero-reveal-y {
    syntax: '<length>';
    inherits: false;
    initial-value: 28px;
}

@property --hero-reveal-op {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
}

.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i, 0) * 45ms);
    will-change: opacity, transform;
}

.hero-content--ready .hero-word {
    opacity: 1;
    transform: translateY(0);
}

.hero-actions a {
    transform: translateY(var(--hero-reveal-y));
    opacity: var(--hero-reveal-op);
    transition:
        --hero-reveal-y 0.9s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 45ms),
        --hero-reveal-op 0.9s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 45ms),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content--ready .hero-actions a {
    --hero-reveal-y: 0px;
    --hero-reveal-op: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-word {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-actions a {
        --hero-reveal-y: 0px;
        --hero-reveal-op: 1;
    }
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 14px 32px;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #4dd4db;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 192, 199, 0.4);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 14px 32px;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* ===== SECTION COMMON ===== */
section {
    padding: 100px 0;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 8px;
    text-align: center;
    opacity: 0.9;
}

section > .container > .section-tag {
    display: block;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--white);
    margin-bottom: 48px;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-title--left {
    text-align: left;
}

/* ===== SERVICIOS SECTION (Bento Grid) ===== */
.servicios {
    background: var(--primary-light);
}

.bento-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 16px;
}

.bento-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-item:hover {
    border-color: var(--accent);
    background: rgba(59, 192, 199, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(59, 192, 199, 0.12);
}

.bento-item--main {
    grid-row: 1 / 3;
    grid-column: 1;
    padding: 40px;
}

.bento-item--ai {
    grid-row: 1;
    grid-column: 2;
}

.bento-item--it {
    grid-row: 2;
    grid-column: 2;
}

.bento-item--product {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    color: var(--white);
    cursor: pointer;
}

.bento-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
    font-family: 'Montserrat', Arial, sans-serif;
    text-rendering: optimizeLegibility;
}

.bento-item h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 8px;
}

.bento-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

.bento-item--main .bento-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.bento-item--main h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.bento-item--main p {
    font-size: 1rem;
}

.bento-item--product .bento-icon {
    margin-bottom: 0;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.bento-product-content {
    flex: 1;
}

.bento-product-content h3 {
    margin-bottom: 4px;
}

.bento-product-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--white);
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== BENTO PRODUCT 3D ROTATOR ===== */
.bento-product-rotator {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1;
    perspective: 1200px;
}

.bento-product-sizer {
    display: inline-block;
    visibility: hidden;
    white-space: nowrap;
}

.bento-product-stage {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    animation:
        bentoProductSpin 9s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95),
        bentoProductGlow 9s infinite ease-in-out;
}

.bento-product-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    backface-visibility: hidden;
}

.bento-product-face:nth-child(1) { transform: translateZ(0.29em); }
.bento-product-face:nth-child(2) { transform: rotateX(120deg) translateZ(0.29em); }
.bento-product-face:nth-child(3) { transform: rotateX(240deg) translateZ(0.29em); }

@keyframes bentoProductSpin {
    0%, 25%   { transform: rotateX(0deg); }
    33%, 58%  { transform: rotateX(-120deg); }
    66%, 91%  { transform: rotateX(-240deg); }
    100%      { transform: rotateX(-360deg); }
}

@keyframes bentoProductGlow {
    0%        { text-shadow: 0 0 0 rgba(59, 192, 199, 0); }
    8%        { text-shadow: 0 0 26px rgba(59, 192, 199, 1), 0 0 52px rgba(59, 192, 199, 0.6); }
    25%       { text-shadow: 0 0 0 rgba(59, 192, 199, 0); }
    33%       { text-shadow: 0 0 0 rgba(59, 192, 199, 0); }
    41%       { text-shadow: 0 0 26px rgba(59, 192, 199, 1), 0 0 52px rgba(59, 192, 199, 0.6); }
    58%       { text-shadow: 0 0 0 rgba(59, 192, 199, 0); }
    66%       { text-shadow: 0 0 0 rgba(59, 192, 199, 0); }
    74%       { text-shadow: 0 0 26px rgba(59, 192, 199, 1), 0 0 52px rgba(59, 192, 199, 0.6); }
    91%       { text-shadow: 0 0 0 rgba(59, 192, 199, 0); }
    100%      { text-shadow: 0 0 0 rgba(59, 192, 199, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .bento-product-stage { animation: none; }
}

/* ===== BENTO FLIP CARDS ===== */
.bento-item--flippable {
    perspective: 1000px;
    padding: 0;
    background: none;
    border: none;
}

.bento-item--flippable:hover {
    transform: none;
    border-color: transparent;
    background: none;
    box-shadow: none;
}

.bento-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
    transform-style: preserve-3d;
}

.bento-item--flippable:hover .bento-flip-inner {
    transform: rotateY(180deg);
}

.bento-flip-front {
    width: 100%;
    min-height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.4s, box-shadow 0.4s;
    box-sizing: border-box;
}

.bento-flip-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.4s, box-shadow 0.4s;
    box-sizing: border-box;
}

.bento-flip-back {
    transform: rotateY(180deg);
    justify-content: center;
    background: rgba(59, 192, 199, 0.08);
    border-color: rgba(59, 192, 199, 0.3);
}

.bento-item--flippable:hover .bento-flip-back {
    border-color: var(--accent);
    box-shadow: 0 16px 48px rgba(59, 192, 199, 0.12);
}

.bento-item--main.bento-item--flippable {
    min-height: 716px;
}

.bento-item--ai.bento-item--flippable,
.bento-item--it.bento-item--flippable {
    min-height: 350px;
}

.bento-item--main .bento-flip-front,
.bento-item--main .bento-flip-back {
    padding: 40px;
}

.bento-back-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bento-back-list li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.5;
}

.bento-back-list li:last-child {
    border-bottom: none;
}

.bento-item--main .bento-back-list li {
    font-size: 1rem;
    padding: 10px 0;
}

/* ===== NOSOTROS SECTION ===== */
.nosotros {
    overflow: hidden;
    padding-bottom: 140px;
}

.nosotros-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.nosotros-text {
    max-width: 700px;
    text-align: center;
}

.nosotros-text .section-tag {
    text-align: center;
}

.nosotros-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    margin-bottom: 32px;
    text-align: center;
}

.stats-row {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nosotros-visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.visual-card {
    perspective: 800px;
    padding: 0;
    background: none;
    border: none;
    min-height: 220px;
}

.visual-card:first-child {
    animation: cardFloat1 6s ease-in-out infinite;
}

.visual-card:last-child {
    animation: cardFloat2 7s 1s ease-in-out infinite;
}

@keyframes cardFloat1 {
    0%, 100% { transform: translateY(-20px); }
    50%  { transform: translateY(-35px); }
}

@keyframes cardFloat2 {
    0%, 100% { transform: translateY(20px); }
    50%  { transform: translateY(5px); }
}

.visual-flip-inner {
    position: relative;
    width: 100%;
    min-height: 220px;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    transform-style: preserve-3d;
}

.visual-card:hover .visual-flip-inner {
    transform: rotateY(180deg);
}

.visual-flip-front,
.visual-flip-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.visual-flip-back {
    transform: rotateY(180deg);
    background: rgba(59, 192, 199, 0.08);
    border-color: rgba(59, 192, 199, 0.3);
}

.visual-card:hover .visual-flip-back {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(59, 192, 199, 0.15);
}

.visual-back-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.visual-back-list li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-back-list li:last-child {
    border-bottom: none;
}

.visual-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--accent);
    font-family: 'Montserrat', Arial, sans-serif;
    text-rendering: optimizeLegibility;
}

.visual-card h3 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 4px;
}

.visual-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.visual-flip-back p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

/* ===== CONTACTO SECTION ===== */
.contacto {
    background: var(--primary-light);
}

.contacto-content {
    max-width: 640px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(59, 192, 199, 0.15);
}

.contact-form .btn-primary {
    align-self: flex-start;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    height: 32px;
    width: auto;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .nosotros-visual {
        grid-template-columns: 1fr;
    }

    .stats-row {
        justify-content: center;
    }

    .visual-card:first-child {
        animation: cardFloatMobile 6s ease-in-out infinite;
    }

    .visual-card:last-child {
        animation: cardFloatMobile 7s 1s ease-in-out infinite;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .navbar-pill {
        padding: 8px 16px;
        overflow: visible;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        background: rgba(8, 44, 66, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: var(--radius);
        padding: 16px;
        flex-direction: column;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links a {
        padding: 12px 16px;
    }

    .nav-profile {
        display: none;
    }

    .nav-logo .logo-desktop {
        display: none;
    }

    .nav-logo .logo-mobile {
        display: block;
        height: 50px;
        width: 50px;
        border-radius: 50%;
        object-fit: cover;
        border: none;
        position: absolute;
        top: 50%;
        left: -5px;
        transform: translateY(-50%);
    }

    .nav-logo {
        position: relative;
        height: 30px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .domino {
        width: 45px;
        height: 85px;
        padding: 5px 4px;
        border-radius: 7px;
    }

    .domino-half {
        grid-template-columns: repeat(3, 7px);
        grid-template-rows: repeat(3, 7px);
        gap: 2px;
    }

    .domino-dot {
        width: 5px;
        height: 5px;
    }

    .domino.domino-horizontal {
        width: 85px;
        height: 45px;
        padding: 4px 5px;
    }

    section {
        padding: 60px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bento-item--main {
        grid-row: auto;
        grid-column: auto;
    }

    .bento-item--ai,
    .bento-item--it {
        grid-row: auto;
        grid-column: auto;
    }

    .bento-item--product {
        grid-column: auto;
        flex-direction: column;
        text-align: center;
    }

    .bento-item--product .bento-icon {
        margin-bottom: 12px;
    }

    /* Normalize all bento icons to same size on mobile */
    .bento-icon {
        font-size: 1.5rem !important;
        margin-bottom: 12px !important;
    }

    /* Bento flip: mobile overrides */
    .bento-flip-front,
    .bento-flip-back {
        padding: 20px;
        text-align: center;
        align-items: center;
    }

    .bento-item--main .bento-flip-front,
    .bento-item--main .bento-flip-back {
        padding: 20px;
    }

    .bento-item h3 {
        font-size: 1.1rem;
    }

    .bento-item--main h3 {
        font-size: 1.2rem;
    }

    .bento-item p {
        font-size: 0.85rem;
    }

    .bento-back-list li {
        font-size: 0.85rem;
        padding: 6px 0;
    }

    .bento-item--main .bento-back-list li {
        font-size: 0.85rem;
        padding: 6px 0;
    }

    /* Bento flip: disable hover, use tap (.flipped) */
    .bento-item--flippable:hover .bento-flip-inner {
        transform: none;
    }

    .bento-item--flippable {
        position: relative;
        z-index: 1;
        margin-bottom: 4px;
    }

    .bento-item--flippable .bento-flip-inner {
        transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    .bento-item--flippable.flipped {
        z-index: 10;
    }

    .bento-item--flippable.flipped .bento-flip-inner {
        transform: rotateY(180deg);
    }

    /* Height is animated via JS requestAnimationFrame for smooth pixel-by-pixel control */

    .bento-item--main.bento-item--flippable,
    .bento-item--ai.bento-item--flippable,
    .bento-item--it.bento-item--flippable {
        min-height: auto;
    }

    /* Visual card flip: disable hover, use tap (.flipped) */
    .visual-card:hover .visual-flip-inner {
        transform: none;
    }

    .visual-card.flipped .visual-flip-inner {
        transform: rotateY(180deg);
    }

    /* Extra smooth height transition when flipping */
    .visual-card {
        transition: min-height 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    .visual-icon {
        font-size: 1.5rem;
    }

    .stats-row {
        gap: 24px;
    }

    .contact-form .btn-primary {
        align-self: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.visual-card.reveal:nth-child(1) { transition-delay: 0s; }
.visual-card.reveal:nth-child(2) { transition-delay: 0.15s; }

/* Keep visual-card float after reveal */
.visual-card:first-child.revealed {
    animation: cardFloat1 6s ease-in-out infinite;
}

.visual-card:last-child.revealed {
    animation: cardFloat2 7s 1s ease-in-out infinite;
}

@keyframes cardFloatMobile {
    0%, 100% { transform: translateY(0); }
    50%  { transform: translateY(-8px); }
}

@media (max-width: 992px) {
    .visual-card:first-child.revealed {
        animation: cardFloatMobile 6s ease-in-out infinite;
    }

    .visual-card:last-child.revealed {
        animation: cardFloatMobile 7s 1s ease-in-out infinite;
    }
}

/* ==========================================================================
   PDF UPDATE — Section Reveal System (universal)
   ========================================================================== */
.reveal-section .reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-section.is-visible .reveal-item {
    opacity: 1;
    transform: translateY(0);
}

.reveal-section.is-visible .reveal-item[data-delay="0"] { transition-delay: 0ms; }
.reveal-section.is-visible .reveal-item[data-delay="1"] { transition-delay: 90ms; }
.reveal-section.is-visible .reveal-item[data-delay="2"] { transition-delay: 180ms; }
.reveal-section.is-visible .reveal-item[data-delay="3"] { transition-delay: 270ms; }
.reveal-section.is-visible .reveal-item[data-delay="4"] { transition-delay: 360ms; }
.reveal-section.is-visible .reveal-item[data-delay="5"] { transition-delay: 450ms; }
.reveal-section.is-visible .reveal-item[data-delay="6"] { transition-delay: 540ms; }
.reveal-section.is-visible .reveal-item[data-delay="7"] { transition-delay: 630ms; }
.reveal-section.is-visible .reveal-item[data-delay="8"] { transition-delay: 720ms; }

/* Section intro paragraph (used in problems, services, process, products) */
.section-intro {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    max-width: 680px;
    margin: -28px auto 56px;
    line-height: 1.65;
}

/* ==========================================================================
   PDF UPDATE — Problem Section ("What we solve")
   ========================================================================== */
.problem-section {
    background: var(--primary);
    padding: 100px 0;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px;
}

.problem-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 36px 28px 32px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s ease,
                background 0.35s ease,
                box-shadow 0.35s ease;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.problem-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 192, 199, 0.45);
    background: rgba(59, 192, 199, 0.04);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.problem-card:hover::before {
    width: 100%;
}

.problem-number {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.problem-card h3 {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.35;
}

.problem-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==========================================================================
   PDF UPDATE — Bento 6-services grid (3x2)
   ========================================================================== */
.bento-grid--six {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 18px;
}

.bento-grid--six .bento-item--flippable {
    min-height: 340px;
}

/* Tighter front face for the smaller 6-grid cards */
.bento-grid--six .bento-flip-front,
.bento-grid--six .bento-flip-back {
    padding: 26px 24px;
    overflow: hidden;
}

.bento-grid--six .bento-flip-front {
    justify-content: flex-start;
}

.bento-grid--six .bento-flip-front .bento-icon {
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.bento-grid--six .bento-flip-front h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.bento-grid--six .bento-flip-front p {
    font-size: 0.88rem;
    line-height: 1.55;
}

/* Compact back face so all 5 list items + heading fit comfortably */
.bento-grid--six .bento-flip-back {
    justify-content: flex-start;
}

.bento-grid--six .bento-flip-back .bento-icon {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.bento-grid--six .bento-flip-back h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.bento-grid--six .bento-back-list li {
    font-size: 0.82rem;
    padding: 6px 0;
    line-height: 1.45;
}

/* 5-services layout: 3 cards on the top row, 2 balanced below (desktop only).
   Uses a 6-col track so 3x span-2 fills row 1 and 2x span-3 fills row 2.
   Mobile keeps the .bento-grid--six single-column collapse. */
@media (min-width: 769px) {
    .bento-grid--five {
        grid-template-columns: repeat(6, 1fr);
    }
    .bento-grid--five .bento-item--flippable {
        grid-column: span 2;
    }
    .bento-grid--five .bento-item--flippable:nth-child(4),
    .bento-grid--five .bento-item--flippable:nth-child(5) {
        grid-column: span 3;
    }
}

/* ==========================================================================
   PDF UPDATE — Process Section (Timeline)
   ========================================================================== */
.process-section {
    background: var(--primary-light);
    padding: 100px 0;
}

.process-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 24px;
}

.process-line {
    position: absolute;
    top: 32px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(59, 192, 199, 0.05) 0%,
        rgba(59, 192, 199, 0.55) 12%,
        rgba(59, 192, 199, 0.55) 88%,
        rgba(59, 192, 199, 0.05) 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 200ms;
}

.process-section.is-visible .process-line {
    transform: scaleX(1);
}

.process-step {
    position: relative;
    text-align: center;
    padding: 0 8px;
}

.process-step__num {
    position: relative;
    display: inline-grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    place-items: center;
    width: 64px;
    height: 64px;
    padding: 11px;
    border-radius: 16px;
    background: var(--primary);
    border: 2px solid rgba(59, 192, 199, 0.35);
    margin-bottom: 22px;
    box-shadow: 0 0 0 6px var(--primary-light),
                0 0 24px rgba(59, 192, 199, 0.18);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.process-step__num .p-pip {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 7px rgba(59, 192, 199, 0.6);
}

.process-step:hover .process-step__num {
    border-color: var(--accent);
    box-shadow: 0 0 0 6px var(--primary-light),
                0 0 36px rgba(59, 192, 199, 0.45);
}

.process-step h3 {
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.process-step p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 240px;
    margin: 0 auto;
}

/* ==========================================================================
   PDF UPDATE — Products Section (Showcase)
   ========================================================================== */
.products-section {
    background: var(--primary);
    padding: 100px 0;
}

.products-rotator-wrap {
    display: flex;
    justify-content: center;
    margin: 0 auto 56px;
}

.products-section .bento-product-rotator {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.product-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 36px 32px 32px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.4s ease,
                background 0.4s ease,
                box-shadow 0.4s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 192, 199, 0.45);
    background: rgba(59, 192, 199, 0.04);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.product-card__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 14px;
    opacity: 0.85;
}

.product-card h3 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.product-card p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-card__line {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-card__line {
    width: 100%;
}

/* ==========================================================================
   PDF UPDATE — About Section (3 principles + split layout)
   ========================================================================== */
.nosotros .nosotros-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
}

.nosotros-text .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.nosotros-text .section-tag {
    text-align: left;
    display: block;
}

.nosotros-text p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 720px;
}

/* Remove the floating animation that conflicted with 3-card grid */
.nosotros .visual-card:first-child,
.nosotros .visual-card:last-child {
    animation: none;
}

/* ==========================================================================
   PDF UPDATE — Contact Section (split layout + extra fields)
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.contact-copy .section-tag,
.contact-copy .section-title {
    text-align: left;
}

.contact-copy .section-title {
    margin-bottom: 20px;
}

.contact-copy p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 460px;
}

.contact-form select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    color: var(--white);
    padding: 14px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, background 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.5) 50%),
                      linear-gradient(135deg, rgba(255,255,255,0.5) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.contact-form select:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(59, 192, 199, 0.06);
}

.contact-form select option {
    background: var(--primary);
    color: var(--white);
}

/* ==========================================================================
   PDF UPDATE — Focus States (accessibility)
   ========================================================================== */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
.bento-item--flippable:focus-visible,
.visual-card:focus-visible,
.problem-card:focus-visible,
.product-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
}

/* ==========================================================================
   PDF UPDATE — Tablet (max-width: 992px)
   ========================================================================== */
@media (max-width: 992px) {
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bento-grid--six {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-left: 40px;
    }

    .process-line {
        top: 0;
        bottom: 0;
        left: 30px;
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg,
            rgba(59, 192, 199, 0.05) 0%,
            rgba(59, 192, 199, 0.55) 12%,
            rgba(59, 192, 199, 0.55) 88%,
            rgba(59, 192, 199, 0.05) 100%);
        transform: scaleY(0);
        transform-origin: top center;
        transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 200ms;
    }

    .process-section.is-visible .process-line {
        transform: scaleY(1);
    }

    .process-step {
        text-align: left;
        padding-left: 32px;
        position: relative;
    }

    .process-step__num {
        position: absolute;
        left: -42px;
        top: 0;
        width: 52px;
        height: 52px;
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    .process-step p {
        max-width: 100%;
        margin: 0;
    }

    .product-showcase {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .nosotros-visual {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PDF UPDATE — Mobile (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    section {
        padding: 72px 0;
    }

    .section-intro {
        font-size: 0.95rem;
        margin: -20px auto 40px;
        padding: 0 8px;
    }

    .bento-grid--six {
        grid-template-columns: 1fr;
    }

    .bento-grid--six .bento-item--flippable {
        min-height: auto;
    }

    .problem-section,
    .process-section,
    .products-section {
        padding: 72px 0;
    }

    .problem-card,
    .product-card {
        padding: 28px 22px;
    }

    .product-showcase {
        gap: 14px;
    }

    .product-card h3 {
        font-size: 1.2rem;
    }

    /* Reduce hero domino noise on mobile */
    .dominos-container .domino:nth-child(n+6) {
        display: none;
    }

    /* Reduce stagger so mobile reveal doesn't feel slow */
    .reveal-section.is-visible .reveal-item[data-delay="0"],
    .reveal-section.is-visible .reveal-item[data-delay="1"],
    .reveal-section.is-visible .reveal-item[data-delay="2"],
    .reveal-section.is-visible .reveal-item[data-delay="3"],
    .reveal-section.is-visible .reveal-item[data-delay="4"],
    .reveal-section.is-visible .reveal-item[data-delay="5"],
    .reveal-section.is-visible .reveal-item[data-delay="6"],
    .reveal-section.is-visible .reveal-item[data-delay="7"],
    .reveal-section.is-visible .reveal-item[data-delay="8"] {
        transition-delay: 0ms;
    }

    /* Hero buttons stack full-width */
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   PDF UPDATE — Reduced Motion fallback
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .reveal-section .reveal-item {
        opacity: 1 !important;
        transform: none !important;
    }

    .process-line {
        transform: scaleX(1) !important;
    }
}

/* (Section color-coding reverted — single teal accent / original look kept) */

/* Contact form — prevent grid/flex items from overflowing their cell on mobile
   (min-width:auto stops them shrinking; force min-width:0 + max-width:100%). */
.contact-form { min-width: 0; }
.form-row,
.form-row > * { min-width: 0; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

