/* Landing Page Styles for KuxNexo */
:root {
    --color-bg-landing: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-text-dark: #0F172A;
    --color-text-light: #64748B;
    --color-accent: #3B82F6;
    --color-accent-dark: #1E40AF;
    --font-main: 'Inter', sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    background-color: var(--color-bg-landing);
    overflow-x: hidden;
}

/* Header & Nav */
header.landing-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

header.landing-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--color-accent);
}

nav.landing-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav.landing-nav a {
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 500;
    transition: 0.3s;
}

nav.landing-nav a:hover {
    color: var(--color-accent);
}

.cta-group {
    display: flex;
    gap: 16px;
}

.btn-landing {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline {
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.05);
}

.btn-solid {
    background: var(--color-accent);
    color: white;
}

.btn-solid:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.05), transparent);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    text-align: left;
}

.hero-content {
    flex: 1;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-content h1 {
    font-size: clamp(44px, 4.5vw, 68px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    color: var(--color-text-dark);
}

.hero-content h1 span {
    color: var(--color-accent);
}

.hero-content p {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 500px;
    text-align: left;
}

.hero-image {
    flex: 1;
    max-width: 540px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
}

.hero-image:hover {
    transform: translateY(-4px);
}

/* Bento Grid Features */
.features {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 24px;
}

.bento-item {
    background: white;
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: 0.4s;
    overflow: hidden;
    position: relative;
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.bento-item i {
    font-size: 32px;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.bento-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bento-item p {
    color: var(--color-text-light);
    font-size: 14px;
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-item.tall {
    grid-row: span 2;
}

/* Footer */
footer.landing-footer {
    padding: 80px 0;
    background: var(--color-text-dark);
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 40px !important;
    }

    .hero-content {
        align-items: center !important;
        text-align: center !important;
        max-width: 100% !important;
    }

    .hero-content p {
        text-align: center !important;
        margin: 0 auto 32px !important;
    }

    .hero-content .cta-group {
        justify-content: center !important;
    }

    .hero-image {
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .bento-grid { grid-template-columns: 1fr 1fr; }
    .bento-item.large { grid-column: span 1; }
}

@media (max-width: 768px) {
    .landing-nav { display: none; }
    .hero-content h1 { font-size: clamp(36px, 8vw, 44px) !important; }
    .bento-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

/* Floating WhatsApp Widget */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128C7E;
    box-shadow: 0 8px 30px rgba(18, 140, 126, 0.6);
}

.whatsapp-badge {
    position: absolute;
    right: 75px;
    background: #0f172a;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.whatsapp-float:hover .whatsapp-badge {
    opacity: 1;
    transform: translateX(0);
}

/* WhatsApp Hero CTA Button Hover Style */
.btn-landing.btn-whatsapp:hover {
    transform: translateY(-2px);
    background-color: #128C7E !important;
    box-shadow: 0 8px 25px rgba(18, 140, 126, 0.5) !important;
}

/* Estilos para el Modal de Demo */
.demo-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.demo-modal-content {
    background-color: #1e293b;
    margin: auto;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    color: white;
}

.demo-modal-content h2 {
    margin-top: 0;
    font-size: 24px;
    color: var(--color-accent);
}

.demo-modal-content p {
    color: #94a3b8;
    margin-bottom: 24px;
    font-size: 15px;
}

.demo-close {
    color: #94a3b8;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.demo-close:hover,
.demo-close:focus {
    color: white;
    text-decoration: none;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #cbd5e1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(15, 23, 42, 0.6);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
