/* ═══════════════════════════════════════════════
   LIONIX — Premium Dark Theme
   Inspired by: Media.Monks + Shift5 + Power Digital
═══════════════════════════════════════════════ */

/* ─── PARALLAX LINES ─── */
#parallax-lines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.pline {
    position: absolute;
    left: 50%;
    width: 300vw;
    margin-left: -150vw;
    will-change: transform;
    mix-blend-mode: screen;
    opacity: 0;
}

/* Colors, thicknesses, and vertical positions — CreativeLion palette */
.pl-1 { top: 8%;   height: 4px;  background: #00B4AA; }
.pl-2 { top: 20%;  height: 35px; background: #FFC200; }
.pl-3 { top: 33%;  height: 8px;  background: #FF0090; }
.pl-4 { top: 45%;  height: 25px; background: #8E2ABE; }
.pl-5 { top: 18%;  height: 2px;  background: #00f2fe; }
.pl-6 { top: 60%;  height: 15px; background: #FF0090; }
.pl-7 { top: 40%;  height: 6px;  background: #FFC200; }
.pl-8 { top: 72%;  height: 30px; background: #00B4AA; }
.pl-9 { top: 82%;  height: 5px;  background: #8E2ABE; }

@media (max-width: 768px) {
    .pline { width: 200vw; margin-left: -100vw; }
}

/* ─── CUSTOM PROPERTIES ─── */
:root {
    --black:        #080808;
    --white:        #f0f0ee;
    --cyan:         #00f2fe;
    --cyan-dim:     rgba(0, 242, 254, 0.07);
    --purple:       #8B2FC9;
    --purple-dim:   rgba(139, 47, 201, 0.08);
    --gold:         #C9A227;
    --gold-dim:     rgba(201, 162, 39, 0.08);
    --yellow:       #F5C518;
    --yellow-dim:   rgba(245, 197, 24, 0.07);
    --dark-gray:    #141418;
    --gray:         #101012;
    --border:       #1c1c20;
    --gray-text:    #5a5a62;
    --font-head:    'Syne', sans-serif;
    --font-body:    'Inter', sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: auto;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

body:not(.loaded) {
    overflow: hidden;
}

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

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

ul {
    list-style: none;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ─── CONTAINER ─── */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ─── TYPOGRAPHY HELPERS ─── */
.section-tag {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-family: var(--font-body);
    font-weight: 500;
}

.section-heading {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 0.93;
    letter-spacing: -0.03em;
    color: var(--white);
}

.line-wrap {
    display: block;
    overflow: hidden;
}

.line-txt {
    display: block;
}

.line-accent .line-txt {
    color: var(--cyan);
}

/* ─── BUTTONS ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.25rem;
    background: var(--cyan);
    color: var(--black);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 2px solid var(--cyan);
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.btn-primary:hover {
    background: transparent;
    color: var(--cyan);
    transform: translateY(-3px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2.25rem;
    border: 1px solid var(--border);
    color: rgba(240,240,238,0.6);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    transition: border-color 0.3s, color 0.3s;
}

.btn-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* ─── PRELOADER ─── */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pl-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.pl-logo {
    height: 72px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0;
}

.pl-bar {
    width: 220px;
    height: 1px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.pl-fill {
    position: absolute;
    inset: 0;
    width: 0%;
    background: var(--cyan);
}

.pl-pct {
    font-family: var(--font-head);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--gray-text);
}

/* ─── CUSTOM CURSOR ─── */
#cursor {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    mix-blend-mode: difference;
}

#cursor-follower {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 242, 254, 0.45);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.35s ease, height 0.35s ease, border-color 0.3s;
}

body.cursor-hover #cursor      { width: 14px; height: 14px; }
body.cursor-hover #cursor-follower {
    width: 58px; height: 58px;
    border-color: rgba(0, 242, 254, 0.7);
}

/* ─── NAVIGATION ─── */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.75rem 5%;
    transition: background 0.5s, padding 0.4s, border-bottom-color 0.5s;
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(8, 8, 8, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 5%;
    border-bottom-color: var(--border);
}

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

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.nav-logo img {
    height: 114px;
    width: auto;
}

.nav-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: rgba(240, 240, 238, 0.5);
    text-transform: uppercase;
    font-weight: 500;
}

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

.nav-links a {
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    color: rgba(240, 240, 238, 0.65);
    transition: color 0.3s;
}

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

.nav-cta {
    color: var(--cyan) !important;
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 0.55rem 1.2rem;
    transition: background 0.3s, border-color 0.3s;
}

.nav-cta:hover {
    background: rgba(0, 242, 254, 0.07) !important;
    border-color: var(--cyan) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.35s ease, opacity 0.3s;
    transform-origin: center;
}

.hamburger.open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
#mobile-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 72%;
    max-width: 310px;
    background: #0c0c0e;
    z-index: 998;
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

#mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    text-align: center;
}

#mobile-menu a {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    transition: color 0.3s;
}

#mobile-menu a:hover { color: var(--cyan); }

#menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

#menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
#hero {
    position: relative;
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: visible;
    padding: 240px 5% 140px;
    background: var(--black);
}

/* Reticular grid background (Shift5-inspired) */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 242, 254, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    pointer-events: none;
}

/* Radial glow in center */
.hero-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    background:
        radial-gradient(ellipse at 35% 50%, rgba(139, 47, 201, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 65% 50%, rgba(201, 162, 39, 0.05) 0%, transparent 55%),
        radial-gradient(circle, rgba(0, 242, 254, 0.04) 0%, transparent 65%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
}

.hero-eyebrow {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    font-family: var(--font-body);
    font-weight: 500;
    opacity: 0;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(3.2rem, 10vw, 13rem);
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: -0.04em;
    margin-bottom: 2.5rem;
}

.hero-sub {
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    color: var(--gray-text);
    max-width: 520px;
    line-height: 1.85;
    margin-bottom: 3rem;
    opacity: 0;
}

.hero-sub em {
    font-style: normal;
    color: rgba(0, 242, 254, 0.6);
    font-size: 0.88em;
    letter-spacing: 0.02em;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    align-items: center;
    opacity: 0;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 90px;
    right: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    z-index: 1;
}

.hero-scroll-hint span {
    font-size: 0.6rem;
    letter-spacing: 0.28em;
    color: var(--gray-text);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    50%       { opacity: 0.3; transform: scaleY(0.4); transform-origin: top; }
}

/* Hero ticker (between sections) */
.hero-ticker {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.7rem 0;
    background: rgba(8, 8, 8, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    white-space: nowrap;
    animation: ticker-scroll 32s linear infinite;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    color: var(--gray-text);
    text-transform: uppercase;
}

.t-dot { color: var(--cyan); font-size: 0.5rem; }

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════ */
#nosotros {
    padding: 9rem 0 6rem;
    background: var(--black);
    border-top: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-bottom: 6rem;
}

.about-body {
    font-size: 0.98rem;
    color: var(--gray-text);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.about-body strong { color: var(--white); font-weight: 600; }

/* Stats grid */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
}

.stat {
    padding: 3rem 2.5rem;
    border-right: 1px solid var(--border);
    position: relative;
    transition: background 0.4s;
}

.stat:last-child { border-right: none; }
.stat:hover { background: var(--cyan-dim); }

.stat-n {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.stat-n em {
    color: var(--cyan);
    font-style: normal;
}

.stat-l {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--gray-text);
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════ */
#servicios {
    padding: 9rem 0;
    background: var(--black);
    border-top: 1px solid var(--border);
}

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

.services-list {
    border-top: 1px solid var(--border);
}

.service-item {
    display: grid;
    grid-template-columns: 72px 1fr 40px;
    align-items: center;
    gap: 2.5rem;
    padding: 2.25rem 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.35s, background 0.35s;
}

.service-item:hover {
    border-bottom-color: rgba(0, 242, 254, 0.3);
    background: var(--cyan-dim);
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 0 -1rem;
}

.service-item[data-service="ar"]:hover {
    border-bottom-color: rgba(139, 47, 201, 0.4);
    background: var(--purple-dim);
}
.service-item[data-service="ar"]:hover .svc-body h3 { color: var(--purple); }
.service-item[data-service="ar"]:hover .svc-arrow { color: var(--purple); }
.service-item[data-service="ar"] .svc-num { color: var(--purple); opacity: 0.6; }

.service-item[data-service="vr"]:hover {
    border-bottom-color: rgba(0, 242, 254, 0.35);
    background: var(--cyan-dim);
}

.service-item[data-service="ia"]:hover {
    border-bottom-color: rgba(201, 162, 39, 0.4);
    background: var(--gold-dim);
}
.service-item[data-service="ia"]:hover .svc-body h3 { color: var(--gold); }
.service-item[data-service="ia"]:hover .svc-arrow { color: var(--gold); }
.service-item[data-service="ia"] .svc-num { color: var(--gold); opacity: 0.6; }

.service-item[data-service="interactiva"]:hover {
    border-bottom-color: rgba(245, 197, 24, 0.4);
    background: var(--yellow-dim);
}
.service-item[data-service="interactiva"]:hover .svc-body h3 { color: var(--yellow); }
.service-item[data-service="interactiva"]:hover .svc-arrow { color: var(--yellow); }
.service-item[data-service="interactiva"] .svc-num { color: var(--yellow); opacity: 0.5; }

.service-item[data-service="web"]:hover {
    border-bottom-color: rgba(0, 242, 254, 0.2);
    background: rgba(20, 20, 24, 0.6);
}

.service-item[data-service="branding"]:hover {
    border-bottom-color: rgba(139, 47, 201, 0.3);
    background: linear-gradient(90deg, rgba(139,47,201,0.05), rgba(201,162,39,0.05));
}
.service-item[data-service="branding"]:hover .svc-body h3 {
    background: linear-gradient(90deg, var(--purple), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.service-item[data-service="branding"]:hover .svc-arrow {
    color: var(--gold);
}
.service-item[data-service="branding"] .svc-num {
    background: linear-gradient(135deg, var(--purple), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.7;
}

.svc-num {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--gray-text);
    font-weight: 500;
}

.svc-body h3 {
    font-family: var(--font-head);
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.6rem;
    transition: color 0.3s;
}

.service-item:hover .svc-body h3 { color: var(--cyan); }

.svc-body p {
    font-size: 0.88rem;
    color: var(--gray-text);
    line-height: 1.75;
    max-width: 620px;
}

.svc-arrow {
    font-size: 1.4rem;
    color: var(--cyan);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    justify-self: end;
}

.service-item:hover .svc-arrow {
    transform: translate(4px, -4px);
}

.svc-examples-hint {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--gray-text);
    text-transform: uppercase;
    margin-top: 0.4rem;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.service-item:hover .svc-examples-hint { opacity: 1; }

/* ═══════════════════════════════════════════════
   SERVICE MODAL
═══════════════════════════════════════════════ */
#svc-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#svc-modal.active {
    opacity: 1;
    pointer-events: all;
}

.svc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 6, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.svc-modal-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    padding: 2rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.svc-modal-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.svc-modal-title {
    font-family: var(--font-head);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.svc-modal-tag {
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan);
    font-family: var(--font-body);
    font-weight: 500;
    opacity: 0.75;
}

.svc-modal-close {
    background: none;
    border: 1px solid var(--border);
    color: var(--gray-text);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: border-color 0.3s, color 0.3s;
    flex-shrink: 0;
}

.svc-modal-close:hover {
    border-color: var(--white);
    color: var(--white);
}

.svc-modal-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0a0c;
    border: 1px solid var(--border);
    overflow: hidden;
    max-height: 62vh;
}

.svc-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.svc-modal-img.transitioning {
    opacity: 0;
    transform: scale(0.98);
}

.svc-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 8, 8, 0.75);
    border: 1px solid var(--border);
    color: var(--white);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s, border-color 0.3s;
    z-index: 2;
}

.svc-modal-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--cyan);
}

.svc-modal-prev { left: 1rem; }
.svc-modal-next { right: 1rem; }

.svc-modal-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.svc-modal-dots {
    display: flex;
    gap: 0.5rem;
}

.svc-dot {
    width: 24px;
    height: 2px;
    background: var(--border);
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
}

.svc-dot.active {
    width: 40px;
    background: var(--cyan);
}

.svc-modal-counter {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--gray-text);
}

.svc-modal-caption {
    font-size: 0.8rem;
    color: var(--gray-text);
    font-style: italic;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════
   GALLERY / WORK
═══════════════════════════════════════════════ */
#trabajo {
    padding: 9rem 0 0;
    background: var(--black);
    border-top: 1px solid var(--border);
}

#trabajo .container {
    margin-bottom: 3.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "a a b"
        "c d d"
        "e e f";
    gap: 3px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gi-a { grid-area: a; height: 420px; }
.gi-b { grid-area: b; height: 420px; }
.gi-c { grid-area: c; height: 360px; }
.gi-d { grid-area: d; height: 360px; }
.gi-e { grid-area: e; height: 420px; }
.gi-f { grid-area: f; height: 420px; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: grayscale(25%) brightness(0.85);
    transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.07);
    filter: grayscale(0%) brightness(1);
}

.gi-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 1.75rem 2rem;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.gallery-item:hover .gi-overlay { opacity: 1; }

.gi-overlay span {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
}

/* ─── CTA BAND ─── */
.cta-band {
    overflow: hidden;
    background: linear-gradient(90deg, var(--purple) 0%, var(--cyan) 50%, var(--gold) 100%);
    padding: 1.6rem 0;
    white-space: nowrap;
    cursor: default;
}

.cta-band-track {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    animation: ticker-scroll 18s linear infinite;
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    user-select: none;
}

.cta-band-track .t-dot {
    color: rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
#contacto {
    padding: 9rem 0;
    background: var(--black);
    border-top: 1px solid var(--border);
}

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

.contact-info {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
}

.ci-link {
    display: block;
    font-size: 0.92rem;
    color: var(--gray-text);
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.3s, border-color 0.3s;
}

.ci-link:first-child { border-top: 1px solid var(--border); }
.ci-link:hover { color: var(--cyan); border-bottom-color: rgba(0, 242, 254, 0.3); }

/* Form */
.contact-form { display: flex; flex-direction: column; }

.form-field { margin-bottom: 0.65rem; }

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    background: var(--gray);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 1rem 1.2rem;
    font-size: 0.88rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--gray-text); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--cyan);
    background: rgba(0, 242, 254, 0.03);
}

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

/* Select wrapper */
.form-select-wrap {
    position: relative;
}

.form-select-wrap select {
    cursor: pointer;
    color: var(--gray-text);
    padding-right: 2.5rem;
}

.form-select-wrap select option { background: #1a1a1e; color: var(--white); }

.select-arrow {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-text);
    pointer-events: none;
    font-size: 0.9rem;
}

.btn-submit {
    margin-top: 0.75rem;
    justify-content: space-between;
    width: 100%;
}

.form-success {
    margin-top: 1rem;
    padding: 0.9rem 1.2rem;
    background: rgba(0, 242, 254, 0.07);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--cyan);
    font-size: 0.85rem;
    text-align: center;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
#footer {
    background: #050507;
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

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

.footer-cl {
    display: flex;
    align-items: center;
    padding-left: 1.75rem;
    border-left: 1px solid var(--border);
}

.footer-cl-img {
    height: 60px;
    width: auto;
    background: transparent;
    display: block;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.footer-nav a {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--gray-text);
    transition: color 0.3s;
}

.footer-nav a:hover { color: var(--cyan); }

.footer-copy {
    font-size: 0.68rem;
    color: var(--gray-text);
    text-align: right;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 4rem;
    }

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

    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(3) {
        border-right: 1px solid var(--border);
        border-top: 1px solid var(--border);
    }
    .stat:nth-child(4) {
        border-right: none;
        border-top: 1px solid var(--border);
    }

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

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .footer-copy { grid-column: 1 / -1; text-align: center; }
    .footer-nav  { justify-content: flex-end; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Nav */
    .nav-links { display: none; }
    .hamburger { display: flex; }

    /* Hero */
    #hero { padding: 180px 5% 120px; }
    .hero-title { font-size: clamp(2.8rem, 13vw, 5rem); }
    .hero-btns { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .hero-scroll-hint { display: none; }
    .nav-logo img { height: 70px; }
    .nav-subtitle { font-size: 0.55rem; }

    /* About */
    #nosotros { padding: 6rem 4% 4rem; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .stat { padding: 2rem 1.5rem; }
    .stat:nth-child(3) { border-right: 1px solid var(--border); }

    /* Services */
    #servicios { padding: 6rem 4%; }
    .service-item {
        grid-template-columns: 48px 1fr 30px;
        gap: 1.25rem;
        padding: 1.75rem 0;
    }
    .service-item:hover {
        padding-left: 0;
        padding-right: 0;
        margin: 0;
    }

    /* Gallery */
    #trabajo { padding: 6rem 4% 0; }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "a a"
            "b c"
            "d d"
            "e f";
    }
    .gi-a { height: 280px; }
    .gi-b { height: 220px; }
    .gi-c { height: 220px; }
    .gi-d { height: 280px; }
    .gi-e { height: 220px; }
    .gi-f { height: 220px; }

    /* CTA Band */
    .cta-band-track { font-size: 1.1rem; }

    /* Contact */
    #contacto { padding: 6rem 4%; }

    /* Service Modal */
    .svc-modal-inner { padding: 1.5rem 4%; }
    .svc-modal-stage { max-height: 55vh; }
    .svc-modal-nav { width: 40px; height: 40px; font-size: 1rem; }
    .svc-modal-prev { left: 0.5rem; }
    .svc-modal-next { right: 0.5rem; }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .footer-brand { justify-content: center; }
    .footer-nav   { justify-content: center; flex-wrap: wrap; gap: 1.25rem; }
    .footer-copy  { text-align: center; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .svc-modal-nav { width: 38px; height: 38px; font-size: 1rem; }
    .svc-modal-stage { max-height: 50vh; }
    .svc-modal-prev { left: 0.5rem; }
    .svc-modal-next { right: 0.5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: clamp(3rem, 18vw, 4rem); }
    .section-heading { font-size: clamp(2.2rem, 12vw, 3rem); }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "a" "b" "c" "d" "e" "f";
    }
    .gi-a, .gi-b, .gi-c,
    .gi-d, .gi-e, .gi-f { height: 240px; }

    .stats-row { grid-template-columns: 1fr; }
    .stat { border-right: none !important; border-top: 1px solid var(--border); }
    .stat:first-child { border-top: none; }

    .footer-brand { flex-direction: column; }
    .footer-cl { border-left: none; padding-left: 0; align-items: center; }
}
