/**
 * Livendix Landing — alineado con la app (livendi.css)
 */
:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --secondary: #004E89;
    --secondary-light: #0066B3;
    --accent: #00C49A;
    --dark: #1A1A2E;
    --light: #F5F7FA;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #888888;
    --border: #E1E8ED;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(0, 78, 137, 0.08);
    --shadow-hover: 0 12px 32px rgba(0, 78, 137, 0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header — mismo espíritu que la app */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--secondary);
    box-shadow: 0 4px 20px rgba(0, 78, 137, 0.35);
}

.site-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    gap: 16px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-link img {
    height: 40px;
    width: auto;
    max-width: 220px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 196, 154, 0.35);
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
}

/* Hero */
.hero {
    background: linear-gradient(160deg, var(--secondary) 0%, var(--secondary-light) 45%, var(--dark) 100%);
    color: #fff;
    padding: 56px 0 72px;
    text-align: center;
}

.hero-logo {
    height: 52px;
    width: auto;
    max-width: 300px;
    margin-bottom: 24px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-lead {
    font-size: 1.15rem;
    opacity: 0.92;
    max-width: 580px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding: 8px 16px;
    background: rgba(0, 196, 154, 0.2);
    border: 1px solid rgba(0, 196, 154, 0.45);
    border-radius: 999px;
    font-size: 0.88rem;
    color: #e8fff8;
}

/* Sections */
.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
}

.features {
    padding: 72px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--light);
    padding: 1.75rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--secondary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Install section */
.install-section {
    padding: 72px 0;
    background: linear-gradient(180deg, #fff 0%, var(--light) 100%);
}

.install-section-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: var(--radius);
    border: 2px solid rgba(0, 78, 137, 0.12);
    box-shadow: var(--shadow);
}

.install-section-card .app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    object-fit: cover;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 78, 137, 0.2);
}

.install-section-card h2 {
    font-size: 1.65rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.install-section-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.02rem;
}

.install-platforms {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.install-platforms span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.install-platforms i {
    color: var(--accent);
}

/* Pricing */
.pricing {
    padding: 72px 0;
    background: var(--light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1050px;
    margin: 0 auto;
}

.pricing-card {
    background: #fff;
    padding: 1.75rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.25s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 8px 28px rgba(255, 107, 53, 0.15);
}

.pricing-card.popular::before {
    content: 'Más popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pricing-card h3 {
    font-size: 1.35rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.price span {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    margin: 1rem 0 1.25rem;
    text-align: left;
    font-size: 0.9rem;
}

.features-list li {
    margin-bottom: 0.45rem;
    padding-left: 1.4rem;
    position: relative;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.features-list li.feature-excluded::before {
    content: '✗';
    color: #c0392b;
}

.features-list li.feature-excluded {
    color: var(--text-muted);
}

.pricing-card .btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* CTA final */
.cta-final {
    padding: 72px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    color: #fff;
    text-align: center;
}

.cta-final h2 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    margin-bottom: 1rem;
}

.cta-final p {
    opacity: 0.9;
    margin-bottom: 1.75rem;
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 48px 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-brand img {
    height: 36px;
    width: auto;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 280px;
}

.footer-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.4rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #fff;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.65;
}

/* PWA modal (landing) */
.landing-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.65);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.landing-modal.active {
    display: flex;
}

.landing-modal-content {
    background: #fff;
    border-radius: var(--radius);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.landing-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.landing-modal-header h3 {
    color: var(--secondary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0 4px;
}

.install-app-notice {
    background: rgba(0, 78, 137, 0.08);
    border: 1px solid rgba(0, 78, 137, 0.2);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text);
    text-align: left;
}

.install-app-notice p {
    margin: 0;
}

.install-app-intro {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.install-app-native-btn {
    width: 100%;
    margin-bottom: 1rem;
    padding: 14px;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    display: none;
}

.install-app-native-btn.visible {
    display: block;
}

.install-app-steps {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.install-app-step {
    display: grid;
    grid-template-columns: 28px 28px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.install-app-step:last-child {
    border-bottom: none;
}

.install-app-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.install-app-step-icon {
    color: var(--primary);
    padding-top: 4px;
}

.install-app-tip {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--light);
    padding: 10px 12px;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.hidden {
    display: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.55s ease-out;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 40px 0 56px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}
