:root {
    --bg-color: #05070F;
    --primary-color: #5B8CFF;
    --secondary-color: #7CF5D2;
    --accent-color: #9B5CFF;
    --text-main: #E6E9F2;
    --text-muted: #9AA3B2;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-glow: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.gradient-text {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.center-text {
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    background-image: linear-gradient(90deg, #5B8CFF, #9B5CFF);
}

.glow-effect {
    box-shadow: 0 0 20px rgba(91, 140, 255, 0.4);
}

.glow-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(91, 140, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-block {
    width: 100%;
}

/* Language Switch (Minimalist Text) */
.lang-switch-li {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.lang-opt {
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-opt:hover {
    color: var(--text-color);
}

.lang-opt.active {
    color: var(--primary-color);
    font-weight: 700;
}

.divider {
    opacity: 0.5;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 7, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    background: var(--gradient-main);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-cta {
    color: var(--secondary-color) !important;
    border: 1px solid var(--secondary-color);
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-cta:hover {
    background: var(--secondary-color);
    color: #000 !important;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 90%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-text-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 20px 0 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    display: block;
    position: relative;
}

.wheel {
    width: 4px;
    height: 4px;
    background: var(--text-main);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 24px;
        opacity: 0;
    }
}

/* Intro Section */
.intro-section {
    padding: 100px 0;
    position: relative;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.highlight-text {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 600;
}

.quote {
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-muted);
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--secondary-color);
}

.tech-cube-container {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    perspective: 800px;
}

.tech-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(91, 140, 255, 0.1);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(91, 140, 255, 0.2);
}

.front {
    transform: rotateY(0deg) translateZ(100px);
}

.back {
    transform: rotateY(180deg) translateZ(100px);
}

.right {
    transform: rotateY(90deg) translateZ(100px);
}

.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.top {
    transform: rotateX(90deg) translateZ(100px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotateCube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, #0a0e1c 50%, var(--bg-color) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.card-list {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.card-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.card-list li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Process Section */
.process-section {
    padding: 100px 0;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary-color) 50%,
            transparent 100%);
    z-index: 1;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(91, 140, 255, 0.2);
    transition: 0.3s;
}

.process-step:hover .step-number {
    background: var(--primary-color);
    color: black;
    transform: scale(1.1);
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Adjusted for 4 columns */
    gap: 20px;
    margin-top: 60px;
    align-items: center;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--secondary-color);
    background: linear-gradient(180deg, rgba(124, 245, 210, 0.05), rgba(0, 0, 0, 0));
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.best-value-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: #000;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.price {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 10px 0 20px 0;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
}

/* Specific fix for "A Medida" or long text prices */
.price.custom-price {
    font-size: 2rem;
    /* Smaller font for text */
    align-items: center;
    /* Center vertically since no baseline currency */
}

.currency {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    vertical-align: top;
}

.old-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
    margin-bottom: -15px;
    margin-top: 10px;
}

.period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card .card-body ul {
    text-align: left;
    margin: 30px 0;
}

.pricing-card .card-body li {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.pricing-card .card-body li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: radial-gradient(circle at top right, rgba(91, 140, 255, 0.05), transparent);
}

.faq-grid {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    background: rgba(91, 140, 255, 0.05);
    border-color: var(--primary-color);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-main);
    font-weight: 500;
}

.faq-question i {
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .banner-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: radial-gradient(circle at 100% 0%, rgba(91, 140, 255, 0.05), transparent 50%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

@media (min-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
        padding: 60px;
    }
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.info-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
    outline: none;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--text-muted);
    transition: 0.3s;
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--secondary-color);
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.form-group select {
    color: var(--text-muted);
}

.form-group select option {
    background: #000;
}

/* Footer */
footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #020305;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* Utility Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.logo-accent {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.logo-accent::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-color);
}

/* Nav Link Hover Glow */
.nav-links a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(124, 245, 210, 0.5);
}

/* Growth Engine Visual */
.growth-engine-container {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 40px;
}

.growth-bars {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 250px;
    /* Increased height */
    position: relative;
    z-index: 2;
}

.bar {
    width: 30px;
    /* Wider bars */
    background: linear-gradient(0deg, rgba(91, 140, 255, 0.2), var(--primary-color));
    border-top: 3px solid var(--secondary-color);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 0 20px rgba(91, 140, 255, 0.2);
    transform-origin: bottom;
    transform: scaleY(0);
    /* Start hidden */
    animation: growChart 4s ease-out forwards;
    /* Slower growth */
}

/* Staggered Heights & Animations */
.bar-1 {
    height: 40%;
    animation-delay: 0.2s;
}

.bar-2 {
    height: 65%;
    animation-delay: 0.4s;
}

.bar-3 {
    height: 55%;
    animation-delay: 0.6s;
}

.bar-4 {
    height: 95%;
    /* Maximum height closer to container max */
    animation-delay: 0.8s;
    background: linear-gradient(0deg, rgba(124, 245, 210, 0.2), var(--secondary-color));
    box-shadow: 0 0 30px rgba(124, 245, 210, 0.4);
}

.bar-5 {
    height: 75%;
    animation-delay: 1s;
}

.growth-base {
    position: absolute;
    bottom: 40px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text-muted), transparent);
}

.visual-label {
    position: absolute;
    bottom: 0;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

@keyframes growChart {
    0% {
        transform: scaleY(0);
    }

    100% {
        transform: scaleY(1);
    }
}

/* Increscendo Numbers */
.growth-numbers {
    position: absolute;
    bottom: 50px;
    z-index: 5;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.g-num {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.g-num small {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 400;
    letter-spacing: 1px;
    display: block;
    margin-top: 5px;
}

/* Universal Automation Section */
.universal-section {
    padding: 80px 0;
    background: linear-gradient(0deg, rgba(5, 7, 15, 0), rgba(91, 140, 255, 0.05), rgba(5, 7, 15, 0));
}

.universal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.uni-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.uni-item h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.uni-item p {
    color: var(--text-muted);
}

.uni-footer-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-main);
}

.uni-footer-text strong {
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
}

/* Mobile Responsive Corrections */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
        /* More space for fixed nav */
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }

    h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    h2 {
        font-size: 1.8rem;
    }

    .intro-grid,
    .services-grid,
    .pricing-grid,
    .universal-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        /* Force single column */
        gap: 40px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(5, 7, 15, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 40px 20px;
        border-bottom: 1px solid var(--card-border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }

    .mobile-toggle {
        display: block;
        font-size: 1.5rem;
        z-index: 1001;
        /* Above everything */
    }

    .growth-engine-container {
        transform: scale(0.9);
        margin-top: 30px;
    }

    .process-timeline {
        flex-direction: column;
    }

    .process-timeline::before {
        width: 2px;
        height: 100%;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        background: linear-gradient(180deg, transparent, var(--primary-color), transparent);
    }

    .process-step {
        margin-bottom: 50px;
    }

    /* Ensure pricing cards fit */
    .pricing-card.featured {
        transform: scale(1);
    }
}