@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --accent-color: #F4EB24;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #000;
    color: #fff;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* HERO */
.hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    min-height: 100svh;
    background: #000;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    filter: contrast(1.05) brightness(0.9);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    padding: 60px 20px 90px;
}

.hero-logo {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.hero-logo img {
    width: clamp(220px, 28vw, 420px);
    max-width: calc(100vw - 40px);
    height: auto;
    display: block;
}

.hero-text {
    width: 100%;
    max-width: 100%;
    text-align: center;
    overflow: hidden;
}

.hero-text h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.2rem, 8vw, 6rem);
    letter-spacing: 0.08em;
    color: #fff;
    line-height: 0.95;

    max-width: 100%;
    overflow-wrap: normal;
}

.hero-text p {
    font-family: 'DM Sans', sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.85);
    margin-top: 10px;

    max-width: 100%;
}

/* HERO — ajuste móvil para evitar overflow horizontal */
@media (max-width: 768px) {
    .hero-content {
        padding: 70px 16px 80px;
    }

    .hero-logo img {
        width: min(220px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
    }

    .hero-text h1 {
        font-size: clamp(2.7rem, 12vw, 3.4rem);
        letter-spacing: 0.045em;
        max-width: calc(100vw - 32px);
        margin-inline: auto;
        white-space: normal;
    }

    .hero-text p {
        font-size: clamp(1rem, 4.5vw, 1.25rem);
        letter-spacing: 0.045em;
        max-width: calc(100vw - 32px);
        margin-inline: auto;
    }
}

/* WRAPPER BLANCO */
.section-white {
    background: #fff;
    color: #000;
    padding: 120px 20px;
}

.section-content {
    max-width: 720px;
    margin: 0 auto;
}

.subheading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 12px;
}

.section-white .section-content p.section-white-big-text {
    font-family: 'DM Sans', sans-serif !important;
    font-size: clamp(1.8rem, 3.6vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: 0.015em;
    
    margin: 0;
}

/* =========================
   GLITCH BASE
   ========================= */

.glitch {
    position: relative;
    display: inline-block;
}

.glitch span {
    display: block;
    position: relative;
}

.layers {
    position: relative;
}

.layers::before,
.layers::after {
    content: attr(data-text);
    position: absolute;
    width: 110%;
    z-index: -1;
    pointer-events: none;
}

.layers::before {
    top: 10px;
    left: 15px;
    color: #e0287d;
}

.layers::after {
    top: 5px;
    left: -10px;
    color: #1bc7fb;
}

/* =========================
   GLITCH KEYFRAMES GENERALES
   necesarios para el glitch agresivo
   ========================= */

@keyframes paths {
  0% { clip-path: polygon(0% 43%,83% 43%,83% 22%,23% 22%,23% 24%,91% 24%,91% 26%,18% 26%,18% 83%,29% 83%,29% 17%,41% 17%,41% 39%,18% 39%,18% 82%,54% 82%,54% 88%,19% 88%,19% 4%,39% 4%,39% 14%,76% 14%,76% 52%,23% 52%,23% 35%,19% 35%,19% 8%,36% 8%,36% 31%,73% 31%,73% 16%,1% 16%,1% 56%,50% 56%,50% 8%); }
  5% { clip-path: polygon(0% 29%,44% 29%,44% 83%,94% 83%,94% 56%,11% 56%,11% 64%,94% 64%,94% 70%,88% 70%,88% 32%,18% 32%,18% 96%,10% 96%,10% 62%,9% 62%,9% 84%,68% 84%,68% 50%,52% 50%,52% 55%,35% 55%,35% 87%,25% 87%,25% 39%,15% 39%,15% 88%,52% 88%); }
  30% { clip-path: polygon(0% 53%,93% 53%,93% 62%,68% 62%,68% 37%,97% 37%,97% 89%,13% 89%,13% 45%,51% 45%,51% 88%,17% 88%,17% 54%,81% 54%,81% 75%,79% 75%,79% 76%,38% 76%,38% 28%,61% 28%,61% 12%,55% 12%,55% 62%,68% 62%,68% 51%,0% 51%,0% 92%,63% 92%,63% 4%,65% 4%); }
  45% { clip-path: polygon(0% 33%,2% 33%,2% 69%,58% 69%,58% 94%,55% 94%,55% 25%,33% 25%,33% 85%,16% 85%,16% 19%,5% 19%,5% 20%,79% 20%,79% 96%,93% 96%,93% 50%,5% 50%,5% 74%,55% 74%,55% 57%,96% 57%,96% 59%,87% 59%,87% 65%,82% 65%,82% 39%,63% 39%,63% 92%,4% 92%,4% 36%,24% 36%,24% 70%,1% 70%,1% 43%,15% 43%,15% 28%,23% 28%,23% 71%,90% 71%,90% 86%,97% 86%,97% 1%,60% 1%,60% 67%,71% 67%,71% 91%,17% 91%,17% 14%,39% 14%,39% 30%,58% 30%,58% 11%,52% 11%,52% 83%,68% 83%); }
  76% { clip-path: polygon(0% 26%,15% 26%,15% 73%,72% 73%,72% 70%,77% 70%,77% 75%,8% 75%,8% 42%,4% 42%,4% 61%,17% 61%,17% 12%,26% 12%,26% 63%,73% 63%,73% 43%,90% 43%,90% 67%,50% 67%,50% 41%,42% 41%,42% 46%,50% 46%,50% 84%,96% 84%,96% 78%,49% 78%,49% 25%,63% 25%,63% 14%); }
  90% { clip-path: polygon(0% 41%,13% 41%,13% 6%,87% 6%,87% 93%,10% 93%,10% 13%,89% 13%,89% 6%,3% 6%,3% 8%,16% 8%,16% 79%,0% 79%,0% 99%,92% 99%,92% 90%,5% 90%,5% 60%,0% 60%,0% 48%,89% 48%,89% 13%,80% 13%,80% 43%,95% 43%,95% 19%,80% 19%,80% 85%,38% 85%,38% 62%); }
  1%,7%,33%,47%,78%,93% { clip-path: none; }
}

@keyframes opacity {
  0% { opacity: 0.1; }
  5% { opacity: 0.7; }
  30% { opacity: 0.4; }
  45% { opacity: 0.6; }
  76% { opacity: 0.4; }
  90% { opacity: 0.8; }
  1%,7%,33%,47%,78%,93% { opacity: 0; }
}

@keyframes movement {
  0% { top: 0px; left: -20px; }
  15% { top: 10px; left: 10px; }
  60% { top: 5px; left: -10px; }
  75% { top: -5px; left: 20px; }
  100% { top: 10px; left: 5px; }
}

@keyframes font {
  0% { font-weight: 100; color: #e0287d; filter: blur(3px); }
  20% { font-weight: 500; color: #fff; filter: blur(0); }
  50% { font-weight: 300; color: #1bc7fb; filter: blur(2px); }
  60% { font-weight: 700; color: #fff; filter: blur(0); }
  90% { font-weight: 500; color: #e0287d; filter: blur(6px); }
}

/* =========================================
   PORTFOLIO GLITCH:
   MÁS AGRESIVO
   SOLO EN ENTRADA / SALIDA
   ========================================= */

.portfolio-section .card-glitch-target.glitch {
    display: inline-block;
    position: relative;
    isolation: isolate;
    will-change: transform, opacity, filter;
}

.portfolio-section .card-glitch-target.glitch > span {
    position: relative;
    z-index: 2;
    display: inline-block;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
}

.portfolio-section .card-glitch-target.glitch::before,
.portfolio-section .card-glitch-target.glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
    animation: none !important;
    opacity: 0 !important;
    clip-path: none !important;
    transform: none !important;
    filter: none !important;
    mix-blend-mode: screen;
}

.portfolio-section .card-glitch-target.glitch::before {
    color: #ff2a8a;
    text-shadow: -2px 0 0 rgba(255, 42, 138, 0.45);
}

.portfolio-section .card-glitch-target.glitch::after {
    color: #29d3ff;
    text-shadow: 2px 0 0 rgba(41, 211, 255, 0.45);
}

/* GLITCH IN */

.portfolio-section .card-glitch-target.card-glitch-in.glitch > span {
    animation:
        paths 120ms step-end infinite,
        cardGlitchInAggressive 280ms steps(2, end) both !important;
}

.portfolio-section .card-glitch-target.card-glitch-in.glitch::before {
    opacity: 1 !important;
    animation:
        paths 95ms step-end infinite,
        opacity 160ms step-end infinite,
        font 220ms step-end infinite,
        movement 120ms step-end infinite,
        cardLayerBeforeInAggressive 280ms steps(2, end) both !important;
}

.portfolio-section .card-glitch-target.card-glitch-in.glitch::after {
    opacity: 1 !important;
    animation:
        paths 90ms step-end infinite,
        opacity 150ms step-end infinite,
        font 210ms step-end infinite,
        movement 115ms step-end infinite,
        cardLayerAfterInAggressive 280ms steps(2, end) both !important;
}

/* GLITCH OUT */

.portfolio-section .card-glitch-target.card-glitch-out.glitch > span {
    animation:
        paths 120ms step-end infinite,
        cardGlitchOutAggressive 190ms steps(2, end) forwards !important;
}

.portfolio-section .card-glitch-target.card-glitch-out.glitch::before {
    opacity: 1 !important;
    animation:
        paths 130ms step-end infinite,
        opacity 220ms step-end infinite,
        font 320ms step-end infinite,
        movement 180ms step-end infinite,
        cardLayerBeforeOutAggressive 280ms steps(2, end) forwards !important;
}

.portfolio-section .card-glitch-target.card-glitch-out.glitch::after {
    opacity: 1 !important;
    animation:
        paths 90ms step-end infinite,
        opacity 150ms step-end infinite,
        font 210ms step-end infinite,
        movement 115ms step-end infinite,
        cardLayerAfterOutAggressive 190ms steps(2, end) forwards !important;
}

@keyframes cardGlitchInAggressive {
    0% { opacity: 0; transform: translate3d(-10px, 8px, 0) skewX(10deg) scale(0.96); filter: blur(1.2px); }
    12% { opacity: 0.35; transform: translate3d(8px, -3px, 0) skewX(-14deg) scale(1.03); }
    24% { opacity: 0.7; transform: translate3d(-6px, 2px, 0) skewX(9deg) scale(0.98); }
    38% { opacity: 1; transform: translate3d(5px, -2px, 0) skewX(-7deg) scale(1.02); }
    55% { transform: translate3d(-3px, 1px, 0) skewX(5deg) scale(0.995); filter: blur(0.4px); }
    72% { transform: translate3d(2px, -1px, 0) skewX(-3deg) scale(1.005); }
    100% { opacity: 1; transform: translate3d(0, 0, 0) skewX(0) scale(1); filter: blur(0); }
}

@keyframes cardGlitchOutAggressive {
    0% { opacity: 1; transform: translate3d(0, 0, 0) skewX(0) scale(1); filter: blur(0); }
    18% { opacity: 1; transform: translate3d(4px, -1px, 0) skewX(-5deg) scale(1.01); }
    38% { opacity: 0.92; transform: translate3d(-6px, 2px, 0) skewX(10deg) scale(0.985); filter: blur(0.6px); }
    62% { opacity: 0.72; transform: translate3d(8px, -3px, 0) skewX(-14deg) scale(1.025); filter: blur(1px); }
    100% { opacity: 0; transform: translate3d(-12px, 8px, 0) skewX(16deg) scale(0.94); filter: blur(1.4px); }
}

@keyframes cardLayerBeforeInAggressive {
    0% { opacity: 0; transform: translate3d(-16px, 2px, 0) skewX(18deg) scaleX(1.04); filter: blur(0.8px); }
    20% { opacity: 0.95; transform: translate3d(10px, -2px, 0) skewX(-18deg) scaleX(0.97); }
    45% { opacity: 0.75; transform: translate3d(-7px, 1px, 0) skewX(10deg) scaleX(1.02); }
    100% { opacity: 0; transform: translate3d(0, 0, 0) skewX(0) scaleX(1); filter: blur(0); }
}

@keyframes cardLayerAfterInAggressive {
    0% { opacity: 0; transform: translate3d(16px, -2px, 0) skewX(-18deg) scaleX(0.96); filter: blur(0.8px); }
    18% { opacity: 0.95; transform: translate3d(-11px, 2px, 0) skewX(17deg) scaleX(1.03); }
    42% { opacity: 0.78; transform: translate3d(6px, -1px, 0) skewX(-10deg) scaleX(0.99); }
    100% { opacity: 0; transform: translate3d(0, 0, 0) skewX(0) scaleX(1); filter: blur(0); }
}

@keyframes cardLayerBeforeOutAggressive {
    0% { opacity: 0; transform: translate3d(0, 0, 0) skewX(0) scaleX(1); }
    18% { opacity: 0.85; transform: translate3d(-8px, 1px, 0) skewX(10deg) scaleX(1.03); }
    50% { opacity: 1; transform: translate3d(12px, -2px, 0) skewX(-16deg) scaleX(0.96); filter: blur(0.9px); }
    100% { opacity: 0; transform: translate3d(-18px, 4px, 0) skewX(20deg) scaleX(1.06); filter: blur(1.1px); }
}

@keyframes cardLayerAfterOutAggressive {
    0% { opacity: 0; transform: translate3d(0, 0, 0) skewX(0) scaleX(1); }
    18% { opacity: 0.85; transform: translate3d(8px, -1px, 0) skewX(-10deg) scaleX(0.98); }
    50% { opacity: 1; transform: translate3d(-12px, 2px, 0) skewX(16deg) scaleX(1.04); filter: blur(0.9px); }
    100% { opacity: 0; transform: translate3d(18px, -4px, 0) skewX(-20deg) scaleX(0.94); filter: blur(1.1px); }
}

.portfolio-title {
    position: relative;
    z-index: 2;
}

/* PORTFOLIO */
.portfolio-section {
    padding: 100px 0;
    position: relative;
    background: var(--primary-dark);
    min-height: 100vh;

    display: flex;
    flex-direction: column;

   
    align-items: stretch;

    /* opcional */
    justify-content: flex-start;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 4vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
    line-height: 0.95;
    color: #f2f2f2;
    text-transform: uppercase;
}

.section-subtitle {
    font-family: 'DM Sans', sans-serif;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.coverflow-wrapper {
    width: 100%;
    position: relative;
    padding: 40px 0 80px;
}

.coverflow-container {
    width: 900px;
    max-width: 90vw;
    height: clamp(350px, 45vh, 500px);
    position: relative;
    transform-style: preserve-3d;
    margin: 0 auto;
    perspective: 1200px;
}

.coverflow-item {
    position: absolute;
    width: clamp(300px, 36vh, 430px);
    aspect-ratio: 1 / 1;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

@media (min-height: 900px) {
    .coverflow-container {
        height: clamp(520px, 56vh, 640px);
    }

    .coverflow-item {
        width: clamp(340px, 40vh, 460px);
    }
}

@media (max-width: 768px) {
    .coverflow-container {
        width: 100%;
        max-width: 100vw;
        height: clamp(380px, 74vw, 520px);
    }

    .coverflow-item {
        width: clamp(280px, 82vw, 360px);
    }
}

@media (max-width: 480px) {
    .coverflow-container {
        height: clamp(360px, 88vw, 500px);
    }

    .coverflow-item {
        width: clamp(260px, 86vw, 340px);
    }
}

.coverflow-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    transform: scaleY(-1) translateY(1px);
    opacity: 0.15;
    filter: blur(2px);
    mask: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.2) 20%,
            rgba(0, 0, 0, 0.1) 40%,
            transparent 60%);
    -webkit-mask: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.2) 20%,
            rgba(0, 0, 0, 0.1) 40%,
            transparent 60%);
    pointer-events: none;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.coverflow-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 14px 16px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.08) 82%,
        rgba(0, 0, 0, 0) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.coverflow-item .portfolio-title,
.coverflow-item .portfolio-author,
.coverflow-item .portfolio-description {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        max-height 0.22s ease;
}

.coverflow-item.is-text-visible .portfolio-title,
.coverflow-item.is-text-visible .portfolio-author,
.coverflow-item.is-text-visible .portfolio-description {
    opacity: 1;
    max-height: 140px;
    overflow: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.portfolio-category {
    display: inline-block;
    opacity: 1;
    max-height: none;
    overflow: visible;
    pointer-events: auto;
    transform: none;
    background: #1a1a1a;
    color: #F4EB24;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.portfolio-overlay .portfolio-category + .portfolio-category {
    margin-top: -2px;
}

.portfolio-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    padding-top: 0.08em;
    margin-bottom: 8px;
    color: var(--text-light);
}

.portfolio-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.45;
}

.portfolio-author {
    margin: 4px 0 8px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 768px) {
    .coverflow-item:hover .portfolio-title,
    .coverflow-item:hover .portfolio-author,
    .coverflow-item:hover .portfolio-description {
        opacity: 0;
        max-height: 0;
        transform: translateY(8px);
    }

    .coverflow-item.is-text-visible .portfolio-title,
    .coverflow-item.is-text-visible .portfolio-author,
    .coverflow-item.is-text-visible .portfolio-description {
        opacity: 1;
        max-height: 140px;
        transform: translateY(0);
    }

    .coverflow-item .portfolio-category,
    .coverflow-item:hover .portfolio-category,
    .coverflow-item.is-text-visible .portfolio-category {
        opacity: 1;
        max-height: none;
        overflow: visible;
        pointer-events: auto;
        transform: none;
    }

    .coverflow-item,
    .coverflow-item * {
        -webkit-tap-highlight-color: transparent;
    }

    .coverflow-item {
        outline: none;
        -webkit-user-select: none;
        user-select: none;
    }

    .coverflow-item:focus,
    .coverflow-item:active,
    .coverflow-item:focus-visible,
    .coverflow-item img:focus,
    .coverflow-item img:active,
    .coverflow-item img:focus-visible {
        outline: none;
        box-shadow: none;
    }
}

.coverflow-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.control-btn {
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.control-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-dark);
    transform: scale(1.1);
}

#playPauseBtn {
    padding-left: 0;
    font-size: 20px;
    line-height: 1;
}

#playPauseBtn.is-link {
    padding-left: 0;
}

.indicators {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #F4EB24;
}


/* =========================
   SERVICES / AUDITY-STYLE
   ========================= */

.mxt-services-section {
    background: #fff;
    color: #000;
    padding: clamp(90px, 10vw, 150px) 20px;
}

.mxt-services-wrapper {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(520px, 1.2fr) minmax(0, 1fr);
    grid-template-areas:
        "intro industries"
        "preview industries";
    column-gap: clamp(60px, 8vw, 130px);
    row-gap: 48px;
    align-items: start;
}

.mxt-services-intro {
    grid-area: intro;
}

.mxt-services-preview {
    grid-area: preview;
}

.mxt-industries {
    grid-area: industries;
}

.mxt-services-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
    font-weight: 400;
}

.mxt-services-kicker {
    margin-top: 18px;
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.35;
    color: rgba(0,0,0,0.58);
}

.mxt-industries {
    list-style: none;
    counter-reset: services;
}

.mxt-industries-item {
    counter-increment: services;
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.18);
    padding: clamp(18px, 2vw, 28px) 0 clamp(18px, 2vw, 28px) clamp(48px, 5vw, 84px);
}

.mxt-industries-item:last-child {
    border-bottom: 1px solid rgba(0,0,0,0.18);
}

.mxt-services-preview {
    position: relative;
    width: 100%;

    /* PROPORCIÓN VERTICAL */
    aspect-ratio: 2 / 3;

    /* LÍMITES para que no se vuelva gigante */
    max-height: 720px;
    min-height: 480px;

    overflow: hidden;
    background: #000;
    justify-self: start;
}


.mxt-services-preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transform: scale(1.08);
    

    transition:
        opacity 420ms ease,
        transform 900ms cubic-bezier(0.23, 1, 0.32, 1),
        filter 600ms ease;
}

/* ACTIVO */
.mxt-services-preview-img.is-active {
    opacity: 1;
    transform: scale(1);
    filter: grayscale(0%) contrast(1.1) brightness(1);
}

@media (max-width: 768px) {
    .mxt-services-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "industries";
        gap: 44px;
    }

    .mxt-services-preview {
        display: none;
    }

    .mxt-industries-item {
        padding-left: 42px;
    }

    .mxt-industries-title {
        font-size: clamp(2rem, 12vw, 3.8rem);
    }

    .mxt-industries-item.is-active .mxt-industries-content {
        max-height: 900px;
    }
}



    /* Imagen por servicio: solo móvil */
.mxt-industries-mobile-img {
    display: none;
}

@media (max-width: 768px) {
    .mxt-industries-mobile-img {
        display: block;
        width: 100%;

        /* dejamos que la imagen mande */
        height: auto;

        /* CLAVE: mostrar completa */
        object-fit: contain;

        margin-top: 22px;

        background: #000;

        /* opcional: mantiene estética */
        filter: grayscale(10%) contrast(1.05) brightness(0.95);
    }
}

/* BULLETS DE COLOR — SOLO ACTIVO */

.mxt-industries-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: clamp(26px, 2vw, 36px);
    width: 14px;
    height: 14px;
    border-radius: 2px;

    background: rgba(0, 0, 0, 0.24) !important;
    transition: background 240ms ease, opacity 240ms ease;
}

/* Estado NO activo: SIEMPRE gris/negro */
.mxt-industries-item:not(.is-active)::before {
    background: rgba(0, 0, 0, 0.521) !important;
}

/* Estado activo: color por servicio */
.mxt-industries-item.is-active:nth-child(1)::before { background: #DE184D !important; } /* Producción */
.mxt-industries-item.is-active:nth-child(2)::before { background: #F26622 !important; } /* Posproducción */
.mxt-industries-item.is-active:nth-child(3)::before { background: #5271FF !important; } /* Música */
.mxt-industries-item.is-active:nth-child(4)::before { background: #339989 !important; } /* Marcas */
.mxt-industries-item.is-active:nth-child(5)::before { background: #d66ad5 !important; } /* Localización */
.mxt-industries-item.is-active:nth-child(6)::before { background: #6B18DB !important; } /* Renta */


.mxt-industries-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    width: 100%;
    padding: 0;
    text-align: left;
    cursor: pointer;
    color: rgba(0,0,0,0.38);
    transition: color 240ms ease;
}

.mxt-industries-item.is-active .mxt-industries-toggle,
.mxt-industries-toggle:hover {
    color: #000;
}

.mxt-industries-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.3rem, 5vw, 5.2rem);
    line-height: 0.9;
    letter-spacing: 0.01em;
    font-weight: 400;
}

.mxt-industries-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        max-height 420ms cubic-bezier(0.165, 0.84, 0.44, 1),
        opacity 260ms ease,
        transform 260ms ease;
}

.mxt-industries-item.is-active .mxt-industries-content {
    max-height: 1200px;
    opacity: 1;
    transform: translateY(0);
}

.mxt-industries-content p {
    max-width: 620px;
    padding-top: 18px;
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.7;
    color: rgba(0,0,0,0.72);
}

/* MOBILE */
@media (max-width: 768px) {
    .mxt-services-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "industries";
        gap: 44px;
    }

    .mxt-services-preview {
        display: none;
    }

    .mxt-industries-item {
        padding-left: 42px;
    }

    .mxt-industries-title {
        font-size: clamp(2rem, 12vw, 3.8rem);
    }

    .mxt-industries-item.is-active .mxt-industries-content {
        max-height: 1200px;
    }
}

@media (max-width: 768px) {
    .mxt-industries-item {
        scroll-margin-top: 0;
    }
}

/* FIX tamaño título portafolio */
.portfolio-section .section-title {
    font-size: clamp(3.2rem, 8vw, 6rem) !important;
}

/* =========================
   SOBRE NOSOTROS
   ========================= */

.about-section {
    background: #0a0a0a;
    color: #fff;
    padding: clamp(90px, 10vw, 150px) 20px;
}

.about-wrapper {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
    gap: clamp(50px, 8vw, 120px);
    align-items: center;
}

.about-image {
    width: 100%;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: clamp(520px, 48vw, 720px);
    object-fit: contain;
    display: block;

    filter: grayscale(1);
    transition: filter 0.4s ease, transform 0.6s ease;
}

/* Hover desktop */
.about-image:hover img {
    filter: grayscale(0);
    transform: scale(1.02);
}
.about-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.2rem, 8vw, 6rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
    font-weight: 400;
    margin-bottom: 36px;
}

.about-content p {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.7;
    color: rgba(255,255,255,0.72);
    margin-bottom: 28px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* MOBILE */
@media (max-width: 768px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .about-image {
        overflow: visible;
    }

    .about-image img {
        width: 100%;
        height: auto !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        object-position: center !important;
    }
}

/* SOBRE NOSOTROS — imagen a la derecha */
.about-section .about-wrapper {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
}

.about-image {
    order: 2;
}

.about-content {
    order: 1;
}

/* Tap móvil */
.about-image:active img {
    filter: grayscale(0);
}

/* =========================
   CONTACTO AMARILLO
   ========================= */

.contact-section {
    background: #F4EB24;
    color: #000;
    padding: clamp(80px, 9vw, 130px) 30px;
}

.contact-container {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.75fr) minmax(320px, 1fr);
    gap: clamp(38px, 6vw, 90px);
    align-items: start;
    text-align: left;
}

.contact-copy h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
    font-weight: 400;
    color: #000;
    margin: 0 0 24px;
}

.contact-lead {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    line-height: 1.45;
    font-weight: 800;
    font-style: italic;
    color: #000;
    max-width: 420px;
    margin: 0 0 26px;
}

.contact-text {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.65;
    color: rgba(0,0,0,0.78);
    max-width: 420px;
    margin: 0 0 34px;
}

.contact-details {
    display: grid;
    gap: 24px;
}

.contact-detail-block h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1;
    letter-spacing: 0.02em;
    color: #000;
    margin: 0 0 8px;
}

.contact-detail-block p,
.contact-detail-block a {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.45;
    color: #000;
    text-decoration: none;
}

/* REDES: MISMO EFECTO DEL SITIO ANTERIOR, CUADRADAS */
.contact-social-links {
    display: flex;              /* fuerza layout horizontal */
    flex-direction: row;        /* en fila */
    align-items: center;
    justify-content: flex-start;
    gap: 14px;                  /* separación entre botones */
    margin: 0;
}

.contact-section .social-link {
    position: relative;
    overflow: hidden;
    width: 45px;
    height: 45px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border: 1px solid #000;
    transition: all 0.25s ease;
}

.contact-section .social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 0%;
    background: #fff;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.contact-section .social-link:hover::before,
.contact-section .social-link:active::before {
    width: 100%;
    height: 100%;
}

.contact-section .social-link svg {
    width: 20px;
    height: 20px;
    fill: #F4EB24;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.contact-section .social-link:hover,
.contact-section .social-link:active {
    border-color: #000;
    transform: translateY(-3px);
}

.contact-section .social-link:hover svg,
.contact-section .social-link:active svg {
    fill: #000;
}

/* FORMULARIO */
.contact-form {
    display: grid;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 0;
    background: #fff;
    color: #000;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    padding: 14px 16px;
    outline: none;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #000;
}

.contact-form button {
    justify-self: start;
    border: 0;
    background: #000;
    color: #fff;
    padding: 14px 30px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.contact-form button:hover,
.contact-form button:active {
    transform: translateY(-3px);
    background: #fff;
    color: #000;
}

.contact-status {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #000;
    min-height: 1.2em;
}

/* MOBILE */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .contact-form button {
        width: 100%;
    }
}




/* =========================
   HERO —  TEXTO INVERTIDO (COMENTADO PERO NO OLVIDADO)
   ========================= */

/*
.hero {
    isolation: isolate;
}

.hero-bg {
    z-index: 0;
}

.hero-bg img {
    opacity: 1 !important;
    filter: none !important;
}

.hero-content {
    z-index: 2;
    mix-blend-mode: difference !important;
    isolation: auto !important;
}

.hero-logo,
.hero-logo img,
.hero-text,
.hero-text h1,
.hero-text p {
    mix-blend-mode: normal !important;
    filter: none !important;
}

.hero-logo img {
    opacity: 1 !important;
}

.hero-text h1,
.hero-text p {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
*/


/* =========================
   PORTFOLIO — ALIGN LEFT
   ========================= */

.portfolio-section .section-header {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto 60px;
    padding: 0 20px;

    text-align: left;

    display: block; /* fuerza layout normal */
}

.portfolio-section .section-title {
    text-align: left !important;
}

.portfolio-section .section-subtitle {
    text-align: left !important;
    margin: 0; /* quita el centrado */
}

/* =========================
   CHLADNI HERO — SPRITE + REACTIVE CANVAS
   ========================= */

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #000;
    overflow: hidden;
    cursor: crosshair;
}

.chladni-sprite {
    position: absolute;
    inset: -6%;
    z-index: 0;

    background-image: url("imagenes/chladni/345-sprite.png");
    background-repeat: no-repeat;

    /* Para sprite 8x8 */
    background-size: 800% 800%;

    opacity: 0.92;
    filter: contrast(1.35) brightness(0.92);
    transform: scale(1.05);

    animation: chladniSpriteLoop 2600ms steps(64) infinite;

    will-change: background-position, transform, filter;
    pointer-events: none;
}

.hero-bg.is-disturbed .chladni-sprite {
    filter: contrast(1.65) brightness(1.05);
    transform: scale(1.07);
}

@keyframes chladniSpriteLoop {
    0%   { background-position: 0% 0%; }
    1.5625% { background-position: 14.2857% 0%; }
    3.125% { background-position: 28.5714% 0%; }
    4.6875% { background-position: 42.8571% 0%; }
    6.25% { background-position: 57.1428% 0%; }
    7.8125% { background-position: 71.4285% 0%; }
    9.375% { background-position: 85.7142% 0%; }
    10.9375% { background-position: 100% 0%; }

    12.5% { background-position: 0% 14.2857%; }
    14.0625% { background-position: 14.2857% 14.2857%; }
    15.625% { background-position: 28.5714% 14.2857%; }
    17.1875% { background-position: 42.8571% 14.2857%; }
    18.75% { background-position: 57.1428% 14.2857%; }
    20.3125% { background-position: 71.4285% 14.2857%; }
    21.875% { background-position: 85.7142% 14.2857%; }
    23.4375% { background-position: 100% 14.2857%; }

    25% { background-position: 0% 28.5714%; }
    26.5625% { background-position: 14.2857% 28.5714%; }
    28.125% { background-position: 28.5714% 28.5714%; }
    29.6875% { background-position: 42.8571% 28.5714%; }
    31.25% { background-position: 57.1428% 28.5714%; }
    32.8125% { background-position: 71.4285% 28.5714%; }
    34.375% { background-position: 85.7142% 28.5714%; }
    35.9375% { background-position: 100% 28.5714%; }

    37.5% { background-position: 0% 42.8571%; }
    39.0625% { background-position: 14.2857% 42.8571%; }
    40.625% { background-position: 28.5714% 42.8571%; }
    42.1875% { background-position: 42.8571% 42.8571%; }
    43.75% { background-position: 57.1428% 42.8571%; }
    45.3125% { background-position: 71.4285% 42.8571%; }
    46.875% { background-position: 85.7142% 42.8571%; }
    48.4375% { background-position: 100% 42.8571%; }

    50% { background-position: 0% 57.1428%; }
    51.5625% { background-position: 14.2857% 57.1428%; }
    53.125% { background-position: 28.5714% 57.1428%; }
    54.6875% { background-position: 42.8571% 57.1428%; }
    56.25% { background-position: 57.1428% 57.1428%; }
    57.8125% { background-position: 71.4285% 57.1428%; }
    59.375% { background-position: 85.7142% 57.1428%; }
    60.9375% { background-position: 100% 57.1428%; }

    62.5% { background-position: 0% 71.4285%; }
    64.0625% { background-position: 14.2857% 71.4285%; }
    65.625% { background-position: 28.5714% 71.4285%; }
    67.1875% { background-position: 42.8571% 71.4285%; }
    68.75% { background-position: 57.1428% 71.4285%; }
    70.3125% { background-position: 71.4285% 71.4285%; }
    71.875% { background-position: 85.7142% 71.4285%; }
    73.4375% { background-position: 100% 71.4285%; }

    75% { background-position: 0% 85.7142%; }
    76.5625% { background-position: 14.2857% 85.7142%; }
    78.125% { background-position: 28.5714% 85.7142%; }
    79.6875% { background-position: 42.8571% 85.7142%; }
    81.25% { background-position: 57.1428% 85.7142%; }
    82.8125% { background-position: 71.4285% 85.7142%; }
    84.375% { background-position: 85.7142% 85.7142%; }
    85.9375% { background-position: 100% 85.7142%; }

    87.5% { background-position: 0% 100%; }
    89.0625% { background-position: 14.2857% 100%; }
    90.625% { background-position: 28.5714% 100%; }
    92.1875% { background-position: 42.8571% 100%; }
    93.75% { background-position: 57.1428% 100%; }
    95.3125% { background-position: 71.4285% 100%; }
    96.875% { background-position: 85.7142% 100%; }
    100% { background-position: 100% 100%; }
}

.chladni-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    background: transparent;
    pointer-events: auto;
}

.chladni-frequency-label {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 3;

    background: #000;
    color: #ffffff5b;

    padding: 8px 12px;

    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;

    pointer-events: none;
}

@media (max-width: 768px) {
    .chladni-sprite {
        inset: -12%;
        opacity: 0.86;
        transform: scale(1.12);
        animation-duration: 3200ms;
    }

    .chladni-frequency-label {
        left: 14px;
        bottom: 14px;
        font-size: 0.75rem;
    }
}

/* =========================
   SOBRE NOSOTROS — FIX MÓVIL
   ========================= */

@media (max-width: 768px) {
    .about-section {
        padding: 80px 20px;
    }

    .about-section .about-wrapper {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        gap: 36px;
    }

    .about-content {
        order: 1 !important;
        width: 100%;
    }

    .about-image {
        order: 2 !important;
        width: 100%;
    }

    .about-content h2 {
        font-size: clamp(3.5rem, 18vw, 5.5rem);
        margin-bottom: 28px;
    }

    .about-content p {
        width: 100%;
        max-width: none;
        font-size: 1.15rem;
        line-height: 1.65;
        margin-bottom: 24px;
        color: rgba(255,255,255,0.78);
    }

    .about-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        object-position: center;
    }
}

/* =========================
   CONTACTO — ORDEN MÓVIL CORRECTO
   ========================= */

@media (max-width: 900px) {
    .contact-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    /* Rompe el contenedor para poder ordenar sus hijos */
    .contact-copy {
        display: contents !important;
    }

    .contact-copy h2 {
        order: 1;
    }

    .contact-lead {
        order: 2;
    }

    .contact-text {
        order: 3;
    }

    .contact-form {
        order: 4;
        width: 100% !important;
        margin-top: 34px;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        width: 100% !important;
    }

    .contact-details {
        order: 5;
        margin-top: 70px;
    }

    .contact-social-links {
        order: 6;
        margin-top: 32px;
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start;
        gap: 14px;
    }
}

/* =========================
   FIXED UI — LOGO + MENU
   Desktop: aparece después del banner
   Mobile: siempre visible
   ========================= */

/* LOGO FIJO */
.mxt-fixed-logo {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 99999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0.35s ease;

    mix-blend-mode: difference;
}

.mxt-fixed-logo img {
    width: 140px;
    height: auto;
    display: block;
    mix-blend-mode: difference;
}

.mxt-fixed-logo.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* BOTÓN MENÚ */
.mxt-menu-button {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background: #F4EB24;
    color: #000;
    border: 0;

    width: auto;
    height: 42px;
    min-height: 42px;
    padding: 0 14px;

    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0.35s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.mxt-menu-button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Estado sobre banner: solo hamburguesa */
.mxt-menu-button.is-hero-mode {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;

    background: transparent;
    color: #fff;
    

    mix-blend-mode: difference;
}

.mxt-menu-button.is-hero-mode .mxt-menu-button__text {
    display: none;
}

/* Estado normal fuera del banner */
.mxt-menu-button.is-page-mode {
    width: auto;
    height: 42px;
    min-height: 42px;
    padding: 0 14px;

    background: #F4EB24;
    color: #000;
    border: 0;

    mix-blend-mode: normal;
}

.mxt-menu-button.is-page-mode .mxt-menu-button__text {
    display: inline;
}

.mxt-menu-button__icon {
    width: 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mxt-menu-button__icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        background 0.25s ease;
}

.mxt-menu-button.is-open .mxt-menu-button__icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mxt-menu-button.is-open .mxt-menu-button__icon span:nth-child(2) {
    opacity: 0;
}

.mxt-menu-button.is-open .mxt-menu-button__icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* PANEL MENÚ */
.mxt-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;

    width: min(520px, 100vw);
    max-width: 100vw;
    height: 100dvh;
    z-index: 99998;

    background: #F4EB24;
    color: #000;

    transform: translate3d(100%, 0, 0);
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);

    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding: 90px 42px 42px;

    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

.mxt-menu-panel.is-open {
    transform: translate3d(0, 0, 0);
}

/* NAV DEL PANEL */
.mxt-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 22px;

    text-align: right;
    margin-left: auto;
}

.mxt-menu-nav a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.9;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    text-align: right;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.mxt-menu-nav a:hover {
    transform: translateX(-10px);
    opacity: 0.55;
}

/* LANGUAGE SWITCH */
.mxt-menu-lang {
    position: absolute;
    right: 42px;
    bottom: 32px;

    display: flex;
    gap: 18px;
}

.lang-link {
    display: flex;
    align-items: center;
    gap: 10px;

    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.08em;

    text-decoration: none;
    color: #000;

    padding: 10px 14px;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.lang-link img {
    width: 26px;
    height: auto;
    display: block;
}

.lang-link:hover {
    color: #F4EB24;
    transform: translateY(-2px);
}

body.mxt-menu-open {
    overflow: hidden;
}

/* =========================
   MOBILE — LOGO + MENÚ
   ========================= */

@media (max-width: 768px) {
    .mxt-fixed-logo {
        top: 16px;
        left: 16px;

        height: 40px;
        display: flex;
        align-items: center;

        mix-blend-mode: difference;
    }

    .mxt-fixed-logo img {
        width: 96px;
        max-width: calc(100vw - 150px);
        height: auto;
        display: block;

        mix-blend-mode: difference;
    }

    .mxt-menu-button {
        top: 16px;
        right: 16px;

        font-size: 0.8rem;
    }

    .mxt-menu-button.is-hero-mode {
        width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
    }

    .mxt-menu-button.is-page-mode {
        height: 40px;
        min-height: 40px;
        padding: 0 12px;
    }

    .mxt-menu-button__icon {
        width: 20px;
    }

    .mxt-menu-panel {
        left: 0;
        right: auto;

        width: 100%;
        max-width: 100%;
        height: 100dvh;

        padding: 90px 32px 42px;

        transform: translate3d(100%, 0, 0);
    }

    .mxt-menu-panel.is-open {
        transform: translate3d(0, 0, 0);
    }

    .mxt-menu-nav a {
        font-size: clamp(2.7rem, 13vw, 4.5rem);
    }

    .mxt-menu-lang {
        right: 32px;
        bottom: 28px;
    }
}

/* =========================
   DESKTOP SCROLLBAR
   Barra lateral amarilla
   ========================= */

@media (min-width: 769px) {
    html {
        scrollbar-width: thin;
        scrollbar-color: #F4EB24 #000;
    }

    body::-webkit-scrollbar {
        width: 12px;
    }

    body::-webkit-scrollbar-track {
        background: #000;
    }

    body::-webkit-scrollbar-thumb {
        background: #F4EB24;
        border-radius: 0;
        border: 2px solid #000;
    }

    body::-webkit-scrollbar-thumb:hover {
        background: #fff200;
    }
}

/* =========================
   TEXT SELECTION
   Selección amarilla con texto negro
   ========================= */

::selection {
    background: #F4EB24;
    color: #000;
}

::-moz-selection {
    background: #F4EB24;
    color: #000;
}


/* =========================
   FOOTER — MXTLAB
========================= */

.mxt-footer {
    background: #000;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mxt-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mxt-footer-main {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mxt-footer-secondary {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    opacity: 0.6;
    letter-spacing: 0.06em;
}

/* Mobile */
@media (max-width: 768px) {
    .mxt-footer-container {
        padding: 30px 16px;
    }

    .mxt-footer-main {
        font-size: 0.8rem;
    }

    .mxt-footer-secondary {
        font-size: 0.7rem;
    }
}

/* =========================
   HERO — CHINGÓN GLITCH
   ========================= */

.hero-text h1 {
    overflow: visible;
}

.hero-chingon-glitch {
    position: relative;
    display: inline-block;
    color: #fff;
    z-index: 2;

    padding-top: 0.15em;
    line-height: 1.1;

    filter: none;
}

.hero-chingon-glitch span {
    display: inline-block;
    animation: paths 5s step-end infinite;
}

.hero-chingon-glitch::before,
.hero-chingon-glitch::after {
    content: attr(data-text);
    position: absolute;
    width: 110%;
    z-index: -1;
    pointer-events: none;
}

.hero-chingon-glitch::before {
    top: 10px;
    left: 15px;
    color: #e0287d;
    animation:
        paths 5s step-end infinite,
        opacity 5s step-end infinite,
        font 8s step-end infinite,
        movement 10s step-end infinite;
}

.hero-chingon-glitch::after {
    top: 5px;
    left: -10px;
    color: #1bc7fb;
    animation:
        paths 5s step-end infinite,
        opacity 5s step-end infinite,
        font 7s step-end infinite,
        movement 8s step-end infinite;
}

/* =========================
   INLINE SOFT GLITCH
   Asincrónico por JS
========================= */

.inline-soft-glitch {
    position: relative;
    display: inline-block;
    color: inherit;
    isolation: isolate;
    line-height: 1.12;
    padding-top: 0.08em;
}

.inline-soft-glitch > span {
    position: relative;
    z-index: 2;
}

.inline-soft-glitch::before,
.inline-soft-glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
}

.inline-soft-glitch::before {
    color: #e0287d;
}

.inline-soft-glitch::after {
    color: #1bc7fb;
}

/* Solo se anima cuando JS agrega esta clase */
.inline-soft-glitch.is-soft-glitching > span {
    animation: paths 420ms step-end both;
}

.inline-soft-glitch.is-soft-glitching::before {
    opacity: 0.65;
    animation:
        paths 420ms step-end both,
        softInlineOpacity 420ms step-end both,
        softGlitchMoveA 420ms step-end both;
}

.inline-soft-glitch.is-soft-glitching::after {
    opacity: 0.55;
    animation:
        paths 380ms step-end both,
        softInlineOpacity 380ms step-end both,
        softGlitchMoveB 380ms step-end both;
}

@keyframes softInlineOpacity {
    0% { opacity: 0; }
    12% { opacity: 0.65; }
    32% { opacity: 0.35; }
    60% { opacity: 0.5; }
    100% { opacity: 0; }
}

@keyframes softGlitchMoveA {
    0% { transform: translate(0, 0); }
    20% { transform: translate(1px, -1px); }
    45% { transform: translate(2px, 0); }
    70% { transform: translate(-1px, 1px); }
    100% { transform: translate(0, 0); }
}

@keyframes softGlitchMoveB {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-1px, 1px); }
    45% { transform: translate(-2px, 0); }
    75% { transform: translate(1px, -1px); }
    100% { transform: translate(0, 0); }
}

.subheading-right {
    text-align: right;
    width: 100%;
}

/* Loading Animation */
.loading-screen {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--primary-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transition: opacity 0.5s ease;
	padding: 24px;
}

.loading-screen.hidden {
	opacity: 0;
	pointer-events: none;
}

.loading-screen.glitch-out {
	animation: loadingScreenGlitchOut 0.45s steps(1, end) forwards;
}

.loading-logo {
	position: relative;
	width: min(25vw, 280px);
	aspect-ratio: 2048 / 541;
}

.loading-logo::before,
.loading-logo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url('imagenes/logow.png') center / contain no-repeat;
	opacity: 0;
	pointer-events: none;
	mix-blend-mode: screen;
}

.loading-screen.glitch-out .loading-logo::before {
	animation: loadingLogoGlitchMagenta 0.38s steps(1, end) forwards;
}

.loading-screen.glitch-out .loading-logo::after {
	animation: loadingLogoGlitchCyan 0.38s steps(1, end) forwards;
}

.loading-logo__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	user-select: none;
	-webkit-user-drag: none;
	pointer-events: none;
}

.loading-logo__img--base {
	opacity: 0.92;
}

.loading-logo__fill-wrap {
	position: absolute;
	inset: 0;
	clip-path: inset(0 50% 0 50%);
	animation: logoFillFromCenter 1.6s ease-in-out infinite;
}

.loading-logo__img--fill {
	filter:
		brightness(0)
		saturate(100%)
		invert(89%)
		sepia(76%)
		saturate(812%)
		hue-rotate(8deg)
		brightness(103%)
		contrast(95%);
}

.loading-screen.glitch-out .loading-logo__img--base,
.loading-screen.glitch-out .loading-logo__fill-wrap {
	animation: loadingLogoMainGlitch 0.38s steps(1, end) forwards;
}

@keyframes logoFillFromCenter {
	0% {
		clip-path: inset(0 50% 0 50%);
		opacity: 0.95;
	}

	60% {
		clip-path: inset(0 0 0 0);
		opacity: 1;
	}

	100% {
		clip-path: inset(0 0 0 0);
		opacity: 1;
	}
}

@keyframes loadingLogoMainGlitch {
	0% {
		transform: translate(0, 0);
		opacity: 1;
		filter: none;
		clip-path: inset(0 0 0 0);
	}

	20% {
		transform: translate(-6px, 2px);
		opacity: 1;
		filter: contrast(140%);
		clip-path: polygon(0 8%, 100% 2%, 100% 28%, 0 34%);
	}

	40% {
		transform: translate(7px, -3px);
		opacity: 0.95;
		filter: contrast(160%);
		clip-path: polygon(0 42%, 100% 36%, 100% 68%, 0 74%);
	}

	60% {
		transform: translate(-4px, 4px);
		opacity: 0.9;
		filter: contrast(180%);
		clip-path: polygon(0 70%, 100% 62%, 100% 100%, 0 100%);
	}

	100% {
		transform: translate(0, 0);
		opacity: 0;
		filter: none;
		clip-path: inset(0 0 0 0);
	}
}

@keyframes loadingLogoGlitchMagenta {
	0% {
		opacity: 0;
		transform: translate(0, 0);
		filter:
			brightness(0)
			saturate(100%)
			invert(29%)
			sepia(94%)
			saturate(2622%)
			hue-rotate(307deg)
			brightness(92%)
			contrast(93%);
		clip-path: inset(0 0 0 0);
	}

	25% {
		opacity: 0.9;
		transform: translate(10px, 2px);
		clip-path: polygon(0 0, 100% 0, 100% 22%, 0 30%);
	}

	55% {
		opacity: 0.75;
		transform: translate(-8px, -2px);
		clip-path: polygon(0 36%, 100% 30%, 100% 70%, 0 78%);
	}

	100% {
		opacity: 0;
		transform: translate(0, 0);
		clip-path: inset(0 0 0 0);
	}
}

@keyframes loadingLogoGlitchCyan {
	0% {
		opacity: 0;
		transform: translate(0, 0);
		filter:
			brightness(0)
			saturate(100%)
			invert(50%)
			sepia(29%)
			saturate(957%)
			hue-rotate(131deg)
			brightness(94%)
			contrast(92%);
		clip-path: inset(0 0 0 0);
	}

	20% {
		opacity: 0.9;
		transform: translate(-10px, 1px);
		clip-path: polygon(0 14%, 100% 8%, 100% 40%, 0 48%);
	}

	58% {
		opacity: 0.7;
		transform: translate(8px, 3px);
		clip-path: polygon(0 52%, 100% 44%, 100% 100%, 0 100%);
	}

	100% {
		opacity: 0;
		transform: translate(0, 0);
		clip-path: inset(0 0 0 0);
	}
}

@keyframes loadingScreenGlitchOut {
	0% {
		opacity: 1;
		filter: none;
	}

	35% {
		opacity: 1;
		filter: contrast(125%) brightness(1.05);
	}

	100% {
		opacity: 0;
		filter: none;
		pointer-events: none;
	}
}

@media (max-width: 768px) {
	.loading-logo {
		width: min(28vw, 140px); /* mucho más pequeño */
	}
}

/* =========================
   HERO MOBILE ARROW
========================= */

.hero-mobile-arrow {
    display: none;
}

@media (max-width: 768px) {
    .hero-mobile-arrow {
        display: inline-flex;
        margin-top: 28px;
        text-decoration: none;
        color: #fff;
        justify-content: center;
        align-items: center;
    }

    .hero-arrow-glitch {
        position: relative;
        display: inline-block;
        font-family: 'Bebas Neue', sans-serif;
        font-size: clamp(2.2rem, 12vw, 4rem);
        line-height: 1;
        color: #fff;
        filter: drop-shadow(0 1px 3px);
    }

    .hero-arrow-glitch span {
        display: inline-block;
    }

    .hero-arrow-glitch::before,
    .hero-arrow-glitch::after {
        content: attr(data-text);
        position: absolute;
        width: 110%;
        z-index: -1;
        pointer-events: none;
        opacity: 0;
    }

    .hero-arrow-glitch::before {
        top: 5px;
        left: 8px;
        color: #e0287d;
    }

    .hero-arrow-glitch::after {
        top: 3px;
        left: -7px;
        color: #1bc7fb;
    }

    .hero-arrow-glitch.is-arrow-glitching span {
        animation: paths 320ms step-end both;
    }

    .hero-arrow-glitch.is-arrow-glitching::before {
        opacity: 0.75;
        animation:
            paths 320ms step-end both,
            opacity 320ms step-end both,
            movement 320ms step-end both;
    }

    .hero-arrow-glitch.is-arrow-glitching::after {
        opacity: 0.65;
        animation:
            paths 280ms step-end both,
            opacity 280ms step-end both,
            movement 280ms step-end both;
    }
}

/* Selección de texto especial en contacto */
.contact-section ::selection {
    background: #000;
    color: #F4EB24;
}

.contact-section ::-moz-selection {
    background: #000;
    color: #F4EB24;
}


/* =========================
   SECTION WHITE — BIG TEXT
========================= */

.section-white-big-text {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.05;
    letter-spacing: 0.025em;
    text-transform: lowercase;
   
    

    margin: 0;
}


.chladni-sprite {
    display: none !important;
}

/* =========================
   CHLADNI HERO — LIVE CANVAS MODE
   ========================= */

.hero {
    background: #000;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #000;
    cursor: crosshair;
}

.chladni-sprite {
    display: none !important;
}

.chladni-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;

    width: 100% !important;
    height: 100% !important;

    display: block;
    background: #000;

    pointer-events: none;
}

.chladni-frequency-label {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 3;

    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: #000000;
    background: #F4EB24;
    
    padding: 8px 11px;

    pointer-events: none;
    user-select: none;
    mix-blend-mode: screen;
}
.hero-content {
    position: relative;
    z-index: 2;
}

/* =========================
   DESKTOP MENU OPEN — INVERT PAGE
   Invierte todo excepto el menú
   ========================= */



@media (min-width: 769px) {
    body::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 99989;
        pointer-events: none;

        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);

        background: rgba(0, 0, 0, 0.04);

        opacity: 0;
        transition: opacity 260ms ease;
    }

    body.mxt-menu-open::after {
        opacity: 1;
    }
}

/* =========================
   CONTACT FORM — STATUS STATES
   ========================= */

.contact-status {
    min-height: 1.35em;
    transition: opacity 0.2s ease;
}

.contact-status.is-loading {
    color: rgba(0, 0, 0, 0.62);
}

.contact-status.is-success {
    color: #0b6f2a;
    font-weight: 800;
}

.contact-status.is-error {
    color: #9b0018;
    font-weight: 800;
}

.contact-form button:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

/* =========================
   LOADING LOGO — FINAL GLITCH BURST
   Sin rectángulo de granos
   ========================= */

.loading-logo {
    position: relative;
}

/* =========================
   LOADING LOGO — FINAL LAYERED BURST
   Burst final con capas prerenderizadas
   ========================= */

.loading-logo {
    position: relative;
}

.loading-logo__grain-final {
    display: none !important;
}

.loading-logo__burst-final {
    position: absolute;
    inset: -12%;
    z-index: 8;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity, filter;
}

.loading-logo__burst-final .burst-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    will-change: transform, opacity, filter;
}

/* CAPAS */

.loading-logo__burst-final .burst-layer--white {
    background-image: url('imagenes/loading/loader-final-white.png');
    z-index: 5;
    mix-blend-mode: normal;
}

.loading-logo__burst-final .burst-layer--cyan {
    background-image: url('imagenes/loading/loader-final-green.png');
    z-index: 4;
    mix-blend-mode: screen;
}

.loading-logo__burst-final .burst-layer--magenta {
    background-image: url('imagenes/loading/loader-final-magenta.png');
    z-index: 3;
    mix-blend-mode: screen;
}

.loading-logo__burst-final .burst-layer--orange {
    background-image: url('imagenes/loading/loader-final-orange.png');
    z-index: 2;
    mix-blend-mode: screen;
}

.loading-logo__burst-final .burst-layer--red {
    background-image: url('imagenes/loading/loader-final-yellow.png');
    z-index: 1;
    mix-blend-mode: screen;
}

/* Apagamos el logo blanco/base al entrar al remate final */
.loading-screen.is-yellow-grain .loading-logo__img,
.loading-screen.is-yellow-grain .loading-logo__fill-wrap {
    animation: loadingLogoHideForLayerBurst 210ms steps(1, end) forwards;
}

.loading-screen.is-final-burst .loading-logo__burst-final {
    opacity: 1;
    animation: loadingBurstContainerOffset 520ms steps(2, end) forwards;
}

/* ANIMACIÓN DE CADA CAPA */

.loading-screen.is-final-burst .burst-layer--white {
    animation: loadingBurstWhiteOffset 520ms steps(2, end) forwards;
}

.loading-screen.is-final-burst .burst-layer--cyan {
    animation: loadingBurstCyanOffset 560ms steps(2, end) forwards;
}

.loading-screen.is-final-burst .burst-layer--magenta {
    animation: loadingBurstMagentaOffset 480ms steps(2, end) forwards;
}

.loading-screen.is-final-burst .burst-layer--orange {
    animation: loadingBurstOrangeOffset 500ms steps(2, end) forwards;
}

.loading-screen.is-final-burst .burst-layer--red {
    animation: loadingBurstRedOffset 620ms steps(2, end) forwards;
}

@keyframes loadingLogoHideForLayerBurst {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: none;
    }
    40% {
        opacity: 0.8;
        transform: translate3d(-6px, 1px, 0) scaleX(1.06) scaleY(0.86);
        filter: contrast(1.8) brightness(1.15);
    }
    100% {
        opacity: 0;
        transform: translate3d(12px, 0, 0) scaleX(1.25) scaleY(0.35);
        filter: contrast(2.6) brightness(1.35) blur(0.6px);
    }
}

@keyframes loadingBurstContainerOffset {
    0% {
        transform: translate3d(0, 0, 0);
        filter: none;
    }
    55% {
        transform: translate3d(0, 0, 0);
        filter: contrast(1.2);
    }
    100% {
        transform: translate3d(0, 0, 0);
        filter: contrast(1.45);
    }
}

@keyframes loadingBurstWhiteOffset {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
    22% {
        opacity: 1;
        transform: translate3d(-10px, 2px, 0);
        filter: blur(0);
    }
    48% {
        opacity: 0.95;
        transform: translate3d(18px, -2px, 0);
        filter: blur(0.3px);
    }
    76% {
        opacity: 0.62;
        transform: translate3d(-28px, 2px, 0);
        filter: blur(0.7px);
    }
    100% {
        opacity: 0;
        transform: translate3d(46px, -2px, 0);
        filter: blur(1.2px);
    }
}

@keyframes loadingBurstCyanOffset {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
    18% {
        opacity: 0.42;
        transform: translate3d(8px, -3px, 0);
        filter: blur(0);
    }
    46% {
        opacity: 0.34;
        transform: translate3d(26px, -5px, 0);
        filter: blur(0.3px);
    }
    100% {
        opacity: 0;
        transform: translate3d(82px, -10px, 0);
        filter: blur(0.9px);
    }
}

@keyframes loadingBurstMagentaOffset {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
    15% {
        opacity: 0.34;
        transform: translate3d(-6px, 1px, 0);
        filter: blur(0);
    }
    44% {
        opacity: 0.28;
        transform: translate3d(-24px, 4px, 0);
        filter: blur(0.3px);
    }
    100% {
        opacity: 0;
        transform: translate3d(-72px, 10px, 0);
        filter: blur(1px);
    }
}

@keyframes loadingBurstOrangeOffset {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
    20% {
        opacity: 0.24;
        transform: translate3d(4px, 2px, 0);
        filter: blur(0);
    }
    52% {
        opacity: 0.20;
        transform: translate3d(18px, 6px, 0);
        filter: blur(0.35px);
    }
    100% {
        opacity: 0;
        transform: translate3d(58px, 16px, 0);
        filter: blur(0.95px);
    }
}

@keyframes loadingBurstRedOffset {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
    26% {
        opacity: 0.16;
        transform: translate3d(-3px, 0, 0);
        filter: blur(0);
    }
    58% {
        opacity: 0.13;
        transform: translate3d(-18px, -1px, 0);
        filter: blur(0.35px);
    }
    100% {
        opacity: 0;
        transform: translate3d(-54px, -4px, 0);
        filter: blur(0.9px);
    }
}

/* =========================
   LOADING LOGO — MOBILE SIZE MEDIUM
   Logo de carga más grande en móvil, pero sin invadir pantalla
   ========================= */

@media (max-width: 768px) {
    .loading-logo {
        width: min(50vw, 280px);
    }

    .loading-logo__img {
        width: 100%;
        height: auto;
    }

    .loading-logo__fill-wrap {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .loading-logo {
        width: min(50vw, 280px);
    }
}

/* =========================
   SECTIONS — 2 DEG ANGLED EDGES
   Top y bottom opuestos, pero uniones compatibles
   ========================= */

:root {
    --mxt-section-angle-depth: clamp(22px, 2.4vw, 52px);
}

/* Base: conserva colores originales */
.section-white,
.portfolio-section,
.mxt-services-section,
.about-section,
.contact-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding-top: calc(var(--mxt-section-angle-depth) + 110px) !important;
    padding-bottom: calc(var(--mxt-section-angle-depth) + 130px) !important;

    /*
       Solape para que una sección cubra el borde de la anterior
       sin dejar línea negra.
    */
    margin-top: calc(var(--mxt-section-angle-depth) * -1);
}

.section-white {
    margin-top: 0;
}

/* 
   TIPO A:
   borde superior: sube hacia la derecha
   borde inferior: baja hacia la derecha

   Esto hace que top y bottom sean opuestos dentro de la sección.
*/
.section-white,
.mxt-services-section,
.contact-section {
    clip-path: polygon(
        0 var(--mxt-section-angle-depth),
        100% 0,
        100% 100%,
        0 calc(100% - var(--mxt-section-angle-depth))
    );
}

/*
   TIPO B:
   borde superior: baja hacia la derecha
   borde inferior: sube hacia la derecha

   También son opuestos, pero encajan con el tipo A anterior.
*/
.portfolio-section,
.about-section {
    clip-path: polygon(
        0 0,
        100% var(--mxt-section-angle-depth),
        100% calc(100% - var(--mxt-section-angle-depth)),
        0 100%
    );
}

/* Contenido arriba */
.section-white > *,
.portfolio-section > *,
.mxt-services-section > *,
.about-section > *,
.contact-section > * {
    position: relative;
    z-index: 2;
}

/* Móvil: cortes más discretos */
@media (max-width: 768px) {
    :root {
        --mxt-section-angle-depth: 22px;
    }

    .section-white,
    .portfolio-section,
    .mxt-services-section,
    .about-section,
    .contact-section {
        padding-top: calc(var(--mxt-section-angle-depth) + 80px) !important;
        padding-bottom: calc(var(--mxt-section-angle-depth) + 95px) !important;
    }
}

/* =========================
   HERO CHLADNI — EXTENDER AL BORDE ANGULAR
   ========================= */

:root {
    /* Qué tanto se extiende el canvas hacia abajo
       para llenar la cuña negra del borde angular */
    --hero-angle-bleed: clamp(34px, 4vw, 90px);
}

/* El hero debe permitir que el fondo se extienda */
.hero {
    position: relative;
    overflow: visible;
}

/* El contenedor del fondo se estira más abajo
   que el rectángulo original del hero */
.hero-bg,
#chladniHeroBg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(var(--hero-angle-bleed) * -1);

    overflow: visible;
    z-index: 0;
    pointer-events: none;
}

/* El canvas ocupa todo el hero-bg extendido */
.chladni-canvas,
#chladniCanvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

/* El contenido del hero debe quedarse arriba del canvas */
.hero-content,
.hero-inner,
.hero-copy,
.hero-overlay,
.hero-text,
.hero-logo,
.hero-cta,
.hero-frequency {
    position: relative;
    z-index: 2;
}

/* Si tienes un target invisible para clicks, también arriba */
.hero-click-target,
#heroClickTarget {
    position: absolute;
    inset: 0;
    z-index: 3;
}

/* En móvil, un poco menos de bleed */
@media (max-width: 768px) {
    :root {
        --hero-angle-bleed: 26px;
    }
}



/* =========================
   HIDE SITE UI WHILE LOADING
   ========================= */

/* Mientras el sitio no está listo, nada de UI fija ni hero visible */
body:not(.mxt-site-ready) .mxt-fixed-logo,
body:not(.mxt-site-ready) .mxt-menu-button,
body:not(.mxt-site-ready) .mxt-menu-panel,
body:not(.mxt-site-ready) .hero-content,
body:not(.mxt-site-ready) .chladni-frequency-label {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Evita que el panel pueda quedar abierto/invasivo durante carga */
body:not(.mxt-site-ready) .mxt-menu-panel {
    transform: translate3d(100%, 0, 0) !important;
}

/* Opcional: también oculta el canvas mientras carga */
body:not(.mxt-site-ready) .chladni-canvas {
    opacity: 0 !important;
}


/* =========================
   REMOVE BLUE TAP/FOCUS HIGHLIGHT
   ========================= */

/* Quita el recuadro azul de tap/click en Chrome/Safari/mobile */
a,
button,
input,
textarea,
select,
[role="button"],
.coverflow-item,
.mxt-industries-toggle,
.control-btn,
.lang-link,
.social-link {
    -webkit-tap-highlight-color: transparent;
}

/* Quita outline en click normal */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[role="button"]:focus,
.coverflow-item:focus,
.mxt-industries-toggle:focus,
.control-btn:focus,
.lang-link:focus,
.social-link:focus {
    outline: none;
}

/* También evita sombras azules heredadas */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    box-shadow: none;
}

/* Pero conserva accesibilidad al navegar con teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
.mxt-industries-toggle:focus-visible,
.control-btn:focus-visible,
.lang-link:focus-visible,
.social-link:focus-visible {
    outline: 2px solid #F4EB24;
    outline-offset: 4px;
    box-shadow: none;
}


/* =========================
   TITLES — GLOBAL SECTION SCALE
   ========================= */

:root {
    --mxt-section-title-size: clamp(3.5rem, 8vw, 7rem);
    --mxt-section-title-size-mobile: clamp(3.5rem, 17vw, 5.5rem);
}

/* Unifica tamaño de headers principales */
.mxt-services-title,
.portfolio-section .mxt-services-title,
.portfolio-section .section-title,
.about-image-title,
.contact-copy h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: var(--mxt-section-title-size) !important;
    line-height: 0.9;
    letter-spacing: 0.02em;
    font-weight: 400;
}

/* Portfolio / Nuestro Trabajo a la derecha */
.portfolio-section .section-header {
    text-align: right !important;
}

.portfolio-section .mxt-services-title,
.portfolio-section .section-title {
    text-align: right !important;
}

/* =========================
   ABOUT — TITLE ABOVE IMAGE
   Desktop:
   texto izquierda / título + imagen derecha

   Mobile:
   título derecha / texto / imagen
   ========================= */

.about-image-title {
    color: #fff;
    margin: 0 0 36px;
    text-align: right;
}

.about-content p {
    text-align: left;
}

/* Por si quedó algún h2 viejo dentro de about-content */
.about-content h2 {
    display: none;
}

/* Desktop: conserva imagen/título a la derecha */
@media (min-width: 769px) {
    .about-section .about-wrapper {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
    }

    .about-content {
        order: 1;
    }

    .about-image {
        order: 2;
    }

    .about-image-title {
        text-align: right;
    }
}

/* Mobile: título derecha, texto después, imagen al final */
@media (max-width: 768px) {
    .mxt-services-title,
    .portfolio-section .mxt-services-title,
    .portfolio-section .section-title,
    .about-image-title,
    .contact-copy h2 {
        font-size: var(--mxt-section-title-size-mobile) !important;
    }

    .about-section .about-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .about-image {
        display: contents !important;
    }

    .about-image-title {
        order: 1 !important;
        width: 100%;
        margin: 0 0 28px;
        text-align: right !important;
    }

    .about-content {
        order: 2 !important;
        width: 100%;
    }

    .about-image img {
        order: 3 !important;
        display: block;
        width: 100%;
        height: auto !important;
        margin-top: 34px;
    }
}

.mxt-footer-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    transition: opacity 0.2s ease;
}

.mxt-footer-link:hover {
    opacity: 0.65;
}

/* =========================
   PRIVACY NOTICE PAGE — MXTLAB STYLE
   ========================= */

.privacy-page {
    background: #000;
    color: #fff;
    padding: clamp(90px, 10vw, 150px) 20px;
}

.privacy-wrapper {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.privacy-header {
    margin-bottom: clamp(54px, 7vw, 96px);
}

.privacy-kicker {
    margin: 0 0 18px;
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.85rem, 1vw, 1rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #F4EB24;
}

.privacy-header h1 {
    max-width: 980px;
    margin: 0;

    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 11vw, 9rem);
    line-height: 0.86;
    letter-spacing: 0.02em;
    font-weight: 400;
    text-transform: uppercase;

    color: #fff;
}

.privacy-updated {
    max-width: 720px;
    margin: 26px 0 0;

    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.56);
}

.privacy-content {
    width: min(860px, 100%);
    margin-left: auto;

    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.05rem, 1.35vw, 1.22rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.74);
}

.privacy-content > p:first-child {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.privacy-content h2 {
    margin: clamp(58px, 8vw, 96px) 0 22px;

    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
    font-weight: 400;
    text-transform: uppercase;

    color: #F4EB24;
}

.privacy-content h3 {
    margin: 38px 0 14px;

    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    line-height: 1.28;
    font-weight: 900;

    color: #fff;
}

.privacy-content p {
    margin: 0 0 22px;
}

.privacy-content ul {
    margin: 0 0 28px;
    padding-left: 0;
    list-style: none;
}

.privacy-content li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 28px;
}

.privacy-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;

    width: 9px;
    height: 9px;

    background: #F4EB24;
    border-radius: 2px;
}

.privacy-content a {
    color: #F4EB24;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    text-underline-offset: 0.18em;
    transition: opacity 0.2s ease;
}

.privacy-content a:hover {
    opacity: 0.65;
}

.mxt-footer-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    transition: opacity 0.2s ease;
}

.mxt-footer-link:hover {
    opacity: 0.65;
}

@media (max-width: 768px) {
    .privacy-page {
        padding: 80px 20px;
    }

    .privacy-header {
        margin-bottom: 54px;
    }

    .privacy-header h1 {
        font-size: clamp(3.5rem, 17vw, 5.7rem);
        line-height: 0.9;
    }

    .privacy-updated {
        margin-top: 22px;
        font-size: 0.95rem;
    }

    .privacy-content {
        width: 100%;
        margin-left: 0;
        font-size: 1rem;
        line-height: 1.68;
    }

    .privacy-content > p:first-child {
        font-size: 1.15rem;
        line-height: 1.55;
    }

    .privacy-content h2 {
        margin: 56px 0 18px;
        font-size: clamp(2.6rem, 13vw, 4.4rem);
    }

    .privacy-content h3 {
        margin-top: 32px;
        font-size: 1.08rem;
    }

    .privacy-content li {
        padding-left: 24px;
    }

    .privacy-content li::before {
        width: 8px;
        height: 8px;
    }
}

/* =========================
   PRIVACY NOTICE — INVERTED HERO ONLY
   Invierte banner + animación Chladni
   ========================= */

.privacy-notice-page .privacy-hero {
    background: #fff;
    color: #000;
}

/*
   CLAVE:
   Invertimos TODO el wrapper de la animación.
   Esto afecta sprite + canvas + colores de partículas.
   No aplicamos filtro separado a .chladni-sprite o canvas
   para evitar doble inversión.
*/
.privacy-notice-page .privacy-hero .hero-bg {
    background: #fff;
    filter: invert(1) hue-rotate(180deg) contrast(1.08) brightness(1.02);
}

/* Evita doble filtro en las capas internas */
.privacy-notice-page .privacy-hero .chladni-sprite,
.privacy-notice-page .privacy-hero .chladni-canvas {
    filter: none !important;
}

/* Texto del banner en negro */
.privacy-notice-page .privacy-hero .hero-text h1,
.privacy-notice-page .privacy-hero .hero-text p {
    color: #000;
}

/* Palabra con glitch: base negra */
.privacy-notice-page .privacy-hero .hero-chingon-glitch,
.privacy-notice-page .privacy-hero .hero-chingon-glitch span,
.privacy-notice-page .privacy-hero .hero-arrow-glitch,
.privacy-notice-page .privacy-hero .hero-arrow-glitch span {
    color: #000;
}

/* Capas glitch con colores invertidos/controlados */
.privacy-notice-page .privacy-hero .hero-chingon-glitch::before,
.privacy-notice-page .privacy-hero .hero-arrow-glitch::before {
    color: #339989;
}

.privacy-notice-page .privacy-hero .hero-chingon-glitch::after,
.privacy-notice-page .privacy-hero .hero-arrow-glitch::after {
    color: #DE184D;
}

/* Logo del hero en negro */
.privacy-notice-page .privacy-hero .hero-logo img {
    filter: brightness(0) saturate(100%);
}

/* Label de frecuencia
   Lo subimos para que no quede tapado por la diagonal negra.
*/
.privacy-notice-page .privacy-hero .chladni-frequency-label {
    left: 24px;
    bottom: clamp(96px, 9vw, 145px);
    z-index: 8;

    background: #fff;
    color: rgba(0, 0, 0, 0.48);
}

/* Menú cuando está encima del banner invertido */
.privacy-notice-page .mxt-menu-button.is-hero-mode {
    color: #000;
    mix-blend-mode: normal;
}

.privacy-notice-page .mxt-menu-button.is-hero-mode .mxt-menu-button__icon span {
    background: #000;
}

/* Logo fijo:
   NO lo hacemos negro, porque aparece fuera del banner,
   sobre el wrapper negro del aviso.
*/
.privacy-notice-page .mxt-fixed-logo {
    mix-blend-mode: difference;
}

.privacy-notice-page .mxt-fixed-logo img {
    filter: none;
    mix-blend-mode: difference;
}

/* =========================
   PRIVACY NOTICE — DIAGONAL HERO CUT
   Igual lógica visual que las secciones del index
   ========================= */

.privacy-notice-page .privacy-hero {
    position: relative;
    overflow: hidden;
}

/*
   Esta pieza crea el corte diagonal entre el banner blanco
   y el wrapper negro del aviso.
*/
.privacy-notice-page .privacy-hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    z-index: 4;

    width: 100%;
    height: clamp(72px, 8vw, 130px);

    background: #000;

    clip-path: polygon(
        0 100%,
        100% 42%,
        100% 100%,
        0 100%
    );

    pointer-events: none;
}

/*
   Aseguramos que el contenido del hero quede por encima
   de la animación, pero la diagonal quede encima del fondo.
*/
.privacy-notice-page .privacy-hero .hero-content,
.privacy-notice-page .privacy-hero .chladni-frequency-label {
    position: relative;
    z-index: 5;
}

/*
   Evita que el main deje una línea rara debajo del corte.
*/
.privacy-notice-page .privacy-page {
    margin-top: -1px;
}

/* Variante móvil: diagonal más suave y menos alta */
@media (max-width: 768px) {
    .privacy-notice-page .privacy-hero::after {
        height: 72px;

        clip-path: polygon(
            0 100%,
            100% 58%,
            100% 100%,
            0 100%
        );
    }
}

/* =========================
   CHLADNI — DESKTOP SHARPNESS
   Mejora percepción de nitidez sin subir partículas
========================= */

.chladni-canvas {
    image-rendering: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* En desktop grande: un poco más de presencia visual */
@media (min-width: 1200px) {
    .chladni-canvas {
        filter: contrast(1.08) brightness(1.04);
    }
}

/* En pantallas muy grandes: evitar que se vea lavado */
@media (min-width: 1800px) {
    .chladni-canvas {
        filter: contrast(1.14) brightness(1.06);
    }
}

.about-image-title {
    line-height: 1.08;
    padding-top: 0.08em;
}