/* ============================================
   Diego Valladares - Professional Portfolio
   Clean, modern, engineering-inspired design
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.15);
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --bg-section-alt: #0c1222;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --border-light: #475569;
    --brand-teal: #22d3ee;
    --brand-indigo: #6366f1;
    --brand-violet: #a855f7;
    --aurora: linear-gradient(120deg, #22d3ee, #6366f1 50%, #a855f7);
    --gradient-primary: linear-gradient(135deg, #2563eb, #06b6d4);
    --gradient-hero: linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 8px 40px rgba(37, 99, 235, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --gb-h: 40px;   /* alto de la barra de juegos fija (ver .games-bar) */
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* barra de juegos + navbar (72px) + aire */
    scroll-padding-top: calc(var(--gb-h) + 80px);
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Compensa la barra de juegos fija. El navbar es fixed y no ocupa flujo,
       así que este padding baja todo el contenido exactamente lo que mide la
       barra y cada página conserva su padding-top original bajo el navbar. */
    padding-top: var(--gb-h);
    text-align: left;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-light);
}

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

/* --- Mouse Glow Follower --- */
.mouse-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.07) 0%, rgba(37, 99, 235, 0.03) 40%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    mix-blend-mode: screen;
}

/* --- Code Rain Canvas --- */
#codeRainCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Floating Gradient Blobs --- */
.has-blobs {
    position: relative;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 70%);
    top: -100px;
    right: -100px;
    animation: blobFloat1 12s ease-in-out infinite;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 70%);
    bottom: -80px;
    left: -80px;
    animation: blobFloat2 15s ease-in-out infinite;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
    top: 50%;
    left: -60px;
    animation: blobFloat3 18s ease-in-out infinite;
}

.blob-4 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1), transparent 70%);
    bottom: -60px;
    right: 10%;
    animation: blobFloat1 14s ease-in-out infinite reverse;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-25px, 25px) scale(1.08); }
    66% { transform: translate(20px, -10px) scale(0.92); }
}

@keyframes blobFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
}

/* --- Text Scramble --- */
.scramble-char {
    color: var(--accent);
    font-weight: 400;
}

.scramble-target {
    display: inline;
}

/* --- Container --- */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Elements that should NOT be justified --- */
.navbar,
.nav-links,
.hero-greeting,
.hero-name,
.hero-title,
.hero-cta,
.hero-stats,
.section-title,
.btn,
.badge,
.timeline-header,
.timeline-date,
.timeline-tags,
.project-tags,
.project-label,
.skill-category-header,
.skill-item,
.apps-live-badge,
.apps-headline,
.apps-stats-row,
.apps-stat,
.iphone-slide h4,
.slide-rating,
.slide-category,
.slide-features,
.app-showcase-meta,
.app-showcase-rating,
.app-showcase-platform,
.app-store-btn,
.contact-card strong,
.contact-card span,
.achievement-badge,
.freelance-tags,
.freelance-link-icon,
.app-featured-badge,
.coming-soon-text h4,
.coming-soon-platforms {
    text-align: left;
}

.footer {
    text-align: center;
}

/* --- Barra de juegos (fija, sobre el navbar, en todas las páginas) --- */
.games-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: var(--gb-h);
    /* Acento ámbar: complementario de la paleta aurora fría, no se usa en
       ninguna otra parte del sitio, así que la barra de productos destaca. */
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.16), rgba(251, 191, 36, 0.10) 48%, rgba(245, 158, 11, 0.16)), #0a0f1c;
    border-bottom: 1px solid rgba(245, 158, 11, 0.40);
    box-shadow: 0 1px 22px rgba(245, 158, 11, 0.13);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.games-bar-inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
}
.games-bar-inner::-webkit-scrollbar { display: none; }


/* Separa los videojuegos del software, para que se lean como líneas de
   producto independientes y no como una lista suelta. */
.gb-sep {
    flex: none;
    width: 1px;
    height: 17px;
    background: rgba(245, 158, 11, 0.45);
}

.gb-game {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--text-primary);
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.gb-game:hover {
    background: rgba(245, 158, 11, 0.13);
    border-color: rgba(245, 158, 11, 0.48);
    transform: translateY(-1px);
}

.gb-game img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    flex: none;
}

.gb-name {
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
}

.gb-pill {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    white-space: nowrap;
}
/* Sólido = ya disponible (máximo énfasis); apagado = aún no sale. */
.gb-live {
    color: #1a1206;
    background: #f59e0b;
    border: 1px solid #f59e0b;
}
.gb-soon {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.34);
}

@media (max-width: 768px) {
    :root { --gb-h: 38px; }
    .games-bar-inner { padding: 0 14px; gap: 12px; }
    .gb-name { font-size: 0.8rem; }
}

/* En pantallas angostas los pills no caben: se ocultan para ganar ancho. Aun
   así los tres productos superan el viewport, así que la barra se desliza y un
   degradado en el borde derecho avisa que hay más contenido (el scrollbar está
   oculto y sin esta pista el tercer producto pasa desapercibido). */
@media (max-width: 560px) {
    .gb-pill { display: none; }
    .gb-game { padding: 4px 12px 4px 4px; }
    .games-bar::after {
        content: "";
        position: absolute; top: 0; right: 0; bottom: 1px;
        width: 42px;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(10, 15, 28, 0), #0b1020 82%);
    }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: var(--gb-h);
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    background: rgba(15, 23, 42, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all var(--transition);
}

.nav-logo:hover {
    border-color: var(--accent);
    background: rgba(6, 182, 212, 0.05);
    color: var(--text-primary);
}

.logo-cmd {
    color: var(--accent);
    font-weight: 700;
    margin-right: 6px;
}

.logo-cursor {
    color: var(--accent);
    animation: blink-cursor 0.8s step-end infinite;
    margin-left: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* --- Language Switcher --- */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px;
}

.lang-switcher button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.5px;
}

.lang-switcher button:hover {
    color: var(--text-primary);
}

.lang-switcher button.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-hero);
    padding: 100px 24px 60px;
    overflow: hidden;
}

/* --- Particle Canvas --- */
#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-greeting {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-cursor {
    animation: blink 1s step-end infinite;
    font-weight: 700;
}

.typed-cursor {
    color: var(--accent);
    font-weight: 300;
    animation: blink-cursor 0.8s step-end infinite;
    margin-left: 2px;
}

@keyframes blink-cursor {
    50% { opacity: 0; }
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.text-accent {
    color: var(--accent);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

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

/* --- Hero Stats --- */
.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-mono);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Hero Image --- */
.hero-image {
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 280px;
    height: 280px;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 4px solid var(--bg-dark);
}

.image-decoration {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #06b6d4, #2563eb, #8b5cf6, #06b6d4);
    z-index: 1;
    animation: rotateGlow 4s linear infinite;
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #06b6d4, #2563eb, #8b5cf6, #06b6d4);
    filter: blur(18px);
    opacity: 0.5;
    z-index: 0;
    animation: rotateGlow 4s linear infinite;
    transition: opacity var(--transition);
}

.image-frame:hover::before {
    opacity: 0.8;
}

.image-frame:hover img {
    transform: scale(1.03);
    transition: transform 0.4s ease;
}

@keyframes rotateGlow {
    to { transform: rotate(360deg); }
}

/* --- Hero Apps Strip --- */
.hero-apps-strip {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.hero-apps-divider {
    width: 60px;
    height: 1px;
    background: var(--border-light);
    margin-bottom: 4px;
}

.hero-apps-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-apps-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hero-app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    flex-shrink: 0;
}

.hero-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-app-icon:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-app-featured {
    border: 2px solid #34d399;
    animation: pulseGreen 2.5s ease-in-out infinite;
}

@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

/* --- App Spotlight Section --- */
.app-spotlight {
    position: relative;
    padding: 60px 0 48px;
    background: var(--bg-section-alt);
    overflow: hidden;
}

.spotlight-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.spotlight-wrapper {
    position: relative;
    z-index: 2;
}

.spotlight-slides {
    position: relative;
    min-height: 160px;
    margin-bottom: 32px;
}

.spotlight-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 32px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.spotlight-slide.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.spotlight-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.spotlight-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-info {
    flex: 1;
    min-width: 0;
}

.spotlight-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(52, 211, 153, 0.3);
    margin-bottom: 8px;
}

.spotlight-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.spotlight-info p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    max-width: 520px;
}

.spotlight-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.spotlight-category,
.spotlight-price,
.spotlight-rating {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.spotlight-category {
    color: var(--accent);
}

.spotlight-price {
    color: #34d399;
}

.spotlight-rating {
    color: #fbbf24;
}

.spotlight-rating i {
    font-size: 0.7rem;
}

.spotlight-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.spotlight-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
    color: white;
}

/* Spotlight Navigation */
.spotlight-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.spotlight-pills {
    display: flex;
    gap: 10px;
}

.spotlight-pill {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
    opacity: 0.5;
}

.spotlight-pill img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-pill:hover {
    opacity: 0.8;
    border-color: var(--accent);
}

.spotlight-pill.active {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.spotlight-see-all {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
    white-space: nowrap;
}

.spotlight-see-all:hover {
    color: var(--primary-light);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    animation: bounce 2s ease infinite;
    z-index: 3;
}

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

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-section-alt);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 56px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
    max-width: 300px;
}

.section-number {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--text-primary);
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color var(--transition), box-shadow var(--transition);
    transform-style: preserve-3d;
    will-change: transform;
}

.highlight-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
}

.highlight-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 1.2rem;
}

.highlight-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.highlight-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    z-index: 1;
}

.timeline-marker.current {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}

.timeline-content:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-card);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.timeline-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-content h4 {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.badge-current {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.timeline-details {
    list-style: none;
    margin-bottom: 16px;
}

.timeline-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.timeline-details li::before {
    content: '\25B8';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
}

.timeline-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 4px 10px;
    border-radius: 4px;
}

/* --- Skills --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color var(--transition), box-shadow var(--transition);
    transform-style: preserve-3d;
    will-change: transform;
}

.skill-category:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.skill-category-header i {
    font-size: 1.4rem;
    color: var(--accent);
}

.skill-category-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

/* --- Projects --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.project-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-hover);
}

.project-card.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--bg-card), rgba(6, 182, 212, 0.05));
}

.project-label {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 4px 10px;
    border-radius: 4px;
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 1.3rem;
}

.project-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.project-card h4 {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 500;
}

.project-card h4 a {
    color: var(--accent);
}

.project-card h4 a:hover {
    text-decoration: underline;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
}

/* --- Freelance Projects --- */
.freelance-intro {
    max-width: 1000px;
    margin-bottom: 40px;
}

.freelance-intro p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.freelance-intro strong {
    color: var(--text-primary);
}

.freelance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.freelance-card {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    align-items: flex-start;
    transition: border-color var(--transition), box-shadow var(--transition);
    position: relative;
    color: var(--text-primary);
    text-decoration: none;
    transform-style: preserve-3d;
    will-change: transform;
}

a.freelance-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
    color: var(--text-primary);
}

.freelance-card:not(a):hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-card);
}

.freelance-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.freelance-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.freelance-info h4 {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 6px;
}

.freelance-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.freelance-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.freelance-tags span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 7px;
    border-radius: 4px;
}

.freelance-link-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

a.freelance-card:hover .freelance-link-icon {
    color: var(--accent);
}

/* --- Education --- */
.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.education-card {
    display: flex;
    gap: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    align-items: center;
}

.education-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.education-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.education-info h4 {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}

.education-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Achievement Card --- */
.achievement-card {
    display: flex;
    gap: 28px;
    background: linear-gradient(135deg, var(--bg-card), rgba(234, 179, 8, 0.04));
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: var(--radius);
    padding: 36px;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #eab308, #f59e0b, #eab308);
}

.achievement-card:hover {
    border-color: rgba(234, 179, 8, 0.5);
    box-shadow: 0 8px 40px rgba(234, 179, 8, 0.1);
}

.achievement-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #eab308, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.achievement-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #eab308;
    background: rgba(234, 179, 8, 0.12);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(234, 179, 8, 0.25);
    margin-bottom: 8px;
}

.achievement-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.achievement-info h4 {
    font-size: 0.9rem;
    color: #eab308;
    font-weight: 500;
    margin-bottom: 12px;
}

.achievement-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Contact --- */
.contact-content {
    max-width: 800px;
}

.contact-text {
    margin-bottom: 40px;
}

.contact-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
    color: var(--text-primary);
    transform-style: preserve-3d;
    will-change: transform;
}

.contact-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
    color: var(--text-primary);
}

.contact-card i {
    font-size: 1.6rem;
    color: var(--accent);
    width: 32px;
    text-align: center;
}

.contact-card strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-card span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --- Footer --- */
.footer {
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --- Apps Section --- */
.apps-hero {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
    margin-bottom: 64px;
}

.apps-badge-line {
    margin-bottom: 16px;
}

.apps-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.25);
    padding: 6px 16px;
    border-radius: 24px;
    animation: pulse-badge 3s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
}

.apps-headline {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.text-gradient {
    background: linear-gradient(135deg, #2563eb, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.apps-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.apps-subtitle strong {
    color: var(--text-primary);
}

.apps-stats-row {
    display: flex;
    gap: 32px;
}

.apps-stat {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.apps-stat-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.apps-stat-number i {
    font-size: 0.9rem;
    color: #fbbf24;
}

.apps-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* --- iPhone Mockup --- */
.iphone-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.iphone-frame {
    position: relative;
    width: 280px;
    height: 560px;
    background: #1a1a2e;
    border-radius: 40px;
    border: 3px solid #3a3a5c;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(37, 99, 235, 0.1),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    padding: 0;
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1a1a2e;
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

.iphone-notch::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2a2a4a;
}

.iphone-screen {
    position: relative;
    width: 100%;
    height: calc(100% - 24px);
    overflow: hidden;
    border-radius: 37px;
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    padding-top: 40px;
}

.iphone-home-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    z-index: 10;
}

/* --- iPhone Slider --- */
.iphone-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.iphone-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 24px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.iphone-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.iphone-slide.exit-left {
    opacity: 0;
    transform: translateX(-40px);
}

.slide-app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.slide-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iphone-slide h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.slide-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 6px;
    font-size: 0.75rem;
    text-align: left;
}

.slide-rating i {
    color: #fbbf24;
    font-size: 0.7rem;
}

.slide-rating span {
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-left: 4px;
}

.slide-category {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: left;
}

.slide-features {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slide-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: left;
}

.slide-features li i {
    color: #34d399;
    font-size: 0.65rem;
    flex-shrink: 0;
}

/* --- iPhone Dots --- */
.iphone-dots {
    display: flex;
    gap: 10px;
}

.iphone-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.iphone-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.iphone-dot:hover:not(.active) {
    border-color: var(--accent);
}

/* --- App Showcase Cards --- */
.app-cards-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.app-showcase-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.app-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition);
}

.app-showcase-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
    color: var(--text-primary);
    transform: translateY(-4px);
}

.app-showcase-card:hover::before {
    opacity: 1;
}

.app-showcase-card.card-active {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--bg-card), rgba(6, 182, 212, 0.05));
}

.app-showcase-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.app-showcase-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-showcase-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.app-showcase-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.app-showcase-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.app-showcase-rating {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-showcase-platform {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-showcase-cta {
    margin-top: auto;
    padding-top: 12px;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.app-showcase-card:hover .app-store-btn {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* --- Featured App Card --- */
.app-showcase-card.app-featured {
    border-color: #34d399;
    background: linear-gradient(135deg, var(--bg-card), rgba(52, 211, 153, 0.06));
    position: relative;
}

.app-showcase-card.app-featured::before {
    background: linear-gradient(135deg, #34d399, #06b6d4);
    opacity: 1;
}

.app-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(52, 211, 153, 0.3);
    z-index: 1;
}

/* --- Apps Coming Soon Banner --- */
.apps-coming-soon {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--bg-card), rgba(139, 92, 246, 0.06));
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.apps-coming-soon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4, #8b5cf6);
}

.coming-soon-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #8b5cf6;
    flex-shrink: 0;
}

.coming-soon-text {
    flex: 1;
}

.coming-soon-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.coming-soon-platforms {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.coming-soon-platforms span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.coming-soon-platforms span i {
    color: #8b5cf6;
    font-size: 0.8rem;
}

/* Elements that should NOT be justified - Spotlight */
.hero-apps-strip,
.hero-apps-label,
.spotlight-info h3,
.spotlight-meta,
.spotlight-badge,
.spotlight-nav,
.spotlight-see-all,
.spotlight-cta {
    text-align: left;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-apps-strip {
        align-items: center;
    }

    .hero-apps-label {
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .image-frame {
        width: 240px;
        height: 240px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .apps-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .iphone-showcase {
        order: -1;
    }

    .apps-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .apps-stats-row {
        justify-content: center;
    }

    .app-cards-showcase {
        grid-template-columns: 1fr 1fr;
    }

    .apps-coming-soon {
        flex-wrap: wrap;
    }

    .coming-soon-platforms {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 12px;
        right: 12px;
        background: #0d1526;
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
        flex-direction: column;
        gap: 2px;
        padding: 10px;
        max-height: calc(100dvh - 92px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
        animation: navDrop 0.18s ease;
    }
    @keyframes navDrop {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: none; }
    }

    .nav-links > li { width: 100%; }

    .nav-links a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 13px 16px;
        font-size: 1rem;
        border-radius: 10px;
    }
    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(99, 102, 241, 0.16);
        color: #fff;
    }

    /* Grupo "Juegos" con separadores y submenú acentuado */
    .nav-dropdown {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        margin: 3px 0;
        padding: 3px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .lang-switcher {
        margin-left: auto;
        margin-right: 10px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 100px 20px 60px;
    }

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

    .hero-stats {
        gap: 24px;
    }

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

    .hero-app-icon {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    .hero-apps-icons {
        gap: 10px;
    }

    .spotlight-slide {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .spotlight-info p {
        margin-left: auto;
        margin-right: auto;
    }

    .spotlight-meta {
        justify-content: center;
    }

    .spotlight-info h3,
    .spotlight-badge,
    .spotlight-cta {
        text-align: center;
    }

    .spotlight-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .spotlight-nav {
        flex-direction: column;
        gap: 16px;
    }

    .spotlight-pills {
        justify-content: center;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -30px;
    }

    .timeline-header {
        flex-direction: column;
    }

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

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

    .apps-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .iphone-showcase {
        order: -1;
    }

    .iphone-frame {
        width: 240px;
        height: 480px;
        border-radius: 34px;
    }

    .iphone-screen {
        border-radius: 31px;
    }

    .iphone-notch {
        width: 100px;
        height: 24px;
        border-radius: 0 0 14px 14px;
    }

    .apps-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .apps-stats-row {
        justify-content: center;
        gap: 20px;
    }

    .app-cards-showcase {
        grid-template-columns: 1fr;
    }

    .apps-coming-soon {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .coming-soon-platforms {
        justify-content: center;
    }

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

    .education-card,
    .achievement-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 1.1rem;
    }

    .hero-app-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .hero-apps-icons {
        gap: 8px;
    }

    .hero-apps-label {
        font-size: 0.65rem;
    }

    .spotlight-pill {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

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

    .image-frame {
        width: 180px;
        height: 180px;
    }

    .timeline-content {
        padding: 20px;
    }
}

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
    .timeline-content,
    .education-card,
    .achievement-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease, border-color var(--transition), box-shadow var(--transition);
    }

    .timeline-content.visible,
    .education-card.visible,
    .achievement-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Cards with 3D tilt use opacity-only reveal */
    .highlight-card,
    .skill-category,
    .project-card,
    .freelance-card,
    .contact-card,
    .app-showcase-card {
        opacity: 0;
        transition: opacity 0.6s ease, border-color var(--transition), box-shadow var(--transition);
    }

    .highlight-card.visible,
    .skill-category.visible,
    .project-card.visible,
    .freelance-card.visible,
    .contact-card.visible,
    .app-showcase-card.visible {
        opacity: 1;
    }

    .iphone-frame,
    .spotlight-wrapper {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .iphone-frame.visible,
    .spotlight-wrapper.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   SHARED — v2 multipágina (íconos SVG, dropdown, footer)
   ========================================================= */

/* Inline SVG icons */
.ic {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

/* Nav dropdown (Juegos) */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
    z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    border-radius: 6px;
}
.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

/* Footer v3 (profesional) */
.footer {
    text-align: left;
    border-top: 1px solid var(--border);
    padding: 64px 0 26px;
    margin-top: 40px;
    background: linear-gradient(180deg, var(--bg-section-alt), #080b14);
}
.footer-top { display: grid; grid-template-columns: 1.25fr 2fr; gap: 48px; padding-bottom: 40px; }
.footer-logo {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-main); font-size: 1.28rem; font-weight: 700;
    color: var(--text-primary); letter-spacing: -0.015em; margin-bottom: 14px;
}
.footer-logo svg { filter: drop-shadow(0 2px 9px rgba(99,102,241,0.4)); }
.footer-tag { color: var(--text-secondary); max-width: 380px; line-height: 1.6; margin-bottom: 22px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
    border: 1px solid var(--border); color: var(--text-secondary); transition: all var(--transition);
}
.footer-social a:hover { color: #fff; border-color: var(--border-light); background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.footer-social .fs-youtube:hover { color: #ff0033; border-color: rgba(255,0,51,0.5); background: rgba(255,0,51,0.08); }
.footer-social .ic { font-size: 1.2rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.footer-col h4 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); margin-bottom: 4px; }
.footer-col a { color: var(--text-secondary); font-size: 0.92rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-tech { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.footer-tech .tech-chip { font-size: 0.78rem; }
.footer-badges {
    display: flex; gap: 12px; flex-wrap: wrap;
    padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.footer-badge {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
    padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.02);
    transition: all var(--transition);
}
.footer-badge .ic { font-size: 1.15rem; }
a.footer-badge:hover { color: #fff; border-color: var(--border-light); transform: translateY(-2px); }
.fb-apple .ic { color: #f1f5f9; }
.fb-data .ic { color: #4285F4; }
.fb-games .ic { color: #a855f7; }
.fb-ext .ic { color: #a78bfa; }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding-top: 24px; color: var(--text-muted); font-size: 0.85rem;
}
.footer-madein { color: var(--text-muted); }
.footer-legal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--accent); }
.footer-legal-sep { color: var(--border); }

@media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr; gap: 34px; }
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
    /* Submenú (Latam / Jackpot) plano, con guía de acento a la izquierda */
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: none;
        border-left: 2px solid rgba(99, 102, 241, 0.45);
        margin: 2px 0 2px 18px;
        padding: 2px 0 2px 10px;
        backdrop-filter: none;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .nav-dropdown-menu a {
        padding: 11px 14px;
        font-size: 0.92rem;
        color: var(--text-muted);
    }
}

/* =========================================================
   SHARED — page hero + games grid (apps / sobre-mi)
   ========================================================= */
.page-hero {
    padding: 130px 0 40px;
    background: var(--gradient-hero);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 14px;
}
.page-hero-eyebrow .ic { font-size: 1rem; }
.page-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.1;
}
.page-hero-lead {
    color: var(--text-secondary);
    font-size: 1.12rem;
    max-width: 1000px;
    line-height: 1.7;
}
.page-hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.page-hero-actions .ic { font-size: 1.05rem; }

/* Games grid */
.games-intro { color: var(--text-secondary); max-width: 920px; margin: -10px 0 32px; font-size: 1.05rem; }
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.game-card {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}
.game-latam::before { background: radial-gradient(120% 120% at 0% 0%, rgba(255,204,51,0.10), transparent 60%); }
.game-jackpot::before { background: radial-gradient(120% 120% at 0% 0%, rgba(250,204,77,0.10), transparent 60%); }
.game-card:hover { transform: translateY(-4px); border-color: var(--border-light); box-shadow: var(--shadow-hover); }
.game-card:hover::before { opacity: 1; }
.game-card-media img { border-radius: 20px; display: block; box-shadow: var(--shadow-card); }
.game-card-body { position: relative; z-index: 2; }
.game-card-body h3 { font-size: 1.3rem; font-weight: 700; margin: 8px 0 6px; }
.game-card-body p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }
.game-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 999px;
}
.game-badge .ic { font-size: 0.85rem; }
.game-badge-live { background: rgba(77,217,140,0.14); color: #4dd98c; border: 1px solid rgba(77,217,140,0.3); }
.game-badge-soon { background: rgba(250,204,77,0.14); color: #facc4d; border: 1px solid rgba(250,204,77,0.3); }
.game-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
}
.game-card:hover .game-card-link { gap: 10px; }

/* --- Brand logo (nav) — reveal elegante + V épica --- */
.nav-logo { display: inline-flex; align-items: center; gap: 9px; padding: 6px 8px; border: none; }
.nav-logo:hover { transform: translateY(-1px); }

/* ---- La "V": trazo que se dibuja, halo con glow y destello ---- */
.logo-v { display: block; width: 30px; height: 30px; flex-shrink: 0; overflow: visible; transition: transform var(--transition); }
.nav-logo:hover .logo-v { transform: scale(1.08) rotate(-3deg); }

.logo-v-path, .logo-v-halo {
    stroke-dasharray: 54;
    stroke-dashoffset: 54;
    animation: vDraw 1s cubic-bezier(.55,.15,.2,1) forwards;
}
/* halo desenfocado detrás para el efecto épico */
.logo-v-halo { opacity: 0.55; filter: blur(3px); }
.logo-v-path { filter: drop-shadow(0 1px 5px rgba(99,102,241,0.5)); }
.logo-v-spark { opacity: 0; transform-origin: 33px 9px; }

@keyframes vDraw { to { stroke-dashoffset: 0; } }
@keyframes vGlow {
    0%, 100% { filter: drop-shadow(0 1px 5px rgba(99,102,241,0.45)); }
    50%      { filter: drop-shadow(0 1px 9px rgba(168,85,247,0.85)); }
}
@keyframes sparkTwinkle {
    0%   { opacity: 0; transform: scale(0.2); }
    55%  { opacity: 0; transform: scale(0.2); }
    72%  { opacity: 1; transform: scale(1.5); }
    100% { opacity: 0.85; transform: scale(1); }
}
/* tras dibujarse, el trazo respira con un leve glow y el destello aparece */
.logo-v-path { animation: vDraw 1s cubic-bezier(.55,.15,.2,1) forwards, vGlow 3.6s ease-in-out 1.1s infinite; }
.logo-v-spark { animation: sparkTwinkle 1.5s ease-out 0.05s forwards; }

/* ---- El wordmark: degradado aurora revelado con un wipe elegante ---- */
.logo-word {
    font-family: var(--font-main); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.015em;
    display: inline-block; white-space: nowrap;
    background: linear-gradient(100deg, #eef2ff 0%, #b9c4ff 26%, #8ea2ff 48%, #c39bff 70%, #eef2ff 100%);
    background-size: 220% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    /* máscara que barre de izquierda a derecha para descubrir las letras */
    -webkit-mask-image: linear-gradient(90deg, #000 34%, rgba(0,0,0,0.25) 54%, transparent 70%);
    mask-image: linear-gradient(90deg, #000 34%, rgba(0,0,0,0.25) 54%, transparent 70%);
    -webkit-mask-size: 280% 100%; mask-size: 280% 100%;
    -webkit-mask-position: 100% 0; mask-position: 100% 0;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    animation: logoReveal 1.05s cubic-bezier(.5,.05,.2,1) 0.15s both,
               logoSheen 6s linear 1.5s infinite;
}
@keyframes logoReveal {
    from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
    to   { -webkit-mask-position: 0% 0;   mask-position: 0% 0;   }
}
@keyframes logoSheen { to { background-position: 220% center; } }
.logo-word .ltr { display: inline; }
.logo-word .ltr.o { font-weight: 800; }

@media (max-width: 480px) { .logo-word { font-size: 0.95rem; } }

/* ".org" del footer (span plano, sin reveal) conserva su degradado aurora */
.footer-logo .logo-dot {
    background: var(--aurora);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Accesibilidad: sin animación, todo visible de inmediato */
@media (prefers-reduced-motion: reduce) {
    .logo-v-path, .logo-v-halo { stroke-dashoffset: 0; animation: none; }
    .logo-v-spark { opacity: 0.85; animation: none; }
    .logo-word {
        animation: none;
        -webkit-mask-image: none; mask-image: none;
    }
}

/* Tech chips (compartido: footer en todas las páginas + hero home) */
.tech-chip {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 0.8rem; color: #e2e8f0; padding: 5px 12px 5px 9px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04);
    transition: all .2s ease;
}
.tech-chip:hover { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.tech-ic { width: 16px; height: 16px; flex-shrink: 0; display: block; }

/* =========================================================
   Logos de empresas (timeline experiencia + freelance)
   ========================================================= */
.timeline-org { display: flex; align-items: center; gap: 14px; }
.company-logo {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; overflow: hidden;
    background: #fff; border: 1px solid var(--border);
    box-shadow: 0 5px 16px rgba(0,0,0,0.3);
}
.company-logo img { width: 36px; height: 36px; object-fit: contain; display: block; }
.company-mono {
    background: var(--mc, #64748b); color: #fff; font-weight: 800; font-size: 1.35rem;
    font-family: var(--font-main); border: none;
}
.timeline-org h4 { margin-top: 2px; }
/* logos en tarjetas freelance */
.freelance-logo { background: #fff !important; padding: 0; overflow: hidden; }
.freelance-logo img { width: 30px; height: 30px; object-fit: contain; display: block; }

/* Franja "Experiencia en" (hero sobre-mi) */
.hero-companies { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.hero-companies-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); }
.hero-company {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px 8px 10px; border-radius: 12px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    color: var(--text-secondary); font-weight: 600; font-size: 0.88rem;
    transition: all var(--transition);
}
.hero-company:hover { border-color: var(--border-light); transform: translateY(-2px); }
.hero-company img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; }

/* Banderas en el selector de idioma */
.lang-switcher button { display: inline-flex; align-items: center; gap: 5px; }
.lang-switcher .flag { font-size: 1rem; line-height: 1; }

/* ============================================
   Nav con 7 enlaces (entrada "Extensiones")
   ============================================
   El botón hamburguesa recién aparece a 768px. Entre ese punto y ~1120px los
   siete enlaces ya no caben con el espaciado por defecto y "Sobre Mí" se
   partía en dos líneas, empujando la barra a doble altura. Se aprieta el
   espaciado solo en ese rango; sobre 1120px todo queda como estaba. */
@media (min-width: 769px) and (max-width: 1120px) {
    .nav-links { gap: 2px; }
    .nav-links a { padding: 8px 10px; font-size: 0.85rem; white-space: nowrap; }
}
@media (min-width: 769px) and (max-width: 900px) {
    .nav-links { gap: 0; }
    .nav-links a { padding: 8px 7px; font-size: 0.8rem; }
    .nav-container .logo-word { font-size: 0.95rem; }
}
