* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


:root {

    --primary: #169978;
    --primary-dark: #0f725a;
    --primary-light: #e9f8f3;

    --text: #18302a;
    --text-light: #60726d;

    --background: #f6faf8;
    --white: #ffffff;

    --border: #dce8e4;

    --warning: #e6a23c;

    --shadow:
        0 18px 50px
        rgba(16, 61, 50, 0.08);
}


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        var(--background);

    color:
        var(--text);

    line-height: 1.6;
}


button {
    font-family: inherit;
}


.container {

    width:
        min(1120px, 90%);

    margin: auto;
}


/* ======================================================
   HEADER
====================================================== */

.header {

    background:
        rgba(255, 255, 255, 0.94);

    border-bottom:
        1px solid var(--border);

    position: sticky;
    top: 0;

    z-index: 10;
}


.nav {

    min-height: 72px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;
}


.logo {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 21px;

    font-weight: 800;

    letter-spacing: 0.5px;
}


.logo-icon {

    width: 36px;
    height: 36px;

    background:
        var(--primary);

    color: white;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 900;
}


.nav-button {

    border: none;

    background:
        var(--primary-light);

    color:
        var(--primary-dark);

    padding:
        11px 18px;

    border-radius: 10px;

    font-weight: 700;

    cursor: pointer;
}


/* ======================================================
   HERO
====================================================== */

.hero {

    padding:
        105px 0
        95px;
}


.hero-grid {

    display: grid;

    grid-template-columns:
        1.05fr
        0.95fr;

    gap: 70px;

    align-items: center;
}


.badge,
.section-tag,
.cta-tag {

    display: inline-block;

    color:
        var(--primary-dark);

    background:
        var(--primary-light);

    padding:
        8px 14px;

    border-radius: 999px;

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 18px;
}


.hero h1 {

    font-size:
        clamp(42px, 6vw, 68px);

    line-height: 1.03;

    letter-spacing: -2px;

    margin-bottom: 24px;
}


.hero h1 span {

    color:
        var(--primary);
}


.hero-description {

    max-width: 620px;

    font-size: 19px;

    color:
        var(--text-light);

    margin-bottom: 32px;
}


.hero-actions {

    margin-bottom: 26px;
}


.primary-button,
.secondary-button {

    border: none;

    background:
        var(--primary);

    color: white;

    padding:
        16px 26px;

    border-radius: 12px;

    font-size: 16px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 12px 28px
        rgba(22, 153, 120, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.primary-button:hover,
.secondary-button:hover {

    transform:
        translateY(-2px);

    background:
        var(--primary-dark);

    box-shadow:
        0 16px 34px
        rgba(22, 153, 120, 0.28);
}


.trust-list {

    display: flex;

    flex-wrap: wrap;

    gap:
        10px 22px;

    color:
        var(--text-light);

    font-size: 14px;
}


.trust-item {

    display: flex;

    align-items: center;

    gap: 7px;
}


.trust-item span {

    color:
        var(--primary);

    font-weight: bold;
}


/* ======================================================
   PRIVACIDAD
====================================================== */

.privacy-note {

    max-width: 620px;

    margin-top: 22px;

    padding:
        16px 18px;

    background:
        rgba(255, 255, 255, 0.7);

    border:
        1px solid var(--border);

    border-radius: 14px;

    font-size: 13px;

    line-height: 1.6;
}


.privacy-note strong {

    display: block;

    margin-bottom: 3px;
}


.privacy-note p {

    margin: 0;

    color:
        var(--text-light);
}


.privacy-link {

    margin-top: 8px;

    padding: 0;

    border: none;

    background:
        transparent;

    color:
        var(--primary-dark);

    font-weight: 700;

    cursor: pointer;
}


/* ======================================================
   SCORE CARD
====================================================== */

.hero-card {

    display: flex;

    justify-content: center;
}


.score-card {

    width:
        min(100%, 470px);

    background:
        var(--white);

    border:
        1px solid var(--border);

    border-radius: 24px;

    padding: 30px;

    box-shadow:
        var(--shadow);
}


.score-header {

    display: flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap: 20px;

    margin-bottom: 28px;
}


.small-label {

    color:
        var(--text-light);

    font-size: 13px;

    margin-bottom: 3px;
}


.status-badge {

    background:
        var(--primary-light);

    color:
        var(--primary-dark);

    padding:
        7px 11px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 800;
}


.score-main {

    display: flex;

    justify-content: center;

    margin-bottom: 30px;
}


.score-circle {

    width: 145px;
    height: 145px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at center,
            white 60%,
            transparent 61%
        ),
        conic-gradient(
            var(--primary) 74%,
            #e5eeeb 0
        );

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;
}


.score-number {

    font-size: 42px;

    font-weight: 900;

    line-height: 1;
}


.score-total {

    color:
        var(--text-light);

    font-size: 14px;
}


.metric {

    margin-top: 18px;
}


.metric-top {

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    margin-bottom: 7px;

    font-size: 14px;
}


.progress {

    height: 9px;

    border-radius: 999px;

    background: #e7efec;

    overflow: hidden;
}


.progress-fill {

    height: 100%;

    background:
        var(--primary);

    border-radius: inherit;
}


.progress-fill.warning {

    background:
        var(--warning);
}


.width-82 {
    width: 82%;
}

.width-69 {
    width: 69%;
}

.width-58 {
    width: 58%;
}

.width-76 {
    width: 76%;
}


/* ======================================================
   FEATURES
====================================================== */

.features {

    padding:
        90px 0
        105px;

    background: white;
}


.section-heading {

    text-align: center;

    max-width: 720px;

    margin:
        0 auto
        55px;
}


.section-heading h2 {

    font-size:
        clamp(30px, 4vw, 44px);

    margin-bottom: 12px;

    letter-spacing: -1px;
}


.section-heading p {

    color:
        var(--text-light);

    font-size: 17px;
}


.feature-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}


.feature-card {

    padding: 26px;

    border:
        1px solid var(--border);

    border-radius: 18px;

    background: white;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.feature-card:hover {

    transform:
        translateY(-4px);

    box-shadow:
        var(--shadow);
}


.feature-icon {

    width: 44px;
    height: 44px;

    border-radius: 12px;

    background:
        var(--primary-light);

    color:
        var(--primary-dark);

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 900;

    margin-bottom: 18px;
}


.feature-card h3 {

    margin-bottom: 8px;
}


.feature-card p {

    color:
        var(--text-light);

    font-size: 14px;
}


/* ======================================================
   CTA
====================================================== */

.cta {

    padding:
        100px 0;
}


.cta-card {

    background:
        linear-gradient(
            135deg,
            #123d34,
            #176f5c
        );

    color: white;

    padding: 48px;

    border-radius: 26px;

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 30px;
}


.cta-card h2 {

    font-size: 36px;

    margin-bottom: 8px;
}


.cta-card p {

    color:
        rgba(
            255,
            255,
            255,
            0.78
        );

    max-width: 600px;
}


.cta-tag {

    background:
        rgba(
            255,
            255,
            255,
            0.13
        );

    color: white;
}


/* ======================================================
   FOOTER
====================================================== */

footer {

    background:
        #102c26;

    color: white;

    padding:
        28px 0;
}


.footer-content {

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 20px;
}


.footer-content p {

    color:
        rgba(
            255,
            255,
            255,
            0.65
        );

    font-size: 14px;
}


/* ======================================================
   QUESTION MODAL
====================================================== */

.question-modal {

    position: fixed;

    inset: 0;

    background:
        rgba(10, 35, 29, 0.62);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    z-index: 100;
}


.question-box {

    width:
        min(620px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    background: white;

    border-radius: 24px;

    padding: 32px;

    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, 0.18);
}


.question-top {

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    margin-bottom: 18px;
}


#questionCategory {

    color:
        var(--primary-dark);

    background:
        var(--primary-light);

    padding:
        7px 12px;

    border-radius: 999px;

    font-size: 13px;

    font-weight: 800;
}


.close-question {

    border: none;

    background: transparent;

    font-size: 30px;

    color:
        var(--text-light);

    cursor: pointer;
}


.question-progress {

    width: 100%;

    height: 8px;

    background:
        #e7efec;

    border-radius: 999px;

    overflow: hidden;

    margin-bottom: 12px;
}


.question-progress-fill {

    height: 100%;

    background:
        var(--primary);

    border-radius: inherit;

    transition:
        width 0.3s ease;
}


.question-counter {

    color:
        var(--text-light);

    font-size: 13px;

    margin-bottom: 16px;
}


.question-box h2 {

    font-size: 28px;

    line-height: 1.25;

    margin-bottom: 26px;
}


.answer-list {

    display: grid;

    gap: 12px;
}


.answer-button {

    width: 100%;

    text-align: left;

    padding:
        16px 18px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background: white;

    color:
        var(--text);

    font-size: 15px;

    cursor: pointer;

    transition:
        border 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.answer-button:hover {

    border-color:
        var(--primary);

    background:
        var(--primary-light);

    transform:
        translateX(3px);
}


.selected-answer {

    border-color:
        var(--primary);

    background:
        var(--primary-light);
}


.question-navigation {

    margin-top: 24px;
}


.back-button {

    border: none;

    background: transparent;

    color:
        var(--primary-dark);

    font-weight: 800;

    cursor: pointer;

    padding:
        8px 0;
}


/* ======================================================
   RESULTADOS
====================================================== */

.nano-result {

    text-align: center;
}


.nano-result h2 {

    margin-bottom: 20px;
}


.result-score-circle {

    width: 150px;
    height: 150px;

    margin:
        10px auto
        16px;

    border-radius: 50%;

    background:
        var(--primary-light);

    border:
        10px solid var(--primary);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}


.result-score {

    font-size: 46px;

    font-weight: 900;

    line-height: 1;
}


.result-score-circle span:last-child {

    color:
        var(--text-light);

    font-size: 14px;
}


.result-level {

    font-size: 22px;

    color:
        var(--primary-dark);

    margin-bottom: 10px;
}


.result-explanation {

    max-width: 500px;

    margin:
        0 auto
        28px;

    color:
        var(--text-light);

    font-size: 14px;
}


.result-categories {

    text-align: left;

    margin-bottom: 32px;
}


.result-category {

    margin-bottom: 18px;
}


.result-category-top {

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    margin-bottom: 7px;
}


/* ======================================================
   RECOMENDACIONES
====================================================== */

.recommendations {

    text-align: left;

    margin:
        30px 0;
}


.recommendations > h3 {

    margin-bottom: 18px;
}


.recommendation-card {

    display: flex;

    gap: 14px;

    padding: 17px;

    background:
        #f7faf9;

    border:
        1px solid var(--border);

    border-radius: 14px;

    margin-bottom: 12px;
}


.recommendation-number {

    min-width: 32px;

    height: 32px;

    border-radius: 50%;

    background:
        var(--primary);

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 800;
}


.recommendation-card h4 {

    margin-bottom: 4px;
}


.recommendation-card p {

    color:
        var(--text-light);

    font-size: 14px;
}


/* ======================================================
   OPORTUNIDADES
====================================================== */

.opportunities {

    text-align: left;

    margin:
        30px 0;
}


.opportunities > h3 {

    margin-bottom: 16px;
}


.opportunity-card {

    padding: 16px;

    background:
        #fffaf2;

    border:
        1px solid #f0dfbd;

    border-radius: 14px;

    margin-bottom: 12px;
}


.opportunity-area {

    display: inline-block;

    margin-bottom: 7px;

    padding:
        4px 9px;

    border-radius: 999px;

    background:
        #fff0cf;

    color:
        #996100;

    font-size: 12px;

    font-weight: 800;
}


.opportunity-card h4 {

    margin-bottom: 4px;
}


.opportunity-card p {

    color:
        var(--text-light);

    font-size: 14px;
}


/* ======================================================
   RESULTADO GUARDADO
====================================================== */

.saved-result-button {

    display: none;

    margin-left: 12px;

    border:
        1px solid var(--primary);

    background: white;

    color:
        var(--primary-dark);

    padding:
        15px 22px;

    border-radius: 12px;

    font-size: 15px;

    font-weight: 800;

    cursor: pointer;

    align-items: center;

    justify-content: center;
}


.result-actions {

    display: flex;

    gap: 12px;

    justify-content: center;

    flex-wrap: wrap;
}


.restart-button {

    border:
        1px solid var(--border);

    background: white;

    color:
        var(--text);

    padding:
        15px 22px;

    border-radius: 12px;

    font-size: 15px;

    font-weight: 800;

    cursor: pointer;
}


.close-result {

    display: block;

    margin-left: auto;

    border: none;

    background: transparent;

    color:
        var(--text-light);

    font-size: 30px;

    cursor: pointer;
}


/* ======================================================
   ENCUESTA
====================================================== */

.survey-invitation {

    margin:
        38px 0 28px;

    padding: 26px;

    border-radius: 18px;

    background:
        var(--primary-light);

    border:
        1px solid #cce9df;

    text-align: center;
}


.survey-tag {

    display: inline-block;

    padding:
        6px 11px;

    margin-bottom: 10px;

    border-radius: 999px;

    background: white;

    color:
        var(--primary-dark);

    font-size: 12px;

    font-weight: 800;
}


.survey-invitation h3 {

    font-size: 23px;

    margin-bottom: 8px;
}


.survey-invitation p {

    max-width: 470px;

    margin:
        0 auto 20px;

    color:
        var(--text-light);

    font-size: 14px;
}


.survey-complete {

    text-align: center;

    padding:
        30px 0;
}


.survey-complete-icon {

    width: 70px;

    height: 70px;

    margin:
        0 auto 20px;

    border-radius: 50%;

    background:
        var(--primary);

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 32px;

    font-weight: 900;
}


.survey-complete h2 {

    font-size: 34px;

    margin-bottom: 10px;
}


.survey-complete > p {

    max-width: 450px;

    margin:
        0 auto 25px;

    color:
        var(--text-light);
}


/* ======================================================
   TESTERS
====================================================== */

.tester-message,
.tester-form {

    max-width: 480px;

    margin:
        0 auto 25px;

    padding: 20px;

    border-radius: 15px;

    background:
        #f7faf9;

    border:
        1px solid var(--border);

    text-align: left;
}


.tester-field {

    margin-bottom: 15px;
}


.tester-field label {

    display: block;

    margin-bottom: 6px;

    font-size: 13px;

    font-weight: 700;
}


.tester-field input {

    width: 100%;

    padding:
        12px 13px;

    border:
        1px solid #cedbd7;

    border-radius: 10px;

    outline: none;

    font-size: 15px;
}


.tester-field input:focus {

    border-color:
        var(--primary);
}


.tester-consent {

    display: flex;

    align-items:
        flex-start;

    gap: 9px;

    margin:
        15px 0;

    color:
        var(--text-light);

    font-size: 12px;

    line-height: 1.5;
}


.tester-consent input {

    margin-top: 3px;
}


.tester-submit {

    width: 100%;

    padding: 13px;

    border: none;

    border-radius: 11px;

    background:
        var(--primary);

    color: white;

    font-weight: 800;

    cursor: pointer;
}


.tester-error {

    display: none;

    margin-top: 10px;

    color: #b13e3e;

    font-size: 12px;
}


.tester-success {

    padding: 20px;

    background:
        var(--primary-light);

    border-radius: 14px;

    text-align: center;
}


/* ======================================================
   MODAL PRIVACIDAD
====================================================== */

.privacy-overlay {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;

    background:
        rgba(10, 30, 25, 0.55);
}


.privacy-modal {

    width:
        min(520px, 100%);

    padding: 28px;

    background: white;

    border-radius: 20px;

    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, 0.18);
}


.privacy-modal h2 {

    margin-bottom: 12px;
}


.privacy-modal p {

    margin-bottom: 12px;

    color:
        var(--text-light);
}


.privacy-modal ul {

    margin:
        16px 0 22px;

    padding-left: 22px;

    color:
        var(--text-light);
}


.privacy-modal li {

    margin-bottom: 8px;
}


.privacy-close-button {

    width: 100%;

    padding: 13px;

    border: none;

    border-radius: 11px;

    background:
        var(--primary);

    color: white;

    font-weight: 800;

    cursor: pointer;
}


/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 900px) {

    .hero {

        padding:
            75px 0;
    }


    .hero-grid {

        grid-template-columns:
            1fr;

        gap: 50px;
    }


    .hero-content {

        text-align: center;
    }


    .hero-description {

        margin-left: auto;

        margin-right: auto;
    }


    .hero-actions {

        display: flex;

        justify-content: center;
    }


    .trust-list {

        justify-content: center;
    }


    .privacy-note {

        margin-left: auto;

        margin-right: auto;
    }


    .feature-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .cta-card {

        flex-direction: column;

        align-items:
            flex-start;
    }
}


@media (max-width: 600px) {

    .container {

        width: 92%;
    }


    .nav-button {

        display: none;
    }


    .hero {

        padding:
            58px 0
            70px;
    }


    .hero h1 {

        font-size: 42px;

        letter-spacing: -1.5px;
    }


    .hero-description {

        font-size: 17px;
    }


    .hero-actions {

        flex-direction: column;

        align-items: center;

        gap: 10px;
    }


    .saved-result-button {

        margin-left: 0;
    }


    .score-card {

        padding: 22px;
    }


    .feature-grid {

        grid-template-columns:
            1fr;
    }


    .cta-card {

        padding:
            32px 24px;
    }


    .cta-card h2 {

        font-size: 30px;
    }


    .footer-content {

        flex-direction: column;

        text-align: center;
    }


    .question-modal {

        padding: 0;

        align-items:
            stretch;
    }


    .question-box {

        max-height: none;

        width: 100%;

        border-radius: 0;

        padding:
            24px 20px;
    }


    .question-box h2 {

        font-size: 24px;
    }


    .result-actions {

        flex-direction: column;
    }


    .result-actions button {

        width: 100%;
    }
}

/* ======================================================
   LOGO OFICIAL NANO
====================================================== */
.logo { display:flex; align-items:center; gap:0; }
.nano-header-logo { display:block; width:auto; height:58px; object-fit:contain; }
.nano-footer-logo { display:block; width:auto; height:70px; object-fit:contain; }
.footer-logo { flex-shrink:0; }
@media (max-width:600px) { .nano-header-logo { height:52px; } .nano-footer-logo { height:62px; } }
/* =====================================================
   NANO - LANDING V1
===================================================== */

/* HEADER ACTIONS */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 20px;

    border: 1px solid #159f82;
    border-radius: 12px;

    background: transparent;
    color: #08745f;

    font-weight: 700;
    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-login-button:hover {
    background: #edf9f6;
    transform: translateY(-1px);
}


/* AFTER DIAGNOSIS */

.after-diagnosis {
    padding: 90px 0;
    background: #f5faf8;
}

.after-diagnosis-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;

    margin-top: 42px;
}

.after-diagnosis-card {
    padding: 30px;

    background: #ffffff;

    border: 1px solid #d9e8e3;
    border-radius: 18px;
}

.after-diagnosis-card h3 {
    margin: 20px 0 10px;

    color: #102f29;
    font-size: 20px;
}

.after-diagnosis-card p {
    margin: 0;

    color: #506963;
    line-height: 1.7;
}


/* MOBILE */

@media (max-width: 768px) {

    .nav-actions {
        gap: 8px;
    }

    .nav-login-button {
        min-height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }

    .nav-button {
        padding-left: 12px;
        padding-right: 12px;
        font-size: 13px;
    }

    .after-diagnosis {
        padding: 64px 0;
    }

    .after-diagnosis-grid {
        grid-template-columns: 1fr;
    }

}
