/* EasyChatBot — Landing & Integrations shared styles */

:root {
    --primary-color: #0077CC;
    --secondary-color: #004C8C;
    --accent-color: #FFC93C;
    --text-dark: #333333;
    --text-light: #6b7280;
    --bg-light: #F4F4F4;
    --pure-white: #FFFFFF;
    --soft-blue: #E6F4FF;
    --whatsapp: #25D366;
    --telegram: #0088cc;
}

body.landing-page,
body.integrations-page {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--pure-white);
}

/* Hero */
.landing-hero {
    background: linear-gradient(135deg, #0077CC 0%, #004C8C 100%);
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.12"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="120" fill="url(%23a)"/><circle cx="800" cy="300" r="180" fill="url(%23a)"/><circle cx="400" cy="750" r="140" fill="url(%23a)"/></svg>');
    opacity: 0.35;
    pointer-events: none;
}

.landing-hero-content {
    position: relative;
    z-index: 2;
}

.landing-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--pure-white);
    margin-bottom: 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.landing-hero-subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2rem;
    max-width: 560px;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    color: var(--pure-white);
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--pure-white);
    color: var(--pure-white);
    transform: translateY(-2px);
}

/* Channel strip */
.channel-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--pure-white);
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
    animation: pillFadeIn 0.6s ease both;
}

.channel-pill i,
.channel-pill img {
    font-size: 1rem;
}

.channel-pill img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.channel-pill--whatsapp i { color: var(--whatsapp); }
.channel-pill--telegram i { color: #54a9eb; }
.channel-pill--facebook i { color: #1877f2; }
.channel-pill--instagram i { color: #e4405f; }

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

/* Chat mockup */
.chat-mockup {
    background: var(--pure-white);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    max-width: 380px;
    margin: 0 auto;
}

.chat-mockup-header {
    background: var(--secondary-color);
    color: var(--pure-white);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-mockup-header img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.chat-mockup-body {
    padding: 1.25rem;
    background: #e5ddd5;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-bubble {
    max-width: 85%;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.45;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.chat-bubble--in {
    background: var(--pure-white);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bubble--out {
    background: #dcf8c6;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--whatsapp);
    margin-bottom: 0.25rem;
}

/* Sections */
.landing-section {
    padding: 100px 0;
}

.landing-section--light {
    background: var(--bg-light);
}

.section-title {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Bento grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}

.bento-card {
    background: var(--pure-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 28px rgba(0, 119, 204, 0.08);
    border: 1px solid rgba(0, 119, 204, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(24px);
}

.bento-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 119, 204, 0.16);
}

.bento-card.is-visible:hover {
    transform: translateY(-6px);
}

.bento-span-7 { grid-column: span 7; }
.bento-span-6 { grid-column: span 6; }
.bento-span-5 { grid-column: span 5; }
.bento-span-4 { grid-column: span 4; }

.bento-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.4rem;
    color: var(--pure-white);
}

.feature-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.badge-nuevo {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.bento-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: var(--text-dark);
}

.bento-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.bento-card-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s ease;
}

.bento-card-link:hover {
    color: var(--secondary-color);
    gap: 0.55rem;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.25rem;
    background: var(--pure-white);
    border-radius: 20px;
    border: 1px solid rgba(0, 119, 204, 0.1);
    box-shadow: 0 6px 20px rgba(0, 119, 204, 0.06);
    transition: transform 0.3s ease;
}

.landing-section--light .step-card {
    background: var(--pure-white);
}

.step-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pure-white);
}

.step-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* CTA */
.landing-cta {
    background: linear-gradient(135deg, #0077CC 0%, #004C8C 100%);
    padding: 100px 0;
    text-align: center;
    color: var(--pure-white);
}

.landing-cta-title {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.landing-cta-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.92;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.landing-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Integrations page */
.integrations-hero {
    background: linear-gradient(135deg, #0077CC 0%, #004C8C 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: var(--pure-white);
}

.integrations-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.integrations-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.92;
    max-width: 700px;
    margin: 0 auto;
}

.integrations-section {
    padding: 80px 0;
}

.integrations-section--white {
    background: var(--pure-white);
}

.integrations-section--light {
    background: var(--bg-light);
}

.native-badge {
    display: inline-block;
    background: var(--soft-blue);
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 119, 204, 0.2);
}

.custom-integration-card {
    background: var(--soft-blue);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    max-width: 860px;
    margin: 0 auto 3rem;
}

.custom-integration-card h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.custom-integration-card p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.75;
    margin: 0;
}

.integration-card {
    background: var(--pure-white);
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(0, 119, 204, 0.08);
    padding: 2rem;
    border: 1px solid rgba(0, 119, 204, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.integration-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 119, 204, 0.16);
    border-color: var(--primary-color);
}

.integration-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.integration-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.process-step {
    background: var(--pure-white);
    border-radius: 15px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(0, 119, 204, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0, 119, 204, 0.12);
}

.process-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pure-white);
    flex-shrink: 0;
}

.process-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.process-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
    .bento-span-7,
    .bento-span-6,
    .bento-span-5,
    .bento-span-4 {
        grid-column: span 6;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .landing-hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .landing-section {
        padding: 70px 0;
    }

    .bento-span-7,
    .bento-span-6,
    .bento-span-5,
    .bento-span-4 {
        grid-column: span 12;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .chat-mockup {
        margin-top: 2.5rem;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bento-card,
    .channel-pill,
    .step-card,
    .integration-card,
    .bento-card-link {
        animation: none !important;
        transition: none !important;
    }

    .bento-card {
        opacity: 1;
        transform: none;
    }
}
