/* Evaluador de Actividad Física OMS */

.eaf-wrapper {
    max-width: 560px;
    margin: 0 auto;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2d3d;
    box-sizing: border-box;
}

.eaf-wrapper *,
.eaf-wrapper *::before,
.eaf-wrapper *::after {
    box-sizing: border-box;
}

/* ---- Formulario ---- */
.eaf-field {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.eaf-field > label {
    flex: 0 0 42%;
    font-size: 14px;
    font-weight: 500;
    color: #3a4a5c;
    padding-top: 10px;
    line-height: 1.35;
}

.eaf-field select,
.eaf-field input[type="number"] {
    flex: 1;
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    border: 1px solid #d5dbe1;
    border-radius: 10px;
    background: #fff;
    color: #1f2d3d;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}

.eaf-field select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%234a5c6e'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='6%209%2012%2015%2018%209'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 38px;
}

.eaf-field input:focus,
.eaf-field select:focus {
    border-color: #123a75;
    box-shadow: 0 0 0 3px rgba(18, 58, 117, 0.12);
}

.eaf-input-inline {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.eaf-input-inline input {
    padding-right: 76px;
}

.eaf-suffix {
    position: absolute;
    right: 14px;
    font-size: 14px;
    color: #7b8896;
    pointer-events: none;
}

/* ---- Botón ---- */
.eaf-btn {
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    background: #123a75;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.eaf-btn:hover { background: #0e2e5e; }

/* ---- Resultado ---- */
.eaf-sep {
    border: none;
    border-top: 1px solid #e8eaed;
    margin: 24px 0 18px;
}

.eaf-res-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #1f2d3d;
}

.eaf-res-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.eaf-icon {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    border-radius: 50%;
    background: #eef1fb;
    color: #123a75;
    display: flex;
    align-items: center;
    justify-content: center;
}
.eaf-icon svg { width: 34px; height: 34px; }

.eaf-res-label {
    display: block;
    font-size: 13px;
    color: #6b7885;
    margin-bottom: 4px;
}

.eaf-res-num { font-size: 15px; color: #4a5c6e; }
.eaf-res-num strong { font-size: 40px; font-weight: 800; color: #1f2d3d; line-height: 1; }

.eaf-res-nivel {
    margin-left: auto;
    padding-left: 20px;
    border-left: 1px solid #e8eaed;
}

.eaf-nivel-badge { display: flex; align-items: center; gap: 8px; }
.eaf-dot { width: 12px; height: 12px; border-radius: 50%; background: #f5a623; flex: 0 0 12px; }
.eaf-nivel-text { font-size: 15px; font-weight: 500; color: #1f2d3d; }

/* ---- Alerta ---- */
.eaf-alert {
    display: flex;
    gap: 12px;
    background: #fff8ec;
    border: 1px solid #f5e2be;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 22px;
}
.eaf-alert-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #f5a623;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.eaf-alert-text { font-size: 13.5px; color: #6a5b3a; line-height: 1.5; }

/* ---- Progreso ---- */
.eaf-progress-wrap { margin-bottom: 22px; }
.eaf-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #3a4a5c;
}
.eaf-progress-nums { color: #123a75; font-size: 15px; }
.eaf-progress-nums strong { font-size: 16px; }

.eaf-progress-bar {
    position: relative;
    height: 12px;
    background: #e8ebf0;
    border-radius: 20px;
    overflow: hidden;
}
.eaf-progress-fill {
    height: 100%;
    width: 0%;
    background: #123a75;
    border-radius: 20px;
    transition: width .5s ease;
}
.eaf-progress-pct {
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: #123a75;
    margin-top: 6px;
}

/* ---- Tip ---- */
.eaf-tip {
    display: flex;
    gap: 12px;
    background: #eef2fb;
    border-radius: 10px;
    padding: 16px;
}
.eaf-tip-icon { flex: 0 0 26px; color: #123a75; }
.eaf-tip-icon svg { width: 26px; height: 26px; }
.eaf-tip-body strong { display: block; font-size: 14px; color: #123a75; margin-bottom: 4px; }
.eaf-tip-text { font-size: 13.5px; color: #4a5c6e; line-height: 1.5; margin: 0; }

/* ---- Estados de nivel (color del punto) ---- */
.eaf-dot.lejos      { background: #e05a4d; }
.eaf-dot.cercano    { background: #f5a623; }
.eaf-dot.cumple     { background: #3aab5a; }

/* ---- Responsive ---- */
@media (max-width: 560px) {
    .eaf-wrapper { padding: 20px; }
    .eaf-field { flex-direction: column; gap: 6px; }
    .eaf-field > label { flex: none; padding-top: 0; }
    .eaf-res-top { flex-wrap: wrap; }
    .eaf-res-nivel { margin-left: 0; padding-left: 0; border-left: none; width: 100%; }
}
