/* =============================================================================
   landing.css — Landing pública de AuditorIA (/info)
   Paleta tomada de login.css (navy + blanco + azul), independiente de esa
   hoja para evitar colisiones de selectores.
   ============================================================================= */

.landing-page {
    --lp-navy: #122f5f;
    --lp-navy-dark: #0c274f;
    --lp-blue: #154887;
    --lp-blue-soft: #e9f1fb;
    --lp-red: #d52b3f;
    --lp-text: #12243f;
    --lp-muted: #667085;
    --lp-border: #d8dee8;
    --lp-card-border: rgba(21, 72, 135, 0.4);
    --lp-surface: #ffffff;
    --lp-bg: #f7f8fa;

    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

.landing-page * {
    box-sizing: border-box;
}

.landing-page h1,
.landing-page h2,
.landing-page h3 {
    margin: 0;
    color: var(--lp-navy);
    letter-spacing: -0.02em;
}

.landing-page p {
    margin: 0;
    color: var(--lp-muted);
    line-height: 1.6;
}

.landing-page a {
    color: inherit;
}

/* ---------- Layout helpers ---------- */

.lp-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
}

.lp-container-narrow {
    max-width: 820px;
    text-align: center;
}

.lp-section {
    padding: clamp(56px, 8vw, 96px) 0;
    background: #ffffff;
    border-top: 3px solid var(--lp-navy);
}

.lp-section-alt {
    background: linear-gradient(145deg, var(--lp-navy-dark) 0%, var(--lp-navy) 55%, #173d70 100%);
    border-top: 3px solid #ffffff;
}

.lp-section-alt .lp-kicker {
    color: rgba(255, 255, 255, 0.75);
}

.lp-section-alt h2 {
    color: #ffffff;
}

.lp-section-alt .lp-lead {
    color: rgba(255, 255, 255, 0.85);
}

.lp-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--lp-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lp-container-narrow .lp-kicker {
    display: block;
}

.lp-section h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    margin-bottom: 14px;
}

.lp-lead {
    max-width: 640px;
    font-size: 1rem;
    margin-bottom: 58px;
}

.lp-container-narrow .lp-lead {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Botones ---------- */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    white-space: nowrap;
}

.lp-btn-primary {
    background: var(--lp-surface);
    color: var(--lp-navy) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.lp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.lp-btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}

.lp-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.lp-btn-cta-primary,
.lp-cta-actions a.lp-btn-cta-primary {
    background: #ffffff !important;
    color: var(--lp-navy) !important;
}

.lp-btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.lp-btn-cta-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.lp-btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.lp-btn-block {
    width: 100%;
    margin-top: 6px;
    background: var(--lp-navy);
    color: #fff;
    box-shadow: 0 6px 15px rgba(18, 47, 95, 0.2);
}

.lp-btn-block:hover:not(:disabled) {
    background: #0b2852;
}

.lp-btn-primary.lp-btn-block,
.lp-btn-primary.lp-btn-block .lp-btn-label {
    color: #ffffff !important;
}

.lp-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.lp-btn-spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: lp-spin 0.7s linear infinite;
}

.is-loading .lp-btn-spinner {
    display: inline-block;
}

@keyframes lp-spin {
    to { transform: rotate(360deg); }
}

@keyframes lp-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Hero ---------- */

.lp-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 100vh;
}

.lp-hero-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 6vw, 90px) clamp(36px, 7vw, 110px);
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(145deg, #ffffff 0%, #f4f6f9 100%);
}

.lp-hero-decoration {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: -0.22em;
    transform: translateX(-50%);
    color: rgba(18, 47, 95, 0.035);
    font-size: clamp(28rem, 42vw, 44rem);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.12em;
    user-select: none;
    pointer-events: none;
}

.lp-hero-logo {
    position: relative;
    z-index: 2;
    width: clamp(200px, 17vw, 280px);
    height: auto;
    object-fit: contain;
    margin-bottom: 34px;
    animation: lp-fade-up 0.7s ease both;
}

.lp-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.lp-hero-copy h1 {
    font-size: clamp(2rem, 3.1vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 20px;
    animation: lp-fade-up 0.7s ease 0.12s both;
}

.lp-hero-copy p {
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    max-width: 500px;
    animation: lp-fade-up 0.7s ease 0.24s both;
}

.lp-hero-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px clamp(28px, 5vw, 70px);
    background: linear-gradient(145deg, var(--lp-navy-dark) 0%, var(--lp-navy) 58%, #173d70 100%);
}

.lp-hero-panel-inner {
    max-width: 460px;
    width: 100%;
    color: #ffffff;
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 5px 14px 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    animation: lp-fade-up 0.7s ease both;
}

.lp-eyebrow-logo {
    height: 16px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.lp-hero-lead {
    color: #ffffff !important;
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 60px;
    animation: lp-fade-up 0.7s ease 0.12s both;
}

.lp-feature-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lp-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    line-height: 1.5;
    animation: lp-fade-up 0.7s ease both;
}

.lp-feature-list li:nth-child(1) { animation-delay: 0.22s; }
.lp-feature-list li:nth-child(2) { animation-delay: 0.3s; }
.lp-feature-list li:nth-child(3) { animation-delay: 0.38s; }

.lp-feature-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.85rem;
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.lp-hero-panel-inner .lp-hero-actions {
    animation: lp-fade-up 0.7s ease 0.5s both;
}

.lp-hero-disclaimer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.76rem;
    line-height: 1.5;
    animation: lp-fade-up 0.7s ease 0.58s both;
}

.lp-hero-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
    animation: lp-fade-up 0.7s ease 0.66s both;
}

.lp-quicklink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.lp-quicklink:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.lp-quicklink i {
    font-size: 0.68rem;
}

/* ---------- Checks (¿Qué es?) ---------- */

.lp-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.lp-check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: #ffffff;
    border: 2px solid var(--lp-card-border);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--lp-text);
}

.lp-check-item i {
    color: var(--lp-blue);
    margin-top: 2px;
}

/* ---------- Steps (metodología) ---------- */

.lp-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.lp-step {
    padding: 26px 22px;
    background: var(--lp-bg);
    border: 2px solid var(--lp-card-border);
    border-radius: 12px;
}

.lp-section-alt .lp-step {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.4);
}

.lp-section-alt .lp-step h3 {
    color: #ffffff;
}

.lp-section-alt .lp-step p {
    color: rgba(255, 255, 255, 0.75);
}

.lp-section-alt .lp-step-number {
    background: #ffffff;
    color: var(--lp-navy);
}

.lp-step-number {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--lp-navy);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.lp-step h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.lp-step p {
    font-size: 0.87rem;
}

/* ---------- Módulos ---------- */

.lp-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.lp-module-card {
    padding: 24px 22px;
    background: #ffffff;
    border: 2px solid var(--lp-card-border);
    border-radius: 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lp-module-card:hover {
    transform: translateY(-3px);
    border-color: var(--lp-blue);
    box-shadow: 0 12px 26px rgba(18, 47, 95, 0.1);
}

.lp-module-card i {
    color: var(--lp-blue);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.lp-module-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.lp-module-card p {
    font-size: 0.85rem;
}

/* ---------- Beneficios ---------- */

.lp-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.lp-benefit-card {
    padding: 24px 22px;
    background: var(--lp-bg);
    border: 2px solid var(--lp-card-border);
    border-radius: 12px;
}

.lp-section-alt .lp-benefit-card {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.4);
}

.lp-section-alt .lp-benefit-card i {
    color: #ffffff;
}

.lp-section-alt .lp-benefit-card h3 {
    color: #ffffff;
}

.lp-section-alt .lp-benefit-card p {
    color: rgba(255, 255, 255, 0.75);
}

.lp-benefit-card i {
    color: var(--lp-navy);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.lp-benefit-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.lp-benefit-card p {
    font-size: 0.85rem;
}

/* ---------- Chips (seguridad) ---------- */

.lp-chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.lp-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--lp-blue-soft);
    color: var(--lp-blue);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ---------- CTA final ---------- */

.lp-cta {
    padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 48px);
    background: linear-gradient(145deg, var(--lp-navy-dark) 0%, var(--lp-navy) 55%, #173d70 100%);
    border-top: 3px solid #ffffff;
}

.lp-cta-box {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(44px, 6vw, 72px);
    border-radius: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.lp-cta-box h2 {
    color: #ffffff;
    margin-bottom: 12px;
}

.lp-cta-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.lp-cta-actions {
    justify-content: center;
}

/* ---------- Footer ---------- */

.lp-footer {
    background: var(--lp-navy-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 40px 0 22px;
}

.lp-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 18px;
}

.lp-footer-logo img {
    display: block;
    height: 34px;
    width: auto;
}

.lp-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.lp-footer-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.76rem;
}

.lp-footer-contact {
    display: flex;
    justify-content: flex-end;
}

.lp-footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    text-decoration: none;
}

.lp-footer-contact a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.lp-footer-copy {
    margin-top: 26px;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
}

/* ---------- Modal demo ---------- */

.lp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 14, 30, 0.6);
    backdrop-filter: blur(2px);
}

.lp-modal-overlay.is-open {
    display: flex;
}

.lp-modal {
    position: relative;
    width: min(100%, 460px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 34px 32px 28px;
    background: var(--lp-surface);
    border-radius: 14px;
    box-shadow: 0 30px 70px rgba(1, 18, 47, 0.35);
}

.lp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: var(--lp-bg);
    color: var(--lp-muted);
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.lp-modal-close:hover {
    background: var(--lp-blue-soft);
    color: var(--lp-blue);
}

.lp-modal h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.lp-modal-sub {
    font-size: 0.85rem;
    margin-bottom: 22px;
}

.lp-form-group {
    margin-bottom: 14px;
}

.lp-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #293b55;
    font-size: 0.78rem;
    font-weight: 700;
}

.lp-form-group input,
.lp-form-group textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--lp-border);
    border-radius: 6px;
    outline: 0;
    background: #ffffff;
    color: var(--lp-text);
    font: inherit;
    font-size: 0.88rem;
    resize: vertical;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.lp-form-group input:focus,
.lp-form-group textarea:focus {
    border-color: #2c6eae;
    box-shadow: 0 0 0 3px rgba(44, 110, 174, 0.16);
}

.demo-feedback {
    min-height: 18px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.demo-feedback.success {
    color: #17643a;
}

.demo-feedback.error {
    color: var(--lp-red);
}

/* ---------- Animaciones de aparición al hacer scroll ---------- */

.lp-animate {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.lp-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .lp-animate,
    .lp-hero-logo,
    .lp-eyebrow,
    .lp-hero-copy h1,
    .lp-hero-copy p,
    .lp-hero-lead,
    .lp-feature-list li,
    .lp-hero-panel-inner .lp-hero-actions,
    .lp-hero-disclaimer,
    .lp-hero-quicklinks {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .lp-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .lp-module-grid,
    .lp-benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .lp-hero-brand {
        padding: 40px 24px 32px;
    }

    .lp-hero-decoration {
        font-size: 16rem;
        bottom: -0.1em;
    }

    .lp-hero-panel {
        padding: 36px 24px 48px;
    }

    .lp-check-grid,
    .lp-module-grid,
    .lp-benefit-grid,
    .lp-steps-grid {
        grid-template-columns: 1fr;
    }

    .lp-footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .lp-footer-logo,
    .lp-footer-contact {
        justify-content: center;
    }

    .lp-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}