/* Dark Theme - Luxurious and Elegant */
:root {
    /* New color scheme */
    --bg-color: #000000;
    --primary-color: #0a0a0a;
    --secondary-color: #111111;
    --accent-color: #d4af37; /* Gold */
    --text-color: #ffffff;
    --text-secondary: #cccccc;
    --text-dark: #111111;
    --card-bg: #111111;
    --card-premium-bg: #1a1a1a;
    --card-elite-bg: #1c1c1c;
    --warning-color: #a8a8a8; /* Light gray for warning */
    --success-color: #d4af37; /* Gold for success */
    
    /* Enhanced shadows for more depth */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.5), 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.5), 0 10px 10px rgba(0, 0, 0, 0.3);
    
    /* Luxury gold accents */
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --gold-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Enhanced body background */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Enhanced card elevation */
.offer-card, .investment-card, .simulator-link-card {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover, .investment-card:hover, .simulator-link-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 10px rgba(212, 175, 55, 0.2);
    transform: translateY(-10px);
}

/* Premium cards with gold accents */
.offer-card.premium, .offer-card.elite, .investment-card.featured {
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.1);
}

.offer-card.premium:hover, .offer-card.elite:hover, .investment-card.featured:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Enhanced section backgrounds */
.hero, .offers-section, .simulator-section, .faq-section, .contact-section, .simulator-links-section {
    background-color: var(--bg-color);
    position: relative;
}

.hero::before, .offers-section::before, .simulator-section::before, .faq-section::before, .contact-section::before, .simulator-links-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/dark-texture.png');
    opacity: 0.05;
    pointer-events: none;
}

/* Enhanced buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.btn:hover::after {
    left: 100%;
}

/* Gold accents for premium elements */
.premium-badge, .elite-badge, .investment-badge {
    background: var(--gold-gradient);
    color: var(--text-dark);
    box-shadow: var(--gold-shadow);
}

/* Enhanced section titles */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

/* Triangle-shaped cards (base styling) */
.triangle-card {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 2rem;
    perspective: 1000px;
}

.triangle-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.triangle-card:hover .triangle-card-inner {
    transform: rotateY(180deg);
}

.triangle-card-front, .triangle-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.triangle-card-front {
    background: linear-gradient(135deg, var(--card-bg), var(--primary-color));
    border: 1px solid rgba(212, 175, 55, 0.2);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.triangle-card-back {
    background: linear-gradient(135deg, var(--card-premium-bg), var(--card-bg));
    border: 1px solid rgba(212, 175, 55, 0.3);
    transform: rotateY(180deg);
}

.triangle-card-title {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    width: 100%;
    white-space: nowrap;
}

/* Enhanced animations for elements */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animated-icon {
    animation: float 3s ease-in-out infinite;
}

/* Enhanced chart background */
.performance-chart {
    position: relative;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.7), rgba(10, 10, 10, 0.9));
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.performance-chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/chart-pattern.png');
    opacity: 0.05;
    pointer-events: none;
}

/* Enhanced simulator */
.algorithm-simulator {
    position: relative;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.8), rgba(26, 26, 26, 0.9));
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.algorithm-simulator:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.1);
}

/* Mobile fixes */
@media (max-width: 768px) {
    .header {
        background-color: rgba(0, 0, 0, 0.95);
    }
    
    .nav-menu {
        background-color: rgba(10, 10, 10, 0.95);
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Animated steps for IA FACTORY */
.step-item {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.step-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--card-bg));
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(212, 175, 55, 0.2);
}

.step-number::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    70% { transform: scale(1.2); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.step-content {
    padding-left: 1rem;
}

.step-title {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Simulator results animation */
@keyframes resultUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); color: var(--accent-color); }
    100% { transform: scale(1); }
}

.result-updated {
    animation: resultUpdate 0.5s ease;
}
