:root {
    --bg: #F4F5F6;
    --bg-mid: #EAECEE;
    --bg-dark: #1C2026;
    --bg-darker: #0F1318;
    --fg: #1A1E24;
    --fg-light: #FFFFFF;
    --fg-muted: #575F6E;
    --fg-subtle: #545E6B;
    --blue-dark: #1A3A5C;
    --blue-mid: #2563A8;
    --blue-light: #4D8DD0;
    --steel: #3D4652;
    --steel-light: #8598A8;
    --accent: #2563A8;
    --accent-hover: #1A3A5C;
    --accent-glow: rgba(37, 99, 168, 0.15);
    --border: rgba(26, 30, 36, 0.10);
    --border-mid: rgba(26, 30, 36, 0.16);
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-blue: rgba(37, 99, 168, 0.30);
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body: 'Barlow', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 0.4s;

    /* ═══════════════════════════════════════════════════════
       SISTEMA RESPONSIVE — GYG Soluciones Constructivas
       Fluid typography + fluid spacing  375px → 1920px
       ═══════════════════════════════════════════════════════ */

    /* CONTENEDORES */
    --container-max: 1240px;
    --container-wide: 1440px;
    --container-pad: clamp(1.1rem, 4vw, 3rem);

    /* NAVBAR */
    --navbar-h: clamp(56px, 5.5vw, 76px);
    --logo-h: clamp(34px, 3.2vw, 50px);

    /* TIPOGRAFÍA FLUIDA */
    --t-label: clamp(0.62rem, 0.9vw, 0.72rem);
    --t-xs: clamp(0.75rem, 1vw, 0.82rem);
    --t-sm: clamp(0.82rem, 1.1vw, 0.92rem);
    --t-base: clamp(0.88rem, 1.2vw, 1.02rem);
    --t-md: clamp(0.95rem, 1.4vw, 1.15rem);
    --t-lg: clamp(1.1rem, 1.8vw, 1.5rem);
    --t-xl: clamp(1.3rem, 2.2vw, 2rem);
    --t-2xl: clamp(1.6rem, 3vw, 2.8rem);
    --t-3xl: clamp(2rem, 3.8vw, 3.8rem);
    --t-hero: clamp(2.6rem, 5vw, 6rem);

    /* ESPACIADO FLUIDO */
    --sp-1: clamp(0.4rem, 0.8vw, 0.6rem);
    --sp-2: clamp(0.6rem, 1vw, 0.9rem);
    --sp-3: clamp(0.9rem, 1.5vw, 1.25rem);
    --sp-4: clamp(1.1rem, 2vw, 1.75rem);
    --sp-6: clamp(1.5rem, 2.8vw, 2.5rem);
    --sp-8: clamp(2rem, 3.5vw, 3.5rem);
    --sp-12: clamp(2.5rem, 5vw, 5rem);
    --sp-16: clamp(3.5rem, 7vw, 7rem);

    /* GRIDS */
    --grid-gap: clamp(0.75rem, 1.5vw, 1.5rem);
    --card-radius: clamp(2px, 0.3vw, 6px);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    scroll-snap-type: y proximity;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

button {
    cursor: pointer;
    font: inherit;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

@media (prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.t-hero {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.5vw, 6.5rem);
    line-height: 0.94;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.t-h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.5vw, 4rem);
    line-height: 0.98;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.t-h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.t-h3 {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.15;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.t-body {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.35vw, 1rem);
    line-height: 1.7;
    font-weight: 300;
}

.t-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.t-stat {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
}

.t-mono {
    font-family: var(--font-mono);
    font-size: clamp(0.65rem, 1.1vw, 0.72rem);
    font-weight: 400;
    letter-spacing: 0.08em;
}

.container {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 0 clamp(1.1rem, 4vw, 3rem);
}

.section {
    display: flex;
    align-items: center;
    padding: clamp(3.5rem, 8vw, 8rem) 0;
    position: relative;
    scroll-snap-align: start;
}

@media (min-width:900px) {
    .section {
        min-height: 100svh;
    }
}

.section-rule {
    width: 36px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 1.25rem;
}

.section-head::before {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 3rem;
    max-width: 720px;
}

.section-head .t-mono {
    color: var(--fg-muted);
}

.section-head .t-mono .marker {
    color: var(--accent);
    margin-right: 0.5rem;
}

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: 72px;
    z-index: 100;
    display: flex;
    align-items: center;
    background: rgba(15, 19, 24, 0.0);
    border-bottom: 0.5px solid transparent;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.navbar.scrolled {
    background: rgba(15, 19, 24, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--border-dark);
}

.nav-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.75rem, 2vw, 2rem);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    min-width: 0;
}

.nav-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: opacity var(--dur);
}

.nav-logo img {
    height: clamp(34px, 3.2vw, 50px) !important;
    width: auto !important;
    object-fit: contain;
}

.nav-logo-text {
    display: none;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    padding-left: 0.65rem;
}

@media (min-width:900px) {
    .nav-logo-text {
        display: block;
    }
}

.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width:880px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.04em;
    transition: color var(--dur);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--blue-light);
    transition: width var(--dur) var(--ease);
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    padding: 0.65rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 2px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: background var(--dur), transform var(--dur);
}

@media (min-width:540px) {
    .navbar .btn-nav {
        display: inline-flex;
    }
}

.btn-nav:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-nav .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-light);
    position: relative;
}

.btn-nav .dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    animation: pulse-ring 2.4s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(3);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 28px;
    padding: 6px 0;
}

@media (min-width:880px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    display: block;
    height: 1.5px;
    background: white;
    transition: transform var(--dur), opacity var(--dur);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

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

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--bg-darker);
    transform: translateY(-100%);
    transition: transform var(--dur) var(--ease);
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: 2rem clamp(1.25rem, 4vw, 3rem);
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.85rem 0;
    border-bottom: 0.5px solid var(--border-dark);
}

.mobile-menu a:last-of-type {
    border-bottom: none;
}

.mobile-menu .btn-nav {
    display: inline-flex;
    margin-top: 1.5rem;
    align-self: flex-start;
}

.hero-brand {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    margin: 0 0 1.25rem;
}

.hero-badges {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
    margin: 1.5rem 0 2rem;
    flex-wrap: wrap;
}

.hero-badges .badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.hero-badges svg {
    width: 16px;
    height: 16px;
    stroke: rgba(37, 99, 168, 0.8);
    flex-shrink: 0;
}

@media (max-width:600px) {
    .hero-badges {
        gap: 1.25rem;
    }

    .hero-badges .badge {
        font-size: 0.78rem;
    }

    .hero-badges svg {
        width: 14px;
        height: 14px;
    }
}

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 2rem;
    overflow: hidden;
    isolation: isolate;
    scroll-snap-align: start;
    background: radial-gradient(ellipse 90% 60% at 80% 50%, rgba(37, 99, 168, 0.18) 0%, transparent 60%), linear-gradient(135deg, #0F1318 0%, #1A2030 50%, #0F1318 100%);
}

@media (min-height:760px) and (min-width:1024px) {
    .hero {
        min-height: 100svh;
    }
}

@media (max-height:760px) and (min-width:900px) {
    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 2rem;
    }
}

@media (max-height:520px) {
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 3rem;
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to right, rgba(15, 19, 24, 0.92) 0%, rgba(15, 19, 24, 0.55) 50%, transparent 100%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: linear-gradient(rgba(77, 141, 208, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(77, 141, 208, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-deco {
    position: absolute;
    right: -3vw;
    bottom: -2vw;
    z-index: 1;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(11rem, 26vw, 26rem);
    color: rgba(77, 141, 208, 0.045);
    text-transform: uppercase;
    line-height: 0.85;
    letter-spacing: -8px;
    user-select: none;
    pointer-events: none;
}

.hero-spec {
    position: absolute;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
}

.hero-spec.sp-tl {
    top: 90px;
    left: clamp(1.25rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hero-spec.sp-br {
    bottom: 1.5rem;
    right: clamp(1.25rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hero-spec .marker {
    width: 6px;
    height: 6px;
    background: var(--blue-light);
    display: inline-block;
}

.hero-spec .line {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.hero-visual {
    position: absolute;
    right: -2%;
    left: auto;
    top: 50%;
    transform: translate(-80px, calc(-50% - 110px));
    width: 75vw;
    height: 75vw;
    max-width: 850px;
    max-height: 850px;
    background-image: url("../img/logoGyG_transparent.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    filter: drop-shadow(0 0 80px rgba(77, 141, 208, 0.25));
}

@media (max-width:1400px) {
    .hero-visual {
        width: 38vw;
        height: 38vw;
        max-width: 560px;
        max-height: 560px;
        transform: translate(-40px, calc(-50% - 110px));
    }
}

@media (max-width:1100px) {
    .hero-visual {
        width: 35vw;
        height: 35vw;
        max-width: 420px;
        max-height: 420px;
        right: 0;
        transform: translate(0, calc(-50% - 110px));
    }
}

@media (max-width:900px) {
    .hero-visual {
        display: none;
    }
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 760px;
    width: 100%;
    padding: 1rem 0;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content>* {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.95s var(--ease) forwards;
}

.hero-content>*:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-content>*:nth-child(2) {
    animation-delay: 0.22s;
}

.hero-content>*:nth-child(3) {
    animation-delay: 0.34s;
}

.hero-content>*:nth-child(4) {
    animation-delay: 0.46s;
}

.hero-content>*:nth-child(5) {
    animation-delay: 0.58s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FIX LCP: Disable animations on mobile */
@media (max-width: 768px) {
    .hero-content>* {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: clamp(0.62rem, 1.1vw, 0.72rem);
    letter-spacing: 0.18em;
    color: var(--blue-light);
    text-transform: uppercase;
    border: 0.5px solid rgba(77, 141, 208, 0.35);
    background: rgba(37, 99, 168, 0.06);
    padding: 0.45rem 0.85rem;
    border-radius: 2px;
    max-width: 100%;
    margin-left: 0;
    margin-right: auto;
}

.hero-tag .pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-light);
    position: relative;
}

.hero-tag .pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(77, 141, 208, 0.7);
    animation: pulse-ring 2.4s infinite;
}

.hero-h1 {
    color: var(--fg-light);
    margin: clamp(1rem, 2.4vw, 1.5rem) auto clamp(1rem, 2vw, 1.5rem) 0;
    max-width: 14ch;
}

.hero-h1 .fade {
    color: rgba(255, 255, 255, 0.92);
}

.hero-h1 .blue,
.hero-h1 .blue-line {
    color: transparent;
    background: linear-gradient(135deg, var(--blue-light) 0%, #87B5E0 50%, var(--blue-mid) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-h1 .blue-line::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 1px;
    background: rgba(77, 141, 208, 0.4);
}

.hero-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    max-width: 520px;
    margin-left: 0;
    margin-right: auto;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 300;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.hero-actions .btn-primary,
.hero-actions .btn-ghost {
    flex: 0 1 auto;
}

@media (max-width:420px) {
    .hero-actions {
        width: 100%;
    }

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

.hero-services {
    margin-top: clamp(2rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    max-width: 720px;
    margin-left: 0;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.06);
    border: 0.5px solid rgba(255, 255, 255, 0.06);
}

@media (min-width:640px) {
    .hero-services {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.hero-service {
    background: rgba(15, 19, 24, 0.6);
    padding: clamp(0.75rem, 1.6vw, 1rem) clamp(0.85rem, 1.8vw, 1.1rem);
    backdrop-filter: blur(4px);
    min-width: 0;
}

.hero-service .num {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    color: var(--blue-light);
    margin-bottom: 0.4rem;
    display: block;
}

.hero-service .name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
    letter-spacing: 0.04em;
    color: white;
    text-transform: uppercase;
    word-break: break-word;
    hyphens: auto;
}

.btn-primary,
.btn-ghost,
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.95rem 1.85rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 2px;
    transition: all var(--dur) var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -10px rgba(37, 99, 168, 0.5);
}

.btn-primary svg {
    width: 14px;
    height: 14px;
    transition: transform var(--dur);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    border: 0.5px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.7);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

.stats-bar {
    background: var(--bg-darker);
    border-top: 2px solid var(--accent);
    padding: 2.5rem 0;
    position: relative;
    contain: layout;
}

.stats-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: -2px;
    width: 80px;
    height: 2px;
    background: var(--blue-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0;
}

@media (min-width:880px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }
}

.stat-item {
    padding: 0.5rem clamp(0.85rem, 2vw, 1.25rem);
    border-right: 0.5px solid var(--border-dark);
    position: relative;
    min-width: 0;
}

.stat-item:nth-child(2n) {
    border-right: none;
}

@media (min-width:880px) {
    .stat-item:nth-child(2n) {
        border-right: 0.5px solid var(--border-dark);
    }

    .stat-item:last-child {
        border-right: none;
    }
}

.stat-id {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--steel-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-num {
    color: var(--blue-light);
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.stat-num .unit {
    font-size: 0.45em;
    color: var(--fg-subtle);
    font-weight: 500;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--fg-subtle);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.4rem;
    max-width: 180px;
}

.stats-bar .stat-label,
.stats-bar .stat-num .unit {
    color: rgba(255, 255, 255, 0.65);
}

.services {
    background: var(--bg);
}

.services-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width:880px) {
    .services-head {
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }
}

.services-intro p {
    color: var(--fg-muted);
    max-width: 460px;
    font-size: 1.02rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--border-mid);
    border: 0.5px solid var(--border-mid);
}

@media (min-width:600px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width:1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--bg);
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.35rem, 2.6vw, 1.85rem) clamp(1.75rem, 3.2vw, 2.25rem);
    transition: background var(--dur) var(--ease), transform var(--dur);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    min-width: 0;
}

.service-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease);
}

.service-card:hover {
    background: #FAFBFC;
}

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

.service-id {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-id::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border: 0.5px solid var(--border-blue);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.service-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-name {
    color: var(--fg);
    margin-bottom: 0.7rem;
}

.service-desc {
    color: var(--fg-muted);
    line-height: 1.65;
    font-size: 0.92rem;
    flex: 1;
}

.service-tag {
    align-self: flex-start;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.service-tag svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform var(--dur);
}

.service-card:hover .service-tag svg {
    transform: translateX(4px);
}

.proceso {
    background: var(--bg-dark);
    color: var(--fg-light);
    position: relative;
    overflow: hidden;
}

.proceso::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(77, 141, 208, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(77, 141, 208, 0.045) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.proceso .container {
    position: relative;
    z-index: 1;
}

.proceso .section-head .t-mono {
    color: var(--steel-light);
}

.proceso .section-head h2 {
    color: white;
}

.proceso .section-head p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 580px;
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border-top: 0.5px solid rgba(255, 255, 255, 0.06);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}

@media (min-width:760px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width:1080px) {
    .steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step {
    background: var(--bg-dark);
    padding: 2.25rem 1.85rem 2.5rem;
    position: relative;
    transition: background var(--dur);
}

.step:hover {
    background: #20252D;
}

.step-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 5rem;
    line-height: 1;
    color: rgba(77, 141, 208, 0.18);
    margin-bottom: 0.5rem;
    display: block;
}

.step-mono {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--steel-light);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.step-title {
    color: var(--fg-light);
    margin-bottom: 0.6rem;
}

.step-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
    line-height: 1.65;
}

@media (min-width:1080px) {
    .step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -1px;
        width: 1px;
        height: 32px;
        background: var(--accent);
        transform: translateY(-50%);
    }
}

.obras {
    background: var(--bg-mid);
    position: relative;
}

.obras::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(26, 30, 36, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.obras .container {
    position: relative;
    z-index: 1;
}

.obras-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: end;
}

@media (min-width:880px) {
    .obras-head {
        grid-template-columns: 1fr auto;
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

@media (min-width:600px) and (max-width:899px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }
}

@media (min-width:900px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 260px;
    }

    .portfolio-item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (min-width:1200px) {
    .portfolio-grid {
        grid-auto-rows: 300px;
    }
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-darker);
    aspect-ratio: 4 / 3;
}

@media (min-width:600px) {
    .portfolio-item {
        aspect-ratio: auto;
    }
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
    filter: saturate(0.92) contrast(1.04);
}

.portfolio-item:hover img {
    transform: scale(1.06);
    filter: saturate(1) contrast(1.08);
}

.portfolio-meta {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 1.25rem 1.4rem 1.1rem;
    background: linear-gradient(to top, rgba(15, 19, 24, 0.95) 0%, rgba(15, 19, 24, 0.55) 60%, transparent 100%);
    color: white;
    transform: translateY(8px);
    opacity: 0.95;
    transition: transform var(--dur) var(--ease);
}

.portfolio-item:hover .portfolio-meta {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    color: var(--blue-light);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    display: block;
}

.portfolio-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.portfolio-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.2rem;
    letter-spacing: 0.04em;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 16px;
    height: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.why {
    background: var(--bg);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width:920px) {
    .why-grid {
        grid-template-columns: 1fr 1.1fr;
        gap: 5rem;
    }
}

.why-left .section-head {
    margin-bottom: 1.75rem;
}

.why-left p {
    color: var(--fg-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 460px;
}

.why-spec {
    margin-top: 2rem;
    padding: 1.25rem 1.4rem;
    border: 0.5px solid var(--border-mid);
    border-left: 3px solid var(--accent);
    background: rgba(37, 99, 168, 0.03);
    border-radius: 1px;
    max-width: 460px;
}

.why-spec .t-mono {
    color: var(--accent);
    display: block;
    margin-bottom: 0.4rem;
}

.why-spec p {
    font-size: 0.92rem;
    color: var(--fg);
    margin: 0;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-mid);
    border: 0.5px solid var(--border-mid);
}

.why-item {
    background: var(--bg);
    padding: 1.5rem 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    transition: background var(--dur);
}

.why-item:hover {
    background: #FAFBFC;
}

.why-item-num {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--fg-subtle);
    letter-spacing: 0.2em;
}

.why-item-content h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fg);
    margin-bottom: 0.25rem;
}

.why-item-content p {
    color: var(--fg-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 100%;
}

.why-check {
    width: 26px;
    height: 26px;
    border: 1px solid var(--border-blue);
    background: var(--accent-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-check svg {
    width: 12px;
    height: 12px;
    stroke: var(--accent);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.testimonios {
    background: var(--bg-mid);
    contain: layout;
}

.test-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width:760px) {
    .test-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width:1080px) {
    .test-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonio {
    background: var(--bg);
    border: 0.5px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 2px;
    padding: 1.85rem 1.65rem;
    position: relative;
    transition: transform var(--dur), box-shadow var(--dur);
}

.testimonio:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -22px rgba(26, 58, 92, 0.3);
}

.test-mono {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    color: var(--fg-subtle);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.test-stars {
    color: #F59E0B;
    letter-spacing: 4px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

.test-text {
    color: var(--fg);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.test-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.test-meta {
    display: flex;
    flex-direction: column;
}

.test-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--fg);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.test-loc {
    font-size: 0.78rem;
    color: var(--fg-muted);
    letter-spacing: 0.04em;
}

.faq {
    background: var(--bg-mid);
    contain: layout;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (min-width:760px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width:1080px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.faq-item {
    background: white;
    border: 0.5px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    transition: box-shadow var(--dur);
}

.faq-item[open] {
    box-shadow: 0 8px 24px -6px rgba(26, 58, 92, 0.12);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    color: var(--fg);
    transition: background var(--dur), color var(--dur);
    list-style: none;
}

.faq-item[open] .faq-question {
    background: var(--bg-mid);
    color: var(--blue-dark);
}

.faq-question span {
    flex: 1;
    font-size: 1rem;
    text-align: left;
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--blue-dark);
    stroke: currentColor;
    transition: transform var(--dur);
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.35rem;
    color: var(--fg-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.cta-final {
    background: var(--blue-dark);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 90%);
}

.cta-final::after {
    content: 'GYG';
    position: absolute;
    bottom: -3rem;
    left: 50%;
    z-index: 0;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(12rem, 28vw, 28rem);
    color: rgba(255, 255, 255, 0.025);
    line-height: 0.8;
    letter-spacing: -8px;
    pointer-events: none;
    user-select: none;
}

.cta-final .container {
    position: relative;
    z-index: 1;
}

.cta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--blue-light);
    text-transform: uppercase;
}

.cta-tag .marker {
    width: 8px;
    height: 1px;
    background: var(--blue-light);
    display: inline-block;
}

.cta-h1 {
    color: white;
    margin: 1.5rem 0 2.5rem;
    line-height: 1.2;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.cta-h1 .accent {
    display: block;
    margin-top: 0.2rem;
    background-image: linear-gradient(135deg, #FFFFFF 0%, var(--blue-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(77, 141, 208, 0.3));
}

.cta-sub {
    color: rgba(255, 255, 255, 0.72);
    max-width: 540px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-cta-w {
    background: white;
    color: var(--blue-dark);
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 2px;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform var(--dur), background var(--dur);
}

.btn-cta-w:hover {
    transform: translateY(-2px);
    background: #E8F1FA;
}

.btn-cta-w svg {
    width: 16px;
    height: 16px;
}

.btn-cta-g {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-family: var(--font-body);
    font-size: 0.92rem;
    border-radius: 2px;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: border-color var(--dur), background var(--dur);
}

.btn-cta-g:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.06);
}

.cta-contact {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width:700px) {
    .cta-contact {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 3.5rem;
    }
}

.cta-contact-item {
    background: var(--blue-dark);
    padding: 1.25rem 1.4rem;
    text-align: left;
}

.cta-contact-item .t-mono {
    color: var(--blue-light);
    display: block;
    margin-bottom: 0.4rem;
}

.cta-contact-item .val {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    letter-spacing: 0.04em;
}

.cta-contact-item .sub {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.15rem;
}

.footer {
    background: var(--bg-darker);
    color: white;
    padding: 4rem 0 1.5rem;
    position: relative;
    scroll-snap-align: start;
}

.footer::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

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

@media (min-width:780px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 3rem;
    }
}

.footer-logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-col-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.footer-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 1.5rem;
}

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

.footer-social a {
    width: 36px;
    height: 36px;
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--dur), background var(--dur);
}

.footer-social a:hover {
    border-color: var(--blue-light);
    background: rgba(77, 141, 208, 0.1);
}

.footer-social svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.7);
    fill: none;
    stroke-width: 1.5;
}

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.25rem;
}

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

.footer-links a,
.footer-links li {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--dur);
}

.footer-links a {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.25);
    transition: color var(--dur), text-decoration-color var(--dur);
}

.footer-links a:hover {
    color: var(--blue-light);
    text-decoration-color: var(--blue-light);
}

.footer-link-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-bottom {
    border-top: 0.5px solid var(--border-dark);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.55);
}

.footer-spec {
    color: rgba(255, 255, 255, 0.55);
}

.footer-spec .marker {
    color: var(--blue-light);
}

.wa-float {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 90;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.5);
    transition: transform var(--dur), box-shadow var(--dur);
}

.wa-float:hover {
    transform: scale(1.06);
    box-shadow: 0 18px 36px -8px rgba(37, 211, 102, 0.6);
}

.wa-float::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.4);
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.wa-float svg {
    width: 26px;
    height: 26px;
    fill: white;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

@media (min-width:540px) and (max-width:879px) {
    .nav-inner {
        gap: 0.85rem;
    }

    .navbar .btn-nav {
        padding: 0.6rem 1rem;
        font-size: 0.78rem;
    }

    .nav-toggle {
        margin-left: 0.25rem;
    }
}

@media (max-height:520px) and (orientation:landscape) {
    .hero {
        min-height: auto;
        padding-top: 92px;
        padding-bottom: 2.5rem;
    }

    .hero-services {
        display: none;
    }

    .hero-h1 {
        margin-top: 0.6rem;
        margin-bottom: 0.6rem;
    }
}

@media (max-width:600px) {

    .hero-spec.sp-tl,
    .hero-spec.sp-br {
        display: none;
    }

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

    .section {
        padding: 3rem 0;
    }

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

    .stats-bar {
        padding: 1.85rem 0;
    }

    .stats-grid {
        gap: 1.4rem 0;
    }

    .stat-item {
        padding: 0.4rem 0.85rem;
    }

    .stat-label {
        font-size: 0.72rem;
        max-width: none;
    }

    .why-item {
        padding: 1.25rem 1.1rem;
        gap: 0.85rem;
    }

    .why-check {
        width: 22px;
        height: 22px;
    }

    .why-item-content h3 {
        font-size: 1.02rem;
    }

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

    .service-card {
        min-height: auto;
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .step {
        padding: 1.85rem 1.4rem 2rem;
    }

    .step-num {
        font-size: 4rem;
    }

    .testimonio {
        padding: 1.5rem 1.35rem;
    }

    .footer {
        padding: 3rem 0 1.25rem;
    }

    .footer-bottom {
        font-size: 0.65rem;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width:380px) {
    .container {
        padding: 0 1rem;
    }

    .hero-h1 {
        max-width: none;
    }

    .hero-tag {
        font-size: 0.6rem;
        padding: 0.4rem 0.7rem;
    }

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

    .hero-service {
        padding: 0.65rem 0.8rem;
    }

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

    .stat-item {
        border-right: none;
        border-bottom: 0.5px solid var(--border-dark);
        padding-bottom: 1rem;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .navbar {
        height: 64px;
    }

    .mobile-menu {
        inset: 64px 0 0 0;
    }
}

@media (hover:none) and (pointer:coarse) {

    .nav-links a,
    .footer-links a {
        padding: 0.5rem 0;
    }

    .mobile-menu a {
        padding: 1rem 0;
    }

    .btn-primary,
    .btn-ghost,
    .btn-outline,
    .btn-cta-w,
    .btn-cta-g {
        min-height: 44px;
    }

    .testimonio:hover {
        transform: none;
        box-shadow: none;
    }

    .portfolio-item:hover img {
        transform: none;
        filter: saturate(0.92) contrast(1.04);
    }
}

@media (max-width:600px) {
    .wa-float {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }

    .wa-float svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width:380px) {
    .wa-float {
        width: 46px;
        height: 46px;
    }

    .wa-float svg {
        width: 20px;
        height: 20px;
    }
}

.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 9999;
    background: var(--accent);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0 0 2px 0;
    font-weight: 500;
    font-size: 0.9rem;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 0;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 2px;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s linear;
}

.sticky-cta-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-top: 0.5px solid var(--border-dark);
    padding: 0.75rem 1rem;
    display: none;
    gap: 0.75rem;
    z-index: 98;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta-mobile.visible {
    transform: translateY(0);
}

.sticky-cta-mobile a {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s, transform 0.2s;
}

.sticky-cta-mobile a:active {
    opacity: 0.8;
    transform: scale(0.98);
}

.sticky-cta-mobile .cta-wa {
    background: #15803d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.sticky-cta-mobile .cta-call {
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.sticky-cta-mobile svg {
    width: 16px;
    height: 16px;
}

@media (max-width:600px) {
    .sticky-cta-mobile {
        display: flex;
    }
}

@media (min-width:601px) {
    .sticky-cta-mobile {
        display: none !important;
    }
}

.trust-bar {
    background: var(--bg-mid);
    border-top: 1px solid var(--border-mid);
    border-bottom: 1px solid var(--border-mid);
    padding: 1.5rem 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 0.5rem;
}

@media (min-width:700px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 1rem;
    border-right: 1px solid var(--border-mid);
}

.trust-item:last-child {
    border-right: none;
}

@media (max-width:699px) {
    .trust-item:nth-child(2n) {
        border-right: none;
    }

    .trust-item:nth-child(odd) {
        border-right: 1px solid var(--border-mid);
    }
}

.trust-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-icon svg {
    width: 13px;
    height: 13px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
}

.trust-text {
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--fg);
    line-height: 1.3;
}

.cta-strip {
    background: var(--bg-dark);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-strip-text {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: white;
    line-height: 1.2;
    max-width: 560px;
}

.cta-strip-text span {
    color: var(--blue-light);
}

.cta-mid-b {
    background: var(--bg-dark);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.cta-mid-b-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-mid-b-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: white;
    line-height: 1.2;
}

.cta-mid-b-sub {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    color: rgba(255, 255, 255, 0.65);
    max-width: 440px;
    line-height: 1.6;
}

/* ── SNAP NAV DOTS ── */
.snap-nav {
    position: fixed;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 95;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    mix-blend-mode: normal;
}

@media (max-width:900px) {
    .snap-nav {
        display: none;
    }
}

.snap-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    cursor: pointer;
    padding: 0;
    transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    outline: none;
    flex-shrink: 0;
}

.snap-dot::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
}

.snap-dot::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 0.7rem);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 19, 24, 0.92);
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-mono, monospace);
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.24rem 0.55rem;
    border-radius: 2px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border-left: 2px solid var(--accent, #2563A8);
}

.snap-dot:hover::after {
    opacity: 1;
}

.snap-dot.active::after {
    opacity: 1;
    color: var(--blue-light, #4D8DD0);
}

.snap-dot:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1.3);
}

.snap-dot.active {
    background: var(--accent, #2563A8);
    border-color: var(--accent, #2563A8);
    height: 22px;
    border-radius: 4px;
    transform: scale(1);
}

/* ── SWIPER CUSTOM ── */
.obras-slider-container {
    margin-top: 2rem;
    position: relative;
    padding-bottom: 50px;
}

.obrasSwiper {
    padding: 20px 5px !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--blue-light) !important;
    background: rgba(15, 19, 24, 0.8);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: var(--blue-light) !important;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px !important;
    border-radius: 4px !important;
}

/* ── SLIDER IMAGE CONSISTENCY ── */
.obrasSwiper .portfolio-item {
    aspect-ratio: 3 / 2;
    /* Taller aspect ratio for larger presence */
    height: auto;
    overflow: hidden;
}

.obrasSwiper .portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* This ensures they fill the space without distortion */
}

/* Ensure Swiper slides have equal height */
.obrasSwiper .swiper-slide {
    height: auto;
    display: flex;
}

.obrasSwiper .swiper-slide .portfolio-item {
    flex: 1;
}

.obras-slider-container {
    margin-top: 3.5rem;
    position: relative;
    padding-bottom: 70px;
}

@media (min-width: 1024px) {
    .obras {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
    .obras .t-h1 {
        font-size: calc(var(--t-3xl) * 1.55) !important;
    }
    .obras .t-mono {
        font-size: 1.3rem;
    }
    .obrasSwiper .portfolio-item {
        aspect-ratio: 3 / 2.5; /* Even taller for 20% more presence */
    }
    .portfolio-title {
        font-size: 2rem !important;
    }
    .portfolio-sub {
        font-size: 1.3rem !important;
    }
    .portfolio-tag {
        font-size: 1.1rem !important;
    }
    .obras-head {
        margin-bottom: 5rem;
    }
}

/* ── CENTER SERVICES SECTION ── */
#servicios .services-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

#servicios .services-intro p {
    max-width: 100%;
}

#servicios .section-rule {
    margin-left: auto;
    margin-right: auto;
}


/* ── DOTS BACKGROUND UTILITY ── */
.bg-dotted {
    position: relative;
}

.bg-dotted::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(26, 30, 36, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

.bg-dotted>.container {
    position: relative;
    z-index: 1;
}

/* ── HERO GRID LAYOUT ── */
.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
    position: relative;
    /* logo se posiciona relativo al container, no al viewport */
    z-index: 4;
}

.hero-content {
    flex: 1;
    max-width: 720px;
    margin: 0;
    text-align: left;
    position: relative;
    z-index: 5;
    /* Keep it above hero::before overlay (z-index 3) */
}

.hero-main-logo-col {
    position: absolute;
    right: 60px;
    top: 0;
    margin-top: 250px;
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
}

.hero-main-logo-img {
    width: 260%;
    /* Aumentado un 60% respecto al valor anterior de 200% o ajustado según pedido */
    max-width: 1900px;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 60px rgba(77, 141, 208, 0.2));
}

@media (max-width: 900px) {
    .hero-main-logo-col {
        display: none;
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        gap: 40px;
    }

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

    .hero-visual-v2 {
        height: 300px;
        opacity: 0.5;
    }

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

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

@media (min-width: 1600px) {
    .hero-content {
        max-width: 860px;
    }

    .t-hero {
        font-size: 6rem;
    }
}

/* ══════════════════════════════════════════════════════════
   FIX CRÍTICO — 1280×720 (Laptop HD)
   El hero debe caber en la pantalla sin necesidad de scroll
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1366px) and (max-height: 768px) {
    .hero {
        padding-top: 76px !important;
        padding-bottom: 1.25rem !important;
    }

    .t-hero {
        font-size: clamp(2.2rem, 3.8vw, 4.5rem) !important;
        line-height: 0.96 !important;
    }

    .hero-h1 {
        margin-top: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    .hero-sub {
        font-size: 0.88rem !important;
        margin-bottom: 1rem !important;
    }

    .hero-badges {
        margin: 0.85rem 0 1rem !important;
    }

    .hero-services {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════
   FIX — 1920×1080 (Monitor Full HD)
   El logo decorativo se restringe al ancho del container
   ══════════════════════════════════════════════════════════ */
@media (min-width: 1440px) {
    .hero-main-logo-col {
        width: 42%;
        margin-top: 120px;
    }

    .hero-main-logo-img {
        max-width: 780px;
    }

    .navbar {
        height: var(--navbar-h);
    }
}

/* ══════════════════════════════════════════════════════════
   FIX NAVBAR — links se aprietan entre 880px y 1100px
   ══════════════════════════════════════════════════════════ */
@media (min-width: 880px) and (max-width: 1100px) {
    .nav-links {
        gap: clamp(0.85rem, 1.8vw, 1.5rem);
    }

    .nav-links a {
        font-size: clamp(0.75rem, 1.1vw, 0.85rem);
    }

    .btn-nav {
        padding: 0.6rem clamp(0.85rem, 1.5vw, 1.25rem) !important;
        font-size: clamp(0.75rem, 1.1vw, 0.82rem) !important;
    }
}

/* ══════════════════════════════════════════════════════════
   HERO MÓVIL — logo adaptado + título a pantalla completa
   ══════════════════════════════════════════════════════════ */
.hero-mobile-logo {
    display: none;
}

@media (max-width: 900px) {

    /* Muestra el logo */
    .hero-mobile-logo {
        display: block;
        width: min(240px, 68vw);
        margin: 0 auto clamp(1.25rem, 4vw, 2rem);
        animation: fadeUp 0.5s var(--ease) 0.08s both;
    }

    .hero-mobile-logo-img-el {
        width: 100%;
        max-width: 280px;
        height: auto;
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.25));
    }

    /* Sube el hero para que el logo quede 5px bajo la navbar */
    .hero {
        padding-top: calc(var(--navbar-h) + 5px) !important;
    }

    .hero-grid {
        padding-top: 0 !important;
        gap: 24px;
    }

    /* Oculta el texto plano ya que el logo lo reemplaza */
    .hero-brand {
        display: none;
    }

    /* El H1 ocupa todo el ancho disponible y queda centrado */
    .hero-h1 {
        max-width: 100% !important;
        width: 100%;
        text-align: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        font-size: clamp(2.6rem, 11vw, 4.2rem) !important;
    }
}