.gsa-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 900px;
    max-width: 100%;
    box-sizing: border-box;
    margin: 20px auto;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.gsa-wrapper, .gsa-wrapper * {
    box-sizing: border-box;
}

.gsa-header {
    background: #303030;
    color: #C7F301;
    padding: 16px 20px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

/* --- Barra de progreso del historial inicial --- */
.gsa-progreso-barra {
    background: #f0f0f0;
    border-radius: 20px;
    height: 26px;
    overflow: hidden;
    margin-bottom: 22px;
}
.gsa-progreso-fill {
    background: #C7F301;
    color: #303030;
    height: 100%;
    width: 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    transition: width 0.4s ease;
    white-space: nowrap;
}

/* --- Aviso de formulario no habilitado --- */
.gsa-aviso-box {
    text-align: center;
    padding: 55px 30px 45px;
    border: 2px dashed #eee;
    border-radius: 12px;
}
.gsa-aviso-icon { font-size: 44px; margin-bottom: 12px; line-height: 1; }
.gsa-aviso-pill {
    display: inline-block;
    background: #303030;
    color: #C7F301;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 20px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.gsa-aviso-texto {
    font-size: 15px;
    font-weight: bold;
    color: #303030;
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Secciones del formulario --- */
.gsa-seccion-titulo {
    color: #303030;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 5px solid #C7F301;
    padding-left: 12px;
    margin: 30px 0 15px 0;
}
.gsa-nota { color: #888; font-size: 12px; font-style: italic; margin: -8px 0 12px 0; }

.gsa-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.gsa-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
@media (max-width: 640px) { .gsa-grid-2, .gsa-grid-4 { grid-template-columns: 1fr; } }

.gsa-field { margin-bottom: 15px; }
.gsa-label { display: block; font-weight: 700; font-size: 13px; color: #303030; margin-bottom: 8px; }
.gsa-input, .gsa-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.gsa-input:focus, .gsa-textarea:focus { outline: none; border-color: #C7F301; }
.gsa-input-group { display: flex; gap: 8px; align-items: center; }
.gsa-input-group .gsa-input { flex: 1; }

/* Quitar las flechitas (spinners) de los campos numéricos: edad, estatura, peso, etc. */
.gsa-input[type="number"]::-webkit-outer-spin-button,
.gsa-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.gsa-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* --- Pastillas seleccionables --- */
.gsa-pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.gsa-pill {
    background: #f8f9fa;
    color: #303030;
    border: 2px solid #e1e8ed;
    border-radius: 8px !important;
    padding: 8px 18px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s;
}
.gsa-pill:hover { border-color: #C7F301; }
.gsa-pill.selected { background: #303030; color: #C7F301; border-color: #303030; }

/* --- Checkboxes tipo pastilla (obstáculos, multi-selección) --- */
.gsa-checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.gsa-checkbox-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f8f9fa; border: 2px solid #e1e8ed; border-radius: 8px;
    padding: 7px 16px; font-size: 13px; font-weight: 600; color: #303030; cursor: pointer;
}
.gsa-checkbox-pill input { accent-color: #303030; }

/* --- Revelado condicional --- */
.gsa-conditional { margin-top: 8px; margin-bottom: 15px; padding: 12px; background: #fafafa; border-radius: 8px; border-left: 3px solid #C7F301; }

/* --- Estrellas 1-10 (aún usado en el check-in semanal) --- */
.gsa-star-rating { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.gsa-star { font-size: 24px; color: #ddd; cursor: pointer; transition: color 0.15s; }
.gsa-star.filled { color: #C7F301; text-shadow: 0 0 1px #303030; }
.gsa-star-value { margin-left: 8px; font-weight: 800; color: #303030; font-size: 13px; }

/* --- Medidor de calor 1-10 (azul frío -> rojo caliente), usado en el Historial Inicial --- */
.gsa-heat-gauge { margin-top: 4px; }
.gsa-heat-track {
    display: flex;
    gap: 3px;
    border-radius: 999px;
    overflow: hidden;
    height: 34px;
}
.gsa-heat-segment {
    flex: 1;
    cursor: pointer;
    opacity: 0.35;
    transition: opacity 0.15s, transform 0.15s;
}
.gsa-heat-segment:hover { opacity: 0.7; }
.gsa-heat-segment.gsa-heat-activo { opacity: 1; transform: scaleY(1.08); }
.gsa-heat-scale-labels { display: flex; justify-content: space-between; font-size: 10px; color: #999; font-weight: 700; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.gsa-heat-value { text-align: center; font-weight: 800; color: #303030; font-size: 13px; margin-top: 6px; }

/* --- Navegación del asistente por bloques --- */
.gsa-step-contador { text-align: center; font-weight: 700; font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.gsa-step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 12px; }
.gsa-btn-anterior {
    background: #303030 !important; color: #C7F301 !important; border: 2px solid #303030;
    padding: 12px 20px; border-radius: 8px !important; font-weight: 800; font-size: 13px;
    cursor: pointer; transition: all 0.2s;
}
.gsa-btn-anterior:hover { background: #C7F301 !important; color: #303030 !important; }
.gsa-btn-siguiente {
    background: #303030 !important; color: #C7F301 !important; border: 2px solid #303030;
    padding: 12px 26px; border-radius: 8px !important; font-weight: 800; font-size: 13px;
    cursor: pointer; transition: all 0.2s; margin-left: auto;
}
.gsa-btn-siguiente:hover { background: #C7F301 !important; color: #303030 !important; border-color: #C7F301; }

/* --- Slider de cumplimiento --- */
.gsa-slider { width: 100%; accent-color: #C7F301; }
.gsa-slider-valor { text-align: center; font-weight: 800; font-size: 20px; color: #303030; margin-top: 5px; }

/* --- Carga de fotos --- */
.gsa-foto-upload { background: #fafafa; border: 2px dashed #ddd; border-radius: 10px; padding: 12px; text-align: center; }
.gsa-foto-upload.gsa-foto-completa { border-color: #C7F301; border-style: solid; }
.gsa-foto-preview { width: 100%; height: 100px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; background: #f0f0f0; border-radius: 8px; overflow: hidden; }
.gsa-foto-preview img { width: 100%; height: 100%; object-fit: cover; }
.gsa-foto-icon { font-size: 30px; opacity: 0.4; }
.gsa-foto-btn {
    display: block; background: #303030; color: #C7F301; font-size: 12px; font-weight: 700;
    padding: 8px 10px; border-radius: 6px; cursor: pointer;
}
.gsa-foto-status { display: block; font-size: 11px; margin-top: 6px; min-height: 14px; }

/* --- Botón principal --- */
.gsa-btn-primary {
    display: block; width: 100%;
    background: #303030 !important; color: #C7F301 !important;
    border: none !important; padding: 15px; border-radius: 8px !important; font-weight: 800; font-size: 15px;
    text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; margin-top: 25px; transition: all 0.2s;
}
.gsa-btn-primary:hover { background: #C7F301 !important; color: #303030 !important; }
.gsa-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.gsa-mensaje { text-align: center; margin-top: 12px; font-weight: 700; font-size: 13px; }
.gsa-msg-ok { color: #2a8a2a; }
.gsa-msg-error { color: #c0392b; }

/* --- Cumplimiento del Plan (día por día) --- */
.gsa-cumplimiento-dias { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 10px; }
.gsa-cumplimiento-dia { background: #fafafa; border: 2px solid #eee; border-radius: 10px; padding: 14px; }
.gsa-cumplimiento-dia-nombre { font-weight: 800; color: #303030; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; text-align: center; }
.gsa-cumplimiento-dia-inputs { display: flex; flex-direction: column; gap: 8px; }
.gsa-cumplimiento-dia-inputs label { font-size: 11px; font-weight: 700; color: #666; }
.gsa-cumplimiento-dia-inputs .gsa-input { margin-top: 3px; padding: 7px 10px; }
.gsa-cumplimiento-dia-resultado { text-align: center; font-weight: 800; color: #303030; background: #C7F301; border-radius: 6px; padding: 6px; margin-top: 10px; font-size: 13px; }

/* --- Resumen de datos ya guardados ("¿Deseas editar algún dato?") --- */
.gsa-resumen-box { text-align: center; padding: 30px 20px; }
.gsa-resumen-icono { font-size: 46px; margin-bottom: 10px; }
.gsa-resumen-titulo { color: #303030; font-size: 19px; font-weight: 800; margin: 0 0 10px 0; }
.gsa-resumen-texto { color: #555; font-size: 14px; line-height: 1.7; max-width: 480px; margin: 0 auto 18px; }
.gsa-resumen-pregunta-texto { font-weight: 800; color: #303030; font-size: 15px; margin-bottom: 14px; }
.gsa-resumen-botones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gsa-resumen-botones .gsa-btn-siguiente, .gsa-resumen-botones .gsa-btn-anterior { margin-left: 0; }

/* --- Aviso de edición habilitada por el coach --- */
.gsa-aviso-edicion {
    background: #fff8e1; border: 2px solid #C7F301; color: #303030;
    padding: 12px 16px; border-radius: 8px; font-weight: 700; font-size: 13px;
    margin-bottom: 16px; text-align: center;
}
