/* =====================================================
   QoraAI - Premium Dark Mode Landing Page
   Color Scheme: Gold (#D4AF37) + Purple (#A855F7) + Black
   ===================================================== */

/* =====================================================
   CSS VARIABLES - COLOR SYSTEM
   ===================================================== */
:root {
    /* Backgrounds */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;

    /* Gold Primary Colors */
    --gold-50: #FEF9E7;
    --gold-100: #FDF3D0;
    --gold-200: #FAE6A1;
    --gold-300: #F7D972;
    --gold-400: #E8C547;
    --gold-500: #D4AF37;
    /* Base Gold */
    --gold-600: #B8961F;
    --gold-700: #9C7E15;
    --gold-800: #80660E;
    --gold-900: #644E08;

    /* Purple Accent Colors */
    --purple-50: #FAF5FF;
    --purple-100: #F3E8FF;
    --purple-200: #E9D5FF;
    --purple-300: #D8B4FE;
    --purple-400: #C084FC;
    --purple-500: #A855F7;
    /* Base Purple */
    --purple-600: #9333EA;
    --purple-700: #7E22CE;
    --purple-800: #6B21A8;
    --purple-900: #581C87;

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #71717A;

    /* Accent Colors */
    --success: #22C55E;
    --info: #3B82F6;
    --warning: #F59E0B;

    /* Shadows & Effects */
    --shadow-gold: rgba(212, 175, 55, 0.4);
    --shadow-purple: rgba(168, 85, 247, 0.4);
    --glow-gold: rgba(212, 175, 55, 0.6);
    --glow-purple: rgba(168, 85, 247, 0.6);
}

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--purple-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-primary {
    filter: drop-shadow(0 0 20px var(--glow-gold)) drop-shadow(0 0 40px var(--glow-purple)) drop-shadow(0 0 60px rgba(168, 85, 247, 0.3));
}

.glow-text {
    text-shadow:
        0 0 10px var(--glow-gold),
        0 0 20px var(--glow-purple),
        0 0 40px rgba(168, 85, 247, 0.4);
}

/* =====================================================
   PARTICLES BACKGROUND
   ===================================================== */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, var(--gold-500) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.4;
    animation: float-particle 20s infinite ease-in-out;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.4;
    }

    25% {
        transform: translate(100px, -100px);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50px, -200px);
        opacity: 0.6;
    }

    75% {
        transform: translate(-100px, -100px);
        opacity: 0.8;
    }
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    padding: 16px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 120px;
    width: auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-500), var(--purple-500));
    transition: width 0.3s ease;
}

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--gold-500);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
    background: linear-gradient(135deg,
            var(--gold-600) 0%,
            var(--gold-500) 30%,
            var(--gold-400) 60%,
            var(--gold-500) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: var(--bg-primary);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.5),
        0 4px 24px var(--shadow-gold),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
    box-shadow:
        0 0 0 2px rgba(212, 175, 55, 0.8),
        0 8px 40px var(--shadow-gold);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    border: 2px solid var(--gold-500);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--purple-500);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-nav {
    padding: 10px 24px;
    font-size: 14px;
}

.btn-pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(212, 175, 55, 0.5),
            0 4px 24px var(--shadow-gold),
            0 0 60px rgba(212, 175, 55, 0.3);
    }

    50% {
        box-shadow:
            0 0 0 2px rgba(212, 175, 55, 0.8),
            0 8px 40px var(--shadow-gold),
            0 0 80px rgba(212, 175, 55, 0.5);
    }
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 10;
}

.hero-label {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gold-400);
    margin-bottom: 24px;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    font-size: 76px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    opacity: 0;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    opacity: 0;
    animation: scale-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.6s forwards;
}

.hero-stats {
    display: flex;
    gap: 48px;
    opacity: 0;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-500), var(--purple-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fade-in-rotate 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    animation: float 6s ease-in-out infinite;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade-in-rotate {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }

    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(2deg);
    }

    50% {
        transform: translateY(-10px) rotate(-2deg);
    }

    75% {
        transform: translateY(-30px) rotate(1deg);
    }
}

/* =====================================================
   SOCIAL PROOF
   ===================================================== */
.social-proof {
    padding: 80px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.social-proof-text {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
}

.tech-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.tech-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-quaternary);
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.tech-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    color: var(--gold-500);
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gold-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* =====================================================
   SERVICES SECTION - FLIP CARDS
   ===================================================== */
.services {
    padding: 120px 0 160px 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card-flip {
    height: 400px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Remove all 3D transforms - use simple opacity transition instead */
.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    transition: opacity 0.4s ease;
}

.service-card-front {
    opacity: 1;
    z-index: 1;
}

.service-card-back {
    opacity: 0;
    z-index: 2;
}

/* On hover: hide front, show back */
.service-card-flip:hover .service-card-front {
    opacity: 0;
}

.service-card-flip:hover .service-card-back {
    opacity: 1;
}

.service-image,
.service-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 80px;
    opacity: 0.3;
}

.service-card-flip:hover .service-image {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.service-title-front {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

/* SOLID BACKGROUND for back side - NO transparency */
.service-card-back {
    background: linear-gradient(135deg,
            #000000 0%,
            #0a0a0f 50%,
            #000000 100%);
    border: 2px solid rgba(212, 175, 55, 0.5);
    padding: 36px 32px 60px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow:
        0 0 40px rgba(212, 175, 55, 0.3),
        inset 0 0 80px rgba(168, 85, 247, 0.15);
}

.service-icon-back {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
}

.service-title-back {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--gold-500), var(--purple-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.service-description {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 400;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
}

.feature-tag {
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 20px;
    font-size: 13px;
    color: var(--gold-400);
    font-weight: 600;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* =====================================================
   GLASS CARD COMPONENT
   ===================================================== */
.glass-card {
    background: linear-gradient(135deg,
            rgba(212, 175, 55, 0.08) 0%,
            rgba(168, 85, 247, 0.04) 50%,
            rgba(212, 175, 55, 0.08) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 24px;
    padding: 32px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 25px 50px -12px var(--shadow-gold);
    transform: translateY(-4px);
}

/* =====================================================
   SOLUTIONS SECTION
   ===================================================== */
.solutions {
    padding: 120px 0;
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.05) 0%, transparent 70%);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

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

.solution-metric {
    font-size: 64px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-500), var(--purple-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.solution-title {
    font-size: 24px;
    margin-bottom: 12px;
}

.solution-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about {
    padding: 120px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.about-logo {
    width: 200px;
    height: auto;
}

.about-content {
    max-width: 700px;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-secondary);
}

.feature-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-500);
    color: var(--bg-primary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials {
    padding: 120px 0;
    background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    position: relative;
}

.quote-mark {
    font-size: 80px;
    line-height: 1;
    color: var(--gold-500);
    opacity: 0.15;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 0;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;

}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 14px;
    color: var(--text-tertiary);
}

.rating {
    color: var(--gold-500);
    font-size: 18px;
}

/* =====================================================
   CTA FINAL
   ===================================================== */
.cta-final {
    padding: 120px 0;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.15) 0%, rgba(168, 85, 247, 0.1) 50%, transparent 100%);
    position: relative;
}

.cta-container {
    text-align: center;
    max-width: 800px;
}

.cta-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
}

.cta-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-note {
    margin-top: 24px;
    color: var(--text-tertiary);
    font-size: 14px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
}

.footer-description {
    color: var(--text-tertiary);
    margin-bottom: 24px;
    line-height: 1.6;
}

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

.social-link {
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-500);
    color: var(--gold-500);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--gold-500);
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--text-quaternary);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-quaternary);
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--gold-500);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

/* =====================================================
   RESPONSIVE DESIGN (Unified Tablet & Mobile)
   ===================================================== */

@media (max-width: 1100px) {

    html,
    body {
        overflow-x: hidden !important;
        position: relative;
        width: 100%;
    }

    body.menu-open {
        overflow: hidden !important;
    }

    /* Container & Layout */
    .container {
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Navbar & Logo */
    .logo-img {
        height: 50px !important;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.9);
        border-left: 1px solid rgba(212, 175, 55, 0.3);
        z-index: 5000 !important;
        backdrop-filter: blur(30px);
    }

    .nav-links.active {
        right: 0;
    }

    .btn-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 10001 !important;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hero Section - Scaled for Tablet & Mobile */
    .hero {
        padding-top: 140px !important;
        /* Aumentado para evitar solapamiento */
        min-height: auto;
        padding-bottom: 60px;
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        order: -1;
        margin-top: 20px;
    }

    .hero-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 56px) !important;
        line-height: 1.15;
        margin-bottom: 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: clamp(15px, 4vw, 18px);
        margin-bottom: 32px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-stats {
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Sections Cleaning */
    section {
        padding: 60px 0 !important;
    }

    .section-title {
        font-size: clamp(28px, 6vw, 40px);
    }

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

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-card-flip {
        height: 350px;
    }

    /* About Section - Fix for "Nosotros" alignment */
    .about-container {
        display: flex !important;
        flex-direction: column;
        gap: 30px;
        text-align: center;
        width: 100%;
        overflow: hidden;
    }

    .about-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .about-visual {
        padding: 20px;
        max-width: 200px;
        margin: 0 auto;
    }

    .about-logo {
        width: 120px !important;
    }

    .about-content {
        max-width: 100%;
        padding: 0 10px;
    }

    .about-features {
        align-items: flex-start;
        text-align: left;
        max-width: 260px;
        margin: 0 auto;
    }

    /* Chatbot Responsive Adjustment */
    .chatbox-container {
        bottom: 25px;
        right: 30px !important;
    }

    .chat-toggle {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }

    .chat-window {
        position: fixed !important;
        left: 20px;
        right: 20px;
        width: auto !important;
        height: 60vh;
        bottom: 90px;
        z-index: 10001 !important;
    }

    /* Footer Responsive */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand {
        margin: 0 auto;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px !important;
    }

    .hero-image {
        max-width: 220px;
    }

    .stat-number {
        font-size: 28px;
    }
}

/* Desktop XL */
@media (min-width: 1440px) {
    .container {
        max-width: 1440px;
    }
}

/* Cache buster: 1770664985 */

/* =====================================================
   AI CHATBOX STYLES
   ===================================================== */
.chatbox-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Chat Toggle Button */
.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}

.chat-toggle .toggle-close {
    display: none;
    font-size: 30px;
}

.chat-toggle.active .toggle-icon {
    display: none;
}

.chat-toggle.active .toggle-close {
    display: block;
    color: var(--bg-primary);
}

.chat-toggle.active {
    transform: rotate(90deg);
    background: var(--text-tertiary);
    box-shadow: none;
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1999;
}

.chat-window.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
}

/* Chat Header */
.chat-header {
    padding: 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(168, 85, 247, 0.2));
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--gold-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bot-status h3 {
    font-size: 16px;
    margin: 0;
    color: var(--text-primary);
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    margin-right: 4px;
}

.status-text {
    font-size: 12px;
    color: var(--text-tertiary);
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.chat-close-btn:hover {
    color: var(--text-primary);
}

/* Chat Body */
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-message.bot .message-content {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
    color: var(--bg-primary);
    font-weight: 500;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 10px;
    color: var(--text-quaternary);
    margin-top: 4px;
}

.chat-message.user .message-time {
    text-align: right;
}

/* Chat Footer */
.chat-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.chat-form {
    display: flex;
    gap: 10px;
}

.chat-form input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 10px 15px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.chat-form input:focus {
    border-color: var(--gold-500);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    background: var(--gold-500);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Scrollbar styles for chat body */
.chat-body::-webkit-scrollbar {
    width: 5px;
}

.chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 10px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.4);
}

/* Mobile Responsiveness */
/* Cleaned up redundant block */

/* =====================================================
   AI CHATBOX TYPING INDICATOR
   ===================================================== */
.typing-indicator {
    padding: 12px 16px !important;
}

.typing-indicator .message-content {
    display: flex;
    gap: 4px;
    align-items: center;
    min-height: 20px;
}

.typing-indicator .dot {
    width: 6px;
    height: 6px;
    background: var(--text-tertiary);
    border-radius: 50%;
    animation: typing-dots 1.4s infinite ease-in-out;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-dots {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}