:root {
    --bg-color: #050508;
    --text-color: #f0f0f5;
    --text-muted: #a0a0b0;
    --accent-primary: #3b82f6;
    /* Modern blue */
    --accent-secondary: #0ea5e9;
    /* Cyan tone */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --nav-height: 80px;
    --transition-slow: all 0.5s cubic-bezier(0.25, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.1), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.1), transparent 25%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

ul {
    list-style: none;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-secondary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(14, 165, 233, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

@media (max-width: 968px) {
    * {
        cursor: auto !important;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

/* Reusable Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition-slow);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
    background: var(--glass-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-primary,
.btn-secondary,
.btn-primary-outline {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
    border: none;
    outline: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--accent-secondary);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--accent-secondary);
    color: white;
}

.btn-primary-outline {
    border: 1px solid var(--accent-secondary);
    color: var(--text-color);
    background: transparent;
}

.btn-primary-outline:hover {
    background: var(--accent-secondary);
    color: white;
}

.w-100 {
    width: 100%;
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    margin: 1.5rem 0;
    border-radius: 2px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.animate-up {
    animation: slideUp 1s cubic-bezier(0.5, 0, 0, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #020203;
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    z-index: 1001;
    transition: transform 0.3s ease;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tb-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tb-left i {
    color: var(--accent-secondary);
}

.tb-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.tb-social {
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.tb-social:hover {
    color: var(--accent-secondary);
    transform: translateY(-2px);
}

.tb-whatsapp {
    color: #25D366;
    font-weight: 600;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 211, 102, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
}

.tb-right a:hover {
    color: white;
    background: #25D366;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 36px;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

.navbar.scrolled {
    top: 0;
    height: 70px;
    background: rgba(5, 5, 8, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links li a:not(.btn-primary-outline)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-secondary);
    transition: width 0.3s;
}

.nav-links li a:hover:not(.btn-primary-outline)::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#inicio {
    background-image: url('assets/sicrisfurgo.png');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 5, 8, 0.95) 0%, rgba(5, 5, 8, 0.7) 50%, rgba(5, 5, 8, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero h1 span {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    padding: 1.5rem;
    min-width: 160px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-color);
}

/* Services Section */
.services {
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title h2 {
    font-size: 2.5rem;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: left;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.service-card:hover .icon-wrapper {
    background: var(--accent-secondary);
    color: white;
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* SEO Section */
.seo-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, #08080c 100%);
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.seo-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.seo-item {
    margin-bottom: 2.5rem;
}

.seo-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-item h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
}

.seo-item p {
    color: var(--text-muted);
    line-height: 1.7;
}

.seo-item strong {
    color: var(--text-color);
    font-weight: 500;
}

.seo-image {
    padding: 0;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
}

.seo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.seo-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 968px) {
    .seo-grid {
        grid-template-columns: 1fr;
    }
}

/* Experience Section */
.experience-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.experience-content h2 {
    font-size: 2.5rem;
}

.experience-content h2 span {
    color: var(--accent-secondary);
}

.experience-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.experience-content .highlight-text {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
    border-left: 4px solid var(--accent-secondary);
    padding-left: 1rem;
    margin: 2rem 0;
}

.partners-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem !important;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
}

.partner-badge {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    transition: var(--transition-slow);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.partner-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    transition: var(--transition-slow);
    background: white;
    padding: 3px;
}

.partner-badge:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
    color: white;
}

.partner-badge:hover .partner-icon {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

.experience-image {
    padding: 0;
    overflow: hidden;
    height: 500px;
}

.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.experience-image:hover img {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    background-image: url('assets/texture.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.85);
    /* Darken the background image heavily */
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-details i {
    font-size: 1.5rem;
    color: var(--accent-secondary);
    margin-top: 5px;
}

.contact-details strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text-color);
}

.contact-details a,
.contact-details span {
    color: var(--text-muted);
    transition: color 0.3s;
}

.contact-details a:hover {
    color: var(--accent-secondary);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-color);
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    background: #030305;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.footer-logo span {
    color: var(--accent-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-secondary);
}

.footer-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.socials {
    display: flex;
    gap: 1rem;
}

.socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    border: 1px solid var(--glass-border);
}

.socials a:hover {
    background: var(--accent-secondary);
    color: white;
    border-color: var(--accent-secondary);
}

/* Responsive */
@media (max-width: 968px) {

    .experience-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero {
        display: block !important;
        padding-top: 180px !important;
    }

    .hero h1 {
        font-size: 3rem;
        margin-top: 3rem !important;
    }

    .stats {
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 1 1 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        display: block !important;
        padding-top: 200px !important;
    }

    .hero h1 {
        font-size: 2.8rem;
        margin-top: 2rem !important;
    }

    .tb-left {
        display: none;
    }

    .top-bar-container {
        justify-content: center;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-actions {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.faq-question h3 {
    font-size: 1.2rem;
    margin: 0;
    pointer-events: none;
}

.faq-question i {
    color: var(--accent-secondary);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.faq-item.active {
    background: rgba(14, 165, 233, 0.05);
    border-color: rgba(14, 165, 233, 0.3);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}