@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

:root {
    --clr-black: #030407;
    --clr-surface-1: #0a0f17;
    --clr-surface-2: #101929;
    --clr-surface-3: #162238;
    --clr-ink: #e7edf7;
    --clr-ink-soft: #aab6cc;
    --clr-cyan: #4fe2ff;
    --clr-teal: #4fe2ff;
    --clr-cyan-deep: #138da7;
    --clr-gold: #f4c75a;
    --clr-gold-soft: #f0b83d;

    --grad-page: radial-gradient(circle at 10% -10%, rgba(79, 226, 255, 0.2), transparent 34%), radial-gradient(circle at 90% 0%, rgba(244, 199, 90, 0.16), transparent 32%), linear-gradient(130deg, #04070d 0%, #07111f 50%, #05080f 100%);
    --grad-accent: linear-gradient(125deg, var(--clr-cyan) 0%, #67f3c9 45%, var(--clr-gold) 100%);
    --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));

    --ff-primary: 'Manrope', sans-serif;
    --ff-accent: 'Sora', sans-serif;

    --sp-xs: 0.75rem;
    --sp-sm: 1.5rem;
    --sp-md: 3rem;
    --sp-lg: 6.5rem;

    --radius-pill: 999px;
    --radius-card: 24px;
    --radius-panel: 34px;

    --trans-smooth: all 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    --trans-fast: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    font-family: var(--ff-primary);
    background: #030407;
    color: var(--clr-ink);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
}

/* ── Unified background system ── */
.bg-layer,
.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
}

.bg-layer-1 {
    background:
        radial-gradient(ellipse 80% 60% at 15% 10%, rgba(79, 226, 255, 0.10), transparent),
        radial-gradient(ellipse 60% 80% at 85% 30%, rgba(244, 199, 90, 0.07), transparent),
        radial-gradient(ellipse 70% 50% at 50% 70%, rgba(79, 226, 255, 0.05), transparent),
        radial-gradient(ellipse 50% 40% at 70% 90%, rgba(244, 199, 90, 0.04), transparent);
}

/* Animated floating accent orbs */
.bg-layer-1::before,
.bg-layer-1::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    will-change: transform;
}

.bg-layer-1::before {
    width: 600px;
    height: 600px;
    top: -10%;
    left: -5%;
    background: radial-gradient(circle, rgba(79, 226, 255, 0.12), transparent 70%);
    animation: floatOrb1 18s ease-in-out infinite;
}

.bg-layer-1::after {
    width: 500px;
    height: 500px;
    bottom: -15%;
    right: -8%;
    background: radial-gradient(circle, rgba(244, 199, 90, 0.10), transparent 70%);
    animation: floatOrb2 22s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(8vw, 12vh) scale(1.1); }
    50% { transform: translate(3vw, 25vh) scale(0.95); }
    75% { transform: translate(-5vw, 10vh) scale(1.05); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-6vw, -10vh) scale(1.08); }
    50% { transform: translate(-12vw, -20vh) scale(0.92); }
    75% { transform: translate(-3vw, -8vh) scale(1.04); }
}

.bg-layer-2 {
    background: linear-gradient(180deg, 
        rgba(3, 4, 7, 0) 0%, 
        rgba(3, 4, 7, 0.3) 25%,
        rgba(3, 4, 7, 0.1) 50%,
        rgba(3, 4, 7, 0.4) 75%,
        rgba(3, 4, 7, 0.7) 100%);
}

.bg-grid {
    z-index: -2;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, rgba(0,0,0,0.5) 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, rgba(0,0,0,0.5) 0%, transparent 70%);
}

/* Film grain / noise overlay for depth */
.bg-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    mix-blend-mode: overlay;
}

h1,
h2,
h3,
.accent-text {
    font-family: var(--ff-accent);
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4.6vw, 3.8rem);
    font-weight: 700;
}

h3 {
    font-size: 1.36rem;
    font-weight: 600;
}

p {
    font-size: 1.05rem;
    color: var(--clr-ink-soft);
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: var(--sp-lg) 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 2.2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--trans-smooth);
    font-size: 0.82rem;
}

.btn-primary {
    background: linear-gradient(130deg, var(--clr-gold) 0%, #ffd785 100%);
    color: #111;
    box-shadow: 0 16px 30px rgba(244, 199, 90, 0.28);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.55), transparent 78%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
}

.btn-primary:hover::before {
    transform: translateX(120%);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 34px rgba(244, 199, 90, 0.35), 0 0 25px rgba(244, 199, 90, 0.2);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(79, 226, 255, 0.5);
    color: var(--clr-ink);
    box-shadow: 0 0 0 rgba(79, 226, 255, 0);
    transition: all 0.4s ease;
}

.btn-outline:hover {
    background: rgba(79, 226, 255, 0.10);
    border-color: rgba(79, 226, 255, 0.9);
    box-shadow: 0 0 20px rgba(79, 226, 255, 0.15), inset 0 0 20px rgba(79, 226, 255, 0.05);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 88px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--trans-smooth);
    background: rgba(3, 4, 7, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

nav.scrolled {
    height: 72px;
    background: rgba(3, 4, 7, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo-link {
    position: relative;
}

.logo-nav {
    max-height: 47px;
    transition: var(--trans-smooth);
    filter: drop-shadow(0 0 0.45px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 9px rgba(79, 226, 255, 0.24));
}

nav.scrolled .logo-nav {
    max-height: 38px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav-links a {
    font-size: 0.79rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    opacity: 0.74;
    position: relative;
    transition: var(--trans-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 1px;
    background: var(--grad-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.nav-links a:hover {
    opacity: 1;
    color: #fff;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    padding: 0.8rem 1.35rem;
    font-size: 0.72rem;
}

#hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
    padding-bottom: 2.5rem;
}

/* ── Hero Aurora / top light beam ── */
.hero-aurora {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 70%;
    background:
        conic-gradient(from 220deg at 50% 80%,
            transparent 0deg,
            rgba(79, 226, 255, 0.12) 60deg,
            rgba(244, 199, 90, 0.08) 120deg,
            transparent 180deg,
            rgba(79, 226, 255, 0.06) 240deg,
            transparent 360deg);
    filter: blur(60px);
    opacity: 0.8;
    animation: auroraShift 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes auroraShift {
    0%, 100% { transform: translateX(-50%) rotate(0deg) scale(1); opacity: 0.8; }
    33% { transform: translateX(-50%) rotate(3deg) scale(1.05); opacity: 0.9; }
    66% { transform: translateX(-50%) rotate(-2deg) scale(0.97); opacity: 0.7; }
}

/* ── Hero perspective grid overlay ── */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(79, 226, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 226, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 50% 40% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 50% 40% at 50% 50%, black, transparent);
    pointer-events: none;
    z-index: 0;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 45% 45% at 25% 50%, rgba(79, 226, 255, 0.10), transparent),
        radial-gradient(ellipse 35% 35% at 75% 30%, rgba(244, 199, 90, 0.06), transparent),
        radial-gradient(ellipse 60% 20% at 50% 100%, rgba(79, 226, 255, 0.05), transparent);
    z-index: 0;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 226, 255, 0.4), rgba(244, 199, 90, 0.3), transparent);
    z-index: 2;
}

#hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 820px;
    text-align: center;
    margin: 0 auto;
    position: relative;
}

/* ── Logo with glowing rings ── */
.hero-logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

/* ── Glow spot under logo ── */
.hero-logo-wrap::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 60px;
    background: radial-gradient(ellipse, rgba(79, 226, 255, 0.18), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    animation: glowSpot 4s ease-in-out infinite;
}

@keyframes glowSpot {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.hero-main-logo {
    max-width: 150px;
    width: 100%;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9)) drop-shadow(0 8px 30px rgba(2, 6, 18, 0.6));
    animation: logoBreathe 4s ease-in-out infinite;
}

@keyframes logoBreathe {
    0%, 100% { filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9)) drop-shadow(0 8px 30px rgba(2, 6, 18, 0.6)) drop-shadow(0 0 20px rgba(79, 226, 255, 0.0)); }
    50% { filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9)) drop-shadow(0 8px 30px rgba(2, 6, 18, 0.6)) drop-shadow(0 0 40px rgba(79, 226, 255, 0.22)); }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.48rem 1.25rem;
    margin-bottom: 1.2rem;
    font-size: 0.73rem;
    letter-spacing: 0.22em;
    color: #d9e7fa;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(79, 226, 255, 0.35);
    background: rgba(5, 14, 25, 0.6);
    backdrop-filter: blur(8px);
}

.hero-tag::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--clr-gold);
    box-shadow: 0 0 12px rgba(244, 199, 90, 0.7);
    animation: tagDotPulse 2s ease-in-out infinite;
}

@keyframes tagDotPulse {
    0%, 100% { box-shadow: 0 0 6px rgba(244, 199, 90, 0.5); transform: scale(1); }
    50% { box-shadow: 0 0 18px rgba(244, 199, 90, 0.9); transform: scale(1.15); }
}

.hero-title {
    margin-bottom: 1.2rem;
    color: #f7fbff;
    text-shadow: 0 4px 20px rgba(2, 6, 18, 0.5), 0 0 80px rgba(79, 226, 255, 0.06);
}

.hero-title span,
.section-head h2 span,
#why-title-ui span,
#about-title-ui span,
#cont-title-ui span {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title span {
    background-size: 200% 100%;
    animation: titleShimmer 4s ease-in-out infinite;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    max-width: 600px;
    margin: 0 auto 1.4rem;
    color: rgba(231, 237, 247, 0.82);
    font-size: 1rem;
    line-height: 1.65;
}

/* ── Decorative accent line between subtitle and rotator ── */
.hero-accent-line {
    width: 50px;
    height: 2px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(90deg, var(--clr-cyan), var(--clr-gold));
    border-radius: 2px;
    opacity: 0.6;
    position: relative;
}

.hero-accent-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--clr-cyan);
    box-shadow: 0 0 12px rgba(79, 226, 255, 0.6);
    animation: accentDot 3s ease-in-out infinite;
}

@keyframes accentDot {
    0%, 100% { left: 0; }
    50% { left: 100%; }
}

.hero-rotator-text {
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-gold) !important;
    margin-bottom: 2rem;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-rotator-text.fade-out {
    opacity: 0;
    transform: translateY(-5px);
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

#servicios,
#trabajos,
#elegirnos,
#institucional,
#contacto {
    position: relative;
    display: none;
}

/* Subtle accent orbs per section — breathing glow */
#servicios::before,
#trabajos::before,
#elegirnos::before,
#contacto::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    animation: sectionOrbBreathe 8s ease-in-out infinite;
}

@keyframes sectionOrbBreathe {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.65; }
}

#servicios::before {
    background: radial-gradient(ellipse 50% 40% at 80% 20%, rgba(79, 226, 255, 0.08), transparent);
}

#trabajos::before {
    background: radial-gradient(ellipse 50% 40% at 20% 30%, rgba(244, 199, 90, 0.07), transparent);
}

#elegirnos::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 40% 50% at 70% 50%, rgba(79, 226, 255, 0.06), transparent);
    opacity: 0.5;
}

#contacto::before {
    background: radial-gradient(ellipse 60% 40% at 30% 60%, rgba(244, 199, 90, 0.06), transparent);
}

.section-head {
    text-align: center;
    max-width: 790px;
    margin: 0 auto var(--sp-md);
    position: relative;
}

.section-head p {
    max-width: 560px;
    margin: 1.5rem auto 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--clr-ink-soft);
}

.section-head h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 0;
}

.section-head h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--clr-cyan), var(--clr-gold));
    border-radius: 2px;
    opacity: 0.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.service-card {
    background: var(--grad-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-card);
    padding: 2.4rem 2rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(79, 226, 255, 0.1), transparent 45%, rgba(244, 199, 90, 0.08));
    opacity: 0;
    transition: var(--trans-fast);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-card);
    background: linear-gradient(130deg, rgba(79, 226, 255, 0.5), transparent 40%, transparent 60%, rgba(244, 199, 90, 0.35));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(79, 226, 255, 0.08);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    background: rgba(79, 226, 255, 0.1);
    border: 1px solid rgba(79, 226, 255, 0.18);
    color: var(--clr-cyan);
    box-shadow: 0 0 20px rgba(79, 226, 255, 0.08);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    box-shadow: 0 0 30px rgba(79, 226, 255, 0.2);
    background: rgba(79, 226, 255, 0.15);
    border-color: rgba(79, 226, 255, 0.35);
}

.service-card h3 {
    margin-bottom: 0.8rem;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.work-card {
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 16, 28, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 226, 255, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 50px rgba(79, 226, 255, 0.06), inset 0 0 30px rgba(79, 226, 255, 0.03);
}

.work-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.work-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 13, 24, 0.55) 100%);
}

.work-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.work-card:hover .work-media img {
    transform: scale(1.06);
}

.work-body {
    padding: 1.25rem;
}

.work-comment {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #e9f5ff;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(79, 226, 255, 0.5);
    background: rgba(79, 226, 255, 0.16);
}

.work-body h3 {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
}

.work-body p {
    font-size: 0.96rem;
    line-height: 1.65;
}

.reveal {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1), transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.why-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-subtitle {
    margin: 1.2rem 0 2.2rem;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.15rem;
    background: rgba(10, 20, 33, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-pill:hover {
    transform: translateX(10px);
    border-color: rgba(79, 226, 255, 0.46);
    background: rgba(10, 20, 33, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 30px rgba(79, 226, 255, 0.06);
}

.feature-pill h4 {
    font-size: 1.02rem;
    margin-bottom: 0.22rem;
    font-family: var(--ff-accent);
    letter-spacing: 0.02em;
}

.feature-pill .icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-gold);
    background: rgba(244, 199, 90, 0.13);
    border: 1px solid rgba(244, 199, 90, 0.28);
    flex-shrink: 0;
}

.why-visual-frame {
    position: relative;
    border-radius: var(--radius-panel);
    padding: 3.4rem;
    background: radial-gradient(circle at 30% 24%, rgba(79, 226, 255, 0.09), transparent 58%), rgba(10, 20, 33, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-height: 370px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-visual-frame::after {
    content: '';
    position: absolute;
    inset: 16px;
    border-radius: calc(var(--radius-panel) - 10px);
    border: 1px solid rgba(79, 226, 255, 0.2);
}

.why-visual-logo {
    width: min(330px, 78%);
    opacity: 0.88;
    filter: grayscale(0.1) drop-shadow(0 0 0.45px rgba(255, 255, 255, 0.95)) drop-shadow(0 14px 34px rgba(4, 8, 16, 0.7));
}

.section-dark-solid {
    /* no bg — unified flow */
    border-top: none;
}

.about-wrap {
    text-align: center;
    max-width: 950px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: var(--radius-panel);
    background: rgba(10, 17, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 60px rgba(79, 226, 255, 0.02);
}

.about-title {
    margin-bottom: 1.5rem;
}

.about-content {
    font-size: 1.22rem;
    line-height: 1.9;
    color: rgba(231, 237, 247, 0.9);
}

.stats-wrap {
    margin-top: 2.3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat {
    min-width: 185px;
    padding: 1.2rem 1.35rem;
    border-radius: 18px;
    background: rgba(79, 226, 255, 0.06);
    border: 1px solid rgba(79, 226, 255, 0.24);
    transition: all 0.4s ease;
}

.stat:hover {
    background: rgba(79, 226, 255, 0.10);
    border-color: rgba(79, 226, 255, 0.4);
    box-shadow: 0 8px 24px rgba(79, 226, 255, 0.08);
    transform: translateY(-3px);
}

.stat h3,
.stat-value {
    font-size: 2.8rem;
    margin-bottom: 0.2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 3.6rem;
    align-items: start;
}

.contact-subtitle {
    margin: 1rem 0 1.5rem;
}

.contact-list {
    list-style: none;
    margin-top: 2rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
    color: #f3f6fd;
    font-weight: 500;
}

.contact-list li i {
    color: var(--clr-cyan);
}

.form-premium {
    padding: 2.5rem;
    border-radius: var(--radius-panel);
    background: rgba(11, 20, 34, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 26px 42px rgba(1, 6, 17, 0.55), inset 0 0 50px rgba(79, 226, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.input-container {
    position: relative;
    margin-bottom: 1.8rem;
}

.form-premium input,
.form-premium textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-family: var(--ff-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--trans-fast);
}

.form-premium textarea {
    resize: vertical;
    min-height: 44px;
    max-height: 180px;
}

.form-premium label {
    position: absolute;
    top: 1rem;
    left: 0;
    pointer-events: none;
    color: rgba(231, 237, 247, 0.58);
    transition: var(--trans-fast);
}

.form-premium input:focus,
.form-premium textarea:focus {
    border-bottom-color: var(--clr-cyan);
}

.form-premium input:focus~label,
.form-premium input:valid~label,
.form-premium textarea:focus~label,
.form-premium textarea:valid~label {
    top: -0.9rem;
    font-size: 0.8rem;
    color: var(--clr-cyan);
}

.form-success {
    display: none;
    margin-top: 1.2rem;
    border-radius: 16px;
    background: rgba(79, 226, 255, 0.18);
    border: 1px solid rgba(79, 226, 255, 0.45);
    color: #dff9ff;
    padding: 1.2rem;
    font-weight: 700;
    text-align: center;
}

footer {
    display: none;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.8rem;
}

.footer-logo {
    max-height: 62px;
    margin-bottom: 1.1rem;
    filter: drop-shadow(0 0 0.45px rgba(255, 255, 255, 0.96)) drop-shadow(0 8px 20px rgba(3, 7, 13, 0.64));
}

.footer-desc {
    font-size: 0.92rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: var(--clr-cyan);
    font-size: 0.76rem;
    letter-spacing: 0.2em;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.65rem;
    opacity: 0.74;
    transition: var(--trans-fast);
}

.footer-links ul li:hover {
    opacity: 1;
    transform: translateX(4px);
    color: #fff;
}

.footer-social-link {
    color: inherit;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 1.2rem;
    font-size: 0.8rem;
    opacity: 0.56;
}

#custom-cursor {
    position: fixed;
    width: 36px;
    height: 36px;
    background: radial-gradient(circle, rgba(79, 226, 255, 0.82), rgba(79, 226, 255, 0));
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.48;
    transition: opacity 0.25s ease;
}

.whatsapp-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(160deg, #2fe66b, #1da749);
    box-shadow: 0 14px 28px rgba(20, 173, 76, 0.42);
    z-index: 999;
    transition: var(--trans-fast);
    animation: wppPulse 2.2s infinite;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 18px 32px rgba(20, 173, 76, 0.58);
}

@keyframes wppPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ── Single-View Panel System ── */
#servicios,
#trabajos,
#elegirnos,
#institucional,
#contacto {
    visibility: hidden;
    position: absolute;
    pointer-events: none;
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

.section-panel-open {
    display: block !important;
    visibility: visible !important;
    position: fixed !important;
    inset: 0;
    z-index: 900;
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto !important;
    opacity: 1 !important;
    padding-top: 100px;
    padding-bottom: 4rem;
    background:
        radial-gradient(ellipse 80% 60% at 15% 10%, rgba(79, 226, 255, 0.1), transparent),
        radial-gradient(ellipse 60% 80% at 85% 30%, rgba(244, 199, 90, 0.07), transparent),
        #030407;
    animation: panelIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.section-panel-open .section-head,
.section-panel-open .about-wrap,
.section-panel-open .why-split,
.section-panel-open .contact-grid {
    padding-top: 1rem;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.panel-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: var(--clr-ink);
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--trans-fast);
    line-height: 1;
    visibility: hidden;
    opacity: 0;
}

.panel-close-btn:hover {
    background: rgba(79, 226, 255, 0.15);
    border-color: rgba(79, 226, 255, 0.5);
    color: var(--clr-cyan);
    transform: rotate(90deg);
}

body.panel-active .nav-cta {
    display: none !important;
}

body.panel-active .panel-close-btn {
    visibility: visible;
    opacity: 1;
}

body.panel-active nav {
    background: rgba(3, 4, 7, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
    opacity: 1;
    color: #fff;
}

.nav-links a.active::after {
    transform: scaleX(1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1002;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--clr-ink);
    border-radius: 2px;
    transition: var(--trans-fast);
    display: block;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero-copyright {
    position: absolute;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    opacity: 0.35;
    letter-spacing: 0.08em;
    white-space: nowrap;
    color: var(--clr-ink-soft);
    padding: 0 1rem;
}

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-split,
    .contact-grid,
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-wrap {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 76px;
    }

    nav {
        height: 68px;
    }

    .nav-links {
        display: none;
    }

    .nav-links.mobile-open {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #030407 !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.2rem;
        z-index: 9999 !important;
        list-style: none;
        padding: 4rem 2rem;
        margin: 0;
        overflow-y: auto;
    }

    .nav-links.mobile-open li {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .nav-links.mobile-open a {
        font-size: 1.1rem;
        opacity: 0.9;
        display: block;
        padding: 0.9rem 1rem;
        min-height: 48px;
        line-height: 1.4;
        color: #fff;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-links.mobile-open a:hover,
    .nav-links.mobile-open a:active {
        opacity: 1;
        color: var(--clr-cyan);
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
        z-index: 10000;
        position: relative;
    }

    .panel-close-btn {
        display: none;
    }

    body.panel-active .hamburger {
        display: flex;
    }

    body.panel-active .panel-close-btn {
        display: none;
    }

    .logo-nav {
        max-height: 38px;
    }

    #hero {
        padding-top: 4.5rem;
        padding-bottom: 2rem;
    }

    .hero-logo-wrap {
        margin-bottom: 1.2rem;
    }

    .hero-main-logo {
        max-width: 110px;
    }

    .hero-aurora {
        filter: blur(40px);
        top: -30%;
    }

    .hero-grid-overlay {
        background-size: 50px 50px;
    }

    .hero-accent-line {
        width: 36px;
        margin-bottom: 1rem;
    }

    .hero-tag {
        font-size: 0.62rem;
        padding: 0.38rem 0.9rem;
        letter-spacing: 0.14em;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 5.5vw, 2.2rem);
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        line-height: 1.5;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .hero-rotator-text {
        font-size: 0.70rem;
        letter-spacing: 0.05em;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 0.78rem;
        min-height: 48px;
    }

    .hero-copyright {
        bottom: 0.8rem;
        font-size: 0.62rem;
    }

    .section-padding {
        padding: 3.5rem 0;
    }

    .section-panel-open {
        padding-top: 80px;
        padding-bottom: 3rem;
    }

    .section-head {
        margin-bottom: 2rem;
    }

    .section-head h2 {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem 1.25rem;
    }

    .service-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1.15rem;
    }

    .work-body {
        padding: 1rem;
    }

    .work-body h3 {
        font-size: 0.95rem;
    }

    .work-body p {
        font-size: 0.88rem;
    }

    .why-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .why-visual-frame {
        min-height: 220px;
        padding: 1.8rem;
    }

    .feature-pill {
        padding: 0.9rem;
    }

    .feature-pill h4 {
        font-size: 0.92rem;
    }

    .feature-pill .icon-box {
        width: 40px;
        height: 40px;
    }

    .about-wrap {
        padding: 1.5rem;
    }

    .about-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .stats-wrap {
        gap: 0.6rem;
        flex-direction: column;
    }

    .stat {
        width: 100%;
        min-width: unset;
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .stat h3,
    .stat-value {
        font-size: 2rem;
        margin-bottom: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-subtitle {
        font-size: 0.92rem;
    }

    .contact-list li {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .form-premium {
        padding: 1.5rem;
    }

    .form-premium input,
    .form-premium textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .whatsapp-btn {
        width: 52px;
        height: 52px;
        right: 14px;
        bottom: 14px;
    }

    #custom-cursor {
        display: none;
    }
}

/* ── Extra small devices ── */
@media (max-width: 400px) {
    .container {
        padding: 0 4%;
    }

    .hero-main-logo {
        max-width: 90px;
    }

    .hero-logo-wrap {
        margin-bottom: 1rem;
    }

    .hero-accent-line {
        width: 30px;
        margin-bottom: 0.8rem;
    }

    .hero-tag {
        font-size: 0.56rem;
        padding: 0.32rem 0.7rem;
        letter-spacing: 0.1em;
        margin-bottom: 0.8rem;
    }

    .hero-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        margin-bottom: 0.7rem;
    }

    .hero-subtitle {
        font-size: 0.82rem;
        line-height: 1.45;
        margin-bottom: 0.8rem;
    }

    .hero-rotator-text {
        font-size: 0.62rem;
        margin-bottom: 1.2rem;
    }

    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.74rem;
    }

    .hero-copyright {
        font-size: 0.55rem;
        bottom: 0.5rem;
    }

    .section-head h2 {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .about-content {
        font-size: 0.9rem;
    }

    .stat h3,
    .stat-value {
        font-size: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
