﻿/* ============================================
   File: assets/css/style.css
   Main Stylesheet - Logo más grande en header y footer
   ============================================ */
:root {
    --bg-black: #000000;
    --bg-black-secondary: #0a0a0a;
    --salmon: #1565C0;
    --salmon-dark: #1E88E5;
    --cream: #FFFFFF;
    --cream-dark: #E6E6E6;
    --carafe: #1a1a1a;
    --carafe-light: #2a2a2a;
    --text-light: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
    --gradient-accent: linear-gradient(135deg, #000080 0%, #1565C0 40%, #00BFFF 100%);
    --gradient-accent-hover: linear-gradient(135deg, #00008B 0%, #1E88E5 50%, #40D0FF 100%);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-black);
    /* Mejora 1: gradiente sutil + grid tech global */
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(21, 101, 192, 0.07) 0%, transparent 60%),
        linear-gradient(rgba(0, 191, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 191, 255, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 80px 80px, 80px 80px;
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(21, 101, 192, 0.25);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 65px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00BFFF;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 191, 255, 0.6);
}

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

.main-nav a:hover {
    color: #fff;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* Overlay del menú móvil (se muestra solo en móvil vía JS) */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 998;
    backdrop-filter: blur(2px);
}

.nav-overlay.active {
    display: block;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.92) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
}

/* ============================================
   HERO SPLIT: Texto izquierda + Teclado 3D derecha
   ============================================ */
.hero-split {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    gap: 3rem;
    width: 100%;
    margin-bottom: 3rem;
    min-height: 480px;
}

.hero-split .hero-text {
    text-align: left;
}

.hero-split .hero-text .hero-buttons {
    justify-content: flex-start;
}

.hero-keyboard-3d {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: visible;
}

/* Spline Viewer */
.hero-keyboard-3d spline-viewer {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* Ocultar logo de Spline */
.hero-keyboard-3d spline-viewer::part(logo) {
    display: none !important;
}

/* ============================================
   HERO TEXT — Tipografía optimizada
   ============================================ */
.hero-text h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.2rem;
    letter-spacing: -0.03em;
    word-break: keep-all;
    overflow-wrap: normal;
    white-space: normal;
    max-width: 100%;
}

/* Respetar siempre los <br> del h1 */
.hero-text h1 br {
    display: block !important;
    content: "" !important;
}

.glitch-text {
    animation: glitch 3s infinite;
}

.highlight {
    color: var(--salmon);
    display: inline;
}

/* Etiqueta badge encima del h1 */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(21, 101, 192, 0.15);
    border: 1px solid rgba(21, 101, 192, 0.35);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #5aabff;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.hero-badge i {
    font-size: 0.7rem;
    color: #1565C0;
}

.hero-tagline {
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2.2rem;
    line-height: 1.7;
    max-width: 480px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-light);
    box-shadow: 0 4px 20px rgba(21, 101, 192, 0.35), 0 0 0 0 rgba(0, 191, 255, 0);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s ease,
                background 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    background: var(--gradient-accent-hover);
    box-shadow: 0 12px 32px rgba(21, 101, 192, 0.5), 0 0 24px rgba(0, 191, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.99);
}

.btn-outline {
    border: 1px solid rgba(21, 101, 192, 0.5);
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease;
}

.btn-outline:hover {
    background: rgba(21, 101, 192, 0.08);
    border-color: rgba(0, 191, 255, 0.6);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 191, 255, 0.12), 0 0 0 1px rgba(0, 191, 255, 0.15);
}

.hero-logos {
    margin-top: 3rem;
    overflow: hidden;
    width: 100%;
}

/* ============================================
   MEJORA PARA LOS LOGOS - SCROLL INFINITO SUAVE
   ============================================ */
.marquee-logos {
    display: flex;
    gap: 3rem;
    /* Animación más lenta y suave - 45 segundos para que el reinicio sea imperceptible */
    animation: scrollLogosSuave 45s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.marquee-logos img {
    height: 45px;
    width: auto;
    filter: none;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.85;
}

.marquee-logos img:hover {
    opacity: 1;
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(21, 101, 192, 0.5));
}

/* Animación suave - usa el mismo inicio y fin para que no se note el reinicio */
@keyframes scrollLogosSuave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pausar animación al hacer hover para mejor UX */
.marquee-logos:hover {
    animation-play-state: paused;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    opacity: 0.7;
    font-size: 0.8rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

.section-header h2 span {
    color: var(--salmon);
    position: relative;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0.8rem auto 0;
}

/* ============================================
   BLOQUE UNIFICADO — Servicios + Proyectos + Proceso
   ============================================ */
.unified-sections {
    position: relative;
    overflow: hidden;
    background: var(--bg-black);
}

.unified-sections::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00BFFF, #1565C0, transparent);
    z-index: 2;
}

.unified-sections::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #1565C0, #00BFFF, transparent);
    z-index: 2;
}

.unified-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 50%, transparent 90%);
    mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 50%, transparent 90%);
    opacity: 0.95;
}

.services {
    background: transparent;
    position: relative;
    cursor: default;
}

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

/* ── Orbit Stage ──────────────────────────────────── */
.orbit-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 560px;
    position: relative;
    overflow: hidden;
}

/* ── Orbit Hub ────────────────────────────────────── */
.orbit-hub {
    position: relative;
    width: 500px;
    height: 500px;
    flex-shrink: 0;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
    z-index: 1;
}
.orbit-stage.is-open .orbit-hub {
    transform: translateX(-200px);
}

/* ── SVG Connection Lines ─────────────────────────── */
.orbit-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.orbit-line {
    stroke-width: 1.5;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset .8s cubic-bezier(.4,0,.2,1),
                stroke-width .35s, filter .35s, opacity .35s;
    opacity: .35;
}
.orbit-hub.is-entered .orbit-line {
    stroke-dashoffset: 0;
}
.orbit-line.is-hover {
    stroke-width: 2.5;
    filter: url(#lineGlow);
    opacity: 1;
}
.orbit-line.is-active {
    stroke-width: 3;
    filter: url(#lineGlow);
    opacity: 1;
}
.orbit-hub.has-focus .orbit-line:not(.is-hover):not(.is-active) {
    opacity: .1;
}

/* ── Center Reactor ───────────────────────────────── */
.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.orbit-center-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,191,255,.14) 0%, transparent 65%);
    animation: reactorGlow 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes reactorGlow {
    0%, 100% { opacity: .4; transform: translate(-50%,-50%) scale(.85); }
    50%      { opacity: 1;  transform: translate(-50%,-50%) scale(1.2); }
}

.orbit-radar-wave {
    position: absolute;
    inset: -35px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,191,255,.18);
    animation: radarPing 3.5s cubic-bezier(0,.4,.6,1) infinite;
    pointer-events: none;
}
.orbit-radar-wave--2 { animation-delay: 1.2s; }
.orbit-radar-wave--3 { animation-delay: 2.4s; }
@keyframes radarPing {
    0%   { transform: scale(.45); opacity: .7; }
    100% { transform: scale(2); opacity: 0; }
}

.orbit-center-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(0,191,255,.3);
    animation: reactorRing 3s ease-in-out infinite;
}
.orbit-center-ring--inner {
    inset: 18px;
    border-color: rgba(0,191,255,.5);
    animation-delay: .8s;
}
@keyframes reactorRing {
    0%, 100% { transform: scale(1); opacity: .45; }
    50%      { transform: scale(1.05); opacity: 1; }
}

.orbit-center-crosshair {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.orbit-center-crosshair::before,
.orbit-center-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(0,191,255,.18);
}
.orbit-center-crosshair::before { width: 1px; height: 100%; left: 50%; top: 0; }
.orbit-center-crosshair::after  { height: 1px; width: 100%; top: 50%; left: 0; }

.orbit-center-label {
    position: relative;
    z-index: 3;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-light);
    line-height: 1.3;
    text-shadow: 0 0 14px rgba(0,191,255,.35);
}

/* ── Orbit Nodes ──────────────────────────────────── */
.orbit-node {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(10,10,10,.92);
    border: 1.5px solid rgba(0,191,255,.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    cursor: pointer;
    z-index: 3;
    color: var(--text-light);
    padding: 0;
    outline: none;
    font-family: inherit;
    opacity: 0;
    transition: opacity .4s, border-color .3s, box-shadow .3s, filter .3s, background .3s;
}

/* Entrance: explode from center */
.orbit-hub.is-entered .orbit-node { opacity: 1; }
.orbit-hub.is-entered .orbit-node--top {
    animation: nodeEntryTop .7s cubic-bezier(.175,.885,.32,1.275) forwards;
    animation-delay: 0s;
}
.orbit-hub.is-entered .orbit-node--left {
    animation: nodeEntryLeft .7s cubic-bezier(.175,.885,.32,1.275) forwards;
    animation-delay: .08s;
}
.orbit-hub.is-entered .orbit-node--right {
    animation: nodeEntryRight .7s cubic-bezier(.175,.885,.32,1.275) forwards;
    animation-delay: .16s;
}
.orbit-hub.is-entered .orbit-node--bottom {
    animation: nodeEntryBottom .7s cubic-bezier(.175,.885,.32,1.275) forwards;
    animation-delay: .24s;
}

@keyframes nodeEntryTop {
    0%   { opacity: 0; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0); }
    100% { opacity: 1; top: 10px; left: 50%; transform: translateX(-50%) scale(1); }
}
@keyframes nodeEntryLeft {
    0%   { opacity: 0; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0); }
    100% { opacity: 1; top: 50%; left: 10px; transform: translateY(-50%) scale(1); }
}
@keyframes nodeEntryRight {
    0%   { opacity: 0; top: 50%; right: auto; left: 50%; transform: translate(-50%,-50%) scale(0); }
    100% { opacity: 1; top: 50%; left: auto; right: 10px; transform: translateY(-50%) scale(1); }
}
@keyframes nodeEntryBottom {
    0%   { opacity: 0; bottom: auto; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0); }
    100% { opacity: 1; top: auto; bottom: 10px; left: 50%; transform: translateX(-50%) scale(1); }
}

/* Final positions (post-animation) */
.orbit-node--top    { top: 10px;  left: 50%; transform: translateX(-50%); }
.orbit-node--bottom { bottom: 10px; left: 50%; transform: translateX(-50%); }
.orbit-node--left   { left: 10px; top: 50%; transform: translateY(-50%); }
.orbit-node--right  { right: 10px; top: 50%; transform: translateY(-50%); }

/* Hover — powerful glow */
.orbit-node:hover {
    border-color: #00BFFF;
    box-shadow: 0 0 28px rgba(0,191,255,.45), 0 0 56px rgba(0,191,255,.12), inset 0 0 14px rgba(0,191,255,.07);
}
.orbit-node:hover .orbit-node-icon {
    transform: scale(1.22);
    filter: drop-shadow(0 0 8px rgba(0,191,255,.6));
}

/* Active */
.orbit-node.is-active {
    border-color: var(--salmon);
    background: rgba(21,101,192,.15);
    box-shadow: 0 0 32px rgba(21,101,192,.45), 0 0 64px rgba(21,101,192,.12), inset 0 0 16px rgba(0,191,255,.08);
    animation: nodeVibrate 2.5s ease-in-out infinite;
}
.orbit-node--top.is-active    { animation-name: nodeVibrateY; }
.orbit-node--bottom.is-active { animation-name: nodeVibrateY; }
.orbit-node--left.is-active   { animation-name: nodeVibrateX; }
.orbit-node--right.is-active  { animation-name: nodeVibrateX; }

@keyframes nodeVibrateY {
    0%, 100% { transform: translateX(-50%) scale(1); }
    25%      { transform: translateX(-50%) scale(1.035) rotate(.4deg); }
    75%      { transform: translateX(-50%) scale(1.035) rotate(-.4deg); }
}
@keyframes nodeVibrateX {
    0%, 100% { transform: translateY(-50%) scale(1); }
    25%      { transform: translateY(-50%) scale(1.035) rotate(.4deg); }
    75%      { transform: translateY(-50%) scale(1.035) rotate(-.4deg); }
}

/* Dim siblings */
.orbit-hub.has-focus .orbit-node:not(:hover):not(.is-active) {
    opacity: .35;
    filter: grayscale(.5) brightness(.7);
}

.orbit-node-icon {
    font-size: 1.5rem;
    color: var(--salmon);
    transition: transform .3s, filter .3s;
}
.orbit-node-label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color .3s;
}
.orbit-node:hover .orbit-node-label,
.orbit-node.is-active .orbit-node-label {
    color: var(--text-light);
}

/* Hint */
.orbit-hint {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .8rem;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: .6;
    transition: opacity .4s;
}
.orbit-stage.is-open .orbit-hint { opacity: 0; pointer-events: none; }
.orbit-hint i { margin-right: .35rem; }

/* ── Detail Panel ─────────────────────────────────── */
.orbit-detail {
    position: absolute;
    right: calc(50% - 440px);
    top: 50%;
    width: 360px;
    opacity: 0;
    transform: translateY(-50%) translateX(30px);
    pointer-events: none;
    transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
    z-index: 2;
}
.orbit-stage.is-open .orbit-detail {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

.orbit-detail-card {
    display: none;
    position: relative;
    background: rgba(6,6,12,.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0,191,255,.12);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 12px 48px rgba(0,0,0,.55), 0 0 40px rgba(0,191,255,.06);
    overflow: hidden;
}
.orbit-detail-card.is-visible {
    display: block;
    animation: detailSlideIn .5s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes detailSlideIn {
    from { opacity: 0; transform: translateX(40px) scale(.95); filter: blur(4px); }
    to   { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

/* Glow border */
.orbit-detail-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: conic-gradient(from var(--glow-angle, 0deg), rgba(0,191,255,.4), transparent 30%, transparent 70%, rgba(21,101,192,.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: glowSpin 5s linear infinite;
}
@keyframes glowSpin {
    to { --glow-angle: 360deg; }
}
@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.orbit-detail-icon {
    font-size: 2rem;
    color: var(--salmon);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(0,191,255,.3));
}
.orbit-detail-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: .6rem;
}
.orbit-detail-card p {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}
.orbit-detail-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.orbit-detail-list li {
    font-size: .85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: .5rem;
    opacity: 0;
    animation: listItemIn .35s ease forwards;
}
.orbit-detail-card.is-visible .orbit-detail-list li:nth-child(1) { animation-delay: .15s; }
.orbit-detail-card.is-visible .orbit-detail-list li:nth-child(2) { animation-delay: .22s; }
.orbit-detail-card.is-visible .orbit-detail-list li:nth-child(3) { animation-delay: .29s; }
.orbit-detail-card.is-visible .orbit-detail-list li:nth-child(4) { animation-delay: .36s; }
@keyframes listItemIn {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: translateX(0); }
}
.orbit-detail-list li i {
    color: var(--salmon);
    font-size: .7rem;
}
.orbit-detail-card .btn-sm {
    font-size: .85rem;
    padding: .55rem 1.4rem;
}

/* ── Responsive orbit ─────────────────────────────── */
@media (max-width: 960px) {
    .orbit-stage { flex-direction: column; overflow: visible; }
    .orbit-stage.is-open .orbit-hub { transform: scale(.82) translateX(0); }
    .orbit-detail {
        position: relative;
        right: auto; top: auto;
        width: 100%; max-width: 400px;
        transform: translateY(20px);
    }
    .orbit-stage.is-open .orbit-detail {
        opacity: 1; transform: translateY(0); pointer-events: auto;
    }
    .unified-bg-canvas { opacity: 0.6; }
}
@media (max-width: 600px) {
    .orbit-hub { width: 320px; height: 320px; }
    .orbit-node { width: 65px; height: 65px; }
    .orbit-node-icon { font-size: 1.2rem; }
    .orbit-node-label { font-size: .6rem; }
    .orbit-center { width: 110px; height: 110px; }
    .orbit-center-label { font-size: .7rem; }
    .orbit-detail-card { padding: 1.5rem; }
}
.projects {
    background: transparent;
    position: relative;
    padding: 6rem 0;
}

/* Separador sutil entre secciones internas */
.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.15), transparent);
}

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


.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(21, 101, 192, 0.4);
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gradient-accent);
    border-color: var(--salmon);
    color: var(--text-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.projects-grid .project-card:first-child {
    grid-column: 1 / -1;
}

/* Primera tarjeta: imagen panorámica compacta */
.projects-grid .project-card:first-child .project-image {
    aspect-ratio: 3 / 1;
}

.project-card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(21, 101, 192, 0.15);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--salmon);
    box-shadow: 0 20px 30px -15px rgba(21, 101, 192, 0.2);
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(21, 101, 192, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay span {
    color: var(--bg-black);
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    background: var(--text-light);
    border-radius: 40px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-card:hover .project-overlay span {
    transform: translateY(0);
}

.project-info {
    padding: 1.2rem 1.4rem;
}

.project-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ============================================
   PROCESO CREATIVO — Timeline Vertical estilo Canva
   ============================================ */
.creative-process {
    background: transparent;
    padding: 6rem 0 8rem;
    position: relative;
}

/* Separador sutil entre secciones internas */
.creative-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.15), transparent);
}

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

/* ============================================
   TIMELINE WRAPPER — posición relativa para el SVG
   ============================================ */
.tl-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

/* ============================================
   SVG OVERLAY — detrás de las cards (z-index bajo)
   ============================================ */
.tl-svg {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
}

.tl-path-bg {
    stroke: rgba(255,255,255,0.06);
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.tl-path-prog {
    stroke: url(#tlGrad);
    stroke-width: 2.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: stroke-dashoffset 0.016s linear;
}

/* ============================================
   FILAS — encima del SVG
   ============================================ */
.tl-row {
    display: flex;
    margin-bottom: 5rem;
    position: relative;
    z-index: 5;
}

.tl-row:last-child { margin-bottom: 2rem; }

.tl-row-left  { justify-content: flex-start; }
.tl-row-right { justify-content: flex-end; }

/* ============================================
   CARD — fondo sólido para tapar la línea SVG
   que pasa por detrás
   ============================================ */
.tl-card {
    width: 44%;
    background: rgba(6, 6, 14, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 191, 255, 0.08);
    border-radius: 24px;
    padding: 2.2rem 2rem;
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    position: relative;
    z-index: 5;
    opacity: 0.25;
    overflow: hidden;
    transition: opacity 0.7s ease,
                border-color 0.7s ease,
                box-shadow 0.7s ease,
                transform 0.65s cubic-bezier(0.34,1.56,0.64,1),
                background 0.5s ease;
}

/* Glow sutil interno en la card */
.tl-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.7s ease;
}

.tl-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(0, 191, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.7s ease;
}

/* Entrada lateral sutil */
.tl-row-left  .tl-card { transform: translateX(-18px); }
.tl-row-right .tl-card { transform: translateX(18px);  }

/* Estado activo — la línea ha llegado al top de la card */
.tl-card.tl-active {
    opacity: 1;
    background: rgba(6, 6, 18, 0.92);
    border-color: rgba(0, 191, 255, 0.3);
    box-shadow:
        0 0 0 1px rgba(0,191,255,0.1),
        0 0 30px rgba(0,191,255,0.07),
        0 4px 20px rgba(0,0,0,0.4),
        0 8px 50px rgba(21,101,192,0.2),
        inset 0 1px 0 rgba(0,191,255,0.08);
    transform: translateX(0) !important;
}

.tl-card.tl-active::before {
    opacity: 1;
}

.tl-card.tl-active::after {
    opacity: 1;
}

.tl-card.tl-active:hover {
    border-color: rgba(0,191,255,0.5);
    box-shadow:
        0 0 0 1px rgba(0,191,255,0.18),
        0 0 40px rgba(0,191,255,0.1),
        0 6px 24px rgba(0,0,0,0.5),
        0 12px 60px rgba(21,101,192,0.28),
        inset 0 1px 0 rgba(0,191,255,0.12);
    transform: translateY(-4px) !important;
}

/* Icono */
.tl-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(21,101,192,0.08);
    border: 1px solid rgba(21,101,192,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

.tl-card.tl-active .tl-card-icon {
    background: var(--gradient-accent);
    border-color: transparent;
    box-shadow: 0 0 24px rgba(0,191,255,0.35), 0 0 8px rgba(21,101,192,0.5);
    transform: scale(1.05);
}

/* Número */
.tl-num {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--salmon);
    margin-bottom: 0.4rem;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}
.tl-card.tl-active .tl-num { opacity: 1; }

/* Título */
.tl-card-body h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

/* Descripción */
.tl-card-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

/* Tags */
.tl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tl-tag {
    background: rgba(0, 191, 255, 0.06);
    border: 1px solid rgba(0, 191, 255, 0.15);
    color: rgba(0, 191, 255, 0.7);
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    transition: all 0.4s ease;
}

.tl-card.tl-active .tl-tag {
    background: rgba(0, 191, 255, 0.1);
    border-color: rgba(0, 191, 255, 0.25);
    color: var(--salmon);
}

.tl-card.tl-active .tl-tag:hover {
    background: rgba(0, 191, 255, 0.15);
    border-color: rgba(0, 191, 255, 0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .projects-grid { grid-template-columns: 1fr; }
    .projects-grid .project-card:first-child { grid-column: auto; }
    .tl-row { justify-content: center !important; margin-bottom: 2.5rem; }
    .tl-card { width: 92%; transform: translateY(12px) !important; }
    .tl-card.tl-active { transform: translateY(0) !important; }
    .tl-svg { display: none; }
}

.contact {
    background: var(--bg-black-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 3rem;
    border: 1px solid rgba(21, 101, 192, 0.2);
    transition: all 0.3s ease;
}

.contact-wrapper:hover {
    border-color: var(--salmon);
    box-shadow: 0 10px 40px rgba(21, 101, 192, 0.1);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

.contact-info p {
    color: var(--text-muted);
}

.contact-details {
    list-style: none;
    margin: 2rem 0;
}

.contact-details li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
    transition: transform 0.2s ease;
}

.contact-details li:hover {
    transform: translateX(5px);
}

.contact-details li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-details li a:hover {
    color: #ffffff;
}

.contact-details i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 101, 192, 0.1);
    border: 1px solid rgba(21, 101, 192, 0.2);
    border-radius: 50%;
    color: var(--salmon);
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-details li:hover i {
    background: rgba(21, 101, 192, 0.2);
    box-shadow: 0 0 12px rgba(0, 191, 255, 0.2);
    border-color: rgba(0, 191, 255, 0.4);
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--salmon);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(21, 101, 192, 0.3);
    border-radius: 20px;
    color: var(--text-light);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--salmon);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.2);
    transform: translateY(-2px);
}

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

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

.footer {
    background: var(--carafe);
    padding: 3rem 0 1.5rem;
    border-top: 2px solid var(--salmon);
    position: relative;
}

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

.footer-logo-img {
    height: 70px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-links h4, .footer-contact h4, .footer-social h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.footer-links h4::after, .footer-contact h4::after, .footer-social h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--salmon);
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

.footer-links li, .footer-contact li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--salmon);
    transform: translateX(5px);
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform 0.2s ease;
}

.footer-contact li:hover {
    transform: translateX(5px);
}

.footer-contact i {
    color: var(--salmon);
    width: 20px;
}

.footer-contact li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact li a:hover {
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-icons a:hover {
    background: var(--gradient-accent);
    color: var(--text-light);
    transform: translateY(-3px) rotate(360deg);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    margin: 0;
}

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

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-version {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.04em;
    margin-left: auto;
    padding-left: 1rem;
}

@keyframes glitch {
    0%, 100% { text-shadow: 2px 0 var(--salmon), -2px 0 var(--carafe-light); }
    25% { text-shadow: -2px 0 var(--salmon), 2px 0 var(--carafe-light); }
    50% { text-shadow: 2px 0 var(--salmon), -2px 0 var(--carafe-light); }
    75% { text-shadow: -2px 0 var(--salmon), 2px 0 var(--carafe-light); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   ANIMACIONES PERSONALIZADAS POR DIRECCIÓN
   ============================================ */

/* Animación desde la izquierda */
[data-aos="fade-from-left"] {
    opacity: 0;
    transform: translateX(-60px);
    transition-property: transform, opacity;
}

[data-aos="fade-from-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

/* Animación desde la derecha */
[data-aos="fade-from-right"] {
    opacity: 0;
    transform: translateX(60px);
    transition-property: transform, opacity;
}

[data-aos="fade-from-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

/* Animación desde arriba */
[data-aos="fade-from-up"] {
    opacity: 0;
    transform: translateY(40px);
    transition-property: transform, opacity;
}

[data-aos="fade-from-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   MEJORA 8: NARRATIVA VISUAL — delay en hero
   badge → h1 → tagline → botones con stagger
   ============================================ */
.hero-badge {
    animation: heroFadeUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: 0.1s;
}

.hero-text h1 {
    animation: heroFadeUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: 0.28s;
}

.hero-tagline {
    animation: heroFadeUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: 0.48s;
}

.hero-buttons {
    animation: heroFadeUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: 0.65s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación desde abajo */
[data-aos="fade-from-down"] {
    opacity: 0;
    transform: translateY(-40px);
    transition-property: transform, opacity;
}

[data-aos="fade-from-down"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Animación zoom-in */
[data-aos="zoom-in-custom"] {
    opacity: 0;
    transform: scale(0.9);
    transition-property: transform, opacity;
}

[data-aos="zoom-in-custom"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* Asegurar que AOS funcione correctamente */
[data-aos] {
    opacity: 0;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].aos-animate {
    opacity: 1;
}

.service-card, .project-card, .timeline-item {
    animation: fadeInUp 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(36px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FADE-IN ON SCROLL — clase global JS-friendly
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .hero-split {
        gap: 1.5rem;
        grid-template-columns: 1fr 1fr;
    }
    .hero-keyboard-3d {
        height: 360px;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        margin-bottom: 2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        transition: left 0.3s ease;
        gap: 0;
        overflow-y: auto;
        border-right: 1px solid rgba(21, 101, 192, 0.2);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-menu li a {
        display: block;
        padding: 1rem 0.5rem !important;
        font-size: 1rem !important;
        width: 100%;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: rgba(21, 101, 192, 0.1);
        border: 1px solid rgba(21, 101, 192, 0.2);
        transition: var(--transition);
        z-index: 1001;
        position: relative;
    }

    .menu-toggle:hover {
        background: rgba(21, 101, 192, 0.2);
    }

    /* Móvil — hero texto */
    .hero-text h1 br {
        display: block !important;
    }

    .hero-text h1 {
        font-size: clamp(1.4rem, 5.5vw, 2rem);
        letter-spacing: -0.01em;
    }
    .hero-tagline {
        font-size: 0.95rem;
        max-width: 100%;
    }
    .hero-badge {
        font-size: 0.72rem;
    }
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-split .hero-text {
        text-align: center;
    }

    .hero-split .hero-text .hero-buttons {
        justify-content: center;
    }

    .hero-keyboard-3d {
        width: 100%;
        height: 320px;
        overflow: hidden;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-links,
    .footer-contact,
    .footer-social {
        width: 100%;
    }

    .footer-contact li {
        justify-content: center;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .footer-links h4::after, .footer-contact h4::after, .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    section {
        padding: 4rem 0;
    }
    
    .logo-img {
        height: 52px;
    }
    .footer-logo-img {
        height: 60px;
    }
    
    .marquee-logos {
        gap: 2rem;
        animation: scrollLogosSuave 50s linear infinite;
    }
    
    .marquee-logos img {
        height: 35px;
    }

    .project-filters {
        gap: 0.6rem;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

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

    .hero-text h1 {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
        line-height: 1.25;
    }

    .hero-tagline {
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .project-info h3 {
        font-size: 1.1rem;
    }

    section {
        padding: 3rem 0;
    }

    .contact-wrapper {
        padding: 1.2rem;
        border-radius: 20px;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .footer-logo-img {
        height: 50px;
    }

    .marquee-logos img {
        height: 28px;
    }
}

@media (min-width: 1400px) {
    .logo-img {
        height: 95px;
    }
    .footer-logo-img {
        height: 100px;
    }
    
    .marquee-logos {
        animation: scrollLogosSuave 70s linear infinite;
    }
}

/* ── Breadcrumb Navigation ────────────────────────── */
.breadcrumb-nav {
    background: var(--bg-black-secondary);
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: .6rem 0;
    position: relative;
    z-index: 10;
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: .35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .85rem;
}
.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: var(--text-muted);
}
.breadcrumb-list li + li::before {
    content: '›';
    color: var(--text-muted);
    font-size: 1rem;
}
.breadcrumb-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
}
.breadcrumb-list a:hover {
    color: var(--salmon);
}
.breadcrumb-list li[aria-current="page"] {
    color: var(--text-light);
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ============================================
   ELIMINAR MARCA DE AGUA DE SPLINE - SOLUCIÓN 1
   ============================================ */

/* Ocultar logo de Spline completamente */
spline-viewer::part(logo) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Alternativa: si el logo está en el shadow DOM con otras clases */
spline-viewer::part(watermark),
spline-viewer::part(brand),
spline-viewer::part(spline-brand) {
    display: none !important;
}

/* Forzar ocultamiento de cualquier elemento que contenga texto de Spline */
spline-viewer [class*="logo"],
spline-viewer [class*="watermark"],
spline-viewer [class*="brand"],
spline-viewer [class*="spline"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Para el wrapper del modelo 3D */
.spline-wrapper {
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Recortar la parte inferior por si acaso */
.spline-wrapper spline-viewer {
    margin-bottom: -50px;
    height: calc(100% + 50px);
}