/**
 * PMAS — Landing pública + modal de acceso
 */

:root {
    --pmas-primary: #2e7d32;
    --pmas-primary-dark: #1b5e20;
    --pmas-primary-light: #e8f5e9;
    --pmas-accent: #4caf50;
    --pmas-text: #1a2e22;
    --pmas-text-muted: #546e5a;
}

/* Campo trampa anti-bots (oculto) */
.pmas-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

body.pmas-landing {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: #1a2e22;
    background: #f4f7f5;
    margin: 0;
}

/* Header */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--pmas-text, #1a2e22);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.landing-logo .pmas-logo,
.landing-logo img {
    max-height: 48px !important;
    width: auto !important;
    max-width: 160px !important;
    height: auto !important;
    display: block;
    transform: none !important;
    object-fit: contain;
}

.landing-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.landing-logo-text strong {
    font-size: 1.2rem;
    color: var(--pmas-primary-dark, #1b5e20);
}

.landing-logo-text small {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--pmas-text-muted, #546e5a);
    letter-spacing: 0.02em;
}

.landing-nav-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 1.25rem;
}

.landing-nav-link:hover {
    color: #2e7d32;
}

.btn-landing-primary {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: #fff;
    border: none;
    font-weight: 700;
    padding: 0.5rem 1.15rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-landing-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.4);
}

.btn-landing-outline {
    background: transparent;
    color: #1b5e20;
    border: 2px solid #a5d6a7;
    font-weight: 700;
    border-radius: 10px;
}

.btn-landing-outline:hover {
    background: #e8f5e9;
    color: #1b5e20;
}

.btn-landing-light {
    background: #fff;
    color: #1b5e20;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.btn-landing-light:hover {
    background: #f8fafc;
    color: #1b5e20;
}

/* Hero */
.landing-hero {
    padding: 4rem 0 5rem;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(46, 125, 50, 0.12), transparent),
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(16, 185, 129, 0.08), transparent),
        #f8fafc;
}

.landing-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #1b5e20;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.landing-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.landing-lead {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.65;
    max-width: 32rem;
}

.landing-hero-stats li {
    display: flex;
    flex-direction: column;
}

.landing-hero-stats strong {
    font-size: 1.25rem;
    color: #0f172a;
}

.landing-hero-stats span {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.landing-hero-card {
    background: linear-gradient(145deg, #00332a 0%, #1b5e20 50%, #2e7d32 100%);
    border-radius: 20px;
    padding: 2px;
    box-shadow: 0 24px 48px rgba(15, 39, 68, 0.25);
}

.landing-hero-card-inner {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
}

.landing-metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 0.75rem;
    color: #fff;
}

.landing-metric:last-child {
    margin-bottom: 0;
}

.landing-metric i {
    font-size: 1.5rem;
    opacity: 0.9;
    width: 2rem;
    text-align: center;
}

.landing-metric small {
    display: block;
    opacity: 0.7;
    font-size: 0.75rem;
}

.landing-metric strong {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Features */
.landing-section {
    padding: 4.5rem 0;
    background: #fff;
}

.landing-section-head {
    max-width: 36rem;
    margin: 0 auto 3rem;
}

.landing-section-head h2 {
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.landing-section-head p {
    color: #64748b;
    margin: 0;
}

.landing-feature {
    height: 100%;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    transition: transform 0.2s, box-shadow 0.2s;
}

.landing-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    background: #fff;
}

.landing-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.landing-feature h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.landing-feature p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

/* CTA band */
.landing-cta-band {
    padding: 4rem 0;
    background: linear-gradient(135deg, #00332a 0%, #2e7d32 100%);
    color: #fff;
}

.landing-cta-band h2 {
    color: #fff;
    font-weight: 800;
}

.landing-cta-band p {
    opacity: 0.9;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.landing-footer {
    padding: 1.5rem 0;
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Modal login */
.landing-modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

.landing-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e8f5e9;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

#modalLogin .modal-title {
    font-weight: 800;
    font-size: 1.25rem;
}

#modalLogin .input-group-text {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

@media (max-width: 767.98px) {
    .landing-hero {
        padding: 2.5rem 0 3rem;
        text-align: center;
    }

    .landing-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .landing-hero-cta {
        justify-content: center;
    }

    .landing-hero-stats {
        justify-content: center;
    }

    .landing-hero-card {
        margin-top: 1rem;
    }
}
