/* =========================================================
   PROCESOS MEJORES - ASSESSMENT ISO 42001
   styles.css
========================================================= */

:root {
    --primary: #38B6FF;
    --primary-dark: #1496E0;
    --primary-light: #E8F7FF;

    --success: #16A34A;
    --warning: #F59E0B;
    --danger: #DC2626;

    --text: #1F2937;
    --text-light: #6B7280;

    --background: #F5F9FC;
    --white: #FFFFFF;

    --border: #E5E7EB;

    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow-md: 0 10px 25px rgba(0,0,0,.08);
    --shadow-lg: 0 15px 40px rgba(0,0,0,.12);

    --radius: 16px;

    --transition: .25s ease;
}

/* =========================================================
   RESET
========================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:
        "Segoe UI",
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;

    background:var(--background);
    color:var(--text);
    line-height:1.6;
}

img{
    max-width:100%;
    display:block;
}

.hidden{
    display:none !important;
}

/* =========================================================
   HERO
========================================================= */

#hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px 20px;
}

.hero-container{
    max-width:900px;
    width:100%;
    background:var(--white);
    border-radius:24px;
    box-shadow:var(--shadow-lg);
    padding:50px;
    text-align:center;
}

.logo{
    width:180px;
    margin:0 auto 25px auto;
}

.hero-container h1{
    font-size:2.5rem;
    color:var(--primary-dark);
    margin-bottom:10px;
}

.hero-container h2{
    font-size:1.4rem;
    color:var(--text-light);
    font-weight:500;
    margin-bottom:25px;
}

.hero-text{
    max-width:700px;
    margin:0 auto 35px auto;
    font-size:1.1rem;
    color:var(--text-light);
}

/* =========================================================
   BUTTONS
========================================================= */

.btn-primary,
.btn-whatsapp{

    border:none;
    cursor:pointer;
    border-radius:12px;

    padding:14px 28px;

    font-size:1rem;
    font-weight:600;

    transition:var(--transition);
}

.btn-primary{
    background:var(--primary);
    color:white;
}

.btn-primary:hover{
    background:var(--primary-dark);
    transform:translateY(-2px);
}

.btn-whatsapp{
    background:#25D366;
    color:white;
}

.btn-whatsapp:hover{
    transform:translateY(-2px);
    filter:brightness(0.95);
}

/* =========================================================
   QUIZ
========================================================= */

#quizSection{
    padding:50px 20px;
}

.quiz-container{
    max-width:900px;
    margin:auto;

    background:white;
    border-radius:var(--radius);

    padding:40px;

    box-shadow:var(--shadow-md);
}

.progress-container{
    width:100%;
    height:12px;
    background:#E5E7EB;
    border-radius:999px;
    overflow:hidden;

    margin-bottom:20px;
}

#progressBar{
    width:0%;
    height:100%;
    background:linear-gradient(
        90deg,
        var(--primary),
        var(--primary-dark)
    );

    transition:.4s ease;
}

.question-counter{
    text-align:right;
    color:var(--text-light);
    font-size:.9rem;
    margin-bottom:20px;
}

.question-title{
    font-size:1.8rem;
    font-weight:700;
    margin-bottom:30px;
}

.options-container{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.option-card{
    border:2px solid #DDEAF5;
    border-radius:14px;
    padding:20px;

    background:white;

    cursor:pointer;

    transition:var(--transition);
}

.option-card:hover{
    border-color:var(--primary);
    background:var(--primary-light);
    transform:translateY(-2px);
}

.option-title{
    font-size:1.05rem;
    font-weight:700;
    margin-bottom:6px;
}

.option-description{
    color:var(--text-light);
    font-size:.95rem;
}

/* =========================================================
   CARDS
========================================================= */

.card{
    max-width:900px;
    margin:50px auto;
    background:white;

    border-radius:20px;

    padding:40px;

    box-shadow:var(--shadow-md);
}

.card h2{
    text-align:center;
    margin-bottom:15px;
    color:var(--primary-dark);
}

.card p{
    text-align:center;
    color:var(--text-light);
    margin-bottom:30px;
}

/* =========================================================
   FORM
========================================================= */

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    margin-bottom:6px;
    font-weight:600;
}

.form-group input{
    width:100%;
    border:1px solid var(--border);
    border-radius:10px;

    padding:12px 14px;

    font-size:1rem;

    transition:var(--transition);
}

.form-group input:focus{
    outline:none;
    border-color:var(--primary);
}

.form-error{
    color:var(--danger);
    text-align:center;
    margin-bottom:20px;
    font-weight:600;
}

/* =========================================================
   RESULT
========================================================= */

.result-title{
    text-align:center;
    font-size:2rem;
    font-weight:700;
    margin-top:25px;
}

.result-description{
    margin-top:20px;
    font-size:1.05rem;
    text-align:center;
}

.result-reasons{
    margin-top:25px;
    background:#F8FAFC;
    border-radius:12px;
    padding:20px;
}

.result-reasons ul{
    padding-left:20px;
}

.result-reasons li{
    margin-bottom:10px;
}

.result-actions{
    margin-top:30px;
    text-align:center;
}

/* =========================================================
   GAUGE
========================================================= */

.gauge-wrapper{
    display:flex;
    justify-content:center;
    margin-top:20px;
}

.gauge{
    width:260px;
    font-family:inherit;
}

.gauge-body{
    width:100%;
    height:0;
    padding-bottom:50%;
    background:#E5E7EB;
    position:relative;
    border-top-left-radius:100% 200%;
    border-top-right-radius:100% 200%;
    overflow:hidden;
}

.gauge-fill{
    position:absolute;

    top:100%;
    left:0;

    width:inherit;
    height:100%;

    background:linear-gradient(
        90deg,
        var(--success),
        var(--warning),
        var(--danger)
    );

    transform-origin:center top;
    transform:rotate(0.5turn);

    transition:transform 1s ease-out;
}

.gauge-cover{
    width:75%;
    height:150%;

    background:white;

    border-radius:50%;

    position:absolute;

    top:25%;
    left:50%;

    transform:translateX(-50%);

    display:flex;
    align-items:center;
    justify-content:center;

    padding-bottom:25%;

    box-shadow:0 0 15px rgba(0,0,0,.08);
}

#percentageValue{
    font-size:2rem;
    font-weight:700;
    color:var(--primary-dark);
}

/* =========================================================
   ISO 42001
========================================================= */

#isoSection{
    padding:0 20px 40px;
}

.benefits{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.benefit{
    background:var(--primary-light);

    padding:15px;

    border-radius:12px;

    font-weight:600;
}

/* =========================================================
   FOOTER
========================================================= */

footer{
    margin-top:50px;

    background:#0F172A;
    color:white;

    padding:40px 20px;
}

.footer-content{
    max-width:1000px;
    margin:auto;
    text-align:center;
}

.footer-logo{
    width:90px;
    margin:0 auto 15px auto;
}

.footer-content p{
    opacity:.9;
    margin-bottom:6px;
}

/* =========================================================
   RESULT COLORS
========================================================= */

.result-inicial{
    color:var(--success);
}

.result-mejora{
    color:var(--warning);
}

.result-escalar{
    color:#EA580C;
}

.result-prioridad{
    color:var(--danger);
}

/* =========================================================
   ANIMATIONS
========================================================= */

.fade-in{
    animation:fadeIn .4s ease;
}

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(10px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width:768px){

    .hero-container{
        padding:30px 20px;
    }

    .hero-container h1{
        font-size:1.8rem;
    }

    .hero-container h2{
        font-size:1.1rem;
    }

    .question-title{
        font-size:1.4rem;
    }

    .card{
        padding:25px;
        margin:25px 15px;
    }

    .benefits{
        grid-template-columns:1fr;
    }

    .gauge{
        width:220px;
    }

    #percentageValue{
        font-size:1.6rem;
    }

    .btn-primary,
    .btn-whatsapp{
        width:100%;
    }
}