/**
 * WP Toolkit Landing Page Styles
 * Digital Innovation Global LLC
 * Domain: wptoolkit.digitalinnovationglobal.com
 */

:root {
    --primary: #2271b1;
    --primary-dark: #135e96;
    --primary-light: #f0f6fc;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #3b82f6;
    --whatsapp: #25d366;
    --whatsapp-dark: #128c7e;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #646970;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --white: #ffffff;
    --black: #020617;

    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-primary: linear-gradient(135deg, #2271b1 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Tipografía y Títulos */
h1, h2, h3, h4, h5 { color: var(--gray-900); font-weight: 700; line-height: 1.25; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(34, 113, 177, 0.35);
}
.btn-primary:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.45);
}
.btn-secondary {
    background: var(--white);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
}
.btn-secondary:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-success { background: var(--secondary); color: var(--white); }
.btn-success:hover { background: var(--secondary-dark); color: var(--white); }

/* Barra de Navegación */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    height: 72px;
    display: flex;
    align-items: center;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-900);
}
.logo-icon {
    width: 38px; height: 38px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-size: 1.15rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.5px; }
.logo-sub { font-size: 0.7rem; color: var(--gray-500); font-weight: 600; text-transform: uppercase; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
.nav-links a { color: var(--gray-600); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Selector de Idiomas */
.lang-selector {
    position: relative;
    display: inline-block;
}
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
}
.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%; right: 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 130px;
    margin-top: 6px;
    padding: 6px 0;
    z-index: 1010;
}
.lang-dropdown.active { display: block; }
.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: var(--gray-700);
    cursor: pointer;
}
.lang-option:hover { background: var(--gray-100); color: var(--primary); }

/* Menú Móvil */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-800);
}

/* HERO SECTION */
.hero {
    padding: 160px 0 100px 0;
    background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(34, 113, 177, 0.25) 0%, rgba(59, 130, 246, 0) 70%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 24px;
}
.hero-badge-tag {
    background: var(--secondary);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}
.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1.5px;
    max-width: 900px;
    margin: 0 auto 20px auto;
    line-height: 1.15;
}
.hero h1 span.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 780px;
    margin: 0 auto 36px auto;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: #94a3b8;
    font-size: 0.85rem;
    flex-wrap: wrap;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }

/* SECCIÓN COMPARATIVA (Problema vs Solución) */
.section { padding: 90px 0; }
.section-light { background: #f8fafc; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 60px auto; }
.section-tag {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}
.section-title { font-size: 2.3rem; letter-spacing: -0.5px; margin-bottom: 14px; }
.section-desc { font-size: 1.1rem; color: var(--gray-600); }

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.comparison-card {
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--gray-200);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.comparison-card.bad {
    border-top: 4px solid #ef4444;
}
.comparison-card.good {
    border-top: 4px solid var(--secondary);
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.comparison-card h3 { font-size: 1.4rem; margin-bottom: 16px; }
.comparison-list { list-style: none; margin-top: 20px; }
.comparison-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--gray-700);
}

/* GRID DE LOS 10 MÓDULOS */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}
.feature-card h4 { font-size: 1.2rem; margin-bottom: 10px; color: var(--gray-900); }
.feature-card p { font-size: 0.92rem; color: var(--gray-600); line-height: 1.55; }
.feature-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary-dark);
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 14px;
    align-self: flex-start;
}

/* CROSS-SELLING / ECOSISTEMA */
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.eco-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.eco-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.eco-card h4 { font-size: 1.1rem; margin-bottom: 6px; }
.eco-card p { font-size: 0.88rem; color: var(--gray-600); margin-bottom: 16px; }

/* FAQ ACCORDION */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 0;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
}
.faq-answer {
    display: none;
    margin-top: 12px;
    font-size: 0.98rem;
    color: var(--gray-600);
    line-height: 1.6;
}
.faq-item.active .faq-answer { display: block; }
.faq-icon { font-size: 20px; transition: var(--transition); }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* BANNER DE DESCARGA FINAL */
.cta-banner {
    background: var(--gradient-hero);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 70px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner h2 { font-size: 2.5rem; color: #fff; margin-bottom: 16px; }
.cta-banner p { font-size: 1.15rem; color: #94a3b8; max-width: 650px; margin: 0 auto 30px auto; }

/* FOOTER */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 70px 0 30px 0;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #94a3b8; }
.footer ul a:hover { color: #fff; }
.footer-company-info { font-size: 0.85rem; line-height: 1.6; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
}

/* BOTÓN FLOTANTE WHATSAPP (USA Phone +1 786 522 0348) */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--whatsapp);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: var(--transition);
}
.whatsapp-float:hover {
    color: #fff;
    background: var(--whatsapp-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}
.whatsapp-icon {
    width: 22px; height: 22px; fill: currentColor;
}

/* COOKIE BANNER GDPR */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: 20px;
    z-index: 9995;
    display: none;
}
.cookie-banner.active { display: block; animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner p { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 14px; }
.cookie-actions { display: flex; gap: 8px; }

/* RESPONSIVE */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 2.4rem; }
    .comparison-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .hero { padding: 120px 0 70px 0; }
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .whatsapp-float span { display: none; }
    .whatsapp-float { padding: 14px; border-radius: 50%; }
}
