:root {
    --primary: #00bab2;
    --primary-dark: #00968f;
    --primary-bright: #00eae3;
    --secondary: #004c77;
    --secondary-dark: #003655;

    /* Dark Theme Colors */
    --bg-body: #231f1f;
    --bg-card: #2d2a2a;
    /* Slightly lighter than body */
    --white: #ffffff;
    --text: #ffffff;
    --text-muted: #9ca3af;

    --gradient: linear-gradient(135deg, var(--secondary-dark) 0%, var(--bg-body) 100%);
    --gradient-hero: linear-gradient(135deg, #0f2e42 0%, #004d49 100%);

    --glass: rgba(35, 31, 31, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);

    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Myriad Pro', 'Segoe UI', Helvetica, Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Audiowide', cursive;
    color: var(--text);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
}

.logo-icon {
    color: var(--primary);
    margin: 0 2px;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-support {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(37, 193, 111, 0.1);
    border: 1px solid rgba(37, 193, 111, 0.3);
    border-radius: 50px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-support:hover {
    background: rgba(37, 193, 111, 0.2);
    border-color: #25c16f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 193, 111, 0.2);
    color: var(--white);
}

.btn-support svg {
    width: 20px;
    height: 20px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 186, 178, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-specialist {
    background: #004c77;
    color: var(--white);
    border: 2px solid #004c77;
}

.btn-specialist:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 76, 119, 0.4);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: var(--gradient-hero);
    color: var(--white);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Utility */
.section {
    padding: 80px 0;
}

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

.text-primary {
    color: var(--primary);
}

.bg-dark {
    background-color: #1e1b1b;
}

/* Subtle differenciation */

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title.text-center {
    display: block;
}

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Cards & Glassmorphism */
.card-glass {
    background: var(--bg-card);
    /* Fallback or specific dark card color */
    background: rgba(45, 42, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

/* Problem/Solution */
.problem-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-orange {
    color: #ea580c;
}

.icon-primary {
    color: var(--primary);
}

.solution-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Ensure text is above background */
    z-index: 1;
}

/* Service Backgrounds with dark overlay */
.service-consultoria {
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('/img/consulting.jpg');
}

.service-ia {
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('/img/automation.jpg');
}

.service-mesa {
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('/img/mesa-ayuda-bg.jpg');
}

.service-integraciones {
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('/img/integracion.jpg');
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom-color: #004c77;
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* AI Feature */
.feature-section {
    background: var(--gradient-hero);
    color: var(--white);
}

.feature-section h2 {
    color: var(--white);
}

.feature-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.badge {
    background: rgba(0, 186, 178, 0.2);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
}

/* Mockup UI */
.mockup-ui {
    background: #1e293b;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.mockup-header {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #f59e0b;
}

.green {
    background: #10b981;
}

.chat-message {
    background: #334155;
    color: #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    width: fit-content;
}

.chat-graph {
    height: 100px;
    background: linear-gradient(to top, rgba(0, 186, 178, 0.2), transparent);
    border-bottom: 2px solid var(--primary);
    margin-top: 1rem;
    position: relative;
}

/* Benefits */
.benefits-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 150px;
}

.benefit-item i {
    color: var(--primary);
    width: 32px;
    height: 32px;
}

.benefit-item span {
    font-weight: 600;
    color: var(--text);
}

/* Contact */
.contact-section {
    background: #231f1f;
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info p {
    margin-bottom: 1.5rem;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    padding: 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 186, 178, 0.1);
}

/* Footer */
footer {
    background: var(--secondary-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3,
.footer-logo {
    margin-bottom: 1rem;
    display: block;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col p {
    opacity: 0.8;
}

.footer-slogan {
    font-size: 1.8rem;
    color: var(--white);
    margin-top: 1rem;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    opacity: 0.8;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Tech Stack Section */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.tech-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1;
}

.tech-logo-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 186, 178, 0.2);
}

.tech-logo-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 0.3s ease;
}

.tech-logo-item:hover img {
    filter: brightness(1.2);
    transform: scale(1.1);
}

.tech-logo-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 186, 178, 0.15);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
}

.testimonial-rating .star-filled {
    width: 20px;
    height: 20px;
    color: #fbbf24;
    fill: #fbbf24;
}

.testimonial-content {
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--text-muted);
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar i {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Animations */
.animate-up {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Mobile menu simplified */
    .mobile-menu-btn {
        display: block;
        color: var(--white);
    }

    .hero {
        padding: 80px 0 60px;
    }

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

    .grid-2,
    .contact-wrapper,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .nav-links {
        background: var(--bg-card) !important;
        border: 1px solid var(--glass-border);
    }

    .btn-support {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .btn-support svg {
        width: 18px;
        height: 18px;
    }

    .benefits-list {
        gap: 1.5rem;
    }

    .benefit-item {
        flex: 0 0 calc(50% - 0.75rem);
    }

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

    .tech-logo-item {
        padding: 1rem;
    }

    .tech-logo-item img {
        width: 40px;
        height: 40px;
    }

    .tech-logo-item span {
        font-size: 0.8rem;
    }

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

    .section-title {
        display: block;
        text-align: center;
    }
}