:root {
    /* Fondos */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;

    /* Acento Dorado (#D4AF37) ajustado en distintos brillos */
    --primary-50:  #fbf8f0;
    --primary-100: #f5eed8;
    --primary-200: #eadba7;
    --primary-300: #dec471;
    --primary-400: #d4af37; /* + brillo */
    --primary-500: #cf9b24; /* Color base adaptado para legibilidad (un poco más intenso) pero usaremos #D4AF37 como base visual */
    --primary-600: #bc801c;
    --primary-700: #965e18;
    --primary-800: #7e4b1a;
    --primary-900: #6a3e1b;
    --primary-rgb: 212, 175, 55; /* RGB de #D4AF37 para rgba */

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

    /* Acentos Secundarios */
    --success: #22C55E;
    --info: #3B82F6;
    --warning: #F59E0B;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* Tipografía */
h1, h2, h3, h4, .font-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
}
h1 { font-size: 76px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 48px; font-weight: 700; line-height: 1.2; margin-bottom: 24px; }
h3 { font-size: 24px; font-weight: 600; line-height: 1.3; }
.text-gold { color: #D4AF37; }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-quaternary { color: var(--text-quaternary); }

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.section-padding { padding: 120px 0; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.relative { position: relative; }
.z-10 { z-index: 10; }

/* Navbar Sticky */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    padding: 16px 0;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-img { height: 48px; object-fit: contain; }
.nav-links { display: flex; gap: 32px; }
.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-400);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.mobile-menu-toggle { display: none; background: none; border: none; flex-direction: column; gap: 6px; cursor: pointer; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: white; transition: 0.3s; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(ellipse at top, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%);
    overflow: hidden;
    padding-top: 80px;
}
#particles-container { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-400);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-400);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-label {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary-400);
    font-weight: 600;
    margin-bottom: 24px;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin: 24px 0 40px;
    max-width: 90%;
}
.hero-cta-group { display: flex; gap: 20px; }

/* Botones */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--primary-600) 0%,
        var(--primary-400) 30%,
        #e5c158 60%,
        var(--primary-400) 100%
    );
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: #000;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    box-shadow: 
        0 0 0 1px rgba(var(--primary-rgb), 0.5),
        0 4px 24px rgba(var(--primary-rgb), 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 0 0 2px rgba(var(--primary-rgb), 0.8),
        0 8px 40px rgba(var(--primary-rgb), 0.6);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-rgb), 0.5);
    background: rgba(var(--primary-rgb), 0.05);
    color: #D4AF37;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: #D4AF37;
    transform: translateY(-2px);
}

/* Efectos Glow compartidos */
.glow-primary {
    filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.6))
            drop-shadow(0 0 40px rgba(var(--primary-rgb), 0.4))
            drop-shadow(0 0 60px rgba(var(--primary-rgb), 0.3));
}
.glow-text {
    text-shadow: 
        0 0 10px rgba(var(--primary-rgb), 0.3),
        0 0 20px rgba(var(--primary-rgb), 0.2);
}

/* 3D Her visual object */
.sphere {
    width: 450px;
    height: 450px;
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
    margin: 0 auto;
}
.sphere-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.15) 100%);
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    box-shadow: 
        0 0 60px rgba(var(--primary-rgb), 0.2),
        0 0 120px rgba(var(--primary-rgb), 0.1),
        inset 0 0 60px rgba(var(--primary-rgb), 0.1);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-image {
    width: 140%;
    height: 140%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.icon-3d:hover {
    transform: rotateY(10deg) scale(1.05);
    filter: drop-shadow(0 0 30px rgba(var(--primary-rgb), 0.6));
}

/* Social Proof Grid */
.social-proof {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    padding: 60px 0;
}
.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}
.stat-number {
    font-size: 56px;
    color: #D4AF37;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-quaternary);
}

/* Services */
.section-header { margin-bottom: 60px; }
.section-header p {
    color: var(--text-tertiary);
    font-size: 20px;
    margin-top: 16px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Glass Card */
.glass-card {
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.08) 0%,
        rgba(var(--primary-rgb), 0.02) 50%,
        rgba(var(--primary-rgb), 0.08) 100%
    );
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

/* Flip Card System */
.service-card-flip {
    perspective: 1000px;
    height: 420px;
    cursor: pointer;
}
.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}
.service-card-flip:hover .service-card-inner,
.service-card-flip.flipped .service-card-inner {
    transform: rotateY(180deg);
}
.service-card-front, .service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}
.service-card-front {
    background: var(--bg-tertiary);
}
.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card-flip:hover .service-image {
    transform: scale(1.05);
}
.service-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 24px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    text-align: left;
}
.service-title-front {
    color: #fff;
    font-size: 24px;
}
.service-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
}
.service-description {
    color: var(--text-secondary);
    margin: 16px 0 24px;
    font-size: 15px;
}
.service-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.feature-tag {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    color: #D4AF37;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image-container {
    border-radius: 50%;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.about-image {
    width: 80%;
    height: auto;
    object-fit: contain;
}

/* CTA Final & Contact Form */
    .cta-final {
        position: relative;
        border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    }
    .cta-background {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.15) 0%, transparent 60%);
    }
    .contact-form-container {
        max-width: 800px;
        margin: 0 auto;
        padding: 40px;
    }
    .contact-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .form-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .form-group.full-width {
        grid-column: 1 / -1;
    }
    .form-group label {
        font-size: 14px;
        color: var(--text-secondary);
        font-weight: 500;
        text-align: left;
    }
    .form-group input,
    .form-group textarea {
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(var(--primary-rgb), 0.3);
        border-radius: 8px;
        padding: 14px 16px;
        color: var(--text-primary);
        font-family: inherit;
        font-size: 16px;
        transition: all 0.3s ease;
    }
    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--primary-400);
        box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
        background: rgba(0, 0, 0, 0.6);
    }
    .form-message {
        display: none;
        padding: 16px;
        border-radius: 8px;
        font-weight: 500;
        margin-top: 1rem;
    }
    .form-message.success {
        display: block;
        background: rgba(34, 197, 94, 0.1);
        color: #4ade80;
        border: 1px solid rgba(34, 197, 94, 0.2);
    }
    .form-message.error {
        display: block;
        background: rgba(239, 68, 68, 0.1);
        color: #f87171;
        border: 1px solid rgba(239, 68, 68, 0.2);
    }
    
    @media (max-width: 768px) {
        .contact-form {
            grid-template-columns: 1fr;
        }
        .contact-form-container {
            padding: 24px;
        }
    }

/* Footer */
.footer {
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    background: var(--bg-secondary);
    padding-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-links h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}
.footer-links a {
    display: block;
    color: var(--text-tertiary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}
.footer-links a:hover { color: #D4AF37; }
.footer-bottom {
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    padding: 24px 0;
    text-align: center;
}

/* Animaciones */
@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); }
}
@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; }
}
@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@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(var(--primary-rgb), 0.5), 0 4px 24px rgba(var(--primary-rgb), 0.4), 0 0 60px rgba(var(--primary-rgb), 0.2); }
    50% { box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.8), 0 8px 40px rgba(var(--primary-rgb), 0.6), 0 0 80px rgba(var(--primary-rgb), 0.4); }
}

/* Observer states */
.animated-element { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.animated-element.animate-in { opacity: 1; transform: translateY(0); }

/* Inicial Hero Animations */
.hero-title { animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-subtitle { animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; opacity: 0; }
.hero-cta-group { animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards; opacity: 0; }
.sphere { animation: fade-in-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards, float 6s ease-in-out infinite 1.2s; opacity: 0; }

/* Responsive Breaks */
@media (min-width: 1024px) and (max-width: 1439px) { /* L */ }
@media (min-width: 768px) and (max-width: 1023px) { /* T */
    .hero-grid, .about-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-cta-group { justify-content: center; }
    .sphere { margin-top: 40px; width: 350px; height: 350px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) { /* M */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .nav-links { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero-grid, .about-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-cta-group { flex-direction: column; }
    .sphere { margin-top: 40px; width: 280px; height: 280px; }
    .services-grid { grid-template-columns: 1fr; }
    .proof-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .particle:nth-child(n+20) { display: none; }
    
    /* Mobile Flip adjustments */
    .service-card-flip { height: 400px; }
    .service-overlay { padding: 30px 16px 16px; }
    
    /* WhatsApp Floating Button Mobile Adjustments */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    box-shadow: 0px 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #20b858;
    box-shadow: 0px 8px 25px rgba(37, 211, 102, 0.6);
    color: #FFF;
}
.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: currentColor;
}
