/* Color Palette & Variables - Premium Startup SaaS Theme */
:root {
    --bg-base: #0B0D17;
    /* Very dark space blue/black */
    --bg-elevated: #151828;
    /* Slightly lighter for cards */
    --bg-navbar: rgba(11, 13, 23, 0.7);

    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    /* Slate 400 */

    --brand-primary: #6366F1;
    /* Indigo 500 */
    --brand-secondary: #EC4899;
    /* Pink 500 */
    --brand-tertiary: #06B6D4;
    /* Cyan 500 */

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);

    --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;

    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --shadow-colored: 0 20px 40px -15px rgba(99, 102, 241, 0.3);

    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Base Gradient Mesh Background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.08), transparent 40%);
    pointer-events: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-navbar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 1rem 0;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-orb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

.dot {
    color: var(--brand-secondary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-nav {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), #8B5CF6);
    color: #fff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3), inset 0 1px 0 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4), inset 0 1px 0 0 rgba(255,255,255,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Typography & Titles */
.text-gradient {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary), var(--brand-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Hero Section */
.hero-ambient-glow {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero {
    position: relative;
    padding: 12rem 0 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10B981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-title {
    font-size: clamp(3.5rem, 6.5vw, 5.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 40px rgba(0,0,0,0.4);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-profile {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    margin-bottom: 2.5rem;
    backdrop-filter: blur(8px);
}

.profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--bg-elevated), var(--brand-primary));
    border-radius: 50%;
    border: 1px solid var(--border-hover);
    color: #fff;
}
.profile-avatar i { width: 20px; height: 20px; }

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.profile-role {
    font-size: 0.8rem;
    color: var(--brand-tertiary);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visual (Glass Panel) */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

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

.panel-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #EF4444;
}

.yellow {
    background: #F59E0B;
}

.green {
    background: #10B981;
}

.panel-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.code-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.w-full {
    width: 100%;
}

.w-5\/6 {
    width: 83%;
}

.w-3\/4 {
    width: 75%;
}

.w-1\/2 {
    width: 50%;
}

.indent {
    margin-left: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

/* Metrics Highlights Snippet */
.metrics-bar {
    padding: 0 0 6rem;
    position: relative;
    z-index: 2;
    margin-top: -3.5rem; /* Levanta la tarjeta un poco sobre la gradiente del hero */
}

.metrics-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4.5rem;
    padding: 2.5rem 4rem;
    background: rgba(11, 13, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 1px 0 0 rgba(255,255,255,0.08);
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.metric-number {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(180deg, #fff 0%, #64748B 100%); /* Efecto metal cepillado */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--brand-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.metric-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
}

@media (max-width: 992px) {
    .metrics-container {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2.5rem;
    }
    .metric-divider {
        width: 60px;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--border-color), transparent);
    }
}

/* Sections */
.section {
    padding: 8rem 0; /* Incremento súper premium de repiro vertical */
}

.bg-darker {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.skill-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2), inset 0 1px 0 0 rgba(255,255,255,0.05);
}

.hover-lift:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255,255,255,0.1);
}

.skill-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.skill-icon i {
    width: 28px;
    height: 28px;
    color: #fff;
}

.icon-blue {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.icon-purple {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.icon-pink {
    background: linear-gradient(135deg, #EC4899, #BE185D);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.hover-lift-soft {
    transition: var(--transition);
}
.hover-lift-soft:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3), inset 0 1px 0 0 rgba(255,255,255,0.1);
}

/* Ecosystem & Tech Grid */
.ecosystem-layout {
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
}

.tech-category { display: flex; flex-direction: column; gap: 1.5rem; }

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}
.category-header i { color: var(--brand-tertiary); }

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.tech-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.tech-icon-box {
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.tech-card:hover .tech-icon-box {
    border-color: var(--brand-primary);
    background: rgba(99, 102, 241, 0.1);
}

.tech-icon-box i { width: 22px; height: 22px; color: var(--brand-primary); }

.tech-info { display: flex; flex-direction: column; }

.tech-info h4 {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.tech-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Solutions / Projects Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.solution-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.solution-card:hover {
    border-color: var(--border-hover);
}

.solution-content {
    flex: 1;
    z-index: 2;
}

.solution-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.solution-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.feature-list i {
    color: var(--brand-tertiary);
}

/* Image Container on Solutions - Floating App Style */
.solution-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 1rem;
}

.solution-image img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain; /* Para que la foto del sistema no quede mocha o estirada */
    border-radius: 8px; /* Curvas clásicas de apps macOS/Windows */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
    opacity: 0.9;
}

/* Efecto hover simulando flotación interactiva */
.solution-card:hover .solution-image img {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    opacity: 1;
}

/* Quitamos el gradiente que tapa y empasta los detalles de tu foto */
.solution-image::after {
    display: none;
}

/* CTA Banner */
.cta-banner {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    padding: 5rem 2rem;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-banner p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-banner .btn {
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.direct-email {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.direct-email strong {
    color: var(--text-main);
    font-family: var(--font-sans, monospace);
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
}

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

.footer-bio {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-tertiary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}
.footer-email:hover {
    color: var(--brand-primary);
}
.footer-email i { width: 16px; height: 16px; }

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

.footer-social a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--text-main);
    transform: translateY(-2px);
}

/* Animations Classes (JS triggers these) */
.reveal {
    opacity: 0;
    will-change: transform, opacity;
}

.slide-up {
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.zoom-in {
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in {
    transition: opacity 1s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

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

    .hero-visual {
        display: none;
    }

    .solution-card {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }

    .solution-deco {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .btn-nav {
        display: none;
    }

    .menu-btn {
        display: block;
    }

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

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

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}