:root {
    /* Brand Colors (from Logo) */
    --primary-light: #00D2FF;
    /* Cyan */
    --primary-main: #00D2FF;
    --primary-dark: #6A5ACD;
    /* Deep Blue/Purple */

    /* Gradients */
    --grad-logo: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    --grad-hero: radial-gradient(circle at top right, rgba(0, 210, 255, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(106, 90, 205, 0.1), transparent 40%);

    /* Neutral Colors */
    --bg-black: #000000;
    --bg-dark: #050505;
    --bg-card: rgba(15, 15, 20, 0.7);
    --text-main: #FFFFFF;
    --text-muted: #A1A1AA;
    --border-glass: rgba(255, 255, 255, 0.08);

    /* Effects */
    --shadow-glow: 0 0 20px rgba(0, 210, 255, 0.3);
    --glass-blur: blur(20px) saturate(180%);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Evita que el navbar tape los títulos al navegar */
}

/* --- TESTIMONIALS --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.testimonial-card {
    padding: 32px;
}

.quote {
    font-style: italic;
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--text-main);
}

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

.author-info strong {
    color: var(--primary-light);
    font-size: 16px;
}

.author-info span {
    color: var(--text-muted);
    font-size: 14px;
}

body {
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- UTILS --- */
.text-gradient {
    background: var(--grad-logo);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 16px;
    display: block;
    text-align: center;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 16px 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
}

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

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* --- BUTTONS --- */
.btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--grad-logo);
    color: #000;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-glass);
}

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

.btn-full {
    width: 100%;
    margin-top: 16px;
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    padding-top: 140px;
    background: var(--grad-hero);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 32px;
    box-shadow: 0 0 50px rgba(0, 210, 255, 0.3);
    border: 1px solid rgba(0, 210, 255, 0.2);
    z-index: 2;
    animation: floating 6s ease-in-out infinite;
}

.hero-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--grad-logo);
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 100px;
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 72px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

.sphere-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sphere {
    width: 400px;
    height: 400px;
    background: var(--grad-logo);
    border-radius: 50%;
    position: relative;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.sphere-inner {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: var(--grad-logo);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.5;
}

/* --- SOCIAL PROOF --- */
.social-proof {
    padding: 80px 0;
    background: var(--bg-black);
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.logo-item {
    font-weight: 700;
    font-size: 20px;
    font-family: 'JetBrains Mono', monospace;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 80px;
}

.metric-card {
    padding: 40px;
    text-align: center;
}

.metric-number {
    font-size: 48px;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #fff;
}

.metric-label {
    color: var(--text-muted);
    margin-top: 8px;
    font-size: 14px;
}

/* --- WHY US --- */
.why-us {
    padding: 100px 0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.why-card {
    padding: 40px;
    text-align: center;
}

.why-icon {
    font-size: 40px;
    margin-bottom: 24px;
    display: block;
}

.why-card h3 {
    margin-bottom: 16px;
    font-size: 20px;
}

.why-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* --- SERVICES --- */
.services {
    padding: 100px 0;
    background: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 48px;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

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

/* Flip Card Styles */
.service-card-flip {
    height: 400px;
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
}

.service-card-front {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
}

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

.service-card-flip:hover .service-img {
    transform: scale(1.1);
}

.service-overlay {
    padding: 24px;
    text-align: center;
}

.service-card-back {
    transform: rotateY(180deg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(106, 90, 205, 0.1));
}

.service-description {
    margin: 16px 0 24px;
    color: var(--text-muted);
}

.feature-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* --- LEAD FORM --- */
.cta-section {
    padding: 100px 0;
}

.cta-card {
    padding: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.lead-form {
    margin-top: 40px;
    text-align: left;
}

.form-group {
    margin-bottom: 16px;
}

input {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: #fff;
    outline: none;
    transition: all 0.3s;
}

input:focus {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.05);
}

.form-disclaimer {
    margin-top: 24px;
    font-size: 14px;
    color: #ff4d4d;
    font-weight: 600;
}

/* --- FOOTER --- */
.footer {
    padding: 80px 0 40px;
    background: #000;
    border-top: 1px solid var(--border-glass);
}

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

.footer-logo {
    height: 40px;
    margin-bottom: 24px;
}

.footer-links h4 {
    margin-bottom: 24px;
}

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

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 14px;
}

/* --- ANIMATIONS --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1.0);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }

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

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

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

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

    .hero-title {
        font-size: 40px;
    }

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

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

    .nav-links {
        display: none;
    }

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