:root {
    /* Colors */
    --bg-color: #050409;
    --bg-secondary: #0b0d28;
    --primary-color: #6B43EF;
    --primary-light: #8a6af5;
    --accent-color: #00f2ff;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-dark: linear-gradient(to bottom, var(--bg-color), var(--bg-secondary));

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid transparent;
    box-shadow: 0 0 20px rgba(107, 67, 239, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 0 30px rgba(107, 67, 239, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(107, 67, 239, 0.1);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 4, 9, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    height: 40px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(107, 67, 239, 0.1) 0%, rgba(5, 4, 9, 0) 70%);
    filter: blur(80px);
    animation: pulse 10s infinite alternate;
}

/* Spotlight */
.spotlight-container {
    position: absolute;
    top: -40%;
    left: -10%;
    width: 150%;
    height: 150%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: spotlight-fade-in 1.5s ease-out forwards 0.5s;
}

.spotlight {
    width: 100%;
    height: 100%;
    animation: spotlight-move 10s infinite alternate ease-in-out;
}

@keyframes spotlight-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes spotlight-move {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(20px) translateX(10px);
    }
}

/* Hero Layout */
.hero-container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-content-left {
    flex: 1;
    max-width: 600px;
}

.hero-content-right {
    flex: 1;
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spline-wrapper {
    width: 100%;
    height: 100%;
    min-height: 500px;
    position: relative;
}

spline-viewer {
    width: 100%;
    height: 100%;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

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

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

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

.delay-4 {
    animation-delay: 0.8s;
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 67, 239, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
}

/* Sections Common */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-tag {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(107, 67, 239, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(107, 67, 239, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    background: rgba(107, 67, 239, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Methodology Section */
.row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.col-half {
    flex: 1;
}

.methodology-list {
    list-style: none;
    margin: 30px 0;
}

.methodology-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.methodology-list li i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

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

/* Visual Elements */
.methodology-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: pulse 8s infinite alternate;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 5px;
}

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, rgba(107, 67, 239, 0.1), rgba(5, 4, 9, 0.5));
    border: 1px solid rgba(107, 67, 239, 0.3);
    border-radius: 30px;
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(107, 67, 239, 0.2), transparent 70%);
    filter: blur(50px);
    z-index: 1;
    animation: pulse 5s infinite alternate;
}

/* Footer */
.footer {
    background: #020205;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo {
    height: 30px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s;
}

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

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

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

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* Garantias Section */
.section-garantias {
    background: rgba(107, 67, 239, 0.1);
    border-bottom: 1px solid rgba(107, 67, 239, 0.2);
    padding: 30px 0;
    margin-top: -1px;
    /* Connect to hero */
}

.garantias-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.garantia-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.garantia-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* Sectors List */
.sectors-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.sectors-list .methodology-list li {
    align-items: flex-start;
}

.sectors-list .methodology-list li i {
    margin-top: 5px;
}

.mt-5 {
    margin-top: 3rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .row {
        flex-direction: column;
    }

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

    .hero-container-flex {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero-content-left {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-content-right {
        width: 100%;
        height: 400px;
    }

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

    .spotlight-container {
        top: -20%;
        left: -20%;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .nav {
        display: none;
    }

    .footer-text {
        margin: 0 auto 30px;
    }

    .social-links {
        justify-content: center;
    }

    .cta-box {
        padding: 40px 20px;
    }

    .garantias-grid {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

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

/* Popup Modal Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 4, 9, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background: #f5f5fa;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    color: #333;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.popup-close:hover {
    color: #000;
}

.popup-header {
    margin-bottom: 30px;
}

.popup-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
    text-transform: uppercase;
}

.popup-subtitle {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
}

.popup-form input[type="text"],
.popup-form input[type="email"],
.popup-form input[type="tel"],
.popup-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #eef2f6;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #333;
    transition: all 0.3s;
}

.popup-form input:focus,
.popup-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(107, 67, 239, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.radio-group-container {
    margin-top: 10px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s;
}

.radio-label input:checked+.radio-custom {
    border-color: var(--primary-color);
}

.radio-label input:checked+.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.btn-block {
    width: 100%;
    margin-top: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Custom Select Wrapper for arrow styling if needed */
.custom-select-wrapper {
    position: relative;
}

.custom-select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.popup-form select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .popup-content {
        padding: 25px;
        width: 95%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .popup-title {
        font-size: 1rem;
    }
}