:root {
    /* Colores tomados directamente de la página web (globals.css) */
    --background: 0 0% 7%; /* Fondo más oscuro para mayor contraste */
    --foreground: 0 0% 100%; /* Texto más claro para mayor contraste */
    --card: 0 0% 12%;
    --card-foreground: 0 0% 100%;
    --popover: 0 0% 13%;
    --popover-foreground: 0 0% 95%;
    --primary: 261 70% 52%;  /* Deep Purple más saturado #673AB7 */
    --primary-foreground: 0 0% 100%;
    --primary-rgb: 103, 58, 183;
    --secondary: 261 40% 35%;
    --secondary-foreground: 0 0% 95%;
    --muted: 0 0% 20%;
    --muted-foreground: 0 0% 75%; /* Texto secundario más claro */
    --accent: 231 99% 65%;  /* Electric Blue más brillante #3D5AFE */
    --accent-foreground: 0 0% 100%;
    --accent-rgb: 61, 90, 254;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 25%; /* Bordes más visibles */
    --input: 0 0% 20%;
    --ring: 231 99% 62%;
    --radius: 0.5rem;
}

@keyframes shine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

body {
    font-family: 'Montserrat', 'Segoe UI', 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(var(--primary-rgb), 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(var(--accent-rgb), 0.1) 0%, transparent 30%);
    background-attachment: fixed;
}

header {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.95), rgba(var(--accent-rgb), 0.95));
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?q=80&w=2070') center/cover no-repeat;
    opacity: 0.15;
    z-index: -1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    height: 60px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

main {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0;
}

/* Hero section - Diseño completamente renovado y más impactante */
#hero {
    position: relative;
    padding: 8rem 2rem;
    text-align: center;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1639322537504-6427a16b0a28?q=80&w=1932') center/cover no-repeat;
    opacity: 0.4;
    z-index: -1;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(var(--primary-rgb), 0.3));
    z-index: -1;
}

#hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, hsl(var(--accent)) 20%, hsl(var(--primary-foreground)) 40%, hsl(var(--accent)) 60%, hsl(var(--primary-foreground)) 80%, hsl(var(--accent)) 100%);
    background-size: 250% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 10s linear infinite;
    max-width: 900px;
}

#hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    color: hsl(var(--primary-foreground));
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.6);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.8);
}

.cta-button:hover::before {
    left: 100%;
}

/* Renovación completa de la sección de servicios para un layout más dinámico */
#services-overview {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(to bottom, hsl(var(--background)), rgba(var(--primary-rgb), 0.05));
    overflow: hidden;
}

#services-overview h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#services-overview p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Nuevo diseño fluido y dinámico para los servicios */
.services-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin: 0 -2rem;
    padding: 2rem;
}

.services-carousel::-webkit-scrollbar {
    display: none;
}

.service-card {
    flex: 0 0 auto;
    width: 350px;
    min-height: 450px;
    background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-rgb), 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1535320903710-d993d3d77d29?q=80&w=1470') center/cover no-repeat;
    opacity: 0.1;
    z-index: -1;
    transition: all 0.5s ease;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 0.15;
    transform: scale(1.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: hsl(var(--accent));
    background: rgba(var(--accent-rgb), 0.1);
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(var(--accent-rgb), 0.3);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.2);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.4);
}

.service-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.service-card:hover h3::after {
    width: 100%;
}

.service-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.service-card .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    align-self: flex-start;
    margin-top: auto;
}

/* Renovación de las secciones de servicios detalladas */
.service-detail {
    position: relative;
    padding: 6rem 2rem;
    background: linear-gradient(145deg, rgba(var(--background), 0.95), rgba(var(--card), 0.95));
    overflow: hidden;
    margin: 4rem 0;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.service-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
    filter: blur(5px);
}

#mt5-api-manager::before {
    background-image: url('https://images.unsplash.com/photo-1642790551116-18e150f248e4?q=80&w=2070');
}

#tournament-platform::before {
    background-image: url('https://images.unsplash.com/photo-1559526324-593bc073d938?q=80&w=2070');
}

#automated-trading-systems::before {
    background-image: url('https://images.unsplash.com/photo-1516245834210-c4c142787335?q=80&w=2069');
}

#white-label::before {
    background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=2070');
}

.service-detail-wrapper {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.service-content {
    flex: 1;
    z-index: 1;
}

.service-image-container {
    flex: 1;
    z-index: 1;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    height: 500px;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-detail:hover .service-image-container img {
    transform: scale(1.05);
}

.service-detail h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: hsl(var(--foreground));
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.service-detail h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
    border-radius: 2px;
}

.service-detail p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.feature-list {
    margin: 2rem 0;
    padding-left: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: hsl(var(--accent));
    font-weight: bold;
    font-size: 1.2rem;
}

/* Renovación de la sección Sobre Nosotros */
#about {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.05), rgba(var(--accent-rgb), 0.05));
    overflow: hidden;
    border-radius: 20px;
    margin: 4rem 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=2071') center/cover no-repeat;
    opacity: 0.1;
    z-index: -1;
    filter: blur(5px);
}

#about h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

#about p {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.about-image {
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 3rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Renovación de la sección de contacto */
#contact {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-rgb), 0.1));
    overflow: hidden;
    border-radius: 20px;
    margin: 4rem 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1497032628192-86f99bcd76bc?q=80&w=2070') center/cover no-repeat;
    opacity: 0.1;
    z-index: -1;
    filter: blur(5px);
}

#contact h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

#contact p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 250px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    font-size: 2.5rem;
    color: hsl(var(--accent));
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.contact-method:hover .contact-icon {
    transform: scale(1.2);
    color: hsl(var(--primary));
}

.contact-method h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.contact-method p {
    font-size: 1.1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer renovado */
footer {
    background: linear-gradient(to right, rgba(var(--primary-rgb), 0.95), rgba(var(--accent-rgb), 0.95));
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1579547945413-497e1b99dac0?q=80&w=2039') center/cover no-repeat;
    opacity: 0.05;
    z-index: -1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

footer .logo {
    margin-bottom: 2rem;
    height: 50px;
    animation: none;
}

footer p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Estilos generales revisados para mejor contraste */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    color: hsl(var(--foreground));
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.8rem;
    color: hsl(var(--foreground));
}

p {
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
}

/* Efectos de animación mejorados */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-delay-1 {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* Ajustes responsivos mejorados */
@media (max-width: 1200px) {
    .service-detail-wrapper {
        flex-direction: column;
        gap: 3rem;
    }
    
    .service-image-container {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    #hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.8rem;
    }
    
    #hero p {
        font-size: 1.1rem;
    }
    
    .service-card {
        width: 300px;
        min-height: 400px;
    }
    
    .service-detail h2, #about h2, #contact h2, #services-overview h2 {
        font-size: 2.5rem;
    }
    
    .service-detail p, #about p, #contact p, #services-overview p {
        font-size: 1.1rem;
    }
    
    .contact-methods {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2.3rem;
    }
    
    .service-card {
        width: 280px;
        min-height: 380px;
    }
    
    .service-detail h2, #about h2, #contact h2, #services-overview h2 {
        font-size: 2rem;
    }
}

/* Elementos adicionales para mayor impacto visual */
.highlight-box {
    background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-rgb), 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.highlight-text {
    color: hsl(var(--accent));
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    font-size: 1.3rem;
    line-height: 1.6;
}