:root {
    /* Color Palette - Premium Dark Theme with Vibrant Accent */
    --primary-color: #003BC6; /* Vibrant Royal Blue from Logo */
    --primary-hover: #00298a;
    --primary-light: #60a5fa; /* Lighter blue for dark backgrounds */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 20px rgba(0, 59, 198, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-section {
    --bg-dark: #f8fafc;
    --bg-darker: #f1f5f9;
    --card-bg: #ffffff;
    --text-light: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
    background-color: var(--bg-dark);
    color: var(--text-light);
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
}

.logo img {
    height: 75px; /* Ajustado para mayor presencia */
    max-width: 250px;
    object-fit: contain;
}

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

.nav-links a:not(.btn-primary-small) {
    font-weight: 600;
    color: var(--text-light);
}

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

/* Buttons */
.btn-primary-small, .btn-primary-large, .btn-submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(0, 59, 198, 0.4);
}

.btn-primary-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

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

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-primary-small:hover, .btn-primary-large:hover, .btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    margin-top: 1rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.7) 100%),
                url('hero-bg.png') center/cover no-repeat;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.5;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content .badge {
    background: rgba(96, 165, 250, 0.1);
    color: var(--primary-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.1);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--primary-light);
    position: relative;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-color);
    opacity: 0.3;
    z-index: -1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat h3 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.stat span {
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Glass Form */
.glass-form {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.glass-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #fcd34d);
}

.glass-form h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.glass-form p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem 1rem 1rem 2.8rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
}

.input-group select {
    appearance: none;
    cursor: pointer;
}

.input-group select option {
    background: var(--bg-dark);
    color: #fff;
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.form-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 1rem;
    border-radius: 8px;
    color: #4ade80;
    text-align: center;
    margin-top: 1rem;
    animation: fadeIn 0.5s ease-in;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
    border-bottom: 1px solid var(--border-color);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content .badge {
    background: rgba(0, 59, 198, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 59, 198, 0.2);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 59, 198, 0.2), transparent);
    z-index: 1;
    border-radius: 20px;
}

/* Clients Marquee Section */
.clients-section {
    padding: 3rem 0;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.clients-title {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.clients-marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 3rem;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: scroll 40s linear infinite;
    min-width: 100%;
    flex-shrink: 0;
    justify-content: space-around;
}

.client-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 2.5rem;
    border-radius: 100px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.client-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.5;
    transition: var(--transition);
}

.client-card:hover {
    background: rgba(0, 59, 198, 0.1);
    border-color: rgba(0, 59, 198, 0.4);
    color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 59, 198, 0.3);
}

.client-card:hover i {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(0, 59, 198, 0.8));
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - 2rem));
    }
}

/* Services */
.services {
    padding: 6rem 0;
    background: var(--bg-darker);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 59, 198, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 59, 198, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: #fff;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

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

.service-card ul {
    margin-top: 1rem;
}

.service-card ul li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.service-card.highlight {
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(0, 59, 198, 0.1) 100%);
    border-color: var(--primary-color);
}

.service-card.accent {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

.service-card.accent p, .service-card.accent h3 {
    color: #fff;
}

.service-card.accent .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.service-card.accent .btn-outline {
    border-color: #fff;
    color: #fff;
}

.service-card.accent .btn-outline:hover {
    background: #fff;
    color: var(--primary-color);
    box-shadow: none;
}

/* Testimonials Carousel */
.testimonials {
    padding: 6rem 0;
    background: var(--bg-darker);
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    list-style: none;
    margin: 0;
    padding: 0;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.testimonial-card .stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.testimonial-card p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.testimonial-card h4 {
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-bottom: 0.2rem;
}

.testimonial-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.carousel-btn {
    background: rgba(0, 59, 198, 0.2);
    border: 1px solid rgba(0, 59, 198, 0.4);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 59, 198, 0.5);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('hero-bg.png') center/cover no-repeat;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-container h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-container p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 5rem 0 2rem;
}

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

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

.footer-info p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.footer-links ul li a {
    color: var(--text-muted);
}

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

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-contact i {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .about-image {
        order: -1; /* Image on top */
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        margin: 0 auto 2rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(2, 6, 23, 0.98);
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: -1;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        z-index: 999;
    }

    .nav-links a:not(.btn-primary-small) {
        color: #fff;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-info p {
        margin: 0 auto;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .client-card {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .carousel-container {
        position: relative;
        padding-bottom: 4rem;
        display: block; /* Remove flex to stop squishing */
    }
    
    .carousel-btn {
        position: absolute;
        bottom: 0;
        top: auto;
        transform: none;
        width: 40px;
        height: 40px;
    }
    
    .prev-btn {
        left: 35%;
    }
    
    .next-btn {
        right: 35%;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-card p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-container h2 {
        font-size: 2.2rem;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}
