﻿/* ============================================================
   Cuarta Planta - Landing diagnóstico
   Bootstrap base: v5.2.3
   ============================================================ */

:root {
    --cp-primary: #17394d;
    --cp-primary-dark: #0f2b3b;
    --cp-bg: #f4f7f8;
    --cp-border: #dbe3e7;
    --cp-text: #17394d;
    --cp-muted: #6a7d87;
    --cp-good-bg: #e8f5ec;
    --cp-good-text: #24683f;
    --cp-regular-bg: #fff4d7;
    --cp-regular-text: #826300;
    --cp-bad-bg: #fde9e9;
    --cp-bad-text: #983131;
}

.landing-intro h1 {
    margin-bottom: 18px;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 650;
}

.landing-intro .lead {
    color: #34576b;
    font-size: 1.08rem;
}

.intro-note {
    color: var(--cp-muted);
    font-size: .92rem;
}

.question-card {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--cp-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(17, 52, 70, .03);
}

.question-heading {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
}

.question-number {
    display: inline-flex;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin-right: 12px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cp-primary);
    color: #fff;
    font-weight: 700;
    line-height: 1;
}

.question-heading h2 {
    margin: 2px 0 0;
    font-size: 1.2rem;
    line-height: 1.35;
    font-weight: 650;
}

.question-help {
    margin: 5px 0 0;
    color: var(--cp-muted);
    font-size: .9rem;
}

.answer-option {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 11px 14px;
    align-items: center;
    border: 1px solid #b9c6cc;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
    user-select: none;
}

.answer-option:hover {
    border-color: #6d8997;
}

.answer-option input {
    flex: 0 0 auto;
    margin: 0 10px 0 0;
}

.answer-option span {
    display: block;
}

.answer-option.is-selected {
    border-color: var(--cp-primary);
    background: #f0f6f8;
    box-shadow: 0 0 0 1px var(--cp-primary);
}

.answer-option-highlight {
    border-width: 2px;
}

.option-stack .answer-option + .answer-option {
    margin-top: 9px;
}

.conditional-field,
.contact-panel,
.field-error,
.result-section {
    display: none;
}

.conditional-field.is-visible,
.contact-panel.is-visible,
.field-error.is-visible,
.result-section.is-visible {
    display: block;
}

.contact-panel {
    padding: 20px;
    border-radius: 9px;
    background: #f6f9fa;
}

.contact-panel h3 {
    font-size: 1.05rem;
    font-weight: 650;
}

.form-control {
    min-height: 46px;
    border-color: #aebbc1;
    background: #fff;
}

.form-control:focus {
    border-color: var(--cp-primary);
    box-shadow: 0 0 0 .2rem rgba(23, 57, 77, .12);
}

.field-error,
.form-global-error {
    color: #a61d2d;
    font-size: .9rem;
}

.field-error {
    margin-top: 10px;
}

.privacy-copy {
    color: var(--cp-muted);
    font-size: .82rem;
    line-height: 1.6;
}

.privacy-copy a {
    text-decoration: underline;
}

.btn-diagnostico {
    width: 100%;
    min-height: 50px;
    padding-left: 28px;
    padding-right: 28px;
    border-color: var(--cp-primary);
    background: var(--cp-primary);
    font-weight: 650;
}

.btn-diagnostico:hover,
.btn-diagnostico:focus {
    border-color: var(--cp-primary-dark);
    background: var(--cp-primary-dark);
}

.btn-outline-primary {
    border-color: var(--cp-primary);
    color: var(--cp-primary);
}

.btn-outline-primary:hover {
    border-color: var(--cp-primary);
    background: var(--cp-primary);
}

.result-icon {
    display: flex;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cp-primary);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
}

.result-header h2 {
    font-size: 1.8rem;
    font-weight: 650;
}

.result-card {
    margin-bottom: 14px;
    padding: 20px;
    border: 1px solid var(--cp-border);
    border-radius: 10px;
    background: #fff;
}

.result-card h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    font-weight: 650;
}

.result-card p {
    margin: 12px 0 0;
    color: #466371;
}

.result-state {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
}

.result-state-good {
    background: var(--cp-good-bg);
    color: var(--cp-good-text);
}

.result-state-regular {
    background: var(--cp-regular-bg);
    color: var(--cp-regular-text);
}

.result-state-improvable {
    background: var(--cp-bad-bg);
    color: var(--cp-bad-text);
}

.landing-footer {
    margin-top: 35px;
    background: var(--cp-primary);
    color: #fff;
}

.landing-footer h3 {
    margin: 0 0 8px;
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.landing-footer address {
    font-style: normal;
    line-height: 1.6;
}

.landing-footer a {
    color: #fff;
    text-decoration: none;
}

.landing-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links {
    font-size: .9rem;
}

.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .landing-intro h1 {
        font-size: 2.45rem;
    }

    .question-card {
        padding: 28px;
    }

    .btn-diagnostico {
        width: auto;
        min-width: 245px;
    }
}

@media (max-width: 767.98px) {
    .brand-logo {
        height: 44px;
    }

    .landing-footer {
        text-align: center;
    }

    .question-heading h2 {
        font-size: 1.08rem;
    }
}
