/* ═══════════════════════════════════════════════════════════
   Smart Support — main.css OPTIMIZADO
   Un solo bloque por breakpoint, sin duplicados
═══════════════════════════════════════════════════════════ */

/* ─── VARIABLES ─────────────────────────────────────────── */
:root {
    --bg: #0d0d0d;
    --surf: #161616;
    --surf2: #1e1e1e;
    --surf3: #282828;
    --acc: #FFD700;
    --acc-text: #d7d7d7;
    --acc-line: #d7d7d7;
    --acc-border: rgba(255, 255, 255, .1);
    --acc-dim: rgba(255, 215, 0, .08);
    --acc-glow: rgba(255, 215, 0, .18);
    --white: #e8e8e8;
    --text: #c8c8c8;
    --muted: #585858;
    --border: rgba(255, 255, 255, .07);
    --border-acc: rgba(255, 255, 255, .1);
    --tags: #7c7c7c;

    --neu-out: 8px 8px 18px rgba(0, 0, 0, .8), -4px -4px 12px rgba(255, 255, 255, .025);
    --neu-in: inset 5px 5px 12px rgba(0, 0, 0, .85), inset -3px -3px 8px rgba(255, 255, 255, .025);

    --ff-disp: 'Montserrat', sans-serif;
    --ff-body: 'Montserrat', sans-serif;
    --ff-mono: 'JetBrains Mono', monospace;

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 32px;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    font-family: var(--ff-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-weight: 500;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 0;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ─── TIPOGRAFÍA ─────────────────────────────────────────── */
h1,
h2 {
    color: #e8e8e8;
}

h1 {
    font-family: var(--ff-disp);
    font-size: clamp(3.8rem, 8vw, 6.8rem);
    font-weight: 800;
    line-height: .96;
    letter-spacing: .01em;
}

h2 {
    font-family: var(--ff-disp);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .01em;
}

h3 {
    font-family: var(--ff-disp);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.1;
}

.tag {
    font-family: var(--ff-mono);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--tags);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.tag::before {
    content: '';
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--acc);
}

/* ─── BOTONES ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .82rem 1.9rem;
    border-radius: var(--r-sm);
    font-family: var(--ff-body);
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    border: none;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-sm {
    padding: .56rem 1.2rem;
    font-size: .8rem;
}

.btn-primary {
    background: var(--acc);
    color: #000;
    box-shadow: 0 4px 22px rgba(255, 215, 0, .32);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(255, 215, 0, .48);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--neu-out);
}

.btn-ghost:hover {
    border-color: var(--border-acc);
    color: var(--acc);
    box-shadow: var(--neu-out), 0 0 20px rgba(255, 215, 0, .06);
}

/* ─── HEADER / NAV ───────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(10, 10, 10, .88);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
}

.site-header.scrolled {
    box-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 76px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.nav-logo:hover {
    opacity: .85;
}

.logo-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.logo-full-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: .84rem;
    font-weight: 500;
    color: var(--muted);
    transition: color .2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--acc);
    transition: width .3s var(--ease);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--white);
}

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
    transform-origin: center;
}

.nav-burger[aria-expanded="true"] .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-burger[aria-expanded="true"] .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, .98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform .3s var(--ease), opacity .3s;
    pointer-events: none;
    display: none;
}

.nav-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    display: block;
}

.nav-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-drawer-links .nav-link {
    font-size: 1rem;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-block: 100px 80px;
    overflow: hidden;
}

.hero-rings {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-logo-bg {
    position: absolute;
    width: 72vw;
    max-width: 860px;
    height: auto;
    top: 50%;
    right: -13%;
    opacity: .04;
    filter: brightness(0) invert(1);
    pointer-events: none;
    user-select: none;
    /* El translateY se fija con margin, no en el keyframe */
    margin-top: -19vw;
    /* aproxima el -50% del alto del elemento */
    -webkit-animation: logo-spin 70s linear infinite;
    animation: logo-spin 70s linear infinite;
    -webkit-transform-origin: center center;
    transform-origin: center center;
}

@-webkit-keyframes logo-spin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes logo-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-hline {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, .1), transparent);
    pointer-events: none;
}

.hero-corner {
    position: absolute;
    width: 50px;
    height: 50px;
    pointer-events: none;
}

.hero-corner-tl {
    top: 88px;
    left: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-left: 1px solid rgba(255, 255, 255, .08);
}

.hero-corner-br {
    bottom: 40px;
    right: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 4rem;
    align-items: center;
}

.hero-eyebrow {
    margin-bottom: 1.4rem;
}

.hero-title {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-title .line-acc {
    color: var(--acc);
    display: block;
}

.hero-title .line-outline {
    display: block;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .18);
    color: transparent;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--ff-mono);
    font-size: .66rem;
    color: var(--muted);
}

.hero-trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--acc);
}

.hero-card {
    background: var(--surf);
    border-radius: var(--r-xl);
    padding: 2rem;
    box-shadow: var(--neu-out);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    animation: float 7s ease-in-out infinite;
}

.hero-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, .35), transparent);
}

@-webkit-keyframes float {

    0%,
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }

    50% {
        -webkit-transform: translateY(-14px);
        transform: translateY(-14px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

.hero-card {
    -webkit-animation: float 7s ease-in-out infinite;
    animation: float 7s ease-in-out infinite;
}

.card-mono {
    font-family: var(--ff-mono);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--acc-text);
    padding-bottom: .9rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.stats-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: var(--bg);
    border-radius: var(--r-md);
    padding: 1.1rem;
    box-shadow: var(--neu-in);
    border: 1px solid var(--border);
    text-align: center;
}

.stat-val {
    font-family: var(--ff-disp);
    font-size: 2.1rem;
    color: var(--acc-text);
    display: block;
    line-height: 1;
}

.stat-lbl {
    font-size: .7rem;
    color: var(--muted);
    margin-top: .25rem;
}

.proj-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.proj-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: var(--bg);
    border-radius: var(--r-sm);
    padding: .65rem .9rem;
    border: 1px solid var(--border);
    box-shadow: var(--neu-in);
    font-size: .78rem;
    color: var(--muted);
    transition: border-color .2s, color .2s;
    cursor: default;
}

.proj-row:hover {
    border-color: rgba(255, 255, 255, .15);
    color: var(--white);
}

.proj-row-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--acc);
    flex-shrink: 0;
}

.proj-row-name {
    font-weight: 600;
    color: var(--white);
}

.proj-row-cat {
    margin-left: auto;
    font-size: .68rem;
    color: var(--muted);
    white-space: nowrap;
}

/* ─── SECCIONES ──────────────────────────────────────────── */
.section {
    position: relative;
    z-index: 1;
    padding-block: 7rem;
}

.section-alt {
    background: var(--surf);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    margin-bottom: 4rem;
}

.section-head h2 {
    color: var(--white);
    margin-top: .8rem;
}

.section-head h2 span {
    color: var(--acc-line);
}

/* ─── SERVICIOS ──────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.service-card {
    background: var(--surf2);
    border-radius: var(--r-lg);
    padding: 2.2rem 1.8rem;
    border: 1px solid var(--border);
    box-shadow: var(--neu-out);
    position: relative;
    overflow: hidden;
    transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
    cursor: default;
    /* Alineación interna */
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 215, 0, .04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .35s;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--acc), transparent);
    transform: scaleX(0);
    transition: transform .4s var(--ease);
    transform-origin: center;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-acc);
    box-shadow: var(--neu-out), 0 20px 50px rgba(0, 0, 0, .5);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card:hover .svc-icon {
    border-color: var(--border-acc);
}

.service-card:hover .svc-num {
    color: rgba(156, 156, 156, .09);
}

.service-card:hover .svc-tag {
    color: var(--text);
    border-color: rgba(255, 215, 0, .15);
}

.svc-icon {
    width: 52px;
    height: 52px;
    background: var(--bg);
    border-radius: var(--r-md);
    box-shadow: var(--neu-in);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: border-color .3s;
    flex-shrink: 0;
}

.svc-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--acc);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.svc-num {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    font-family: var(--ff-disp);
    font-size: 3.5rem;
    color: rgba(182, 182, 182, .05);
    line-height: 1;
    transition: color .3s;
    pointer-events: none;
}

/* Alineación interna de service-card */
.svc-title {
    font-family: var(--ff-disp);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .75rem;
    line-height: 1.1;
    min-height: 3.2rem;
}

.svc-desc {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.svc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: auto;
}

.svc-tag {
    font-family: var(--ff-mono);
    font-size: .62rem;
    font-weight: 600;
    background: var(--bg);
    color: var(--muted);
    padding: .3rem .65rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: var(--neu-in);
    transition: color .2s, border-color .2s;
}

/* CTA card — sin grid-column inline en el HTML */
.service-card-cta {
    grid-column: span 4;
    background: var(--bg);
    border-radius: var(--r-lg);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: var(--neu-out), 0 0 40px rgba(255, 215, 0, .04);
}

.cta-card-text h3 {
    font-family: var(--ff-disp);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .5rem;
}

.cta-card-text p {
    font-size: .9rem;
    color: var(--muted);
}

/* ─── PROYECTOS ──────────────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.project-card {
    background: var(--surf2);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--neu-out);
    transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
    cursor: pointer;
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--acc), transparent);
    transform: scaleX(0);
    transition: transform .4s var(--ease);
    transform-origin: center;
    z-index: 2;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: var(--border-acc);
    box-shadow: var(--neu-out), 0 24px 56px rgba(0, 0, 0, .6);
}

.project-card:hover::after {
    transform: scaleX(1);
}

.project-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--surf3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-thumb-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--ff-disp);
    font-size: 6rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .03);
    user-select: none;
    pointer-events: none;
    line-height: 1;
}

.project-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform .5s var(--ease);
}

.project-card:hover .project-thumb img {
    transform: scale(1.04);
}

.project-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 215, 0, .05);
    opacity: 0;
    transition: opacity .3s;
    z-index: 2;
    pointer-events: none;
}

.project-card:hover .project-thumb::before {
    opacity: 1;
}

.thumb-pattern {
    position: absolute;
    inset: 0;
    opacity: .35;
}

.proj-thumb-icon {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    background: rgba(10, 10, 10, .75);
    border-radius: var(--r-md);
    border: 1px solid var(--border-acc);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
    transition: border-color .3s;
}

.project-card:hover .proj-thumb-icon {
    border-color: rgba(255, 215, 0, .5);
}

.proj-thumb-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--acc);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.proj-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 3;
    font-family: var(--ff-mono);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: rgba(10, 10, 10, .88);
    color: #aaa;
    padding: .28rem .65rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
}

.project-body {
    padding: 1.1rem 1.2rem;
}

.project-title {
    font-family: var(--ff-disp);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: .25rem;
    line-height: 1.1;
}

.project-subtitle {
    font-family: var(--ff-mono);
    font-size: .65rem;
    color: var(--muted);
    letter-spacing: .06em;
    margin-bottom: .75rem;
}

.project-desc {
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: .9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-bottom: .9rem;
}

.stack-pill {
    font-family: var(--ff-mono);
    font-size: .58rem;
    font-weight: 600;
    background: var(--bg);
    color: var(--muted);
    padding: .22rem .55rem;
    border-radius: 3px;
    border: 1px solid var(--border);
    transition: color .2s, border-color .2s;
}

.project-card:hover .stack-pill {
    color: var(--text);
    border-color: rgba(255, 215, 0, .15);
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}

.project-client {
    font-size: .72rem;
    color: var(--muted);
}

.project-client strong {
    color: var(--text);
    font-weight: 600;
}

.proj-arrow {
    width: 28px;
    height: 28px;
    background: var(--bg);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    box-shadow: var(--neu-in);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s, transform .25s;
    flex-shrink: 0;
}

.project-card:hover .proj-arrow {
    background: var(--acc);
    border-color: var(--acc);
    transform: rotate(45deg);
}

.proj-arrow svg {
    width: 14px;
    height: 14px;
    stroke: var(--muted);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke .2s;
}

.project-card:hover .proj-arrow svg {
    stroke: #000;
}

/* ─── MODAL ──────────────────────────────────────────────── */
.proj-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.proj-modal-overlay.open {
    display: flex;
}

.proj-modal-box {
    background: var(--surf);
    border-radius: 24px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn .3s var(--ease);
    -webkit-animation: modalIn .3s var(--ease);
}

@-webkit-keyframes modalIn {
    from {
        opacity: 0;
        -webkit-transform: scale(.95) translateY(20px);
        transform: scale(.95) translateY(20px);
    }

    to {
        opacity: 1;
        -webkit-transform: scale(1) translateY(0);
        transform: scale(1) translateY(0);
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.proj-modal-box::-webkit-scrollbar {
    width: 4px;
}

.proj-modal-box::-webkit-scrollbar-track {
    background: transparent;
}

.proj-modal-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .1);
    border-radius: 2px;
}

.proj-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, .5);
    border-radius: 50%;
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s;
    backdrop-filter: blur(4px);
}

.proj-modal-close:hover {
    background: rgba(255, 215, 0, .1);
    border-color: var(--border-acc);
}

.proj-modal-close svg {
    width: 16px;
    height: 16px;
    stroke: var(--text);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.proj-modal-hero {
    height: 200px;
    background: var(--surf2);
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proj-modal-hero-num {
    position: absolute;
    font-family: var(--ff-disp);
    font-size: 9rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .025);
    user-select: none;
}

.proj-modal-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proj-modal-hero-icon {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    background: rgba(10, 10, 10, .75);
    border-radius: var(--r-md);
    border: 1px solid var(--border-acc);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
}

.proj-modal-hero-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--acc);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.proj-modal-hero-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    font-family: var(--ff-mono);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    background: rgba(10, 10, 10, .88);
    color: var(--acc);
    padding: .3rem .75rem;
    border-radius: 4px;
    border: 1px solid var(--border-acc);
}

.proj-modal-body {
    padding: 1.75rem;
}

.proj-modal-title {
    font-family: var(--ff-disp);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: .3rem;
    line-height: 1;
}

.proj-modal-sub {
    font-family: var(--ff-mono);
    font-size: .68rem;
    color: var(--muted);
    letter-spacing: .08em;
    margin-bottom: 1.4rem;
}

.proj-modal-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-bottom: 1.4rem;
}

.proj-modal-stat {
    background: var(--bg);
    border-radius: var(--r-md);
    padding: .9rem 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--neu-in);
}

.proj-modal-stat-label {
    font-family: var(--ff-mono);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .3rem;
}

.proj-modal-stat-val {
    font-size: .88rem;
    font-weight: 700;
    color: var(--white);
}

.proj-modal-section {
    font-family: var(--ff-mono);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
}

.proj-modal-section::before {
    content: "//";
    color: var(--acc);
}

.proj-modal-section::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

.proj-modal-desc {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1.4rem;
}

.proj-modal-features {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.4rem;
}

.proj-modal-feature {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.5;
}

.proj-modal-feature-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--acc);
    flex-shrink: 0;
    margin-top: .45rem;
}

.proj-modal-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.75rem;
}

.proj-modal-pill {
    font-family: var(--ff-mono);
    font-size: .65rem;
    font-weight: 600;
    background: var(--bg);
    color: var(--text);
    padding: .3rem .7rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.proj-modal-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.proj-modal-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--acc);
    color: #000;
    font-family: var(--ff-body);
    font-size: .84rem;
    font-weight: 700;
    padding: .7rem 1.5rem;
    border-radius: var(--r-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s var(--ease), box-shadow .2s;
}

.proj-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, .35);
}

.proj-modal-btn-primary svg {
    width: 16px;
    height: 16px;
    stroke: #000;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.proj-modal-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: var(--text);
    font-family: var(--ff-body);
    font-size: .84rem;
    font-weight: 600;
    padding: .7rem 1.5rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.proj-modal-btn-ghost:hover {
    border-color: var(--border-acc);
    color: var(--white);
}

.proj-modal-btn-ghost svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

/* ─── CARRUSEL DE MARCAS ─────────────────────────────────── */
.brands-section {
    padding: 1rem 0 4rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.brands-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.brands-label {
    font-family: var(--ff-mono);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
}

/* ── Estado en reposo: integrado con la línea gráfica gris ── */
.brand-chip img {
    max-height: 100px;
    max-width: 110px;
    width: auto;
    object-fit: contain;
    display: block;

    filter: grayscale(1) brightness(0.65) contrast(1.1);
    transition: filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.3s ease;
}

/* ── Hover: color real del logo ── */
.brand-chip:hover img {
    filter: grayscale(0) brightness(1) contrast(1);
    transform: scale(1.05);
}

.brands-label::before {
    content: "//";
    color: var(--acc);
}

.brands-head-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

.brands-track-wrap {
    position: relative;
    overflow: hidden;
}

.brands-track-wrap::before,
.brands-track-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 140px;
    z-index: 2;
    pointer-events: none;
}

.brands-track-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg) 20%, transparent);
}

.brands-track-wrap::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg) 20%, transparent);
}

.brands-track {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: max-content;
    padding: .6rem 0;
    animation: brands-scroll 60s linear infinite;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.brands-track-wrap:hover .brands-track {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

@-webkit-keyframes brands-scroll {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    100% {
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

@keyframes brands-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes pulse-border {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(246, 212, 59, 0.13);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
}

@keyframes shimmer-btn {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.meet-cta-card {
    animation: float 4s ease-in-out infinite, pulse-border 4s ease-in-out infinite;
    transition: transform 0.2s ease;
}

.meet-cta-card:hover {
    animation: pulse-border 4s ease-in-out infinite;
    transform: translateY(-8px);
}

.btn.btn-primary {
    background-image: linear-gradient(120deg,
            transparent 0%, transparent 40%,
            rgba(255, 228, 155, 0.18) 50%,
            transparent 60%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer-btn 3s linear infinite;
}

.brand-chip {
    background: var(--surf);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    box-shadow: var(--neu-out);
    padding: .6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color .3s, background .3s;
    cursor: default;
    user-select: none;
}

.brand-chip:hover {
    border-color: rgba(255, 255, 255, .14);
    background: var(--surf2);
}

.brand-chip-logo {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-chip-logo img {
    height: 125px;
    width: auto;
    max-width: 155px;
    object-fit: contain;
    filter: grayscale(1) brightness(.55);
    opacity: .7;
    transition: filter .35s ease, opacity .35s ease;
    display: block;
}

.brand-chip:hover .brand-chip-logo img {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

.brand-chip-name {
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    transition: color .3s;
}

.brand-chip:hover .brand-chip-name {
    color: var(--text);
}

/* ─── CONTACTO ───────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    position: sticky;
    top: 100px;
}

.contact-info h2 {
    color: var(--white);
    margin-top: .8rem;
    margin-bottom: 1.2rem;
}

.contact-info h2 span {
    color: var(--acc-line);
}

.contact-info-desc {
    font-size: .92rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.meet-cta-card {
    background: var(--surf2);
    border-radius: var(--r-lg);
    padding: 1.8rem;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: var(--neu-out);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.meet-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--acc), transparent);
}

.meet-cta-label {
    font-family: var(--ff-mono);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--acc);
    margin-bottom: .75rem;
}

.meet-cta-title {
    font-family: var(--ff-disp);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .5rem;
}

.meet-cta-sub {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
    line-height: 1.6;
}

.meet-cta-card .btn {
    width: 100%;
    justify-content: center;
}

.contact-detail-list {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: .85rem;
    font-size: .86rem;
    color: var(--muted);
}

.contact-detail-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--bg);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    box-shadow: var(--neu-in);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-detail-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--acc);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.contact-detail a:hover {
    color: var(--white);
}

.contact-form-card {
    background: var(--surf);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--neu-out);
    position: relative;
    overflow: hidden;
}

.contact-form-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, .25), transparent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin-bottom: 1rem;
}

.form-group:last-of-type {
    margin-bottom: 1.5rem;
}

.form-label {
    font-family: var(--ff-mono);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: .85rem 1rem;
    font-family: var(--ff-body);
    font-size: .88rem;
    box-shadow: var(--neu-in);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--border-acc);
    box-shadow: var(--neu-in), 0 0 0 3px rgba(255, 215, 0, .08);
}

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

.form-select {
    cursor: pointer;
}

.form-select option {
    background: var(--surf2);
    color: var(--text);
}

.form-submit {
    width: 100%;
    justify-content: center;
}

.form-notice {
    padding: .85rem 1rem;
    border-radius: var(--r-sm);
    font-size: .85rem;
    margin-top: 1rem;
    display: none;
}

.form-notice.success {
    background: rgba(0, 200, 100, .08);
    border: 1px solid rgba(0, 200, 100, .2);
    color: #3ddc84;
}

.form-notice.error {
    background: rgba(255, 80, 80, .08);
    border: 1px solid rgba(255, 80, 80, .2);
    color: #ff6b6b;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 52px;
    background-image:
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

.site-footer::after {
    content: "";
    position: absolute;
    bottom: 52px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--surf));
    pointer-events: none;
    z-index: 0;
}

.site-footer .container,
.footer-bar {
    position: relative;
    z-index: 1;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 4rem;
    padding-block: 5rem;
}

.footer-brand-desc {
    font-size: .86rem;
    color: var(--muted);
    line-height: 1.7;
    margin: .9rem 0 1.4rem;
}

.footer-social {
    display: flex;
    gap: .6rem;
}

.social-btn {
    width: 38px;
    height: 38px;
    background: var(--bg);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    box-shadow: var(--neu-out);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: color .2s, border-color .2s;
}

.social-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.social-btn:hover {
    color: var(--acc);
    border-color: var(--border-acc);
}

.footer-col-title {
    font-family: var(--ff-mono);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--acc);
    margin-bottom: 1.2rem;
}

.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.footer-col-links a {
    font-size: .86rem;
    color: var(--muted);
    transition: color .2s, padding-left .2s;
}

.footer-col-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1.4rem;
}

.fci {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .83rem;
    color: var(--muted);
}

.fci svg {
    width: 15px;
    height: 15px;
    stroke: var(--acc);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.fci a:hover {
    color: var(--white);
}

.footer-bar {
    border-top: 1px solid var(--border);
    padding-block: 1.4rem;
}

.footer-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: .78rem;
    color: var(--muted);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: .78rem;
    color: var(--muted);
    transition: color .2s;
}

.footer-legal a:hover {
    color: var(--white);
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    width: 44px;
    height: 44px;
    background: var(--surf2);
    border-radius: 50%;
    border: 1px solid var(--border-acc);
    box-shadow: var(--neu-out), 0 4px 20px rgba(255, 215, 0, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s;
}

.scroll-top.show {
    opacity: 1;
    pointer-events: all;
}

.scroll-top:hover {
    transform: translateY(-3px);
}

.scroll-top svg {
    width: 18px;
    height: 18px;
    stroke: var(--acc);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* ─── ANIMACIONES ────────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

[data-reveal].revealed {
    opacity: 1;
    transform: none;
}

.hero-content [data-reveal]:nth-child(1) {
    transition-delay: .05s;
}

.hero-content [data-reveal]:nth-child(2) {
    transition-delay: .2s;
}

.hero-content [data-reveal]:nth-child(3) {
    transition-delay: .35s;
}

.hero-content [data-reveal]:nth-child(4) {
    transition-delay: .48s;
}

.hero-content [data-reveal]:nth-child(5) {
    transition-delay: .58s;
}

[data-reveal-card] {
    opacity: 0;
    transform: translateY(24px) scale(.97);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

[data-reveal-card].revealed {
    opacity: 1;
    transform: none;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — UN SOLO BLOQUE POR BREAKPOINT
═══════════════════════════════════════════════════════════ */

/* Desktop ancho */
@media (min-width: 1400px) {
    .hero-inner {
        gap: 6rem;
    }
}

/* Tablet grande ≤ 1024px */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .hero-desc {
        font-size: .95rem;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-card-cta {
        grid-column: span 2;
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        padding-block: 3.5rem;
    }
}

/* Tablet mediana ≤ 900px */
@media (max-width: 900px) {
    .section {
        padding-block: 5rem;
    }

    .hero {
        padding-block: 100px 60px;
        min-height: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-desc {
        max-width: 100%;
        font-size: 1rem;
    }

    .hero-card {
        animation: none;
    }

    .hero-logo-bg {
        width: 45vw;
        right: -13%;
        top: 15%;
        opacity: .03;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-info {
        position: static;
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .proj-modal-box {
        max-width: 95vw;
    }
}

/* Móvil ≤ 640px */
@media (max-width: 640px) {
    .container {
        padding-inline: 1rem;
    }

    .section {
        padding-block: 4rem;
    }

    /* Nav */
    .nav {
        height: 64px;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .nav-drawer {
        display: block;
    }

    /* Hero */
    h1 {
        font-size: clamp(2.6rem, 11vw, 3.8rem);
    }

    h2 {
        font-size: clamp(1.9rem, 8vw, 2.8rem);
    }

    .hero {
        padding-block: 90px 48px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-desc {
        font-size: .9rem;
        margin-bottom: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .stats-2x2 {
        gap: .5rem;
    }

    .stat-box {
        padding: .85rem .6rem;
    }

    .stat-val {
        font-size: 1.7rem;
    }

    .stat-lbl {
        font-size: .62rem;
    }

    /* Servicios — 1 columna en móvil */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-cta {
        grid-column: span 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .service-card-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Proyectos */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-thumb {
        height: 160px;
    }

    /* Modal — sube desde abajo */
    .proj-modal-overlay {
        padding: .5rem;
        align-items: flex-end;
    }

    .proj-modal-box {
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
    }

    .proj-modal-hero {
        border-radius: 20px 20px 0 0;
        height: 160px;
    }

    .proj-modal-body {
        padding: 1.25rem;
    }

    .proj-modal-title {
        font-size: 1.5rem;
    }

    .proj-modal-stats {
        gap: .5rem;
    }

    .proj-modal-actions {
        flex-direction: column;
    }

    .proj-modal-btn-primary,
    .proj-modal-btn-ghost {
        width: 100%;
        justify-content: center;
    }

    /* Formulario */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-block: 3rem;
    }

    .footer-bar-inner {
        flex-direction: column;
        text-align: center;
        gap: .75rem;
    }

    .footer-legal {
        justify-content: center;
    }

    /* Scroll top */
    .scroll-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 38px;
        height: 38px;
    }

    /* Carrusel */
    .brands-track-wrap::before,
    .brands-track-wrap::after {
        width: 60px;
    }
}

/* Móvil pequeño ≤ 400px */
@media (max-width: 400px) {
    h1 {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .btn {
        padding: .72rem 1.3rem;
        font-size: .82rem;
    }

    .project-thumb {
        height: 140px;
    }

    .proj-modal-box {
        max-height: 95vh;
    }

    .tag {
        font-size: .62rem;
        letter-spacing: .15em;
    }

    .tag::before {
        width: 16px;
    }

    .cta-card-text h3 {
        font-size: 1.3rem;
    }

    .hero-card {
        padding: 1.25rem;
    }

    .stat-val {
        font-size: 1.5rem;
    }
}

/* iPhone SE vertical */
@media (max-width: 640px) and (max-height: 700px) {
    .hero {
        min-height: auto;
        padding-block: 80px 40px;
    }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {

    .hero-card,
    .hero-logo-bg,
    .brands-track {
        animation: none !important;
    }

    [data-reveal],
    [data-reveal-card] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Sin JavaScript */
@media (scripting: none) {

    [data-reveal],
    [data-reveal-card] {
        opacity: 1 !important;
        transform: none !important;
    }
}