/* =====================================================
   GUILLE — DISEÑADOR GRÁFICO & UX/UI
   Dark Luxury Design System · Color Principal: #E25C15
   ===================================================== */

/* ===== VARIABLES ===== */
:root {
    /* Fondos */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;
    --bg-card: #111113;

    /* Acento Principal #E25C15 (naranja fuego) */
    --primary-50: #FFF3EC;
    --primary-100: #FFE0CB;
    --primary-200: #FFBC94;
    --primary-300: #FF9257;
    --primary-400: #F07030;
    --primary-500: #E25C15;
    /* COLOR BASE */
    --primary-600: #C44D0E;
    --primary-700: #9E3D09;
    --primary-800: #6B2705;
    --primary-900: #3D1503;
    --primary-rgb: 226, 92, 21;

    /* Textos */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #71717A;

    /* Acentos */
    --success: #22C55E;
    --info: #3B82F6;
    --warning: #F59E0B;

    /* Tipografía */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Espaciado */
    --section-py: 80px;
    --container-max: 1280px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

select,
input,
textarea {
    font-family: inherit;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.8);
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(var(--primary-rgb), 0.3);
    color: var(--text-primary);
}

/* =====================================================
   ANIMACIONES
   ===================================================== */

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-rotate {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-18px) rotate(2deg);
    }

    50% {
        transform: translateY(-8px) rotate(-2deg);
    }

    75% {
        transform: translateY(-25px) rotate(1deg);
    }
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }

    25% {
        transform: translate(80px, -80px);
        opacity: 0.7;
    }

    50% {
        transform: translate(-40px, -160px);
        opacity: 0.5;
    }

    75% {
        transform: translate(-80px, -80px);
        opacity: 0.7;
    }
}

@keyframes pulse-glow {
    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(var(--primary-rgb), 0.4),
            0 4px 24px rgba(var(--primary-rgb), 0.35),
            0 0 60px rgba(var(--primary-rgb), 0.25);
    }

    50% {
        box-shadow:
            0 0 0 2px rgba(var(--primary-rgb), 0.7),
            0 8px 40px rgba(var(--primary-rgb), 0.55),
            0 0 80px rgba(var(--primary-rgb), 0.4);
    }
}

@keyframes pulse-glow-red {
    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(255, 50, 50, 0.4),
            0 4px 20px rgba(255, 50, 50, 0.3),
            0 0 40px rgba(255, 50, 50, 0.2);
    }

    50% {
        box-shadow:
            0 0 0 2px rgba(255, 50, 50, 0.7),
            0 8px 30px rgba(255, 50, 50, 0.5),
            0 0 60px rgba(255, 50, 50, 0.35);
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes scroll-line {
    0% {
        height: 0;
        opacity: 1;
    }

    100% {
        height: 60px;
        opacity: 0;
    }
}

@keyframes ring-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.2;
    }
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    opacity: 0;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-rotate {
    opacity: 0;
    animation: fade-in-rotate 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
    opacity: 0;
    animation: scale-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.6s forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.5s;
}

.delay-4 {
    animation-delay: 0.7s;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Portfolio edge columns: slide from sides */
.reveal.reveal-from-left {
    transform: translateY(40px) translateX(-50px);
    transition: opacity 2s cubic-bezier(0.25, 1, 0.5, 1), transform 2s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.reveal-from-right {
    transform: translateY(40px) translateX(50px);
    transition: opacity 2s cubic-bezier(0.25, 1, 0.5, 1), transform 2s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.reveal-from-left.visible,
.reveal.reveal-from-right.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* ===== TIPOGRAFÍA ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-500) 50%, var(--primary-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-500);
    margin-bottom: 16px;
    display: block;
}

.section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 72px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-tertiary);
    line-height: 1.7;
}

.section {
    padding: var(--section-py) 0;
}

/* ===== GLASSMORPHISM ===== */
.glass-card {
    background: linear-gradient(135deg,
            rgba(var(--primary-rgb), 0.07) 0%,
            rgba(var(--primary-rgb), 0.03) 50%,
            rgba(var(--primary-rgb), 0.07) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: var(--radius-lg);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.4),
        0 2px 4px -2px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BOTONES ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg,
            var(--primary-600) 0%,
            var(--primary-500) 30%,
            var(--primary-400) 60%,
            var(--primary-500) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite, pulse-glow 3s ease-in-out infinite;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: none;
    box-shadow:
        0 0 0 1px rgba(var(--primary-rgb), 0.4),
        0 4px 24px rgba(var(--primary-rgb), 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
    cursor: pointer;
    will-change: transform;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
    text-decoration: none;
}

.btn-primary.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

.btn-primary.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.4);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary-400);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-400);
    transform: translateY(-2px);
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    padding: 14px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.4));
}

.logo-text {
    color: var(--text-primary);
    display: block;
    font-family: 'Nura', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.logo-i {
    position: relative;
    display: inline-block;
    font-style: normal;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}

/* Hide the original dot by clipping */
.logo-i::before {
    content: 'ı';
    position: absolute;
    left: 0;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}

/* Render the letter invisible so only pseudo shows */
.logo-i {
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* The creative dot */
.logo-i::after {
    content: '';
    position: absolute;
    top: 0.08em;
    left: 50%;
    transform: translateX(-50%);
    width: 0.32em;
    height: 0.32em;
    background: var(--primary-500);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.5);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-tertiary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 12px;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: calc(100% - 24px);
}

.nav-cta {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    color: var(--primary-400) !important;
    border-radius: var(--radius-sm);
    padding: 8px 16px !important;
    transition: all 0.3s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: rgba(var(--primary-rgb), 0.2) !important;
    color: var(--primary-300) !important;
}

/* Social icons in navbar */
.nav-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 8px;
}

.nav-social {
    color: var(--text-tertiary);
    font-size: 18px;
    padding: 6px;
    transition: all 0.3s ease;
}

.nav-social:hover {
    color: var(--primary-400);
    transform: translateY(-1px);
}

.mobile-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 16px 0 8px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 20px 32px 32px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(24px);
}

.mobile-menu.open {
    display: flex;
}

.mobile-nav-link {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary-400);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 60% 40%, rgba(var(--primary-rgb), 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(var(--primary-rgb), 0.05) 0%, transparent 50%);
}

.particles-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

.particle {
    position: absolute;
    background: rgba(var(--primary-rgb), 0.5);
    border-radius: 50%;
    animation: float-particle linear infinite;
    will-change: transform, opacity;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero texto */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(var(--primary-rgb), 0.09);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-size: 13px;
    color: var(--primary-300);
    margin-bottom: 30px;
    font-weight: 500;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    animation: blink 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--success);
    flex-shrink: 0;
}

.badge-available {
    color: var(--success);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5.5vw, 4.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 28px;
}

.hero-subtitle {
    font-size: clamp(16px, 1.5vw, 19px);
    color: var(--text-tertiary);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-subtitle strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-500);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-500);
}

.stat-label {
    font-size: 12px;
    color: var(--text-quaternary);
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== HERO PHOTO ===== */
.hero-photo-wrapper {
    position: relative;
    width: 400px;
    height: 560px;
}

.hero-photo-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
}

.hero-photo-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(ellipse at 50% 30%, rgba(var(--primary-rgb), 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    position: relative;
    z-index: 1;
}

/* Fallback cuando no hay foto */
.hero-photo-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, var(--bg-tertiary) 0%, rgba(var(--primary-rgb), 0.08) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 800;
    color: rgba(var(--primary-rgb), 0.2);
}

/* Degradado de abajo hacia arriba — empieza desde cintura/pecho */
.hero-photo-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    /* cubre desde la cintura */
    background: linear-gradient(to top,
            var(--bg-primary) 0%,
            rgba(0, 0, 0, 0.85) 30%,
            rgba(0, 0, 0, 0.4) 60%,
            transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* ===== TOOL BADGES FLOTANTES ===== */
@keyframes levitate-a {

    0%,
    100% {
        transform: translateY(0px) rotate(-2deg);
    }

    50% {
        transform: translateY(-16px) rotate(2deg);
    }
}

@keyframes levitate-b {

    0%,
    100% {
        transform: translateY(0px) rotate(1deg);
    }

    50% {
        transform: translateY(-20px) rotate(-2deg);
    }
}

@keyframes levitate-c {

    0%,
    100% {
        transform: translateY(-6px) rotate(0deg);
    }

    50% {
        transform: translateY(-22px) rotate(3deg);
    }
}

@keyframes levitate-d {

    0%,
    100% {
        transform: translateY(0px) rotate(2deg);
    }

    50% {
        transform: translateY(-14px) rotate(-1deg);
    }
}

@keyframes levitate-e {

    0%,
    100% {
        transform: translateY(-4px) rotate(-1deg);
    }

    50% {
        transform: translateY(-18px) rotate(2deg);
    }
}

.tool-badge {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 10;
    cursor: default;
    user-select: none;
}

.tool-badge-inner {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-badge:hover .tool-badge-inner {
    transform: scale(1.12);
    box-shadow:
        0 12px 40px rgba(var(--primary-rgb), 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tb-letters {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.tb-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-quaternary);
    white-space: nowrap;
    letter-spacing: 0.04em;
    transition: color 0.3s ease;
}

.tool-badge:hover .tb-label {
    color: var(--text-tertiary);
}

/* Posiciones y animaciones de cada badge */

/* After Effects — arriba izquierda, lejos (el más importante, más grande) */
.tb-ae {
    top: -5%;
    left: -70px;
    animation: levitate-a 4.5s ease-in-out infinite;
}

.tb-ae .tool-badge-inner {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    border-color: rgba(153, 153, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(153, 153, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tb-ae .tb-letters {
    font-size: 24px;
}

/* Illustrator — arriba derecha */
.tb-ai {
    top: -2%;
    right: -60px;
    animation: levitate-b 5s ease-in-out 0.6s infinite;
}

.tb-ai .tool-badge-inner {
    border-color: rgba(255, 154, 0, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 154, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Affinity — izquierda, alejado horizontalmente */
.tb-af {
    top: 35%;
    left: -90px;
    animation: levitate-d 5.2s ease-in-out 0.8s infinite;
}

.tb-af .tool-badge-inner {
    border-color: rgba(0, 185, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 185, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Figma — derecha, alejado horizontalmente */
.tb-fg {
    top: 32%;
    right: -85px;
    animation: levitate-c 5s ease-in-out 0.4s infinite;
}

.tb-fg .tool-badge-inner {
    border-color: rgba(242, 78, 30, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(242, 78, 30, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* HTML5 — abajo izquierda */
.tb-html {
    bottom: 18%;
    left: -80px;
    animation: levitate-c 5.5s ease-in-out 1.2s infinite;
}

.tb-html .tool-badge-inner {
    border-color: rgba(228, 77, 38, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(228, 77, 38, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* CSS3 — derecha, tercer nivel */
.tb-css {
    bottom: 20%;
    right: -70px;
    animation: levitate-d 4.8s ease-in-out 0.3s infinite;
}

.tb-css .tool-badge-inner {
    border-color: rgba(21, 114, 182, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(21, 114, 182, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* IA — abajo centro-izquierda */
.tb-ia {
    bottom: -2%;
    left: -30px;
    animation: levitate-e 5.2s ease-in-out 0.9s infinite;
}

.tb-ia .tool-badge-inner {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(var(--primary-rgb), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Antigravity — abajo centro-derecha */
.tb-ag {
    bottom: -4%;
    right: -30px;
    animation: levitate-b 5.8s ease-in-out 1.5s infinite;
}

.tb-ag .tool-badge-inner {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(var(--primary-rgb), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}



/* Hero Scroll */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
}

@keyframes scroll-arrow-down {
    0% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(10px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
}

.scroll-arrow {
    color: var(--primary-500);
    animation: scroll-arrow-down 2s ease-in-out infinite;
}

.hero-scroll-indicator span {
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}

/* =====================================================
   SOCIAL PROOF
   ===================================================== */
.social-proof {
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: var(--bg-secondary);
}

.proof-label {
    text-align: center;
    font-size: 12px;
    color: var(--text-quaternary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 28px;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-quaternary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    cursor: default;
}

.tool-item:hover {
    color: var(--primary-400);
    background: rgba(var(--primary-rgb), 0.07);
}

.tool-icon {
    font-size: 18px;
    color: rgba(var(--primary-rgb), 0.5);
    transition: color 0.3s ease;
}

.tool-item:hover .tool-icon {
    color: var(--primary-500);
}

/* =====================================================
   SERVICIOS — FLIP CARDS
   ===================================================== */
.servicios {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Centrar la última card si el número de servicios es impar */
.service-card-flip:last-child:nth-child(3n+1) {
    grid-column: 2;
}

.service-card-flip {
    height: 380px;
    perspective: 1000px;
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-lg);
}

.service-card-flip:hover .service-card-inner,
.service-card-flip.flipped .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.service-card-front {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.service-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px;
    background: linear-gradient(135deg,
            rgba(var(--primary-rgb), 0.1) 0%,
            rgba(0, 0, 0, 0.85) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.2) !important;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-flip:hover .service-image {
    transform: scale(1.06);
}

.service-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(var(--primary-rgb), 0.05));
}

.service-icon-large {
    font-size: 80px;
    color: rgba(var(--primary-rgb), 0.25);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-number {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--primary-400);
    font-weight: 600;
    text-transform: uppercase;
}

.service-title-front {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.service-number-back {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--primary-400);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.service-title-back {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.service-description {
    font-size: 15px;
    color: var(--text-tertiary);
    line-height: 1.65;
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-300);
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

/* =====================================================
   PORTFOLIO
   ===================================================== */
.portfolio-masonry {
    column-count: 4;
    column-gap: 20px;
    margin-bottom: 48px;
}

.portfolio-masonry-item {
    display: block; /* Asegura que el enlace ocupe todo el espacio */
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.portfolio-masonry-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.portfolio-masonry-img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: var(--radius-lg);
}

.portfolio-masonry-item:hover .portfolio-masonry-img {
    transform: scale(1.05);
}

.portfolio-masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px; /* Un poco más de espacio que la versión compacta, pero menos que la original */
    gap: 8px;
    z-index: 10;
}

.portfolio-masonry-item:hover .portfolio-masonry-overlay {
    opacity: 1;
}

.masonry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.masonry-tag {
    font-size: 10px; /* Restaurado al tamaño anterior */
    font-weight: 600;
    color: var(--primary-300);
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    padding: 4px 12px; /* Restaurado al tamaño anterior */
    border-radius: var(--radius-full); /* Forma redondeada original */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.masonry-title {
    font-family: var(--font-display);
    font-size: 18px; /* Restaurado al tamaño anterior */
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.portfolio-masonry-item.item-dark-overlay .portfolio-masonry-overlay {
    background: rgba(0, 0, 0, 0.75); /* Sombra negra en la totalidad de la imagen */
}

.portfolio-masonry-item.item-dark-overlay:hover .portfolio-masonry-overlay {
    opacity: 1;
}

.portfolio-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 32px;
}

/* =====================================================
   PROCESO
   ===================================================== */
.proceso {
    background: var(--bg-secondary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.process-step {
    position: relative;
    height: 320px;
    perspective: 1000px;
    margin: 0 8px;
    cursor: pointer;
}

.process-step-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-lg);
}

.process-step:hover .process-step-inner,
.process-step.flipped .process-step-inner {
    transform: rotateY(180deg);
}

.process-step-front,
.process-step-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
    text-align: center;
}

.process-step-front {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s ease;
}

.process-step:hover .process-step-front {
    border-color: rgba(var(--primary-rgb), 0.25);
}

.process-step-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(0, 0, 0, 0.85) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.2) !important;
}

.step-number {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    color: rgba(var(--primary-rgb), 0.15);
    line-height: 1;
    margin-bottom: 24px;
}

.step-number-back {
    font-size: 14px;
    letter-spacing: 0.12em;
    color: var(--primary-400);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.step-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
}

.step-title-back {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.process-step-back p {
    font-size: 15px;
    color: var(--text-tertiary);
    line-height: 1.65;
}

.step-connector {
    display: none;
}

/* =====================================================
   SOBRE MÍ
   ===================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: center;
}

.about-img-container {
    position: relative;
    width: 100%;
    padding-bottom: 110%;
}

.about-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.about-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.15);
}

.about-img-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(var(--primary-rgb), 0.1));
    border-radius: var(--radius-xl);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: 800;
    color: rgba(var(--primary-rgb), 0.3);
}

.about-badge-floating {
    position: absolute;
    right: -24px;
    bottom: 32px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 50, 50, 0.3); /* Borde rojizo sutil */
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    animation: pulse-glow-red 3s ease-in-out infinite; /* Animación de irradiación roja */
}

.badge-icon {
    font-size: 24px;
    color: #ffd700; /* Mantiene el amarillo */
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
    animation: blink 2s ease-in-out infinite; /* Mismo efecto que el círculo de disponible */
}

.about-badge-floating strong {
    display: block;
    font-size: 14px;
    color: #2ecc71; /* Cambiado a Verde */
    font-weight: 700;
}

.about-badge-floating span {
    font-size: 12px;
    color: #2ecc71; /* Mantiene el Verde */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.about-bio {
    font-size: 16px;
    color: var(--text-tertiary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-bio strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
}

.skill-tag {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(var(--primary-rgb), 0.18);
    border-color: rgba(var(--primary-rgb), 0.4);
    color: var(--primary-300);
}

.about-socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-400);
    background: rgba(var(--primary-rgb), 0.07);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.4);
    transform: translateY(-2px);
}

/* =====================================================
   TESTIMONIOS
   ===================================================== */
.testimonios {
    background: var(--bg-secondary);
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonio-card {
    padding: 40px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonio-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(var(--primary-rgb), 0.2) !important;
}

.stars {
    color: var(--primary-500);
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.testimonio-text {
    font-size: 15px;
    color: var(--text-tertiary);
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
    position: relative;
}

.testimonio-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -8px;
    font-size: 60px;
    font-family: Georgia, serif;
    color: rgba(var(--primary-rgb), 0.15);
    line-height: 1;
    pointer-events: none;
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.3);
    overflow: hidden;
    margin-bottom: 20px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonio-info {
    margin-bottom: 12px;
}

.testimonio-info strong {
    display: block;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.testimonio-info span {
    display: block;
    font-size: 13px;
    color: var(--primary-400);
    font-weight: 500;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    text-align: center;
}

/* Título principal fuera de la caja */
.cta-heading {
    text-align: center;
    margin-bottom: 32px;
}

.cta-pre-label {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--primary-400);
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(var(--primary-rgb), 0.3);
}

.cta-content {
    position: relative;
    padding: 64px 40px 48px;
    /* Menos padding arriba para acomodar la foto */
    border-radius: 32px;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06) 0%, rgba(0, 0, 0, 0.4) 100%);
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Contenedor de foto GRANDE outside CTA */
.cta-photo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.cta-photo-container-large {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1.1;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.15);
    overflow: hidden;
}

.cta-photo-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-photo-container-large::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle, transparent 30%, rgba(0, 0, 0, 0.95) 100%);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.cta-title {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
}

.cta-subtitle {
    position: relative;
    z-index: 1;
    font-size: 16px;
    color: var(--text-tertiary);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 80%;
}

.btn-primary {
    position: relative;
    z-index: 1;
}

.cta-badges {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cta-available-classic {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-size: 14px;
    font-weight: 600;
}

.available-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--success);
}

.cta-response {
    font-size: 13px;
    color: var(--text-quaternary);
}

/* =====================================================
   CONTACTO
   ===================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.contact-desc {
    color: var(--text-tertiary);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(var(--primary-rgb), 0.09);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-quaternary);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

a.contact-value:hover {
    color: var(--primary-400);
}

/* Formulario */
.contact-form {
    padding: 36px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
    resize: vertical;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: var(--text-quaternary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(var(--primary-rgb), 0.5);
    background: rgba(var(--primary-rgb), 0.04);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group select {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23E25C15' d='M5.293 7.293a1 1 0 001.414 0l5-5a1 1 0 00-1.414-1.414L6 5.172 1.707 0.879A1 1 0 00.293 2.293l5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    gap: 20px;
    height: 100%;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(var(--success-rgb), 0.1);
    border: 2px solid var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    margin-bottom: 8px;
    animation: scale-up 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-icon-wrapper svg {
    width: 40px;
    height: 40px;
}

.success-state h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: -8px;
}

.success-state p {
    color: var(--text-tertiary);
    font-size: 16px;
    line-height: 1.6;
    max-width: 320px;
}

@keyframes scale-up {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.3));
}

.footer-logo-text {
    display: block;
    font-family: 'Nura', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-quaternary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-social {
    width: 36px;
    height: 36px;
    background: rgba(var(--primary-rgb), 0.07);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-quaternary);
    transition: all 0.3s ease;
}

.footer-social:hover {
    background: rgba(var(--primary-rgb), 0.18);
    border-color: rgba(var(--primary-rgb), 0.4);
    color: var(--primary-400);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col li a {
    font-size: 14px;
    color: var(--text-quaternary);
    transition: color 0.3s ease;
}

.footer-col li a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--text-quaternary);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-py: 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-badge {
        margin: 0 auto 30px;
    }

    .floating-tag {
        display: none;
    }

    .hero-visual-wrapper {
        width: 320px;
        height: 320px;
    }

    .hero-sphere {
        width: 260px;
        height: 260px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card-flip:last-child:nth-child(odd) {
        grid-column: 1 / -1; /* Ocupa el ancho completo en la última fila */
    }

    .portfolio-masonry {
        column-count: 3;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .process-step {
        margin: 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-img-container {
        padding-bottom: 60%;
    }

    .about-badge-floating {
        right: 0;
    }

    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-py: 48px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
        display: flex;
        flex-direction: column;
    }

    .hero-scroll-indicator {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 40px auto 0;
        opacity: 0.7;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 2.8rem);
        line-height: 1.1;
    }

    .hero-photo-wrapper {
        width: 100%;
        max-width: 280px;
        height: 390px;
        margin: 0 auto;
    }

    /* Ajuste de iconos flotantes en mobile */
    .tool-badge-inner {
        width: 44px;
        height: 44px;
    }

    .tb-ae { top: -10px; left: -10px; }
    .tb-ai { top: -10px; right: -10px; }
    .tb-af { top: 25%; left: -20px; }
    .tb-fg { top: 25%; right: -20px; }
    .tb-html { bottom: 40px; left: -15px; }
    .tb-css { bottom: 40px; right: -15px; }
    .tb-ag { bottom: -10px; right: 15px; }
    .tb-ia { bottom: -10px; left: 15px; }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
        margin-top: 40px;
    }

    .stat-divider {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Centrar última card en 2 columnas */
    .service-card-flip:last-child:nth-child(odd) {
        grid-column: span 2;
    }

    .service-card-flip {
        height: 280px;
    }

    .service-title-front {
        font-size: 16px;
        padding: 0 10px;
    }

    .service-title-back {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .service-description {
        font-size: 13px;
        line-height: 1.4;
    }

    .feature-tag {
        font-size: 10px;
        padding: 4px 8px;
    }

    .portfolio-masonry {
        column-count: 2;
    }

    /* .process-steps inherit 2 columns from 1024px */

    .testimonios-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-col {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cta-content {
        padding: 48px 24px;
    }

    .about-img-container {
        padding-bottom: 80%;
    }

    .about-badge-floating {
        right: 0;
        bottom: -16px;
    }

    /* Reducir partículas en mobile */
    .particle:nth-child(n+20) {
        display: none;
    }
}

@media (max-width: 500px) {
    .portfolio-masonry {
        column-count: 2;
        gap: 12px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-ctas,
    .portfolio-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .services-grid {
        gap: 12px;
    }

    .service-card-flip {
        height: 260px;
    }

    .service-title-front {
        font-size: 14px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .contact-form {
        padding: 24px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .scroll-top-btn {
        right: 16px;
        bottom: 16px;
        width: 40px;
        height: 40px;
    }
}

/* Scroll Top Button Class */
.scroll-top-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary-400);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Fix overlapping icons specifically for desktop version */
@media (min-width: 1025px) {
    /* Left side: AE (top) → Affinity → HTML → IA (bottom) */
    .tb-ae {
        top: -4%;
        left: -80px;
    }
    .tb-af {
        top: 24%;
        left: -90px;
    }
    .tb-html {
        top: 52%;
        left: -85px;
    }
    .tb-ia {
        bottom: 2%;
        left: -40px;
    }
}


.scroll-top-btn:hover {
    background: var(--primary-500);
    color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}