/* ============================================
   CSS FINAL ELEGANTE - COLOR #16213e
   NegociarteMC - Diseño Sofisticado y Moderno
   Optimizado para contraste perfecto
   ============================================ */

:root {
    /* PALETA PRINCIPAL - ELEGANTE Y SOFISTICADA */
    --azul-oscuro-principal: #16213e;     /* Color principal ELEGANTE */
    --azul-oscuro-profundo: #0d1829;      /* Más oscuro para profundidad */
    --azul-medio-elegante: #1e3a5f;       /* Azul medio sofisticado */
    --azul-electrico: #3b82f6;            /* Azul vibrante para acentos */
    --azul-claro-brillante: #60a5fa;      /* Azul claro luminoso */
    --cyan-energia: #06b6d4;              /* Cyan energético */
    
    /* GRADIENTES ELEGANTES */
    --gradiente-principal: linear-gradient(135deg, #16213e 0%, #1e3a5f 50%, #3b82f6 100%);
    --gradiente-oscuro: linear-gradient(135deg, #0d1829 0%, #16213e 100%);
    --gradiente-electrico: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --gradiente-cyan: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --gradiente-overlay: linear-gradient(135deg, rgba(22, 33, 62, 0.97) 0%, rgba(59, 130, 246, 0.85) 100%);
    
    /* TEXTOS OPTIMIZADOS PARA FONDO OSCURO */
    --blanco-puro: #ffffff;               /* Blanco para títulos principales */
    --blanco-suave: #f8fafc;              /* Blanco suave para textos */
    --gris-claro-luminoso: #e2e8f0;       /* Gris muy claro - ALTA LEGIBILIDAD */
    --gris-medio-claro: #cbd5e1;          /* Gris medio claro - MUY VISIBLE */
    --gris-suave: #94a3b8;                /* Gris suave para detalles */
    
    /* TEXTOS PARA FONDOS CLAROS */
    --texto-oscuro: #1e293b;              /* Texto oscuro para fondos blancos */
    --texto-medio: #475569;               /* Texto medio para descripciones */
    
    /* FONDOS */
    --fondo-ultra-claro: #f8fafc;         /* Fondo casi blanco */
    --fondo-blanco: #ffffff;              /* Fondo blanco puro */
    --fondo-suave: #f1f5f9;               /* Fondo suave grisáceo */
    
    /* COLORES DE ACCIÓN */
    --verde-exito: #10b981;               /* Verde esmeralda */
    --verde-hover: #059669;               /* Verde oscuro hover */
    --naranja-acento: #f59e0b;            /* Naranja cálido */
    --rojo-alerta: #ef4444;               /* Rojo vibrante */
    --amarillo-dorado: #fbbf24;           /* Dorado para estrellas */
    
    /* SOMBRAS ELEGANTES */
    --sombra-sm: 0 2px 8px rgba(22, 33, 62, 0.08);
    --sombra-md: 0 4px 16px rgba(22, 33, 62, 0.12);
    --sombra-lg: 0 10px 30px rgba(22, 33, 62, 0.15);
    --sombra-xl: 0 20px 40px rgba(22, 33, 62, 0.2);
    --sombra-2xl: 0 30px 60px rgba(22, 33, 62, 0.25);
    --sombra-azul-brillante: 0 10px 40px rgba(59, 130, 246, 0.35);
    --sombra-cyan: 0 8px 32px rgba(6, 182, 212, 0.3);
    
    /* BORDES Y EFECTOS */
    --border-radius-sm: 10px;
    --border-radius-md: 14px;
    --border-radius-lg: 18px;
    --border-radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   GLOBALES OPTIMIZADOS
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--texto-oscuro);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--fondo-blanco);
}

::selection {
    background: var(--azul-electrico);
    color: var(--blanco-puro);
}

/* ========================================
   HEADER ELEGANTE
   ======================================== */

.site-header {
    background: var(--azul-oscuro-principal) !important;
    box-shadow: var(--sombra-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.site-header.scrolled {
    background: var(--azul-oscuro-profundo) !important;
    box-shadow: var(--sombra-lg);
}

/* Logo */
.site-logo img {
    max-height: 60px;
    transition: var(--transition);
    filter: brightness(1.1);
}

/* Navegación - TEXTOS BLANCOS LUMINOSOS */
.main-menu a,
nav a,
.menu-item a,
.elementor-nav-menu a {
    color: var(--blanco-suave) !important;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    position: relative;
    transition: var(--transition);
}

.main-menu a:hover,
nav a:hover,
.menu-item a:hover,
.elementor-nav-menu a:hover,
.main-menu a.active,
nav a.active {
    color: var(--azul-claro-brillante) !important;
}

.main-menu a::after,
nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradiente-electrico);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 3px;
}

.main-menu a:hover::after,
nav a:hover::after,
.main-menu a.active::after {
    width: 100%;
}

/* ========================================
   BOTONES PREMIUM
   ======================================== */

.btn,
button[type="submit"],
.elementor-button,
.wp-block-button__link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px !important;
    border-radius: var(--border-radius-md) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    cursor: pointer;
    border: none !important;
    position: relative;
    overflow: hidden;
}

/* Botón Primario - Gradiente Elegante */
.btn-primary,
button[type="submit"],
.elementor-button-primary,
.wp-block-button__link {
    background: var(--gradiente-principal) !important;
    color: var(--blanco-puro) !important;
    box-shadow: var(--sombra-azul-brillante);
}

.btn-primary:hover,
button[type="submit"]:hover,
.elementor-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.5);
    color: var(--blanco-puro) !important;
}

/* Botón Secundario */
.btn-secondary {
    background: transparent !important;
    color: var(--azul-electrico) !important;
    border: 2px solid var(--azul-electrico) !important;
}

.btn-secondary:hover {
    background: var(--azul-electrico) !important;
    color: var(--blanco-puro) !important;
}

/* Botón Verde Éxito */
.btn-success {
    background: var(--gradiente-cyan) !important;
    color: var(--blanco-puro) !important;
    box-shadow: var(--sombra-cyan);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.45);
}

/* ========================================
   HERO SECTION - FONDO #16213e
   ======================================== */

.hero-section,
.elementor-section.hero-section {
    background: var(--azul-oscuro-principal) !important;
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradiente-overlay);
    z-index: 1;
}

/* Patrón luminoso */
.hero-section::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-40px, -40px) rotate(180deg); }
}

/* TEXTOS DEL HERO - BLANCOS BRILLANTES */
.hero-content,
.hero-section .elementor-widget-heading,
.hero-section .elementor-heading-title,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p {
    position: relative;
    z-index: 2;
    color: var(--blanco-puro) !important;
}

.hero-content h1,
.hero-section h1,
.hero-section .elementor-heading-title {
    color: var(--blanco-puro) !important;
    font-size: clamp(42px, 6vw, 68px) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    margin-bottom: 24px !important;
    letter-spacing: -0.03em !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p,
.hero-section p,
.hero-subtitle {
    color: var(--gris-claro-luminoso) !important;
    font-size: clamp(18px, 3vw, 24px) !important;
    opacity: 1 !important;
    margin-bottom: 40px !important;
    line-height: 1.6 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Stats Cards - Transparentes Luminosas */
.hero-stats,
.stat-card {
    position: relative;
    z-index: 2;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 30px 38px !important;
    border-radius: var(--border-radius-lg) !important;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.4) !important;
}

.stat-card .number,
.stat-card h2,
.stat-card h3 {
    font-size: 50px !important;
    font-weight: 900 !important;
    color: var(--blanco-puro) !important;
    display: block;
    margin-bottom: 10px !important;
}

.stat-card .label,
.stat-card p {
    font-size: 15px !important;
    color: var(--gris-claro-luminoso) !important;
    font-weight: 500 !important;
}

/* ========================================
   SECCIONES CON FONDO OSCURO
   ======================================== */

.section-dark,
.elementor-section.section-dark {
    background: var(--azul-oscuro-principal) !important;
    color: var(--blanco-puro) !important;
    padding: 100px 0;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark .section-title,
.section-dark .elementor-heading-title {
    color: var(--blanco-puro) !important;
}

.section-dark p,
.section-dark .section-subtitle {
    color: var(--gris-claro-luminoso) !important;
}

/* ========================================
   SECCIONES CON FONDO CLARO
   ======================================== */

.section-light,
.section-white {
    background: var(--fondo-ultra-claro);
    padding: 100px 0;
}

.section-white {
    background: var(--fondo-blanco);
}

/* Títulos en Fondos Claros */
.section-title,
.elementor-heading-title,
h1, h2, h3, h4 {
    color: var(--azul-oscuro-principal) !important;
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-subtitle,
.elementor-widget-text-editor p {
    color: var(--texto-medio);
    font-size: 19px;
    line-height: 1.7;
}

/* Label Premium */
.section-label {
    display: inline-block;
    background: var(--gradiente-electrico);
    color: var(--blanco-puro);
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    box-shadow: var(--sombra-azul-brillante);
}

/* ========================================
   TARJETAS DE SERVICIO
   ======================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 36px;
    margin-top: 60px;
}

.service-card {
    background: var(--fondo-blanco) !important;
    border-radius: var(--border-radius-xl) !important;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--sombra-md);
    border: 2px solid var(--fondo-suave) !important;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradiente-electrico);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-14px);
    box-shadow: var(--sombra-2xl);
    border-color: var(--azul-electrico) !important;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card h3 {
    color: var(--azul-oscuro-principal) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
}

.service-card p,
.service-description {
    color: var(--texto-medio) !important;
    line-height: 1.7 !important;
}

.service-features li {
    color: var(--texto-oscuro) !important;
}

.service-features li::before {
    content: '✓';
    color: var(--verde-exito) !important;
}

/* ========================================
   PROCESO TIMELINE
   ======================================== */

.process-section {
    background: var(--fondo-suave);
    padding: 100px 0;
}

.process-step {
    background: var(--fondo-blanco) !important;
    padding: 42px 38px !important;
    border-radius: var(--border-radius-xl) !important;
    box-shadow: var(--sombra-sm);
    border: 2px solid var(--fondo-suave) !important;
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-xl);
    border-color: var(--azul-electrico) !important;
}

.process-number {
    background: var(--gradiente-principal) !important;
    color: var(--blanco-puro) !important;
    width: 58px !important;
    height: 58px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px !important;
    font-weight: 900 !important;
    box-shadow: var(--sombra-azul-brillante);
    border: 4px solid var(--fondo-blanco) !important;
}

.process-step h3 {
    color: var(--azul-oscuro-principal) !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}

.process-step p {
    color: var(--texto-medio) !important;
}

/* ========================================
   CTA SECTION - FONDO #16213e
   ======================================== */

.cta-section {
    background: var(--azul-oscuro-principal) !important;
    color: var(--blanco-puro) !important;
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h1,
.cta-section h2,
.cta-section h3 {
    color: var(--blanco-puro) !important;
    font-size: clamp(38px, 5vw, 56px) !important;
    font-weight: 800 !important;
    margin-bottom: 24px !important;
}

.cta-section p {
    color: var(--gris-claro-luminoso) !important;
    font-size: 21px !important;
    margin-bottom: 40px !important;
    opacity: 1 !important;
}

/* Botón Blanco para CTA */
.btn-white {
    background: var(--blanco-puro) !important;
    color: var(--azul-oscuro-principal) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    color: var(--azul-oscuro-principal) !important;
}

/* ========================================
   TESTIMONIOS - FONDO OSCURO
   ======================================== */

.testimonials-section {
    background: var(--azul-oscuro-profundo) !important;
    color: var(--blanco-puro) !important;
    padding: 100px 0;
}

.testimonials-section h2,
.testimonials-section .section-title {
    color: var(--blanco-puro) !important;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.07) !important;
    backdrop-filter: blur(20px);
    padding: 42px 38px !important;
    border-radius: var(--border-radius-xl) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    transition: var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4) !important;
}

.testimonial-text {
    color: var(--gris-claro-luminoso) !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
}

.testimonial-info h4 {
    color: var(--blanco-puro) !important;
}

.testimonial-info p {
    color: var(--gris-medio-claro) !important;
}

/* ========================================
   FOOTER - FONDO #16213e
   ======================================== */

footer,
.site-footer,
.footer-principal {
    background: var(--azul-oscuro-principal) !important;
    color: var(--gris-claro-luminoso) !important;
    padding: 60px 0 0 !important;
}

footer h1,
footer h2,
footer h3,
footer h4,
.footer-principal h3 {
    color: var(--blanco-puro) !important;
}

footer p,
footer a,
.footer-principal a {
    color: var(--gris-claro-luminoso) !important;
}

footer a:hover,
.footer-principal a:hover {
    color: var(--azul-claro-brillante) !important;
}

/* ========================================
   UTILIDADES
   ======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.text-center { text-align: center; }
.text-white { color: var(--blanco-puro) !important; }
.text-light { color: var(--gris-claro-luminoso) !important; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-section,
    .section,
    .section-dark,
    .section-light {
        padding: 60px 0 !important;
    }
    
    .hero-section {
        min-height: 600px !important;
    }
}

@media (max-width: 480px) {
    .section-title,
    h1, h2 {
        font-size: 32px !important;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* IMPORTANTE: Asegurar que los textos se vean */
.elementor-widget-heading .elementor-heading-title {
    color: inherit !important;
}

.elementor-section-dark .elementor-heading-title,
.hero-section .elementor-heading-title {
    color: var(--blanco-puro) !important;
}