/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    --bg: #0d1117;
    --bg-surface: #161b22;
    --glass-bg: rgba(22, 27, 34, 0.5);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #f0f6fc;
    --text-muted: #8b949e;
    --accent: #58a6ff;
    --accent2: #bd56ce;
    --accent3: #3fb950;
    --grad: linear-gradient(135deg, #58a6ff 0%, #bd56ce 100%);
    --grad2: linear-gradient(135deg, #bd56ce 0%, #58a6ff 100%);
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
    --font: 'Inter', sans-serif;
}

[data-theme="light"] {
    --bg: #f8fafc;
    --bg-surface: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text: #1e293b;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent2: #9333ea;
    --accent3: #16a34a;
    --grad: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    --grad2: linear-gradient(135deg, #9333ea 0%, #2563eb 100%);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    font-family: var(--font);
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .5s ease, visibility .5s ease;
}

#preloader.done {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-size: 3rem;
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: pulse 1.2s infinite alternate;
}

@keyframes pulse {
    from {
        opacity: .5;
        transform: scale(.95);
    }

    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, .1);
    border-radius: 10px;
    overflow: hidden;
    margin: 15px auto;
}

.preloader-fill {
    height: 100%;
    width: 0%;
    background: var(--grad);
    border-radius: 10px;
    animation: fill-bar 1.5s ease forwards;
}

@keyframes fill-bar {
    to {
        width: 100%;
    }
}

.preloader-text {
    color: var(--text-muted);
    font-size: .85rem;
}

/* ==========================================================================
   CURSOR PERSONALIZADO
   ========================================================================== */
#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform .1s;
}

#cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9997;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(88, 166, 255, .4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform .12s ease, width .2s ease, height .2s ease, opacity .2s;
}

body:hover #cursor-outline {
    opacity: 1;
}

/* ==========================================================================
   CANVAS PARTÍCULAS
   ========================================================================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: .6;
}

/* ==========================================================================
   UTILIDADES
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 30px 0;
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    background: rgba(88, 166, 255, .1);
    border: 1px solid rgba(88, 166, 255, .2);
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 18px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.section-title h2 span {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}

/* Botones */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    background: var(--grad);
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, .35);
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .2);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

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

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    background: #25D366;
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, .4);
}

/* ==========================================================================
   ANIMACIONES SCROLL REVEAL
   ========================================================================== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   NAVEGACIÓN
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 22px 0;
    z-index: 999;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 17, 23, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 14px 0;
}

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

.logo {
    font-family: 'Space Grotesk', var(--font);
    font-size: 1.7rem;
    font-weight: 700;
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: .92rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link.active {
    color: var(--accent);
    font-weight: 700;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.theme-toggle-btn:hover {
    color: var(--accent);
    transform: rotate(-15deg);
}

.btn-nav-cta {
    background: var(--grad);
    color: #fff !important;
    padding: 9px 22px;
    border-radius: 50px;
    font-weight: 700;
}

.btn-nav-cta:hover {
    opacity: .9;
    transform: translateY(-1px);
}

/* Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

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

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

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

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

/* ==========================================================================
   HERO — Layout 2 columnas
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 60px;
    /* reducido para subir el contenido */
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/hero.jpeg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.06);
    animation: hero-zoom 22s ease infinite alternate;
}

@media (max-width: 768px) {
    .hero-bg {
        background-image: url('../assets/images/hero_mobile.jpeg');
    }
}

@keyframes hero-zoom {
    from {
        transform: scale(1.06);
    }

    to {
        transform: scale(1.13);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(105deg,
            rgba(13, 17, 23, .95) 0%,
            rgba(13, 17, 23, .85) 45%,
            rgba(13, 17, 23, .6) 75%,
            rgba(13, 17, 23, .5) 100%);
}

/* Tags flotantes SOLO en los bordes (no superponen el texto) */
.hero-floating-tags {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.ftag {
    position: absolute;
    background: rgba(22, 27, 34, .8);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    padding: 7px 14px;
    border-radius: 30px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 7px;
    animation: floatTag ease-in-out infinite alternate;
}

.ftag i {
    color: var(--accent);
}

/* Solo bordes extremos, sin tocar el área central */
.ftag-1 {
    top: 15%;
    right: -25px;
    left: auto;
    animation-duration: 5s;
}

.ftag-4 {
    top: 40%;
    right: -40px;
    left: auto;
    animation-duration: 8s;
    animation-delay: 1.5s;
}

.ftag-2 {
    top: 65%;
    right: -20px;
    left: auto;
    animation-duration: 7s;
    animation-delay: .5s;
}

.ftag-3 {
    top: 85%;
    right: -30px;
    left: auto;
    animation-duration: 6s;
    animation-delay: 1s;
}

@keyframes floatTag {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-12px);
    }
}

/* === GRID 2 COLUMNAS === */
.hero-layout {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 40px 2rem;
}

/* --- Columna izquierda: Texto --- */
.hero-text-col {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(63, 185, 80, .12);
    border: 1px solid rgba(63, 185, 80, .35);
    color: var(--accent3);
    font-size: .82rem;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 30px;
    backdrop-filter: blur(6px);
    width: fit-content;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent3);
    border-radius: 50%;
    animation: blink 1.4s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .2
    }
}

.hero-greeting-line {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: .5px;
    margin-bottom: -35px;
}

.hero-name-big {
    font-size: clamp(3rem, 5.5vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.2em;
    /* evita que se corten las letras con descendentes como la g */
    margin-bottom: -0.2em;
}

/* Línea del typer */
.hero-role-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 42px;
}

.role-label {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 400;
}

.role-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(88, 166, 255, .1);
    border: 1px solid rgba(88, 166, 255, .25);
    border-radius: 6px;
    padding: 4px 12px;
    min-height: 34px;
    min-width: 100px;
}

.role-dynamic {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
}

.role-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--accent);
    margin-left: 2px;
    animation: blink-cur .75s step-end infinite;
    vertical-align: middle;
}

@keyframes blink-cur {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.85;
    max-width: 500px;
}

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

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 8px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    display: inline;
}

.stat-suffix {
    color: var(--accent);
    font-weight: 900;
    font-size: 1.3rem;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: .75rem;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--glass-border);
    flex-shrink: 0;
}

/* --- Columna derecha: Terminal --- */
.hero-visual-col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* --- Hero Social Links --- */
.hero-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.hero-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.hero-social a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

/* --- Columna derecha: Visual Card --- */
.hero-visual-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
    aspect-ratio: 1/1.05;
    z-index: 5;
    transform: translateY(-10px);
}

/* Resplandor trasero */
.hero-image-glow {
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.4) 0%, rgba(13, 17, 23, 0) 60%);
    filter: blur(40px);
    border-radius: 30px;
    z-index: -1;
    animation: glow-pulse 4s infinite alternate;
}

@keyframes glow-pulse {
    from {
        opacity: 0.6;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Contenedor de la foto */
.hero-image-inner {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(to bottom right, rgba(88, 166, 255, .2), rgba(13, 17, 23, .8));
    border: 1px solid rgba(88, 166, 255, .3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5));
    transform: scale(1.02) translateY(5px);
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-photo {
    transform: scale(1.05) translateY(0);
}

/* Tarjeta Experiencia (flotante inferior izquierda) */
.hero-float-card {
    position: absolute;
    bottom: 120px;
    left: -60px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    animation: float-a 4s ease-in-out infinite alternate;
}

.exp-number {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}

.exp-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

@keyframes float-a {
    from {
        transform: translateY(0)
    }

    to {
        transform: translateY(-8px)
    }
}

/* Insignia Código (flotante medio derecha) */
.hero-float-badge {
    position: absolute;
    top: 0%;
    right: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    animation: float-b 5s ease-in-out infinite alternate;
}

@keyframes float-b {
    from {
        transform: translateY(-50%)
    }

    to {
        transform: translateY(calc(-50% - 10px))
    }
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce 2.2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, .25);
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
}

.scroll-wheel {
    width: 3px;
    height: 7px;
    background: var(--accent);
    border-radius: 3px;
    animation: scroll-anim 1.4s ease infinite;
}

@keyframes scroll-anim {
    0% {
        opacity: 1;
        transform: translateY(0)
    }

    100% {
        opacity: 0;
        transform: translateY(12px)
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0)
    }

    50% {
        transform: translateX(-50%) translateY(-6px)
    }
}

/* ==========================================================================
   MARQUEE TECNOLOGÍAS
   ========================================================================== */
.tech-marquee {
    position: relative;
    z-index: 1;
    background: var(--bg-surface);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 22px 0;
    overflow: hidden;
    margin-top: 0;
    /* El hero ya tiene padding-bottom */
}

.marquee-track {
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: marquee-slide 30s linear infinite;
}

.marquee-content span {
    white-space: nowrap;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.marquee-content span i {
    color: var(--accent);
    font-size: 1rem;
}

@keyframes marquee-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.tech-marquee:hover .marquee-content {
    animation-play-state: paused;
}

/* ==========================================================================
   SOBRE MÍ (NUEVO LAYOUT 2 COLUMNAS)
   ========================================================================== */
.section-title-left {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 40px;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-new {
    position: relative;
    overflow: hidden;
}

.about-bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/sobre_mi_desktop.png');
    background-size: cover;
    /* background-position: right center; */
    z-index: 0;
}

@media (max-width: 768px) {
    .about-bg {
        background-image: url('../assets/images/sobre_mi_mobile.png');
    }
}

.about-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(13, 17, 23, .95) 0%, rgba(13, 17, 23, .8) 45%, rgba(13, 17, 23, .2) 100%);
}

.about-glow {
    position: absolute;
    top: 50%;
    left: 55%;
    /* Se ubica en el espacio entre el texto y tu rostro */
    width: 35vw;
    height: 60vh;
    background: radial-gradient(ellipse at center, rgba(88, 166, 255, 0.15) 0%, rgba(189, 86, 206, 0.05) 40%, transparent 70%);
    transform: translateY(-50%);
    filter: blur(50px);
    z-index: 1;
    pointer-events: none;
    animation: about-glow-anim 8s ease-in-out infinite alternate;
}

@keyframes about-glow-anim {
    0% {
        transform: translateY(-40%) scale(0.9);
        opacity: 0.6;
    }

    100% {
        transform: translateY(-60%) scale(1.1);
        opacity: 1;
    }
}

.about-new .container {
    position: relative;
    z-index: 2;
}

.about-layout-new {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 550px;
    /* Reducido para que el texto no tape tu cara */
}

.about-bio p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.about-info-card {
    padding: 25px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 25px;
    border-radius: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1 1 200px;
}

.ii-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, .05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
}

.ii-user {
    background: rgba(88, 166, 255, .1);
    color: var(--accent);
}

.ii-email {
    background: rgba(189, 86, 206, .1);
    color: var(--accent2);
}

.ii-loc {
    background: rgba(248, 81, 73, .1);
    color: #f85149;
}

.ii-icon-status {
    background: rgba(63, 185, 80, .1);
}

.status-dot-green {
    width: 10px;
    height: 10px;
    background: var(--accent3);
    border-radius: 50%;
    animation: blink 2s infinite;
}

.ii-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ii-content span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ii-content strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

/* ==========================================================================
   HABILIDADES (NUEVO LAYOUT GRID)
   ========================================================================== */
.skills-grid-new {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-top: 15px;
    padding-bottom: 40px;
    margin-top: -15px;
    cursor: grab;
    -ms-overflow-style: none; /* IE y Edge */
    scrollbar-width: none; /* Firefox */
}

.skills-grid-new.active {
    cursor: grabbing;
    scroll-snap-type: none;
}

.skills-grid-new::-webkit-scrollbar {
    display: none;
}

.skill-card {
    flex: 0 0 calc(25% - 22.5px); /* 4 tarjetas por vista */
    scroll-snap-align: start;
    user-select: none;
    position: relative;
    padding: 30px 20px;
    text-align: center;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .skill-card { flex: 0 0 calc(33.333% - 20px); }
}
@media (max-width: 768px) {
    .skill-card { flex: 0 0 calc(50% - 15px); }
}
@media (max-width: 480px) {
    .skill-card { flex: 0 0 85%; }
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.skill-icon {
    font-size: 3.5rem;
    color: var(--skill-color);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(var(--skill-color), 0.3));
}

.skill-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.skill-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.skill-glow-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--skill-color);
    box-shadow: 0 -2px 15px var(--skill-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.skill-card:hover .skill-glow-bottom {
    opacity: 1;
}

/* ==========================================================================
   PORTAFOLIO
   ========================================================================== */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.btn-view-all {
    font-size: 0.9rem;
    padding: 10px 24px;
}

.portfolio-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.project-card {
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-link-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.project-card:hover .project-link-icon {
    opacity: 1;
    transform: translateY(0);
}

.project-link-icon:hover {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

.project-info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

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

.project-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: var(--text-muted);
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
}

.service-card-inner {
    padding: 36px 28px;
    position: relative;
    height: 100%;
}

.service-num {
    font-size: 3rem;
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: .3;
    line-height: 1;
    margin-bottom: 16px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(88, 166, 255, .1);
    border: 1px solid rgba(88, 166, 255, .2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: .92rem;
    margin-bottom: 20px;
}

.service-features {
    margin-bottom: 24px;
}

.service-features li {
    font-size: .88rem;
    color: var(--text-muted);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li i {
    color: var(--accent3);
    font-size: .75rem;
}

.service-price {
    font-size: .9rem;
    color: var(--text-muted);
}

.service-price strong {
    color: var(--accent);
    font-size: 1.1rem;
}

.service-featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--grad);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card--featured .service-card-inner {
    border-color: rgba(88, 166, 255, .3);
    background: rgba(88, 166, 255, .06);
}

/* ==========================================================================
   PROCESO
   ========================================================================== */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--glass-border);
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 50px;
    position: relative;
}

.process-step--right {
    flex-direction: row-reverse;
}

.step-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    background: var(--grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    z-index: 2;
    position: relative;
    box-shadow: 0 0 25px rgba(88, 166, 255, .3);
}

.step-content {
    padding: 24px;
    max-width: calc(50% - 50px);
}

.step-num {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step-content p {
    font-size: .9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */
.testimonials-wrapper {
    overflow: hidden;
    width: 100%;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    position: relative;
}

.testi-card {
    flex: 0 0 calc(50% - 12px);
    padding: 32px;
    transition: transform .5s ease;
}

.testi-stars {
    color: #e3b341;
    font-size: 1rem;
    margin-bottom: 16px;
    display: flex;
    gap: 3px;
}

.testi-card p {
    font-size: .95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    color: #fff;
    flex-shrink: 0;
}

.testi-author strong {
    display: block;
    font-size: .9rem;
}

.testi-author span {
    font-size: .78rem;
    color: var(--text-muted);
}

.testi-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.testi-controls button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.testi-controls button:hover {
    background: var(--grad);
    border-color: transparent;
}

.testi-dots {
    display: flex;
    gap: 8px;
}

.testi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--glass-border);
    transition: var(--transition);
    cursor: pointer;
}

.testi-dot.active {
    background: var(--accent);
    width: 20px;
    border-radius: 4px;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
    position: relative;
    z-index: 1;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 50px 60px;
    gap: 30px;
    background: linear-gradient(135deg, rgba(88, 166, 255, .1), rgba(189, 86, 206, .1));
    border-color: rgba(88, 166, 255, .2);
}

.cta-text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 10px;
}

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

.cta-action {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-card {
    padding: 30px;
    margin-bottom: 24px;
}

.contact-item-link:hover .contact-item {
    opacity: .8;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.ci-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(88, 166, 255, .1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
}

.ci-wsp {
    background: rgba(37, 211, 102, .1);
    color: #25D366;
}

.ci-li {
    background: rgba(10, 102, 194, .2);
    color: #0a66c2;
}

.contact-item strong {
    display: block;
    font-size: .9rem;
}

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

.social-block p {
    color: var(--text-muted);
    font-size: .85rem;
    margin-bottom: 14px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--grad);
    border-color: transparent;
    transform: translateY(-3px);
}

.contact-form {
    padding: 36px;
}

.contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: 26px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(13, 17, 23, .5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    color: var(--text);
    font-family: var(--font);
    font-size: .95rem;
    transition: var(--transition);
    width: 100%;
}

.form-group select {
    -webkit-appearance: none;
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(13, 17, 23, .8);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, .1);
}

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

.btn-form-submit {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 1rem;
}

.form-status {
    margin-top: 12px;
    text-align: center;
    font-size: .9rem;
}

.form-status.success {
    color: var(--accent3);
}

.form-status.error {
    color: #f85149;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0 40px;
}

.footer-brand .footer-logo {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.footer-brand p {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 250px;
}

.footer-links h4 {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    font-size: .9rem;
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--accent);
}

.footer-social h4 {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 20px 0;
    display: flex;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.footer-bottom p {
    font-size: .82rem;
    color: var(--text-muted);
}

/* BACK TO TOP */
#backToTop {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 900;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(88, 166, 255, .3);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-4px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 60px 2rem 40px;
    }

    .hero-visual-col {
        width: 100%;
        max-width: 580px;
        margin: 0 auto;
    }

    .hero-status-card {
        display: none;
    }

    .hero-github-card {
        top: -16px;
        right: -10px;
    }

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

    .about-visual {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-floating-card {
        position: static;
        margin-bottom: 20px;
    }

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

    .portfolio-card--wide .portfolio-card-wide-inner {
        grid-template-columns: 1fr;
    }

    .wide-code {
        display: none;
    }

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

    .process-line {
        display: none;
    }

    .step-content {
        max-width: 100%;
    }

    .process-step,
    .process-step--right {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: #0d1117;
        flex-direction: column;
        justify-content: center;
        border-left: 1px solid var(--glass-border);
        transition: right .4s ease;
    }

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

    .nav-right .btn-nav-cta {
        display: none;
    }

    .hero-floating-tags {
        display: none;
    }

    .hero-name-big {
        font-size: 2.6rem;
        letter-spacing: -1px;
    }

    .hero-stats {
        gap: 14px;
    }

    .stat-divider {
        display: none;
    }

    .testi-card {
        flex: 0 0 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-inner {
        padding: 30px;
        text-align: center;
        justify-content: center;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    #cursor-dot,
    #cursor-outline {
        display: none;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-name {
        font-size: 2.2rem;
    }
}